From 91479fd13f9b50d33c770c87191bc5789c260360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=81=A5=E9=93=AD?= Date: Fri, 4 Dec 2026 08:37:28 -0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E5=9F=BA=E7=BA=BF=EF=BC=9A?= =?UTF-8?q?=E7=AB=AF=E5=88=B0=E7=AB=AF=E9=BB=84=E9=87=91=E5=AF=B9=E7=85=A7?= =?UTF-8?q?=E3=80=81=E6=B5=8F=E8=A7=88=E5=99=A8=E6=B5=81=E7=A8=8B=E4=B8=8E?= =?UTF-8?q?=E6=97=A7=E5=BA=93=E5=85=BC=E5=AE=B9=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .gitignore | 4 + 新账系统/e2e/baseline/golden/db.json | 9984 + 新账系统/e2e/baseline/golden/transcript.json | 196910 +++++++++++++++ 新账系统/e2e/baseline/legacy.json | 11198 + 新账系统/e2e/baseline/ui/01-login-page.txt | 16 + 新账系统/e2e/baseline/ui/02-owner-home.txt | 179 + .../e2e/baseline/ui/03-owner-tab-create.txt | 179 + .../e2e/baseline/ui/04-owner-tab-price-locks.txt | 31 + .../baseline/ui/05-owner-tab-material-pools.txt | 54 + .../e2e/baseline/ui/06-owner-tab-recoveries.txt | 118 + .../e2e/baseline/ui/07-owner-tab-orders.txt | 64 + .../e2e/baseline/ui/08-owner-tab-stock.txt | 127 + .../e2e/baseline/ui/09-owner-tab-report.txt | 104 + .../e2e/baseline/ui/10-owner-tab-team-funds.txt | 35 + .../ui/11-owner-tab-private-operations.txt | 56 + .../e2e/baseline/ui/12-owner-tab-settings.txt | 163 + .../e2e/baseline/ui/13-owner-create-filled.txt | 200 + .../e2e/baseline/ui/14-owner-create-submitted.txt | 134 + .../e2e/baseline/ui/15-owner-print-preview.txt | 30 + .../e2e/baseline/ui/16-owner-print-marked.txt | 30 + .../baseline/ui/17-owner-orders-after-create.txt | 77 + .../e2e/baseline/ui/18-owner-orders-month.txt | 129 + .../e2e/baseline/ui/19-owner-order-detail.txt | 190 + .../baseline/ui/20-owner-order-detail-prev.txt | 177 + .../baseline/ui/21-owner-order-detail-next.txt | 190 + .../baseline/ui/22-owner-material-purchase.txt | 65 + .../e2e/baseline/ui/23-owner-price-lock-form.txt | 103 + .../baseline/ui/24-owner-price-lock-filled.txt | 103 + .../baseline/ui/25-owner-price-lock-submitted.txt | 65 + .../ui/26-owner-price-locks-after-create.txt | 38 + .../e2e/baseline/ui/27-owner-recovery-filled.txt | 121 + .../e2e/baseline/ui/28-owner-recovery-saved.txt | 80 + .../e2e/baseline/ui/29-owner-settings-saved.txt | 163 + .../e2e/baseline/ui/30-assistant-home.txt | 175 + .../e2e/baseline/ui/31-assistant-tab-create.txt | 175 + .../baseline/ui/32-assistant-tab-price-locks.txt | 30 + .../ui/33-assistant-tab-material-pools.txt | 58 + .../baseline/ui/34-assistant-tab-recoveries.txt | 108 + .../e2e/baseline/ui/35-assistant-tab-orders.txt | 57 + .../e2e/baseline/ui/36-assistant-tab-stock.txt | 124 + .../e2e/baseline/ui/37-assistant-tab-report.txt | 110 + .../baseline/ui/38-assistant-tab-people-entry.txt | 27 + .../e2e/baseline/ui/39-assistant-tab-settings.txt | 27 + .../e2e/baseline/ui/40-assistant-order-detail.txt | 119 + .../e2e/baseline/ui/41-assistant-change-form.txt | 147 + .../baseline/ui/42-assistant-change-submitted.txt | 121 + .../e2e/baseline/ui/43-owner-order-changes.txt | 109 + .../baseline/ui/44-owner-order-change-detail.txt | 141 + .../baseline/ui/45-owner-order-change-review.txt | 211 + .../ui/46-owner-order-change-approved.txt | 134 + .../baseline/ui/47-owner-orders-after-approve.txt | 120 + .../e2e/baseline/ui/48-assistant2-home.txt | 175 + .../e2e/baseline/ui/49-assistant2-tab-create.txt | 175 + .../baseline/ui/50-assistant2-tab-price-locks.txt | 30 + .../ui/51-assistant2-tab-material-pools.txt | 58 + .../baseline/ui/52-assistant2-tab-recoveries.txt | 108 + .../e2e/baseline/ui/53-assistant2-tab-orders.txt | 57 + .../e2e/baseline/ui/54-assistant2-tab-stock.txt | 124 + .../e2e/baseline/ui/55-assistant2-tab-report.txt | 110 + .../ui/56-assistant2-tab-people-entry.txt | 27 + .../baseline/ui/57-assistant2-tab-settings.txt | 27 + 新账系统/e2e/browser.mjs | 319 + 新账系统/e2e/coverage.js | 15 + 新账系统/e2e/fake-clock.cjs | 68 + 新账系统/e2e/golden-scenario.js | 634 + 新账系统/e2e/golden.js | 65 + 新账系统/e2e/legacy-db.js | 98 + 新账系统/e2e/lib/client.js | 60 + 新账系统/e2e/lib/db-dump.js | 26 + 新账系统/e2e/lib/diff.js | 40 + 新账系统/e2e/lib/normalize.js | 25 + 新账系统/e2e/lib/server-child.cjs | 29 + 新账系统/e2e/lib/server.js | 35 + 新账系统/e2e/lib/zip.js | 19 + 新账系统/e2e/package-lock.json | 42 + 新账系统/e2e/package.json | 9 + 新账系统/e2e/verify.sh | 23 + 77 files changed, 225508 insertions(+) create mode 100644 新账系统/e2e/baseline/golden/db.json create mode 100644 新账系统/e2e/baseline/golden/transcript.json create mode 100644 新账系统/e2e/baseline/legacy.json create mode 100644 新账系统/e2e/baseline/ui/01-login-page.txt create mode 100644 新账系统/e2e/baseline/ui/02-owner-home.txt create mode 100644 新账系统/e2e/baseline/ui/03-owner-tab-create.txt create mode 100644 新账系统/e2e/baseline/ui/04-owner-tab-price-locks.txt create mode 100644 新账系统/e2e/baseline/ui/05-owner-tab-material-pools.txt create mode 100644 新账系统/e2e/baseline/ui/06-owner-tab-recoveries.txt create mode 100644 新账系统/e2e/baseline/ui/07-owner-tab-orders.txt create mode 100644 新账系统/e2e/baseline/ui/08-owner-tab-stock.txt create mode 100644 新账系统/e2e/baseline/ui/09-owner-tab-report.txt create mode 100644 新账系统/e2e/baseline/ui/10-owner-tab-team-funds.txt create mode 100644 新账系统/e2e/baseline/ui/11-owner-tab-private-operations.txt create mode 100644 新账系统/e2e/baseline/ui/12-owner-tab-settings.txt create mode 100644 新账系统/e2e/baseline/ui/13-owner-create-filled.txt create mode 100644 新账系统/e2e/baseline/ui/14-owner-create-submitted.txt create mode 100644 新账系统/e2e/baseline/ui/15-owner-print-preview.txt create mode 100644 新账系统/e2e/baseline/ui/16-owner-print-marked.txt create mode 100644 新账系统/e2e/baseline/ui/17-owner-orders-after-create.txt create mode 100644 新账系统/e2e/baseline/ui/18-owner-orders-month.txt create mode 100644 新账系统/e2e/baseline/ui/19-owner-order-detail.txt create mode 100644 新账系统/e2e/baseline/ui/20-owner-order-detail-prev.txt create mode 100644 新账系统/e2e/baseline/ui/21-owner-order-detail-next.txt create mode 100644 新账系统/e2e/baseline/ui/22-owner-material-purchase.txt create mode 100644 新账系统/e2e/baseline/ui/23-owner-price-lock-form.txt create mode 100644 新账系统/e2e/baseline/ui/24-owner-price-lock-filled.txt create mode 100644 新账系统/e2e/baseline/ui/25-owner-price-lock-submitted.txt create mode 100644 新账系统/e2e/baseline/ui/26-owner-price-locks-after-create.txt create mode 100644 新账系统/e2e/baseline/ui/27-owner-recovery-filled.txt create mode 100644 新账系统/e2e/baseline/ui/28-owner-recovery-saved.txt create mode 100644 新账系统/e2e/baseline/ui/29-owner-settings-saved.txt create mode 100644 新账系统/e2e/baseline/ui/30-assistant-home.txt create mode 100644 新账系统/e2e/baseline/ui/31-assistant-tab-create.txt create mode 100644 新账系统/e2e/baseline/ui/32-assistant-tab-price-locks.txt create mode 100644 新账系统/e2e/baseline/ui/33-assistant-tab-material-pools.txt create mode 100644 新账系统/e2e/baseline/ui/34-assistant-tab-recoveries.txt create mode 100644 新账系统/e2e/baseline/ui/35-assistant-tab-orders.txt create mode 100644 新账系统/e2e/baseline/ui/36-assistant-tab-stock.txt create mode 100644 新账系统/e2e/baseline/ui/37-assistant-tab-report.txt create mode 100644 新账系统/e2e/baseline/ui/38-assistant-tab-people-entry.txt create mode 100644 新账系统/e2e/baseline/ui/39-assistant-tab-settings.txt create mode 100644 新账系统/e2e/baseline/ui/40-assistant-order-detail.txt create mode 100644 新账系统/e2e/baseline/ui/41-assistant-change-form.txt create mode 100644 新账系统/e2e/baseline/ui/42-assistant-change-submitted.txt create mode 100644 新账系统/e2e/baseline/ui/43-owner-order-changes.txt create mode 100644 新账系统/e2e/baseline/ui/44-owner-order-change-detail.txt create mode 100644 新账系统/e2e/baseline/ui/45-owner-order-change-review.txt create mode 100644 新账系统/e2e/baseline/ui/46-owner-order-change-approved.txt create mode 100644 新账系统/e2e/baseline/ui/47-owner-orders-after-approve.txt create mode 100644 新账系统/e2e/baseline/ui/48-assistant2-home.txt create mode 100644 新账系统/e2e/baseline/ui/49-assistant2-tab-create.txt create mode 100644 新账系统/e2e/baseline/ui/50-assistant2-tab-price-locks.txt create mode 100644 新账系统/e2e/baseline/ui/51-assistant2-tab-material-pools.txt create mode 100644 新账系统/e2e/baseline/ui/52-assistant2-tab-recoveries.txt create mode 100644 新账系统/e2e/baseline/ui/53-assistant2-tab-orders.txt create mode 100644 新账系统/e2e/baseline/ui/54-assistant2-tab-stock.txt create mode 100644 新账系统/e2e/baseline/ui/55-assistant2-tab-report.txt create mode 100644 新账系统/e2e/baseline/ui/56-assistant2-tab-people-entry.txt create mode 100644 新账系统/e2e/baseline/ui/57-assistant2-tab-settings.txt create mode 100755 新账系统/e2e/browser.mjs create mode 100644 新账系统/e2e/coverage.js create mode 100644 新账系统/e2e/fake-clock.cjs create mode 100644 新账系统/e2e/golden-scenario.js create mode 100755 新账系统/e2e/golden.js create mode 100755 新账系统/e2e/legacy-db.js create mode 100644 新账系统/e2e/lib/client.js create mode 100644 新账系统/e2e/lib/db-dump.js create mode 100644 新账系统/e2e/lib/diff.js create mode 100644 新账系统/e2e/lib/normalize.js create mode 100644 新账系统/e2e/lib/server-child.cjs create mode 100644 新账系统/e2e/lib/server.js create mode 100644 新账系统/e2e/lib/zip.js create mode 100644 新账系统/e2e/package-lock.json create mode 100644 新账系统/e2e/package.json create mode 100755 新账系统/e2e/verify.sh diff --git a/.gitignore b/.gitignore index 15f6866..9ed3c1e 100644 --- a/.gitignore +++ b/.gitignore @@ -76,3 +76,7 @@ $RECYCLE.BIN/ # 本机安装的依赖。 node_modules/ + +# 验证工具的本机依赖与运行产物(基线 e2e/baseline/ 需要提交)。 +新账系统/e2e/node_modules/ +新账系统/e2e/out/ diff --git a/新账系统/e2e/baseline/golden/db.json b/新账系统/e2e/baseline/golden/db.json new file mode 100644 index 0000000..0a2ee2a --- /dev/null +++ b/新账系统/e2e/baseline/golden/db.json @@ -0,0 +1,9984 @@ +{ + "schema": [ + { + "type": "index", + "name": "ix_after_sale_change_pending", + "table": "after_sale_changes", + "sql": "CREATE UNIQUE INDEX ix_after_sale_change_pending ON after_sale_changes(after_sale_id) WHERE status='pending'" + }, + { + "type": "index", + "name": "ix_after_sale_changes_status", + "table": "after_sale_changes", + "sql": "CREATE INDEX ix_after_sale_changes_status ON after_sale_changes(status,created)" + }, + { + "type": "index", + "name": "ix_after_sales_date", + "table": "after_sales", + "sql": "CREATE INDEX ix_after_sales_date ON after_sales(date)" + }, + { + "type": "index", + "name": "ix_customer_material_events_deposit", + "table": "customer_material_events", + "sql": "CREATE INDEX ix_customer_material_events_deposit ON customer_material_events(deposit_id,recovery_id)" + }, + { + "type": "index", + "name": "ix_inventory_change_pending", + "table": "inventory_changes", + "sql": "CREATE UNIQUE INDEX ix_inventory_change_pending ON inventory_changes(group_id) WHERE status='pending'" + }, + { + "type": "index", + "name": "ix_inventory_changes_status", + "table": "inventory_changes", + "sql": "CREATE INDEX ix_inventory_changes_status ON inventory_changes(status,created)" + }, + { + "type": "index", + "name": "ix_inventory_manual_rows_group", + "table": "inventory_manual_rows", + "sql": "CREATE INDEX ix_inventory_manual_rows_group ON inventory_manual_rows(group_id)" + }, + { + "type": "index", + "name": "ix_journal_date", + "table": "journal", + "sql": "CREATE INDEX ix_journal_date ON journal(date)" + }, + { + "type": "index", + "name": "ix_material_change_pending", + "table": "material_purchase_changes", + "sql": "CREATE UNIQUE INDEX ix_material_change_pending ON material_purchase_changes(purchase_id) WHERE status='pending'" + }, + { + "type": "index", + "name": "ix_material_purchases_date", + "table": "material_purchases", + "sql": "CREATE INDEX ix_material_purchases_date ON material_purchases(date,created)" + }, + { + "type": "index", + "name": "ix_material_settlements_date", + "table": "material_pool_settlements", + "sql": "CREATE INDEX ix_material_settlements_date ON material_pool_settlements(date,created)" + }, + { + "type": "index", + "name": "ix_material_usages_pool", + "table": "material_pool_usages", + "sql": "CREATE INDEX ix_material_usages_pool ON material_pool_usages(pool_id,active)" + }, + { + "type": "index", + "name": "ix_movement_count_date", + "table": "movement_counts", + "sql": "CREATE INDEX ix_movement_count_date ON movement_counts(effective_date,movement_id)" + }, + { + "type": "index", + "name": "ix_movements_date", + "table": "movements", + "sql": "CREATE INDEX ix_movements_date ON movements(date,pocket)" + }, + { + "type": "index", + "name": "ix_order_after_sales_date", + "table": "order_after_sales", + "sql": "CREATE INDEX ix_order_after_sales_date ON order_after_sales(date,order_id)" + }, + { + "type": "index", + "name": "ix_order_cancellation_pending", + "table": "order_cancellations", + "sql": "CREATE UNIQUE INDEX ix_order_cancellation_pending ON order_cancellations(order_id) WHERE status='pending'" + }, + { + "type": "index", + "name": "ix_order_cancellation_status", + "table": "order_cancellations", + "sql": "CREATE INDEX ix_order_cancellation_status ON order_cancellations(status,created)" + }, + { + "type": "index", + "name": "ix_order_change_pending", + "table": "order_changes", + "sql": "CREATE UNIQUE INDEX ix_order_change_pending ON order_changes(order_id) WHERE status='pending'" + }, + { + "type": "index", + "name": "ix_order_change_status", + "table": "order_changes", + "sql": "CREATE INDEX ix_order_change_status ON order_changes(status,created)" + }, + { + "type": "index", + "name": "ix_order_ownership_pending", + "table": "order_ownership_changes", + "sql": "CREATE UNIQUE INDEX ix_order_ownership_pending ON order_ownership_changes(order_id) WHERE status='pending'" + }, + { + "type": "index", + "name": "ix_order_ownership_status", + "table": "order_ownership_changes", + "sql": "CREATE INDEX ix_order_ownership_status ON order_ownership_changes(status,created)" + }, + { + "type": "index", + "name": "ix_payment_order", + "table": "payments", + "sql": "CREATE INDEX ix_payment_order ON payments(order_id)" + }, + { + "type": "index", + "name": "ix_price_lock_change_pending", + "table": "price_lock_changes", + "sql": "CREATE UNIQUE INDEX ix_price_lock_change_pending ON price_lock_changes(price_lock_id) WHERE status='pending'" + }, + { + "type": "index", + "name": "ix_price_lock_change_status", + "table": "price_lock_changes", + "sql": "CREATE INDEX ix_price_lock_change_status ON price_lock_changes(status,created)" + }, + { + "type": "index", + "name": "ix_price_lock_events_date", + "table": "price_lock_events", + "sql": "CREATE INDEX ix_price_lock_events_date ON price_lock_events(date,created,id)" + }, + { + "type": "index", + "name": "ix_price_locks_status", + "table": "price_locks", + "sql": "CREATE INDEX ix_price_locks_status ON price_locks(status,date)" + }, + { + "type": "index", + "name": "ix_recoveries_date", + "table": "recoveries", + "sql": "CREATE INDEX ix_recoveries_date ON recoveries(date,created)" + }, + { + "type": "index", + "name": "ix_recovery_changes_pending", + "table": "recovery_changes", + "sql": "CREATE UNIQUE INDEX ix_recovery_changes_pending ON recovery_changes(recovery_id) WHERE status='pending'" + }, + { + "type": "index", + "name": "ix_recovery_material_member", + "table": "recovery_material_batches", + "sql": "CREATE INDEX ix_recovery_material_member ON recovery_material_batches(member,purchase_id)" + }, + { + "type": "index", + "name": "ix_reimbursements_date", + "table": "reimbursements", + "sql": "CREATE INDEX ix_reimbursements_date ON reimbursements(date,created,id)" + }, + { + "type": "index", + "name": "ix_reimbursements_status", + "table": "reimbursements", + "sql": "CREATE INDEX ix_reimbursements_status ON reimbursements(status,created,id)" + }, + { + "type": "index", + "name": "ix_team_cash_date", + "table": "team_fund_cash", + "sql": "CREATE INDEX ix_team_cash_date ON team_fund_cash(date,created)" + }, + { + "type": "index", + "name": "ix_team_entities_member", + "table": "team_entities", + "sql": "CREATE INDEX ix_team_entities_member ON team_entities(member,kind,entity_id)" + }, + { + "type": "index", + "name": "ix_team_entries_date", + "table": "team_fund_entries", + "sql": "CREATE INDEX ix_team_entries_date ON team_fund_entries(date,created)" + }, + { + "type": "index", + "name": "ix_team_transfers_date", + "table": "team_fund_transfers", + "sql": "CREATE INDEX ix_team_transfers_date ON team_fund_transfers(date,created)" + }, + { + "type": "table", + "name": "after_sale_changes", + "table": "after_sale_changes", + "sql": "CREATE TABLE after_sale_changes(\n id TEXT PRIMARY KEY,after_sale_id TEXT NOT NULL,record_revision INTEGER NOT NULL,revision INTEGER NOT NULL DEFAULT 1,\n reason TEXT NOT NULL,before_value TEXT NOT NULL,after_value TEXT NOT NULL,record_hash TEXT NOT NULL,\n status TEXT NOT NULL CHECK(status IN ('pending','approved','rejected')),\n requester_id TEXT NOT NULL,requester_name TEXT NOT NULL,requester_member TEXT NOT NULL,member TEXT NOT NULL,created TEXT NOT NULL,\n reviewer_id TEXT,reviewer_name TEXT,reviewed TEXT,note TEXT NOT NULL DEFAULT '')" + }, + { + "type": "table", + "name": "after_sale_revisions", + "table": "after_sale_revisions", + "sql": "CREATE TABLE after_sale_revisions(after_sale_id TEXT PRIMARY KEY,revision INTEGER NOT NULL CHECK(revision>=1),updated TEXT NOT NULL)" + }, + { + "type": "table", + "name": "after_sales", + "table": "after_sales", + "sql": "CREATE TABLE \"after_sales\"(id TEXT PRIMARY KEY,date TEXT NOT NULL,project TEXT NOT NULL,customer TEXT NOT NULL,amount INTEGER NOT NULL CHECK(amount>=0),payer TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "audit", + "table": "audit", + "sql": "CREATE TABLE audit(id INTEGER PRIMARY KEY AUTOINCREMENT,entity TEXT NOT NULL,action TEXT NOT NULL,actor TEXT NOT NULL,detail TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "closes", + "table": "closes", + "sql": "CREATE TABLE closes(date TEXT PRIMARY KEY,report TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL,stale INTEGER NOT NULL DEFAULT 0)" + }, + { + "type": "table", + "name": "corrections", + "table": "corrections", + "sql": "CREATE TABLE corrections(target TEXT PRIMARY KEY,type TEXT NOT NULL,reason TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "credit_card_rate_snapshots", + "table": "credit_card_rate_snapshots", + "sql": "CREATE TABLE credit_card_rate_snapshots(kind TEXT NOT NULL CHECK(kind IN ('order','price_lock')),entity_id TEXT NOT NULL,rate_permille INTEGER NOT NULL CHECK(rate_permille BETWEEN 0 AND 1000),PRIMARY KEY(kind,entity_id))" + }, + { + "type": "table", + "name": "customer_material_deposits", + "table": "customer_material_deposits", + "sql": "CREATE TABLE customer_material_deposits(id TEXT PRIMARY KEY,number TEXT UNIQUE NOT NULL,date TEXT NOT NULL,mg INTEGER NOT NULL CHECK(mg>0),memo TEXT NOT NULL,actor TEXT NOT NULL,actor_id TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "customer_material_events", + "table": "customer_material_events", + "sql": "CREATE TABLE customer_material_events(id TEXT PRIMARY KEY,deposit_id TEXT NOT NULL REFERENCES customer_material_deposits(id),recovery_id TEXT NOT NULL REFERENCES recoveries(id),date TEXT NOT NULL,delta_mg INTEGER NOT NULL CHECK(delta_mg<>0),memo TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "customer_material_origins", + "table": "customer_material_origins", + "sql": "CREATE TABLE customer_material_origins(recovery_id TEXT PRIMARY KEY REFERENCES recoveries(id),deposit_id TEXT UNIQUE NOT NULL REFERENCES customer_material_deposits(id),mg INTEGER NOT NULL CHECK(mg>=0))" + }, + { + "type": "table", + "name": "daily_outlay_confirmations", + "table": "daily_outlay_confirmations", + "sql": "CREATE TABLE daily_outlay_confirmations(\n date TEXT PRIMARY KEY,amount INTEGER NOT NULL CHECK(amount>=0),revision INTEGER NOT NULL CHECK(revision>0),\n source_revision TEXT NOT NULL,note TEXT NOT NULL,actor_id TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL,updated TEXT NOT NULL)" + }, + { + "type": "table", + "name": "daily_people_counts", + "table": "daily_people_counts", + "sql": "CREATE TABLE daily_people_counts(date TEXT PRIMARY KEY,count INTEGER NOT NULL CHECK(count>=0 AND count<=1000000),revision INTEGER NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL,updated TEXT NOT NULL, assistant1_count INTEGER CHECK(assistant1_count IS NULL OR (typeof(assistant1_count)='integer' AND assistant1_count>=0 AND assistant1_count<=1000000)), assistant2_count INTEGER CHECK(assistant2_count IS NULL OR (typeof(assistant2_count)='integer' AND assistant2_count>=0 AND assistant2_count<=1000000)), member_counts TEXT NOT NULL DEFAULT '{}')" + }, + { + "type": "table", + "name": "document_print_status", + "table": "document_print_status", + "sql": "CREATE TABLE document_print_status(\n kind TEXT NOT NULL,id TEXT NOT NULL,printed INTEGER NOT NULL,revision INTEGER NOT NULL,\n updated TEXT NOT NULL,actor TEXT NOT NULL,PRIMARY KEY(kind,id))" + }, + { + "type": "table", + "name": "expenses", + "table": "expenses", + "sql": "CREATE TABLE expenses(id TEXT PRIMARY KEY,order_id TEXT NOT NULL REFERENCES orders(id),date TEXT NOT NULL,amount INTEGER NOT NULL,payer TEXT NOT NULL,note TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "inventory_changes", + "table": "inventory_changes", + "sql": "CREATE TABLE inventory_changes(\n id TEXT PRIMARY KEY,group_id TEXT NOT NULL REFERENCES inventory_manual_groups(group_id),group_revision INTEGER NOT NULL,\n action TEXT NOT NULL CHECK(action IN ('update','delete')),revision INTEGER NOT NULL DEFAULT 1,\n reason TEXT NOT NULL,before_value TEXT NOT NULL,after_value TEXT,group_hash TEXT NOT NULL,inventory_hash TEXT NOT NULL,\n status TEXT NOT NULL CHECK(status IN ('pending','approved','rejected')),\n requester_id TEXT NOT NULL,requester_name TEXT NOT NULL,requester_member TEXT NOT NULL,created TEXT NOT NULL,\n reviewer_id TEXT,reviewer_name TEXT,reviewed TEXT,note TEXT NOT NULL DEFAULT '')" + }, + { + "type": "table", + "name": "inventory_count_baselines", + "table": "inventory_count_baselines", + "sql": "CREATE TABLE inventory_count_baselines(\n pocket TEXT PRIMARY KEY,date TEXT NOT NULL,initial_count INTEGER NOT NULL CHECK(typeof(initial_count)='integer' AND initial_count>=0),\n movement_id TEXT UNIQUE NOT NULL REFERENCES movements(id),created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "inventory_manual_groups", + "table": "inventory_manual_groups", + "sql": "CREATE TABLE inventory_manual_groups(\n group_id TEXT PRIMARY KEY,revision INTEGER NOT NULL DEFAULT 1,status TEXT NOT NULL CHECK(status IN ('active','modified','deleted')),\n creator_id TEXT NOT NULL,creator_name TEXT NOT NULL,member TEXT NOT NULL,original_ids TEXT NOT NULL,current_ids TEXT NOT NULL,value TEXT NOT NULL,\n created TEXT NOT NULL,updated TEXT NOT NULL)" + }, + { + "type": "table", + "name": "inventory_manual_rows", + "table": "inventory_manual_rows", + "sql": "CREATE TABLE inventory_manual_rows(\n movement_id TEXT PRIMARY KEY REFERENCES movements(id),group_id TEXT NOT NULL REFERENCES inventory_manual_groups(group_id),\n generation INTEGER NOT NULL,role TEXT NOT NULL CHECK(role IN ('effective','reversal')))" + }, + { + "type": "table", + "name": "inventory_snapshots", + "table": "inventory_snapshots", + "sql": "CREATE TABLE inventory_snapshots(date TEXT PRIMARY KEY,inventory TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL,updated TEXT NOT NULL,stale INTEGER NOT NULL DEFAULT 0,revision TEXT NOT NULL,source TEXT NOT NULL DEFAULT 'manual' CHECK(source IN ('manual','automatic')),scheduled_for TEXT)" + }, + { + "type": "table", + "name": "journal", + "table": "journal", + "sql": "CREATE TABLE journal(id TEXT PRIMARY KEY,order_id TEXT NOT NULL REFERENCES orders(id),date TEXT NOT NULL,kind TEXT NOT NULL,sales INTEGER NOT NULL,goods INTEGER NOT NULL,expense INTEGER NOT NULL,profit INTEGER NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "material_pool_events", + "table": "material_pool_events", + "sql": "CREATE TABLE material_pool_events(\n id TEXT PRIMARY KEY,pool_id TEXT NOT NULL,usage_id TEXT NOT NULL REFERENCES material_pool_usages(id),order_id TEXT NOT NULL REFERENCES orders(id),\n date TEXT NOT NULL,kind TEXT NOT NULL,before_value TEXT NOT NULL,after_value TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "material_pool_settlements", + "table": "material_pool_settlements", + "sql": "CREATE TABLE material_pool_settlements(\n id TEXT PRIMARY KEY,pool_id TEXT NOT NULL,date TEXT NOT NULL,amount INTEGER NOT NULL,note TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "material_pool_usages", + "table": "material_pool_usages", + "sql": "CREATE TABLE material_pool_usages(\n id TEXT PRIMARY KEY,order_id TEXT NOT NULL REFERENCES orders(id),line_index INTEGER NOT NULL,pool_id TEXT NOT NULL,date TEXT NOT NULL,\n mg INTEGER NOT NULL CHECK(mg>0),active INTEGER NOT NULL CHECK(active IN (0,1)),amount INTEGER,owner_amount INTEGER,assistant_amount INTEGER,\n revision INTEGER NOT NULL,created TEXT NOT NULL,updated TEXT NOT NULL,UNIQUE(order_id,line_index))" + }, + { + "type": "table", + "name": "material_public_substitutions", + "table": "material_public_substitutions", + "sql": "CREATE TABLE material_public_substitutions(kind TEXT NOT NULL CHECK(kind IN ('order','priceLock')),source_id TEXT NOT NULL,purchase_id TEXT NOT NULL REFERENCES material_purchases(id),ranges TEXT NOT NULL,PRIMARY KEY(kind,source_id,purchase_id))" + }, + { + "type": "table", + "name": "material_purchase_changes", + "table": "material_purchase_changes", + "sql": "CREATE TABLE material_purchase_changes(\n id TEXT PRIMARY KEY,purchase_id TEXT NOT NULL,purchase_revision INTEGER NOT NULL,action TEXT NOT NULL,payload TEXT NOT NULL,reason TEXT NOT NULL,snapshot_hash TEXT NOT NULL,preview TEXT NOT NULL,\n status TEXT NOT NULL,requester_id TEXT NOT NULL,requester_name TEXT NOT NULL,requester_role TEXT NOT NULL,created TEXT NOT NULL,reviewer_id TEXT,reviewer_name TEXT,reviewed TEXT,note TEXT NOT NULL DEFAULT '')" + }, + { + "type": "table", + "name": "material_purchase_payment_origins", + "table": "material_purchase_payment_origins", + "sql": "CREATE TABLE material_purchase_payment_origins(purchase_id TEXT PRIMARY KEY REFERENCES material_purchases(id),payer_source TEXT NOT NULL CHECK(payer_source IN ('purchase')))" + }, + { + "type": "table", + "name": "material_purchase_shares", + "table": "material_purchase_shares", + "sql": "CREATE TABLE material_purchase_shares(purchase_id TEXT PRIMARY KEY REFERENCES material_purchases(id),payer TEXT NOT NULL,allocations TEXT NOT NULL)" + }, + { + "type": "table", + "name": "material_purchases", + "table": "material_purchases", + "sql": "CREATE TABLE material_purchases(\n id TEXT PRIMARY KEY,pool_id TEXT NOT NULL,date TEXT NOT NULL,mg INTEGER NOT NULL CHECK(mg>0),amount INTEGER NOT NULL CHECK(amount>0),\n payer TEXT NOT NULL,note TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL,\n revision INTEGER NOT NULL DEFAULT 1,deleted_at TEXT NOT NULL DEFAULT '',updated TEXT NOT NULL DEFAULT '')" + }, + { + "type": "table", + "name": "material_return_sources", + "table": "material_return_sources", + "sql": "CREATE TABLE material_return_sources(return_kind TEXT NOT NULL,return_id TEXT NOT NULL,sources TEXT NOT NULL,PRIMARY KEY(return_kind,return_id))" + }, + { + "type": "table", + "name": "material_rolling_days", + "table": "material_rolling_days", + "sql": "CREATE TABLE material_rolling_days(date TEXT PRIMARY KEY,opening TEXT NOT NULL,snapshot TEXT NOT NULL DEFAULT '',frozen INTEGER NOT NULL DEFAULT 0,revision INTEGER NOT NULL DEFAULT 1)" + }, + { + "type": "table", + "name": "material_rolling_legacy", + "table": "material_rolling_legacy", + "sql": "CREATE TABLE material_rolling_legacy(pool_id TEXT PRIMARY KEY,snapshot TEXT NOT NULL)" + }, + { + "type": "table", + "name": "material_rolling_returns", + "table": "material_rolling_returns", + "sql": "CREATE TABLE material_rolling_returns(id TEXT PRIMARY KEY,order_id TEXT NOT NULL,line_index INTEGER NOT NULL,date TEXT NOT NULL,mg INTEGER NOT NULL,amount INTEGER,allocations TEXT NOT NULL,origin_pool_id TEXT NOT NULL,same_day INTEGER NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL,UNIQUE(order_id,line_index))" + }, + { + "type": "table", + "name": "material_rolling_source_order", + "table": "material_rolling_source_order", + "sql": "CREATE TABLE material_rolling_source_order(sequence INTEGER PRIMARY KEY AUTOINCREMENT,kind TEXT NOT NULL,source_id TEXT NOT NULL,UNIQUE(kind,source_id))" + }, + { + "type": "table", + "name": "material_usage_allocations", + "table": "material_usage_allocations", + "sql": "CREATE TABLE material_usage_allocations(usage_id TEXT PRIMARY KEY REFERENCES material_pool_usages(id),allocations TEXT NOT NULL)" + }, + { + "type": "table", + "name": "material_usage_order", + "table": "material_usage_order", + "sql": "CREATE TABLE material_usage_order(sequence INTEGER PRIMARY KEY AUTOINCREMENT,kind TEXT NOT NULL,source_id TEXT NOT NULL,UNIQUE(kind,source_id))" + }, + { + "type": "table", + "name": "material_usage_parties", + "table": "material_usage_parties", + "sql": "CREATE TABLE material_usage_parties(usage_id TEXT PRIMARY KEY REFERENCES material_pool_usages(id),assistant2_amount INTEGER)" + }, + { + "type": "table", + "name": "material_usage_sources", + "table": "material_usage_sources", + "sql": "CREATE TABLE material_usage_sources(usage_id TEXT PRIMARY KEY REFERENCES material_pool_usages(id),sources TEXT NOT NULL)" + }, + { + "type": "table", + "name": "meta", + "table": "meta", + "sql": "CREATE TABLE meta(key TEXT PRIMARY KEY,value TEXT NOT NULL)" + }, + { + "type": "table", + "name": "movement_counts", + "table": "movement_counts", + "sql": "CREATE TABLE movement_counts(\n movement_id TEXT PRIMARY KEY REFERENCES movements(id),stock_count INTEGER NOT NULL CHECK(typeof(stock_count)='integer'),effective_date TEXT NOT NULL)" + }, + { + "type": "table", + "name": "movements", + "table": "movements", + "sql": "CREATE TABLE movements(id TEXT PRIMARY KEY,group_id TEXT NOT NULL,order_id TEXT REFERENCES orders(id),date TEXT NOT NULL,pocket TEXT NOT NULL,mg INTEGER NOT NULL,kind TEXT NOT NULL,note TEXT NOT NULL,purchase_cost INTEGER,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "operations", + "table": "operations", + "sql": "CREATE TABLE operations(id TEXT PRIMARY KEY,hash TEXT NOT NULL,result TEXT NOT NULL)" + }, + { + "type": "table", + "name": "order_after_sales", + "table": "order_after_sales", + "sql": "CREATE TABLE order_after_sales(order_id TEXT PRIMARY KEY REFERENCES orders(id),date TEXT NOT NULL,record TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "order_cancellations", + "table": "order_cancellations", + "sql": "CREATE TABLE order_cancellations(\n id TEXT PRIMARY KEY,order_id TEXT NOT NULL REFERENCES orders(id),order_revision INTEGER NOT NULL,\n reason TEXT NOT NULL,snapshot TEXT NOT NULL,snapshot_hash TEXT NOT NULL,\n status TEXT NOT NULL CHECK(status IN ('pending','approved','rejected')),\n requester_id TEXT NOT NULL,requester_name TEXT NOT NULL,requester_role TEXT NOT NULL,created TEXT NOT NULL,\n reviewer_id TEXT,reviewer_name TEXT,reviewed TEXT,note TEXT NOT NULL DEFAULT '')" + }, + { + "type": "table", + "name": "order_changes", + "table": "order_changes", + "sql": "CREATE TABLE order_changes(\n id TEXT PRIMARY KEY,order_id TEXT NOT NULL REFERENCES orders(id),order_revision INTEGER NOT NULL,\n action TEXT NOT NULL DEFAULT 'edit' CHECK(action IN ('edit','expense','fees','refund','return','cost')),\n reason TEXT NOT NULL,payload TEXT NOT NULL,snapshot TEXT NOT NULL,snapshot_hash TEXT NOT NULL,preview TEXT NOT NULL,effect_hash TEXT NOT NULL,\n status TEXT NOT NULL CHECK(status IN ('pending','approved','rejected')),\n requester_id TEXT NOT NULL,requester_name TEXT NOT NULL,requester_role TEXT NOT NULL,created TEXT NOT NULL,\n reviewer_id TEXT,reviewer_name TEXT,reviewed TEXT,note TEXT NOT NULL DEFAULT '')" + }, + { + "type": "table", + "name": "order_ownership_changes", + "table": "order_ownership_changes", + "sql": "CREATE TABLE order_ownership_changes(\n id TEXT PRIMARY KEY,order_id TEXT NOT NULL REFERENCES orders(id),order_revision INTEGER NOT NULL,\n from_member TEXT NOT NULL REFERENCES team_members(member),to_member TEXT NOT NULL REFERENCES team_members(member),\n reason TEXT NOT NULL,snapshot TEXT NOT NULL,snapshot_hash TEXT NOT NULL,\n status TEXT NOT NULL CHECK(status IN ('pending','approved','rejected')),direct INTEGER NOT NULL DEFAULT 0 CHECK(direct IN (0,1)),\n requester_id TEXT NOT NULL,requester_name TEXT NOT NULL,requester_role TEXT NOT NULL,created TEXT NOT NULL,\n reviewer_id TEXT,reviewer_name TEXT,reviewed TEXT,note TEXT NOT NULL DEFAULT '',CHECK(from_member<>to_member))" + }, + { + "type": "table", + "name": "order_templates", + "table": "order_templates", + "sql": "CREATE TABLE order_templates(id TEXT PRIMARY KEY,name TEXT UNIQUE NOT NULL,preset TEXT NOT NULL,revision INTEGER NOT NULL DEFAULT 1,created TEXT NOT NULL,updated TEXT NOT NULL)" + }, + { + "type": "table", + "name": "orders", + "table": "orders", + "sql": "CREATE TABLE orders(id TEXT PRIMARY KEY,number TEXT UNIQUE NOT NULL,date TEXT NOT NULL,customer TEXT NOT NULL,salesperson TEXT NOT NULL,note TEXT NOT NULL,paper_number TEXT NOT NULL,status TEXT NOT NULL,lines TEXT NOT NULL,discount INTEGER NOT NULL,total INTEGER NOT NULL,revision INTEGER NOT NULL DEFAULT 1,reviewed_revision INTEGER NOT NULL DEFAULT 0,created TEXT NOT NULL,delivered_date TEXT,returned_date TEXT, paper_date TEXT NOT NULL DEFAULT '', payment_account TEXT NOT NULL DEFAULT '助理微信', fee_items TEXT NOT NULL DEFAULT '[]', fees_date TEXT NOT NULL DEFAULT '', rounding_mode TEXT NOT NULL DEFAULT 'cent', internal_note TEXT NOT NULL DEFAULT '', fee_cost_mode TEXT NOT NULL DEFAULT 'legacy', customer_type TEXT NOT NULL DEFAULT 'unknown')" + }, + { + "type": "table", + "name": "payments", + "table": "payments", + "sql": "CREATE TABLE payments(id TEXT PRIMARY KEY,order_id TEXT NOT NULL REFERENCES orders(id),date TEXT NOT NULL,kind TEXT NOT NULL,amount INTEGER NOT NULL,account TEXT NOT NULL,reference TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "pocket_catalog", + "table": "pocket_catalog", + "sql": "CREATE TABLE pocket_catalog(\n key TEXT PRIMARY KEY,name TEXT NOT NULL,normalized_name TEXT UNIQUE NOT NULL,\n active INTEGER NOT NULL CHECK(active IN (0,1)),self INTEGER NOT NULL CHECK(self IN (0,1)),builtin INTEGER NOT NULL CHECK(builtin IN (0,1)),\n sort_order INTEGER NOT NULL,revision INTEGER NOT NULL DEFAULT 1 CHECK(revision>=1),created TEXT NOT NULL,updated TEXT NOT NULL, count_unit TEXT CHECK(count_unit IS NULL OR count_unit='pair'), count_since TEXT)" + }, + { + "type": "table", + "name": "price_lock_changes", + "table": "price_lock_changes", + "sql": "CREATE TABLE price_lock_changes(\n id TEXT PRIMARY KEY,price_lock_id TEXT NOT NULL REFERENCES price_locks(id),price_lock_revision INTEGER NOT NULL,action TEXT NOT NULL CHECK(action IN ('edit','cancel')),\n reason TEXT NOT NULL,payload TEXT NOT NULL,snapshot TEXT NOT NULL,snapshot_hash TEXT NOT NULL,preview TEXT NOT NULL,effect_hash TEXT NOT NULL,\n status TEXT NOT NULL CHECK(status IN ('pending','approved','rejected')),requester_id TEXT NOT NULL,requester_name TEXT NOT NULL,requester_role TEXT NOT NULL,created TEXT NOT NULL,\n reviewer_id TEXT,reviewer_name TEXT,reviewed TEXT,note TEXT NOT NULL DEFAULT '')" + }, + { + "type": "table", + "name": "price_lock_events", + "table": "price_lock_events", + "sql": "CREATE TABLE price_lock_events(\n id TEXT PRIMARY KEY,price_lock_id TEXT NOT NULL REFERENCES price_locks(id),date TEXT NOT NULL,\n kind TEXT NOT NULL CHECK(kind IN ('receipt','refund','material')),amount INTEGER NOT NULL CHECK(amount>=0),\n account TEXT,payer TEXT,source TEXT,quantity INTEGER,rate INTEGER,number TEXT NOT NULL,customer TEXT NOT NULL,product TEXT NOT NULL,\n actor TEXT NOT NULL,created TEXT NOT NULL, line_index INTEGER, voided INTEGER NOT NULL DEFAULT 0, void_reason TEXT, voided_at TEXT, card_fee_amount INTEGER, card_fee_payer TEXT, card_fee_expense_id TEXT, card_fee_rate INTEGER, card_fee_note TEXT)" + }, + { + "type": "table", + "name": "price_lock_pool_reservations", + "table": "price_lock_pool_reservations", + "sql": "CREATE TABLE price_lock_pool_reservations(id TEXT PRIMARY KEY,price_lock_id TEXT NOT NULL REFERENCES price_locks(id),line_index INTEGER NOT NULL DEFAULT 0,pool_id TEXT NOT NULL,mg INTEGER NOT NULL CHECK(mg>0),amount INTEGER,allocations TEXT NOT NULL DEFAULT '[]',snapshot TEXT NOT NULL DEFAULT '{}',revision INTEGER NOT NULL DEFAULT 1,created TEXT NOT NULL,updated TEXT NOT NULL,UNIQUE(price_lock_id,line_index))" + }, + { + "type": "table", + "name": "price_lock_pool_returns", + "table": "price_lock_pool_returns", + "sql": "CREATE TABLE price_lock_pool_returns(id TEXT PRIMARY KEY,price_lock_id TEXT NOT NULL REFERENCES price_locks(id),line_index INTEGER NOT NULL DEFAULT 0,kind TEXT NOT NULL,date TEXT NOT NULL,mg INTEGER NOT NULL,amount INTEGER,allocations TEXT NOT NULL,origin_pool_id TEXT NOT NULL,same_day INTEGER NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL,UNIQUE(price_lock_id,line_index,kind))" + }, + { + "type": "table", + "name": "price_locks", + "table": "price_locks", + "sql": "CREATE TABLE price_locks(\n id TEXT PRIMARY KEY,number TEXT UNIQUE NOT NULL,date TEXT NOT NULL,customer TEXT NOT NULL,salesperson TEXT NOT NULL,note TEXT NOT NULL,\n line TEXT NOT NULL,locked_mg INTEGER NOT NULL,sell_rate INTEGER NOT NULL,buy_rate INTEGER NOT NULL,buy_payer TEXT NOT NULL,\n material_amount INTEGER NOT NULL,estimated_total INTEGER NOT NULL,discount INTEGER NOT NULL,\n status TEXT NOT NULL CHECK(status IN ('pending','delivered','cancelled')),revision INTEGER NOT NULL,\n final_order_id TEXT UNIQUE REFERENCES orders(id),delivery TEXT,actor TEXT NOT NULL,created TEXT NOT NULL,updated TEXT NOT NULL, cancelled_at TEXT, cancelled_reason TEXT, lines TEXT)" + }, + { + "type": "table", + "name": "private_people", + "table": "private_people", + "sql": "CREATE TABLE private_people(date TEXT NOT NULL,member TEXT NOT NULL,total_count INTEGER,new_count INTEGER,revision INTEGER NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL,updated TEXT NOT NULL,PRIMARY KEY(date,member),CHECK(total_count IS NULL OR total_count BETWEEN 0 AND 1000000),CHECK(new_count IS NULL OR new_count BETWEEN 0 AND 1000000))" + }, + { + "type": "table", + "name": "recoveries", + "table": "recoveries", + "sql": "CREATE TABLE recoveries(\n id TEXT PRIMARY KEY,number TEXT UNIQUE NOT NULL,mode TEXT NOT NULL CHECK(mode IN ('direct','exchange')),\n date TEXT NOT NULL,customer TEXT NOT NULL,salesperson TEXT NOT NULL,member TEXT NOT NULL,note TEXT NOT NULL,\n old_lines TEXT NOT NULL,data TEXT NOT NULL,order_id TEXT UNIQUE REFERENCES orders(id),purchase_id TEXT UNIQUE REFERENCES material_purchases(id),\n inventory_group TEXT NOT NULL UNIQUE,actor TEXT NOT NULL,created TEXT NOT NULL,revision INTEGER NOT NULL DEFAULT 1, status TEXT NOT NULL DEFAULT 'active', cancelled_at TEXT NOT NULL DEFAULT '', updated TEXT NOT NULL DEFAULT '')" + }, + { + "type": "table", + "name": "recovery_changes", + "table": "recovery_changes", + "sql": "CREATE TABLE recovery_changes(\n id TEXT PRIMARY KEY,recovery_id TEXT NOT NULL REFERENCES recoveries(id),recovery_revision INTEGER NOT NULL,revision INTEGER NOT NULL DEFAULT 1,\n action TEXT NOT NULL CHECK(action IN ('update','cancel')),status TEXT NOT NULL CHECK(status IN ('pending','approved','rejected')),\n reason TEXT NOT NULL,before_value TEXT NOT NULL,after_value TEXT,summary TEXT NOT NULL,dependency TEXT NOT NULL,snapshot TEXT NOT NULL,\n requester_id TEXT NOT NULL,requester_name TEXT NOT NULL,requester_member TEXT NOT NULL,member TEXT NOT NULL,created TEXT NOT NULL,\n reviewer_id TEXT,reviewer_name TEXT,reviewed TEXT,note TEXT NOT NULL DEFAULT '')" + }, + { + "type": "table", + "name": "recovery_material_batches", + "table": "recovery_material_batches", + "sql": "CREATE TABLE recovery_material_batches(\n purchase_id TEXT PRIMARY KEY REFERENCES material_purchases(id),recovery_id TEXT NOT NULL REFERENCES recoveries(id),\n member TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "recovery_purchase_sources", + "table": "recovery_purchase_sources", + "sql": "CREATE TABLE recovery_purchase_sources(\n purchase_id TEXT PRIMARY KEY REFERENCES material_purchases(id),recovery_id TEXT NOT NULL UNIQUE REFERENCES recoveries(id),\n cash_amount INTEGER NOT NULL CHECK(cash_amount>=0),offset_amount INTEGER NOT NULL CHECK(offset_amount>=0),allocations TEXT NOT NULL)" + }, + { + "type": "table", + "name": "reimbursements", + "table": "reimbursements", + "sql": "CREATE TABLE reimbursements(\n id TEXT PRIMARY KEY,date TEXT NOT NULL,items TEXT NOT NULL,total INTEGER NOT NULL CHECK(total>0),note TEXT NOT NULL,\n status TEXT NOT NULL CHECK(status IN ('pending','approved','rejected')),revision INTEGER NOT NULL CHECK(revision>0),\n requester_id TEXT NOT NULL,requester_name TEXT NOT NULL,reviewer_id TEXT,reviewer_name TEXT,reviewed TEXT,\n review_note TEXT NOT NULL DEFAULT '',created TEXT NOT NULL,updated TEXT NOT NULL)" + }, + { + "type": "table", + "name": "returned_stock_lots", + "table": "returned_stock_lots", + "sql": "CREATE TABLE returned_stock_lots(id TEXT PRIMARY KEY,order_id TEXT NOT NULL REFERENCES orders(id),line_index INTEGER NOT NULL,date TEXT NOT NULL,pocket TEXT NOT NULL,name TEXT NOT NULL,code TEXT NOT NULL,mg INTEGER NOT NULL CHECK(mg>0),stock_count INTEGER,labor_cost INTEGER NOT NULL CHECK(labor_cost>=0),labor_payer TEXT NOT NULL,created TEXT NOT NULL,UNIQUE(order_id,line_index))" + }, + { + "type": "table", + "name": "sessions", + "table": "sessions", + "sql": "CREATE TABLE sessions(hash TEXT PRIMARY KEY,user_id TEXT REFERENCES users(id),expires INTEGER NOT NULL)" + }, + { + "type": "table", + "name": "settlements", + "table": "settlements", + "sql": "CREATE TABLE settlements(id TEXT PRIMARY KEY,order_id TEXT NOT NULL REFERENCES orders(id),date TEXT NOT NULL,bucket TEXT NOT NULL,amount INTEGER NOT NULL,note TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "sqlite_sequence", + "table": "sqlite_sequence", + "sql": "CREATE TABLE sqlite_sequence(name,seq)" + }, + { + "type": "table", + "name": "sync", + "table": "sync", + "sql": "CREATE TABLE sync(entity TEXT PRIMARY KEY,revision INTEGER NOT NULL,done_revision INTEGER NOT NULL DEFAULT 0,record_id TEXT,attempts INTEGER NOT NULL DEFAULT 0,error TEXT,updated TEXT NOT NULL)" + }, + { + "type": "table", + "name": "team_entities", + "table": "team_entities", + "sql": "CREATE TABLE team_entities(kind TEXT NOT NULL,entity_id TEXT NOT NULL,member TEXT NOT NULL REFERENCES team_members(member),created TEXT NOT NULL,PRIMARY KEY(kind,entity_id))" + }, + { + "type": "table", + "name": "team_fund_cash", + "table": "team_fund_cash", + "sql": "CREATE TABLE team_fund_cash(id TEXT PRIMARY KEY,source_kind TEXT NOT NULL,source_id TEXT NOT NULL,source_revision INTEGER NOT NULL,date TEXT NOT NULL,kind TEXT NOT NULL,member TEXT NOT NULL,amount INTEGER NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "team_fund_claim_uses", + "table": "team_fund_claim_uses", + "sql": "CREATE TABLE team_fund_claim_uses(reimbursement_id TEXT NOT NULL,item_id TEXT NOT NULL,source_kind TEXT NOT NULL,source_id TEXT NOT NULL,component TEXT NOT NULL,amount INTEGER NOT NULL CHECK(amount>0),PRIMARY KEY(reimbursement_id,item_id,source_kind,source_id,component),UNIQUE(source_kind,source_id,component))" + }, + { + "type": "table", + "name": "team_fund_entries", + "table": "team_fund_entries", + "sql": "CREATE TABLE team_fund_entries(id TEXT PRIMARY KEY,source_kind TEXT NOT NULL,source_id TEXT NOT NULL,source_revision INTEGER NOT NULL,date TEXT NOT NULL,kind TEXT NOT NULL,project TEXT NOT NULL,from_member TEXT NOT NULL,to_member TEXT NOT NULL,amount INTEGER NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "team_fund_sources", + "table": "team_fund_sources", + "sql": "CREATE TABLE team_fund_sources(kind TEXT NOT NULL,source_id TEXT NOT NULL,snapshot TEXT NOT NULL,revision INTEGER NOT NULL DEFAULT 0,legacy INTEGER NOT NULL DEFAULT 0,created TEXT NOT NULL,updated TEXT NOT NULL,PRIMARY KEY(kind,source_id))" + }, + { + "type": "table", + "name": "team_fund_transfers", + "table": "team_fund_transfers", + "sql": "CREATE TABLE team_fund_transfers(id TEXT PRIMARY KEY,date TEXT NOT NULL,from_member TEXT NOT NULL,to_member TEXT NOT NULL,amount INTEGER NOT NULL CHECK(amount>0),note TEXT NOT NULL,actor_id TEXT NOT NULL,actor TEXT NOT NULL,created TEXT NOT NULL)" + }, + { + "type": "table", + "name": "team_members", + "table": "team_members", + "sql": "CREATE TABLE team_members(member TEXT PRIMARY KEY,label TEXT NOT NULL, enabled INTEGER NOT NULL DEFAULT 1 CHECK(enabled IN (0,1)))" + }, + { + "type": "table", + "name": "team_reimbursement_details", + "table": "team_reimbursement_details", + "sql": "CREATE TABLE team_reimbursement_details(reimbursement_id TEXT PRIMARY KEY REFERENCES reimbursements(id),payer TEXT NOT NULL)" + }, + { + "type": "table", + "name": "team_reimbursement_sources", + "table": "team_reimbursement_sources", + "sql": "CREATE TABLE team_reimbursement_sources(source_key TEXT PRIMARY KEY,reimbursement_id TEXT NOT NULL REFERENCES reimbursements(id),item_id TEXT NOT NULL,UNIQUE(reimbursement_id,item_id))" + }, + { + "type": "table", + "name": "team_user_members", + "table": "team_user_members", + "sql": "CREATE TABLE team_user_members(user_id TEXT PRIMARY KEY REFERENCES users(id),member TEXT UNIQUE NOT NULL REFERENCES team_members(member),password_set INTEGER NOT NULL DEFAULT 1 CHECK(password_set IN (0,1)))" + }, + { + "type": "table", + "name": "users", + "table": "users", + "sql": "CREATE TABLE users(id TEXT PRIMARY KEY,name TEXT UNIQUE NOT NULL,role TEXT NOT NULL,salt TEXT NOT NULL,hash TEXT NOT NULL)" + } + ], + "tables": { + "after_sale_changes": { + "columns": [ + "id", + "after_sale_id", + "record_revision", + "revision", + "reason", + "before_value", + "after_value", + "record_hash", + "status", + "requester_id", + "requester_name", + "requester_member", + "member", + "created", + "reviewer_id", + "reviewer_name", + "reviewed", + "note" + ], + "rows": [ + [ + "", + "", + 1, + 2, + "金额录错", + "{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\"}", + "{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"}", + "7918cbcdaafd36849499600e9cb45d4e1c5baf78ee03c3f5a9ed0cc735bf8913", + "approved", + "", + "助理", + "assistant", + "assistant", + "2026-11-19T02:01:09.000Z", + "", + "麦麦", + "2026-11-19T02:01:12.000Z", + "核实" + ], + [ + "", + "", + 2, + 2, + "再次调整", + "{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"}", + "{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":1200,\"payer\":\"assistant\"}", + "4049c6f279569e82dbe21b436bb5b0d5887d349e8e3e0917de81bed13f1d1dd8", + "rejected", + "", + "助理", + "assistant", + "assistant", + "2026-11-19T02:01:14.000Z", + "", + "麦麦", + "2026-11-19T02:01:15.000Z", + "金额无误" + ] + ] + }, + "after_sale_revisions": { + "columns": [ + "after_sale_id", + "revision", + "updated" + ], + "rows": [ + [ + "", + 2, + "2026-11-19T02:01:12.000Z" + ] + ] + }, + "after_sales": { + "columns": [ + "id", + "date", + "project", + "customer", + "amount", + "payer", + "actor", + "created" + ], + "rows": [ + [ + "", + "2026-11-18", + "对照改圈", + "对照售后客户", + 950, + "assistant", + "助理", + "2026-11-18T02:02:03.000Z" + ], + [ + "", + "2026-11-18", + "对照清洗", + "对照售后客户二", + 0, + "owner", + "麦麦", + "2026-11-18T02:02:06.000Z" + ] + ] + }, + "audit": { + "columns": [ + "id", + "entity", + "action", + "actor", + "detail", + "created" + ], + "rows": [ + [ + 1, + "shop-settings", + "更新店铺配置", + "麦麦", + "{\"before\":{\"version\":1,\"revision\":0,\"storeName\":\"麦麦珠宝\",\"receiptSubtitle\":\"珠宝销售单\",\"contact\":\"\",\"members\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\"}],\"creditCardRatePermille\":6,\"profitSharePercent\":30,\"profitShareEffectiveMonth\":\"2000-01\",\"profitShareHistory\":[{\"month\":\"2000-01\",\"percent\":30}],\"costPresets\":{\"jd\":{\"amount\":\"8\",\"payer\":\"owner\"},\"yt\":{\"amount\":\"6\",\"payer\":\"order\"},\"box\":{\"amount\":\"3\",\"payer\":\"owner\"},\"steel\":{\"amount\":\"7\",\"payer\":\"owner\"},\"silver\":{\"amount\":\"18\",\"payer\":\"owner\"}},\"feeDefaults\":{\"certificate\":\"4\",\"packaging\":\"3\",\"shipping\":\"6\",\"packagingPayer\":\"owner\"}},\"after\":{\"version\":1,\"revision\":1,\"storeName\":\"黄金对照珠宝\",\"receiptSubtitle\":\"黄金对照销售单\",\"contact\":\"联系电话 000-0000\",\"members\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\"}],\"creditCardRatePermille\":6,\"profitSharePercent\":30,\"profitShareEffectiveMonth\":\"2000-01\",\"profitShareHistory\":[{\"month\":\"2000-01\",\"percent\":30}],\"costPresets\":{\"jd\":{\"amount\":\"8\",\"payer\":\"owner\"},\"yt\":{\"amount\":\"6\",\"payer\":\"order\"},\"box\":{\"amount\":\"3\",\"payer\":\"owner\"},\"steel\":{\"amount\":\"7\",\"payer\":\"owner\"},\"silver\":{\"amount\":\"18\",\"payer\":\"owner\"}},\"feeDefaults\":{\"certificate\":\"4\",\"packaging\":\"3\",\"shipping\":\"8\",\"packagingPayer\":\"owner\"}},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:23.000Z" + ], + [ + 2, + "printing", + "更新打印参数", + "麦麦", + "{\"width\":241,\"height\":140,\"offsetX\":2,\"offsetY\":3,\"rows\":3,\"contentTop\":12,\"rowHeight\":10,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:26.000Z" + ], + [ + 3, + "pocket:pocket_", + "新增货盘", + "麦麦", + "{\"after\":{\"key\":\"pocket_\",\"name\":\"展柜A\",\"active\":true,\"self\":true,\"builtin\":false,\"revision\":1,\"created\":\"2026-11-18T02:00:32.000Z\",\"updated\":\"2026-11-18T02:00:32.000Z\",\"countUnit\":null,\"countSince\":null},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:32.000Z" + ], + [ + 4, + "pocket:pocket_", + "更新货盘", + "麦麦", + "{\"before\":{\"key\":\"pocket_\",\"name\":\"展柜A\",\"active\":true,\"self\":true,\"builtin\":false,\"revision\":1,\"created\":\"2026-11-18T02:00:32.000Z\",\"updated\":\"2026-11-18T02:00:32.000Z\",\"countUnit\":null,\"countSince\":null},\"after\":{\"key\":\"pocket_\",\"name\":\"展柜A(主)\",\"active\":true,\"self\":true,\"builtin\":false,\"revision\":2,\"created\":\"2026-11-18T02:00:32.000Z\",\"updated\":\"2026-11-18T02:00:34.000Z\",\"countUnit\":null,\"countSince\":null},\"notice\":\"仅修改货盘显示名称与启停;历史业务、库存流水、金额与快照保留原记录\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:34.000Z" + ], + [ + 5, + "employee:staff_", + "新增员工", + "麦麦", + "{\"member\":\"staff_\",\"userId\":\"\",\"label\":\"临时店员\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\",\"role\":\"assistant\",\"enabled\":true,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:38.000Z" + ], + [ + 6, + "employee:staff_", + "修改员工", + "麦麦", + "{\"member\":\"staff_\",\"userId\":\"\",\"before\":{\"label\":\"临时店员\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\"},\"after\":{\"member\":\"staff_\",\"label\":\"临时店员甲\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\"},\"passwordChanged\":false,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:42.000Z" + ], + [ + 7, + "employee:staff_", + "停用员工", + "麦麦", + "{\"member\":\"staff_\",\"userId\":\"\",\"enabled\":false,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:44.000Z" + ], + [ + 8, + "employee:staff_", + "启用员工", + "麦麦", + "{\"member\":\"staff_\",\"userId\":\"\",\"enabled\":true,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:47.000Z" + ], + [ + 9, + "employee:staff_", + "删除未使用员工", + "麦麦", + "{\"member\":\"staff_\",\"userId\":\"\",\"label\":\"临时店员甲\",\"loginName\":\"temp-clerk\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:49.000Z" + ], + [ + 10, + "employee:assistant2", + "修改员工", + "麦麦", + "{\"member\":\"assistant2\",\"userId\":\"\",\"before\":{\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\"},\"passwordChanged\":true,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:00:54.000Z" + ], + [ + 11, + "inventory", + "库存变动", + "麦麦", + "{\"group\":\"\",\"kind\":\"opening\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"grams\":\"100\",\"note\":\"黄金对照起始库存\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:00.000Z" + ], + [ + 12, + "inventory", + "库存变动", + "麦麦", + "{\"group\":\"\",\"kind\":\"opening\",\"date\":\"2026-11-18\",\"pocket\":\"金料\",\"grams\":\"50\",\"note\":\"黄金对照起始金料\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:01.000Z" + ], + [ + 13, + "inventory", + "库存变动", + "麦麦", + "{\"group\":\"\",\"kind\":\"opening\",\"date\":\"2026-11-18\",\"pocket\":\"pocket_\",\"grams\":\"20\",\"note\":\"展柜起始\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:02.000Z" + ], + [ + 14, + "inventory", + "库存变动", + "麦麦", + "{\"group\":\"\",\"kind\":\"transfer\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"金料\",\"grams\":\"5\",\"note\":\"调拨\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:03.000Z" + ], + [ + 15, + "inventory", + "库存变动", + "助理", + "{\"group\":\"\",\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"grams\":\"2.5\",\"note\":\"娜娜手动入库\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:04.000Z" + ], + [ + 16, + "inventory", + "库存变动", + "助理", + "{\"group\":\"\",\"kind\":\"decrease\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"grams\":\"0.5\",\"note\":\"娜娜手动出库\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:05.000Z" + ], + [ + 17, + "material-pool:2026-11-18", + "登记实际购料", + "助理", + "{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"averageRate\":90000,\"notice\":\"实际采购支出只记本条;订单仅结转消耗成本,不重复记付款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:09.000Z" + ], + [ + 18, + "material-purchase:", + "登记实际购料", + "助理", + "{\"before\":null,\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:09.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:09.000Z" + ], + [ + 19, + "material-pool:2026-11-18", + "登记实际购料", + "麦麦", + "{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"averageRate\":90667,\"notice\":\"实际采购支出只记本条;订单仅结转消耗成本,不重复记付款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:10.000Z" + ], + [ + 20, + "material-purchase:", + "登记实际购料", + "麦麦", + "{\"before\":null,\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:10.000Z" + ], + [ + 21, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:17.000Z" + ], + [ + 22, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:17.000Z" + ], + [ + 23, + "", + "receipt", + "助理", + "{\"date\":\"2026-11-18\",\"amount\":\"3211.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:17.000Z" + ], + [ + 24, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:17.000Z" + ], + [ + 25, + "", + "complete", + "助理", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:17.000Z" + ], + [ + 26, + "", + "生成已交付单据", + "助理", + "{\"amount\":321100,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:17.000Z" + ], + [ + 27, + "", + "保存草稿", + "助理2", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:18.000Z" + ], + [ + 28, + "", + "confirm", + "助理2", + "{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:18.000Z" + ], + [ + 29, + "", + "receipt", + "助理2", + "{\"date\":\"2026-11-18\",\"amount\":\"2171.63\",\"account\":\"助理2支付宝\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:18.000Z" + ], + [ + 30, + "", + "deliver", + "助理2", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:18.000Z" + ], + [ + 31, + "", + "complete", + "助理2", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:18.000Z" + ], + [ + 32, + "", + "生成已交付单据", + "助理2", + "{\"amount\":217163,\"account\":\"助理2支付宝\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:18.000Z" + ], + [ + 33, + "", + "保存草稿", + "麦麦", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:19.000Z" + ], + [ + 34, + "", + "confirm", + "麦麦", + "{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:19.000Z" + ], + [ + 35, + "", + "receipt", + "麦麦", + "{\"date\":\"2026-11-18\",\"amount\":\"2885.00\",\"account\":\"麦麦信用卡\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:19.000Z" + ], + [ + 36, + "", + "deliver", + "麦麦", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:19.000Z" + ], + [ + 37, + "", + "complete", + "麦麦", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:19.000Z" + ], + [ + 38, + "", + "生成已交付单据", + "麦麦", + "{\"amount\":288500,\"account\":\"麦麦信用卡\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:19.000Z" + ], + [ + 39, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:20.000Z" + ], + [ + 40, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:20.000Z" + ], + [ + 41, + "", + "receipt", + "助理", + "{\"date\":\"2026-11-18\",\"amount\":\"3300.00\",\"account\":\"助理现金\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:20.000Z" + ], + [ + 42, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:20.000Z" + ], + [ + 43, + "", + "complete", + "助理", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:20.000Z" + ], + [ + 44, + "", + "生成已交付单据", + "助理", + "{\"amount\":330000,\"account\":\"助理现金\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:20.000Z" + ], + [ + 45, + "", + "保存草稿", + "麦麦", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:21.000Z" + ], + [ + 46, + "", + "保存草稿", + "麦麦", + "{\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:23.000Z" + ], + [ + 47, + "", + "confirm", + "麦麦", + "{\"date\":\"2026-11-18\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:23.000Z" + ], + [ + 48, + "", + "receipt", + "麦麦", + "{\"date\":\"2026-11-18\",\"amount\":\"9800.00\",\"account\":\"麦麦现金\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:23.000Z" + ], + [ + 49, + "", + "deliver", + "麦麦", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":5,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:23.000Z" + ], + [ + 50, + "", + "complete", + "麦麦", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":5,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:23.000Z" + ], + [ + 51, + "", + "生成已交付单据", + "麦麦", + "{\"amount\":980000,\"account\":\"麦麦现金\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:23.000Z" + ], + [ + 52, + "", + "保存草稿", + "助理2", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:24.000Z" + ], + [ + 53, + "", + "confirm", + "助理2", + "{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:24.000Z" + ], + [ + 54, + "", + "receipt", + "助理2", + "{\"date\":\"2026-11-18\",\"amount\":\"1500.00\",\"account\":\"助理2现金\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:24.000Z" + ], + [ + 55, + "", + "deliver", + "助理2", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:24.000Z" + ], + [ + 56, + "", + "complete", + "助理2", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:24.000Z" + ], + [ + 57, + "", + "生成已交付单据", + "助理2", + "{\"amount\":150000,\"account\":\"助理2现金\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:24.000Z" + ], + [ + 58, + "", + "保存草稿", + "助理2", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:25.000Z" + ], + [ + 59, + "", + "confirm", + "助理2", + "{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:25.000Z" + ], + [ + 60, + "", + "receipt", + "助理2", + "{\"date\":\"2026-11-18\",\"amount\":\"5000.00\",\"account\":\"助理2微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:25.000Z" + ], + [ + 61, + "", + "deliver", + "助理2", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:25.000Z" + ], + [ + 62, + "", + "complete", + "助理2", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:25.000Z" + ], + [ + 63, + "", + "生成已交付单据", + "助理2", + "{\"amount\":500000,\"account\":\"助理2微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:25.000Z" + ], + [ + 64, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:26.000Z" + ], + [ + 65, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:26.000Z" + ], + [ + 66, + "", + "receipt", + "助理", + "{\"date\":\"2026-11-18\",\"amount\":\"820.00\",\"account\":\"助理支付宝\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:26.000Z" + ], + [ + 67, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:26.000Z" + ], + [ + 68, + "", + "complete", + "助理", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:26.000Z" + ], + [ + 69, + "", + "生成已交付单据", + "助理", + "{\"amount\":82000,\"account\":\"助理支付宝\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:26.000Z" + ], + [ + 70, + "", + "保存草稿", + "麦麦", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:27.000Z" + ], + [ + 71, + "", + "confirm", + "麦麦", + "{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:29.000Z" + ], + [ + 72, + "", + "receipt", + "麦麦", + "{\"date\":\"2026-11-18\",\"amount\":\"1000\",\"account\":\"麦麦支付宝\",\"verified\":true,\"reference\":\"定金\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:31.000Z" + ], + [ + 73, + "", + "receipt", + "麦麦", + "{\"date\":\"2026-11-18\",\"amount\":\"3000\",\"account\":\"麦麦信用卡\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"尾款\",\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:33.000Z" + ], + [ + 74, + "", + "deliver", + "麦麦", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":5,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:34.000Z" + ], + [ + 75, + "", + "complete", + "麦麦", + "{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":5,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:34.000Z" + ], + [ + 76, + "", + "记录打印操作", + "助理", + "{\"printed\":true,\"notice\":\"记录打印操作状态,不改变订单账目\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:48.000Z" + ], + [ + 77, + "", + "改为未打印", + "助理", + "{\"printed\":false,\"notice\":\"记录打印操作状态,不改变订单账目\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:50.000Z" + ], + [ + 78, + "price-lock:", + "创建锁价单", + "助理", + "{\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\"}],\"quantity\":3000,\"materialAmount\":255000,\"received\":270000,\"account\":\"助理微信\",\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:53.000Z" + ], + [ + 79, + "price-lock:", + "创建锁价单", + "助理", + "{\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\"}],\"quantity\":3000,\"materialAmount\":255000,\"received\":100000,\"account\":\"助理支付宝\",\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:01:54.000Z" + ], + [ + 80, + "price-lock:", + "创建锁价单", + "助理2", + "{\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\"}],\"quantity\":3000,\"materialAmount\":258000,\"received\":50000,\"account\":\"助理2微信\",\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:01:55.000Z" + ], + [ + 81, + "price-lock:", + "创建锁价单", + "麦麦", + "{\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\"}],\"quantity\":3000,\"materialAmount\":255000,\"received\":80000,\"account\":\"麦麦微信\",\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:01:56.000Z" + ], + [ + 83, + "price-lock:", + "修改待交付锁价单", + "助理", + "{\"reason\":\"当天更正收款\",\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户二\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"updated\":\"2026-11-18T02:01:54.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":100000,\"account\":\"助理支付宝\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":100000,\"refunded\":0,\"netReceived\":100000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户二\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"updated\":\"2026-11-18T02:02:02.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":120000,\"account\":\"助理支付宝\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:02:02.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":100000,\"account\":\"助理支付宝\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"line_index\":null,\"voided\":1,\"void_reason\":\"当天更正收款\",\"voided_at\":\"2026-11-18T02:02:02.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"received\":120000,\"refunded\":0,\"netReceived\":120000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"notice\":\"更正有效收款与购料记账,原单号及原事件保留;不代表实际退款或再次支付原料款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:02:02.000Z" + ], + [ + 84, + "after-sale:", + "登记售后", + "助理", + "{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:02:03.000Z" + ], + [ + 85, + "after-sale:", + "登记售后", + "麦麦", + "{\"date\":\"2026-11-18\",\"project\":\"对照清洗\",\"customer\":\"对照售后客户二\",\"amount\":0,\"payer\":\"owner\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:06.000Z" + ], + [ + 86, + "order-template:", + "保存开单模板", + "麦麦", + "{\"id\":\"\",\"name\":\"对照常用模板\",\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:08.000Z" + ], + [ + 87, + "order-template:", + "更新开单模板", + "麦麦", + "{\"id\":\"\",\"name\":\"对照常用模板(改)\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:13.000Z" + ], + [ + 88, + "order-template:", + "保存开单模板", + "助理", + "{\"id\":\"\",\"name\":\"娜娜自建模板\",\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:02:14.000Z" + ], + [ + 89, + "order-template:", + "删除开单模板", + "助理", + "{\"id\":\"\",\"name\":\"娜娜自建模板\",\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:02:16.000Z" + ], + [ + 90, + "reimbursement:", + "提交报销申请", + "助理", + "{\"date\":\"2026-11-18\",\"items\":[{\"id\":\"\",\"name\":\"对照邮寄\",\"amount\":1500,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"},{\"id\":\"\",\"name\":\"对照包装\",\"amount\":650,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"}],\"total\":2150,\"note\":\"对照报销\",\"payer\":\"assistant\",\"revision\":1,\"notice\":\"申请与批准只参与日资金计算,不记订单费用、利润、库存或实际转账\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:02:18.000Z" + ], + [ + 91, + "reimbursement:", + "修改并重新提交报销", + "助理", + "{\"before\":{\"id\":\"\",\"date\":\"2026-11-18\",\"items\":[{\"id\":\"\",\"name\":\"对照邮寄\",\"amount\":1500,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":1500},{\"id\":\"\",\"name\":\"对照包装\",\"amount\":650,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":650}],\"total\":2150,\"note\":\"对照报销\",\"status\":\"pending\",\"revision\":1,\"requester_id\":\"\",\"requester_name\":\"助理\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"review_note\":\"\",\"created\":\"2026-11-18T02:02:18.000Z\",\"updated\":\"2026-11-18T02:02:18.000Z\",\"payer\":\"assistant\",\"member\":\"assistant\",\"fundingMode\":\"independent\",\"canEdit\":false,\"canApprove\":false},\"after\":{\"date\":\"2026-11-18\",\"items\":[{\"id\":\"\",\"name\":\"对照邮寄\",\"amount\":1500,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"},{\"id\":\"\",\"name\":\"对照包装\",\"amount\":650,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"}],\"total\":2150,\"note\":\"补充备注\",\"payer\":\"assistant\"},\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-18T02:02:22.000Z" + ], + [ + 92, + "reimbursement:", + "同意报销", + "麦麦", + "{\"date\":\"2026-11-18\",\"total\":2150,\"items\":[{\"id\":\"\",\"name\":\"对照邮寄\",\"amount\":1500,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"},{\"id\":\"\",\"name\":\"对照包装\",\"amount\":650,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"}],\"note\":\"\",\"revision\":3,\"notice\":\"仅更新申请日期的日资金计算;不登记实际转账,不计订单利润\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:24.000Z" + ], + [ + 93, + "reimbursement:", + "提交报销申请", + "助理2", + "{\"date\":\"2026-11-18\",\"items\":[{\"id\":\"\",\"name\":\"对照快递\",\"amount\":900,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"}],\"total\":900,\"note\":\"\",\"payer\":\"assistant2\",\"revision\":1,\"notice\":\"申请与批准只参与日资金计算,不记订单费用、利润、库存或实际转账\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-18T02:02:25.000Z" + ], + [ + 94, + "reimbursement:", + "驳回报销", + "麦麦", + "{\"date\":\"2026-11-18\",\"total\":900,\"items\":[{\"id\":\"\",\"name\":\"对照快递\",\"amount\":900,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"}],\"note\":\"凭据不全\",\"revision\":2,\"notice\":\"仅更新申请日期的日资金计算;不登记实际转账,不计订单利润\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:26.000Z" + ], + [ + 95, + "team-funds:", + "登记成员实际转账", + "麦麦", + "{\"date\":\"2026-11-18\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":10000,\"note\":\"对照转账\",\"notice\":\"仅抵扣双方应转余额;不计销售、成本或利润\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:31.000Z" + ], + [ + 96, + "people-count:2026-11-18", + "登记人数", + "麦麦", + "{\"date\":\"2026-11-18\",\"count\":12,\"assistant1Count\":5,\"assistant2Count\":3,\"previousCount\":null,\"previousAssistant1Count\":null,\"previousAssistant2Count\":null,\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:37.000Z" + ], + [ + 97, + "private-people:2026-11-18:assistant", + "登记私域人数", + "麦麦", + "{\"before\":{\"date\":\"2026-11-18\",\"member\":\"assistant\",\"total_count\":5,\"new_count\":null,\"revision\":0,\"legacy\":true,\"previous\":null},\"after\":{\"total_count\":100,\"new_count\":null},\"member\":\"assistant\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:40.000Z" + ], + [ + 98, + "inventory:2026-11-18", + "复核并保存库存快照", + "麦麦", + "{\"date\":\"2026-11-18\",\"revision\":\"3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086\",\"inventory\":[{\"pocket\":\"现货\",\"mg\":80450,\"reserved\":0,\"available\":80450},{\"pocket\":\"金料\",\"mg\":55000,\"reserved\":0,\"available\":55000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:46.000Z" + ], + [ + 99, + "inventory:2026-11-18", + "复核并保存库存快照", + "麦麦", + "{\"date\":\"2026-11-18\",\"revision\":\"3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086\",\"inventory\":[{\"pocket\":\"现货\",\"mg\":80450,\"reserved\":0,\"available\":80450},{\"pocket\":\"金料\",\"mg\":55000,\"reserved\":0,\"available\":55000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:50.000Z" + ], + [ + 100, + "day:2026-11-18", + "保存核对快照", + "麦麦", + "{\"warnings\":12,\"basis\":\"orderDate\",\"notice\":\"有待核项不等于已封账;补录会标记快照过期\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-18T02:02:50.000Z" + ], + [ + 101, + "inventory-manual:", + "申请修改手动库存", + "助理", + "{\"requestId\":\"\",\"groupId\":\"\",\"revision\":1,\"reason\":\"跨天更正克重\",\"before\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"2.500\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"after\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"3.000\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"notice\":\"跨天修改和删除须由店主审批;申请期间库存不变\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:00:07.000Z" + ], + [ + 102, + "inventory-manual:", + "同意修改手动库存", + "麦麦", + "{\"requestId\":\"\",\"groupId\":\"\",\"reason\":\"跨天更正克重\",\"before\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"2.500\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"after\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"3.000\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"requestedBy\":\"\",\"reviewed\":\"2026-11-19T02:00:11.000Z\",\"note\":\"\",\"notice\":\"原流水保留,追加整组冲正及有效记录\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:11.000Z" + ], + [ + 103, + "inventory-manual:", + "申请删除手动库存", + "助理", + "{\"requestId\":\"\",\"groupId\":\"\",\"revision\":1,\"reason\":\"跨天删除申请\",\"before\":{\"kind\":\"decrease\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"0.500\",\"note\":\"娜娜手动出库\",\"cost\":\"\"},\"after\":null,\"notice\":\"跨天修改和删除须由店主审批;申请期间库存不变\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:00:13.000Z" + ], + [ + 104, + "inventory-manual:", + "驳回库存更正申请", + "麦麦", + "{\"requestId\":\"\",\"groupId\":\"\",\"action\":\"delete\",\"note\":\"保留原记录\",\"reviewed\":\"2026-11-19T02:00:15.000Z\",\"notice\":\"不改变库存\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:15.000Z" + ], + [ + 105, + "inventory", + "库存变动", + "助理", + "{\"group\":\"\",\"kind\":\"increase\",\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"grams\":\"1\",\"note\":\"当天手动入库\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:00:16.000Z" + ], + [ + 106, + "inventory-manual:", + "修改手动库存记录", + "助理", + "{\"groupId\":\"\",\"revision\":1,\"reason\":\"当天更正\",\"before\":{\"kind\":\"increase\",\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"to\":\"\",\"grams\":\"1.000\",\"note\":\"当天手动入库\",\"cost\":\"\"},\"after\":{\"kind\":\"increase\",\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"to\":\"\",\"grams\":\"1.200\",\"note\":\"当天手动入库\",\"cost\":\"\"},\"notice\":\"原流水保留,追加整组冲正及有效记录;不改变订单、收付款或利润\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:00:19.000Z" + ], + [ + 107, + "inventory-manual:", + "删除手动库存记录", + "麦麦", + "{\"groupId\":\"\",\"revision\":2,\"reason\":\"老板删除\",\"before\":{\"kind\":\"increase\",\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"to\":\"\",\"grams\":\"1.200\",\"note\":\"当天手动入库\",\"cost\":\"\"},\"after\":null,\"notice\":\"原流水保留,追加整组冲正及有效记录;不改变订单、收付款或利润\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:21.000Z" + ], + [ + 108, + "", + "申请修改订单", + "助理", + "{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"跨天修改客户名\",\"revision\":4,\"changes\":[{\"field\":\"customer\",\"label\":\"客户称呼\",\"before\":\"对照客户甲\",\"after\":\"对照客户甲(改)\"},{\"field\":\"fee_items\",\"label\":\"实际费用\",\"before\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"after\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}]}],\"summary\":{\"before\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:00:25.000Z" + ], + [ + 109, + "", + "整单账务修改", + "麦麦", + "{\"reason\":\"跨天修改客户名\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":321100,\"goods\":290200,\"expense\":1200,\"profit\":29700,\"created\":\"2026-11-18T02:01:17.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-3250,\"kind\":\"sale\",\"note\":\"MM20261118-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲(改)\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":321100,\"goods\":290200,\"expense\":1200,\"profit\":29700,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:31.000Z" + ], + [ + 110, + "", + "同意修改订单", + "麦麦", + "{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"跨天修改客户名\",\"note\":\"凭据已核对\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:25.000Z\",\"reviewed\":\"2026-11-19T02:00:31.000Z\",\"summary\":{\"before\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"changes\":[]}},\"notice\":\"按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:31.000Z" + ], + [ + 111, + "", + "申请修改订单", + "助理", + "{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"想改售价\",\"revision\":4,\"changes\":[{\"field\":\"fees_date\",\"label\":\"费用日期\",\"before\":\"\",\"after\":\"2026-11-18\"}],\"summary\":{\"before\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:00:33.000Z" + ], + [ + 112, + "", + "驳回修改申请", + "麦麦", + "{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"想改售价\",\"note\":\"售价无误\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:33.000Z\",\"reviewed\":\"2026-11-19T02:00:34.000Z\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:34.000Z" + ], + [ + 113, + "", + "申请修改订单", + "助理", + "{\"requestId\":\"\",\"action\":\"expense\",\"reason\":\"补记快递\",\"revision\":4,\"changes\":[{\"field\":\"expenses\",\"label\":\"实际费用流水\",\"before\":[],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}]},{\"field\":\"directCost\",\"label\":\"直接费用\",\"before\":0,\"after\":1000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":58000,\"after\":57000}],\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:00:36.000Z" + ], + [ + 114, + "", + "expense", + "麦麦", + "{\"date\":\"2026-11-19\",\"amount\":\"10\",\"payer\":\"assistant\",\"note\":\"补寄快递\",\"revision\":5,\"reason\":\"补记快递\",\"verified\":true,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:37.000Z" + ], + [ + 115, + "", + "同意修改订单", + "麦麦", + "{\"requestId\":\"\",\"action\":\"expense\",\"reason\":\"补记快递\",\"note\":\"核实\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:36.000Z\",\"reviewed\":\"2026-11-19T02:00:37.000Z\",\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"notice\":\"按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:37.000Z" + ], + [ + 116, + "", + "整单账务修改", + "麦麦", + "{\"reason\":\"老板更正备注\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"created\":\"2026-11-18T02:01:19.000Z\"}],\"movements\":[]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"老板改备注\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:39.000Z" + ], + [ + 117, + "", + "申请取消订单", + "助理2", + "{\"requestId\":\"\",\"reason\":\"重复录入\",\"revision\":4,\"summary\":{\"total\":150000,\"netReceived\":150000,\"goodsCost\":130000,\"directCost\":0,\"profit\":20000,\"settlementDue\":0,\"inventory\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":1500}]},\"notice\":\"申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:00:41.000Z" + ], + [ + 118, + "", + "同意取消订单(录错作废)", + "麦麦", + "{\"requestId\":\"\",\"reason\":\"重复录入\",\"note\":\"核对原单后确认\",\"requestedBy\":\"助理2\",\"requestedAt\":\"2026-11-19T02:00:41.000Z\",\"reviewed\":\"2026-11-19T02:00:45.000Z\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照取消客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118006\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金戒指\",\"code\":\"\",\"unit\":\"g\",\"quantity\":1500,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":130000,\"sale\":150000,\"baseSale\":150000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":150000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:24.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"取消单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":150000,\"account\":\"助理2现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:24.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":150000,\"goods\":130000,\"expense\":0,\"profit\":20000,\"created\":\"2026-11-18T02:01:24.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-1500,\"kind\":\"sale\",\"note\":\"MM20261118-\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:24.000Z\"}],\"corrections\":[],\"materialUsages\":[],\"priceLock\":null},\"after\":{\"revision\":5,\"status\":\"cancelled\",\"netReceived\":0,\"directCost\":0,\"profit\":0,\"settlementDue\":0},\"inventory\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":1500}],\"notice\":\"原订单、作废记录、收支与库存流水保留;不是客户退货退款;原采购和双方实际交款不变,原已交款按作废后的应结余额处理\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:45.000Z" + ], + [ + 119, + "", + "直接修改订单归属", + "麦麦", + "{\"requestId\":\"\",\"reason\":\"核实业务归属\",\"note\":\"\",\"requestedBy\":\"麦麦\",\"requestedAt\":\"2026-11-19T02:00:49.000Z\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\",\"revision\":4},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\",\"revision\":5},\"related\":[{\"kind\":\"order\",\"id\":\"\"},{\"kind\":\"movement\",\"id\":\"\"}],\"notice\":\"业绩、成本和利润随订单归属;实际收付款账户、付款人、金额、库存与成本利润数值保持不变,成员往来仅追加归属差额,真实转账保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:49.000Z" + ], + [ + 120, + "", + "申请修改订单归属", + "助理", + "{\"requestId\":\"\",\"reason\":\"申请转给小昊\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"revision\":5,\"notice\":\"申请不改变订单、财务、库存或可见范围,由麦麦审批后生效\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:00:53.000Z" + ], + [ + 121, + "", + "驳回订单归属申请", + "麦麦", + "{\"requestId\":\"\",\"reason\":\"申请转给小昊\",\"note\":\"不转\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:53.000Z\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:56.000Z" + ], + [ + 122, + "", + "申请取消订单", + "助理", + "{\"requestId\":\"\",\"reason\":\"客户想退\",\"revision\":5,\"summary\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"inventory\":[]},\"notice\":\"申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:00:58.000Z" + ], + [ + 123, + "", + "驳回取消申请", + "麦麦", + "{\"requestId\":\"\",\"reason\":\"客户想退\",\"note\":\"已交付不取消\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:58.000Z\",\"reviewed\":\"2026-11-19T02:00:59.000Z\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:00:59.000Z" + ], + [ + 124, + "", + "申请修改订单", + "助理2", + "{\"requestId\":\"\",\"action\":\"return\",\"reason\":\"客户退回一件\",\"revision\":4,\"changes\":[{\"field\":\"status\",\"label\":\"订单状态\",\"before\":\"delivered\",\"after\":\"returned\"},{\"field\":\"returned_date\",\"label\":\"退货日期\",\"before\":null,\"after\":\"2026-11-19\"},{\"field\":\"refunded\",\"label\":\"累计退款\",\"before\":0,\"after\":90000},{\"field\":\"payments\",\"label\":\"收退款流水\",\"before\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\"}]},{\"field\":\"netReceived\",\"label\":\"已收净额\",\"before\":500000,\"after\":410000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":50000,\"after\":48000}],\"summary\":{\"before\":{\"total\":500000,\"netReceived\":500000,\"goodsCost\":450000,\"directCost\":0,\"profit\":50000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":500000,\"netReceived\":410000,\"goodsCost\":450000,\"directCost\":0,\"profit\":48000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000},{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"kind\":\"return\",\"mg\":1000}],\"changes\":[{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"mg\":1000}]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:03.000Z" + ], + [ + 125, + "", + "订单退货退款售后", + "麦麦", + "{\"date\":\"2026-11-19\",\"revision\":5,\"reason\":\"客户退回一件\",\"verified\":true,\"afterSale\":{\"lines\":[{\"lineIndex\":0,\"quantity\":\"1.000\",\"pocket\":\"金料\",\"disposition\":\"scrap\"}],\"refund\":{\"amount\":\"900\",\"account\":\"助理2支付宝\",\"payer\":\"assistant2\"},\"deductionReason\":\"客户确认扣费\",\"expenses\":[]},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:01:05.000Z" + ], + [ + 126, + "", + "同意修改订单", + "麦麦", + "{\"requestId\":\"\",\"action\":\"return\",\"reason\":\"客户退回一件\",\"note\":\"实物已收回\",\"requestedBy\":\"助理2\",\"requestedAt\":\"2026-11-19T02:01:03.000Z\",\"reviewed\":\"2026-11-19T02:01:05.000Z\",\"summary\":{\"before\":{\"total\":500000,\"netReceived\":500000,\"goodsCost\":450000,\"directCost\":0,\"profit\":50000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":500000,\"netReceived\":410000,\"goodsCost\":450000,\"directCost\":0,\"profit\":48000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000},{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"kind\":\"return\",\"mg\":1000}],\"changes\":[{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"mg\":1000}]}},\"notice\":\"按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:01:05.000Z" + ], + [ + 127, + "after-sale:", + "申请修改售后记录", + "助理", + "{\"requestId\":\"\",\"recordRevision\":1,\"reason\":\"金额录错\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"notice\":\"审批前原售后费用和团队往来保持不变\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:09.000Z" + ], + [ + 128, + "after-sale:", + "批准修改售后记录", + "麦麦", + "{\"requestId\":\"\",\"revision\":2,\"reason\":\"金额录错\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"note\":\"核实\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:01:12.000Z" + ], + [ + 129, + "after-sale:", + "申请修改售后记录", + "助理", + "{\"requestId\":\"\",\"recordRevision\":2,\"reason\":\"再次调整\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":1200,\"payer\":\"assistant\"},\"notice\":\"审批前原售后费用和团队往来保持不变\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:14.000Z" + ], + [ + 130, + "after-sale:", + "驳回修改售后记录", + "麦麦", + "{\"requestId\":\"\",\"note\":\"金额无误\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:01:15.000Z" + ], + [ + 131, + "price-lock:", + "申请修改锁价单", + "助理", + "{\"requestId\":\"\",\"reason\":\"改客户名\",\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-18T02:01:53.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-19T02:01:18.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:18.000Z" + ], + [ + 133, + "price-lock:", + "修改待交付锁价单", + "麦麦", + "{\"reason\":\"改客户名\",\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-18T02:01:53.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-19T02:01:21.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"notice\":\"更正有效收款与购料记账,原单号及原事件保留;不代表实际退款或再次支付原料款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:01:21.000Z" + ], + [ + 134, + "price-lock:", + "同意修改锁价单", + "麦麦", + "{\"requestId\":\"\",\"reason\":\"改客户名\",\"result\":{\"id\":\"\",\"price_lock_id\":\"\",\"status\":\"pending\",\"revision\":2,\"lock\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-19T02:01:21.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0}},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:01:21.000Z" + ], + [ + 135, + "price-lock:", + "申请取消锁价单", + "助理2", + "{\"requestId\":\"\",\"reason\":\"客户不要了\",\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户三\",\"salesperson\":\"小昊\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"updated\":\"2026-11-18T02:01:55.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant2\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"account\":null,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":50000,\"refunded\":0,\"netReceived\":50000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户三\",\"salesperson\":\"小昊\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"estimated_total\":276000,\"discount\":0,\"status\":\"cancelled\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"updated\":\"2026-11-19T02:01:23.000Z\",\"cancelled_at\":\"2026-11-19T02:01:23.000Z\",\"cancelled_reason\":\"客户不要了\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant2\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[],\"material_events\":[],\"voided_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":1,\"void_reason\":\"客户不要了\",\"voided_at\":\"2026-11-19T02:01:23.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"account\":null,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":1,\"void_reason\":\"客户不要了\",\"voided_at\":\"2026-11-19T02:01:23.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"received\":0,\"refunded\":0,\"netReceived\":0,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:23.000Z" + ], + [ + 136, + "price-lock:", + "驳回锁价申请", + "麦麦", + "{\"requestId\":\"\",\"note\":\"客户仍要\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:01:24.000Z" + ], + [ + 137, + "price-lock:", + "录错作废待交付锁价单", + "麦麦", + "{\"reason\":\"录错作废\",\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户四\",\"salesperson\":\"麦麦\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"updated\":\"2026-11-18T02:01:56.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"owner\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":80000,\"account\":\"麦麦微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":80000,\"refunded\":0,\"netReceived\":80000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户四\",\"salesperson\":\"麦麦\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"cancelled\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"updated\":\"2026-11-19T02:01:26.000Z\",\"cancelled_at\":\"2026-11-19T02:01:26.000Z\",\"cancelled_reason\":\"录错作废\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"owner\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[],\"material_events\":[],\"voided_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":80000,\"account\":\"麦麦微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":null,\"voided\":1,\"void_reason\":\"录错作废\",\"voided_at\":\"2026-11-19T02:01:26.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":0,\"voided\":1,\"void_reason\":\"录错作废\",\"voided_at\":\"2026-11-19T02:01:26.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"received\":0,\"refunded\":0,\"netReceived\":0,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"materialReturn\":{\"date\":\"2026-11-19\",\"returned\":[],\"releasedSameDay\":[]},\"notice\":\"撤销本单有效收款、手填购料及信用卡手续费;同日料池释放预留,跨天按原克重原成本回实际生效日料池,保留历史耗用成本;无新增现金或实物流水\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:01:26.000Z" + ], + [ + 138, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:28.000Z" + ], + [ + 139, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:28.000Z" + ], + [ + 140, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:28.000Z" + ], + [ + 141, + "", + "complete", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:28.000Z" + ], + [ + 142, + "price-lock:", + "锁价交付并生成销售单", + "助理", + "{\"date\":\"2026-11-19\",\"total\":286200,\"difference\":16200,\"lines\":[{\"lineId\":\"\",\"date\":\"2026-11-19\",\"quantity\":3100,\"original_used_mg\":3000,\"extra_mg\":100,\"leftover_mg\":0,\"leftover_cost\":0,\"inventory\":{\"pocket\":\"现货\",\"original\":\"receive\",\"extra\":\"receive\"}}],\"quantity\":3100,\"original_used_mg\":3000,\"extra_mg\":100,\"leftover_mg\":0,\"leftover_cost\":0,\"inventory\":{\"pocket\":\"现货\",\"original\":\"receive\",\"extra\":\"receive\"},\"final_order_id\":\"\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:28.000Z" + ], + [ + 143, + "", + "保存草稿", + "助理2", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:32.000Z" + ], + [ + 144, + "", + "confirm", + "助理2", + "{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:32.000Z" + ], + [ + 145, + "", + "receipt", + "助理2", + "{\"date\":\"2026-11-19\",\"amount\":\"4327.92\",\"account\":\"助理2微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"置换差额实际收款 · HS202611190001\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:32.000Z" + ], + [ + 146, + "", + "deliver", + "助理2", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:32.000Z" + ], + [ + 147, + "", + "complete", + "助理2", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:32.000Z" + ], + [ + 148, + "", + "关联黄金置换", + "助理2", + "{\"recovery_id\":\"\",\"number\":\"HS202611190001\",\"receivable\":432792,\"purchaseAmount\":0,\"offsetAmount\":0,\"cashReceipt\":432792,\"cashPayment\":0,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:32.000Z" + ], + [ + 149, + "recovery:", + "登记黄金置换", + "助理2", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":8000,\"meltedMg\":8000,\"purity\":99.9,\"foldedMg\":7992}],\"oldMg\":7992,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":12000,\"matchedMg\":7992,\"differenceMg\":4008,\"surplusMg\":0,\"goldRate\":100000,\"laborRate\":2000,\"laborMode\":\"gram\",\"depreciationRate\":1000,\"depreciationMg\":7992,\"goldAmount\":400800,\"laborAmount\":24000,\"depreciationAmount\":7992,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":432792,\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"materialCost\":360720,\"laborCost\":6000,\"goodsCost\":366720,\"directCost\":0,\"profit\":66072,\"newProduct\":{\"name\":\"足金对照新货\",\"quantity\":12000,\"pocket\":\"现货\"},\"exchange\":{\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":4008},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"costPayer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"fee_items\":[]},\"purchaseMg\":0,\"buyRate\":0,\"calculatedPurchaseAmount\":0,\"purchaseAmount\":0,\"actualBuyRate\":null,\"offsetAmount\":0,\"netSettlement\":432792,\"cashReceipt\":432792,\"cashPayment\":0,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"order_id\":\"\",\"purchase_id\":null,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:32.000Z" + ], + [ + 150, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:33.000Z" + ], + [ + 151, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:33.000Z" + ], + [ + 152, + "", + "receipt", + "助理", + "{\"date\":\"2026-11-19\",\"amount\":\"1308.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"置换差额实际收款 · HS202611190002\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:33.000Z" + ], + [ + 153, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:33.000Z" + ], + [ + 154, + "", + "complete", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:33.000Z" + ], + [ + 155, + "", + "关联黄金置换", + "助理", + "{\"recovery_id\":\"\",\"number\":\"HS202611190002\",\"receivable\":130800,\"purchaseAmount\":0,\"offsetAmount\":0,\"cashReceipt\":130800,\"cashPayment\":0,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:33.000Z" + ], + [ + 156, + "recovery:", + "登记黄金置换", + "助理", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":5000,\"meltedMg\":4900,\"purity\":99,\"foldedMg\":4851}],\"oldMg\":4851,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":6000,\"matchedMg\":4851,\"differenceMg\":1149,\"surplusMg\":0,\"goldRate\":100000,\"laborRate\":2000,\"laborMode\":\"gram\",\"depreciationRate\":1000,\"depreciationMg\":4851,\"goldAmount\":114900,\"laborAmount\":12000,\"depreciationAmount\":4851,\"charges\":[],\"chargesAmount\":0,\"discount\":1000,\"rounding_mode\":\"yuan\",\"rounding_adjustment\":49,\"receivable\":130800,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":103410,\"laborCost\":3000,\"goodsCost\":106410,\"directCost\":0,\"profit\":24390,\"newProduct\":{\"name\":\"足金对照新货\",\"quantity\":6000,\"pocket\":\"现货\"},\"exchange\":{\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"costPayer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"fee_items\":[]},\"purchaseMg\":0,\"buyRate\":0,\"calculatedPurchaseAmount\":0,\"purchaseAmount\":0,\"actualBuyRate\":null,\"offsetAmount\":0,\"netSettlement\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"order_id\":\"\",\"purchase_id\":null,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:33.000Z" + ], + [ + 157, + "recovery:", + "记录打印操作", + "助理2", + "{\"printed\":true,\"notice\":\"记录打印操作状态,不改变订单账目\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:01:40.000Z" + ], + [ + 158, + "customer-material:", + "登记客户寄存料", + "助理", + "{\"number\":\"JC202611190001\",\"date\":\"2026-11-19\",\"mg\":1500,\"memo\":\"对照寄存袋\",\"notice\":\"只登记保管克重,不计购料、收付、成本或利润\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:43.000Z" + ], + [ + 159, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:48.000Z" + ], + [ + 160, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:48.000Z" + ], + [ + 161, + "", + "receipt", + "助理", + "{\"date\":\"2026-11-19\",\"amount\":\"2100.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:48.000Z" + ], + [ + 162, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:48.000Z" + ], + [ + 163, + "", + "complete", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:48.000Z" + ], + [ + 164, + "", + "生成已交付单据", + "助理", + "{\"amount\":210000,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:48.000Z" + ], + [ + 165, + "", + "整单账务修改", + "助理", + "{\"reason\":\"当天改客户\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:48.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-2000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"2026-11-19\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:50.000Z" + ], + [ + 166, + "", + "expense", + "助理", + "{\"date\":\"2026-11-19\",\"revision\":6,\"reason\":\"当天快递\",\"verified\":true,\"amount\":\"8\",\"payer\":\"assistant\",\"note\":\"当天快递\",\"direct\":true,\"directDate\":\"2026-11-19\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:52.000Z" + ], + [ + 167, + "", + "申请修改订单归属", + "助理", + "{\"requestId\":\"\",\"reason\":\"实际由小昊接待\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"revision\":6,\"notice\":\"申请不改变订单、财务、库存或可见范围,由麦麦审批后生效\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:54.000Z" + ], + [ + 168, + "", + "同意修改订单归属", + "麦麦", + "{\"requestId\":\"\",\"reason\":\"实际由小昊接待\",\"note\":\"核实\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:01:54.000Z\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\",\"revision\":6},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\",\"revision\":7},\"related\":[{\"kind\":\"order\",\"id\":\"\"},{\"kind\":\"movement\",\"id\":\"\"}],\"notice\":\"业绩、成本和利润随订单归属;实际收付款账户、付款人、金额、库存与成本利润数值保持不变,成员往来仅追加归属差额,真实转账保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:01:56.000Z" + ], + [ + 169, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:57.000Z" + ], + [ + 170, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:57.000Z" + ], + [ + 171, + "", + "receipt", + "助理", + "{\"date\":\"2026-11-19\",\"amount\":\"2100.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:57.000Z" + ], + [ + 172, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:57.000Z" + ], + [ + 173, + "", + "complete", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:57.000Z" + ], + [ + 174, + "", + "生成已交付单据", + "助理", + "{\"amount\":210000,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:57.000Z" + ], + [ + 175, + "", + "当天直接取消订单(录错作废)", + "助理", + "{\"requestId\":\"\",\"reason\":\"当天录错\",\"note\":\"\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:01:59.000Z\",\"reviewed\":null,\"direct\":true,\"operator\":\"助理\",\"operationDate\":\"2026-11-19\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天取消客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119014\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:57.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:57.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:57.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-2000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:57.000Z\"}],\"corrections\":[],\"materialUsages\":[],\"priceLock\":null},\"after\":{\"revision\":5,\"status\":\"cancelled\",\"netReceived\":0,\"directCost\":0,\"profit\":0,\"settlementDue\":0},\"inventory\":[{\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":2000}],\"notice\":\"原订单、作废记录、收支与库存流水保留;不是客户退货退款;原采购和双方实际交款不变,原已交款按作废后的应结余额处理\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:01:59.000Z" + ], + [ + 176, + "team-funds:", + "登记成员实际转账", + "麦麦", + "{\"date\":\"2026-11-19\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":10000,\"note\":\"对照转账二\",\"notice\":\"仅抵扣双方应转余额;不计销售、成本或利润\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:04.000Z" + ], + [ + 177, + "people-count:2026-11-19", + "登记人数", + "麦麦", + "{\"date\":\"2026-11-19\",\"count\":0,\"assistant1Count\":7,\"assistant2Count\":4,\"previousCount\":null,\"previousAssistant1Count\":null,\"previousAssistant2Count\":null,\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:14.000Z" + ], + [ + 178, + "system:rolling-material", + "启用滚动日料池", + "麦麦", + "{\"date\":\"2026-11-19\",\"revision\":\"43f4bb53265d6960e55a5870506e366d94a3921fc8613a13012a4cfa99ac7f39\",\"canEnable\":true,\"reason\":\"\",\"opening\":{\"mg\":27000,\"amount\":2448000,\"allocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}]},\"affectedOrderCount\":0,\"notice\":\"结转不重复登记采购、现金、实物或历史订单成本\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:18.000Z" + ], + [ + 179, + "material-pool:2026-11-19", + "登记实际购料", + "助理", + "{\"id\":\"\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"averageRate\":90788,\"notice\":\"实际采购支出只记本条;订单仅结转消耗成本,不重复记付款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:19.000Z" + ], + [ + 180, + "material-purchase:", + "登记实际购料", + "助理", + "{\"before\":null,\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:19.000Z" + ], + [ + 181, + "material-pool:2026-11-19", + "登记实际购料", + "助理2", + "{\"id\":\"\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"averageRate\":90973,\"notice\":\"实际采购支出只记本条;订单仅结转消耗成本,不重复记付款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:02:20.000Z" + ], + [ + 182, + "material-purchase:", + "登记实际购料", + "助理2", + "{\"before\":null,\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-19T02:02:20.000Z" + ], + [ + 183, + "material-purchase-change:", + "申请历史购料更正", + "助理", + "{\"purchase_id\":\"\",\"action\":\"edit\",\"reason\":\"核对原始购料凭据后申请\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:23.000Z" + ], + [ + 184, + "", + "日购料自动重算", + "麦麦", + "{\"poolId\":\"2026-11-18\",\"changes\":[{\"line\":0,\"before\":{\"poolId\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":272000,\"ownerAmount\":0,\"assistantAmount\":272000,\"revision\":2,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}]},\"after\":{\"poolId\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":271935,\"ownerAmount\":0,\"assistantAmount\":271935,\"revision\":3,\"allocations\":[{\"payer\":\"assistant\",\"amount\":271935}]}}],\"goodsDelta\":-65,\"accountingDate\":\"2026-11-18\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:27.000Z" + ], + [ + 185, + "material-purchase:", + "修改实际购料", + "麦麦", + "{\"before\":{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:09.000Z\"},\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:27.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:27.000Z" + ], + [ + 186, + "material-purchase-change:", + "批准历史购料更正", + "麦麦", + "{\"purchase_id\":\"\",\"preview\":{\"before\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"revision\":1},\"after\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"revision\":2},\"relatedOrders\":[{\"id\":\"\",\"number\":\"20261118004\",\"date\":\"2026-11-18\",\"member\":\"assistant\",\"before\":{\"goodsCost\":272000,\"profit\":57000,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000},\"after\":{\"goodsCost\":271935,\"profit\":57065,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000}}],\"affectedDates\":[\"2026-11-18\"],\"summary\":{\"affectedOrderCount\":1,\"goodsDelta\":-65,\"profitDelta\":65}},\"notice\":\"原核对快照保留,受影响日期标记过期\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:27.000Z" + ], + [ + 187, + "material-purchase-change:", + "申请历史购料更正", + "助理", + "{\"purchase_id\":\"\",\"action\":\"delete\",\"reason\":\"申请删除历史购料\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:29.000Z" + ], + [ + 188, + "material-purchase-change:", + "驳回历史购料更正", + "麦麦", + "{\"note\":\"购料真实存在\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:30.000Z" + ], + [ + 189, + "material-pool:2026-11-19", + "登记实际购料", + "麦麦", + "{\"id\":\"\",\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":90000,\"payer\":\"owner\",\"note\":\"待删除\",\"averageRate\":90925,\"notice\":\"实际采购支出只记本条;订单仅结转消耗成本,不重复记付款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:33.000Z" + ], + [ + 190, + "material-purchase:", + "登记实际购料", + "麦麦", + "{\"before\":null,\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":90000,\"payer\":\"owner\",\"note\":\"待删除\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:02:33.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:33.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:33.000Z" + ], + [ + 191, + "material-purchase:", + "修改实际购料", + "麦麦", + "{\"before\":{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":90000,\"payer\":\"owner\",\"note\":\"待删除\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:02:33.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:33.000Z\"},\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":1500,\"amount\":138000,\"payer\":\"owner\",\"note\":\"当天改价\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:02:33.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:35.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:35.000Z" + ], + [ + 192, + "material-purchase:", + "删除实际购料", + "麦麦", + "{\"before\":{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":1500,\"amount\":138000,\"payer\":\"owner\",\"note\":\"当天改价\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:02:33.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:35.000Z\"},\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":1500,\"amount\":138000,\"payer\":\"owner\",\"note\":\"当天改价\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:02:33.000Z\",\"revision\":3,\"deleted_at\":\"2026-11-19T02:02:37.000Z\",\"updated\":\"2026-11-19T02:02:37.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:02:37.000Z" + ], + [ + 193, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:40.000Z" + ], + [ + 194, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:40.000Z" + ], + [ + 195, + "", + "receipt", + "助理", + "{\"date\":\"2026-11-19\",\"amount\":\"2200.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:40.000Z" + ], + [ + 196, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:40.000Z" + ], + [ + 197, + "", + "complete", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:40.000Z" + ], + [ + 198, + "", + "生成已交付单据", + "助理", + "{\"amount\":220000,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:40.000Z" + ], + [ + 199, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:51.000Z" + ], + [ + 200, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:51.000Z" + ], + [ + 201, + "", + "receipt", + "助理", + "{\"date\":\"2026-11-19\",\"amount\":\"500.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:51.000Z" + ], + [ + 202, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:51.000Z" + ], + [ + 203, + "", + "complete", + "助理", + "{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:51.000Z" + ], + [ + 204, + "", + "生成已交付单据", + "助理", + "{\"amount\":50000,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-19T02:02:51.000Z" + ], + [ + 205, + "inventory:2026-11-19", + "复核并保存库存快照", + "麦麦", + "{\"date\":\"2026-11-19\",\"revision\":\"26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace\",\"inventory\":[{\"pocket\":\"现货\",\"mg\":61950,\"reserved\":0,\"available\":61950},{\"pocket\":\"金料\",\"mg\":56000,\"reserved\":0,\"available\":56000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":12843,\"reserved\":0,\"available\":12843},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:04:45.000Z" + ], + [ + 206, + "inventory:2026-11-19", + "复核并保存库存快照", + "麦麦", + "{\"date\":\"2026-11-19\",\"revision\":\"26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace\",\"inventory\":[{\"pocket\":\"现货\",\"mg\":61950,\"reserved\":0,\"available\":61950},{\"pocket\":\"金料\",\"mg\":56000,\"reserved\":0,\"available\":56000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":12843,\"reserved\":0,\"available\":12843},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:04:46.000Z" + ], + [ + 207, + "day:2026-11-19", + "保存核对快照", + "麦麦", + "{\"warnings\":19,\"basis\":\"orderDate\",\"notice\":\"有待核项不等于已封账;补录会标记快照过期\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:04:46.000Z" + ], + [ + 208, + "system", + "完整备份", + "麦麦", + "{\"name\":\"\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-19T02:04:48.000Z" + ], + [ + 209, + "recovery:", + "申请修改回收/置换", + "助理2", + "{\"requestId\":\"\",\"reason\":\"跨天更正旧料克重\",\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"8.000\",\"melted_weight\":\"8.000\",\"purity\":\"99.9\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"12.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"7.992\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"0.00\",\"rounding_mode\":\"cent\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant2\",\"cost_material_payer\":\"assistant2\",\"cost_labor_payer\":\"assistant2\",\"fee_items\":[]}},\"after\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"8.200\",\"melted_weight\":\"8.100\",\"purity\":\"99.9\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"12.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"7.992\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"0.00\",\"rounding_mode\":\"cent\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant2\",\"cost_material_payer\":\"assistant2\",\"cost_labor_payer\":\"assistant2\",\"fee_items\":[]}},\"notice\":\"审批前不改变有效收付、购料、库存或利润\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}}", + "2026-11-20T02:00:06.000Z" + ], + [ + 210, + "recovery:", + "修改回收/置换记录", + "麦麦", + "{\"reason\":\"跨天更正旧料克重\",\"before\":{\"record\":{\"id\":\"\",\"number\":\"HS202611190001\",\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":8000,\\\"meltedMg\\\":8000,\\\"purity\\\":99.9,\\\"foldedMg\\\":7992}]\",\"data\":\"{\\\"mode\\\":\\\"exchange\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"customer\\\":\\\"对照换货客户\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"小昊\\\",\\\"member\\\":\\\"assistant2\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":8000,\\\"meltedMg\\\":8000,\\\"purity\\\":99.9,\\\"foldedMg\\\":7992}],\\\"oldMg\\\":7992,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":12000,\\\"matchedMg\\\":7992,\\\"differenceMg\\\":4008,\\\"surplusMg\\\":0,\\\"goldRate\\\":100000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":1000,\\\"depreciationMg\\\":7992,\\\"goldAmount\\\":400800,\\\"laborAmount\\\":24000,\\\"depreciationAmount\\\":7992,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":0,\\\"rounding_mode\\\":\\\"cent\\\",\\\"rounding_adjustment\\\":0,\\\"receivable\\\":432792,\\\"payer\\\":\\\"assistant2\\\",\\\"payment_account\\\":\\\"助理2微信\\\",\\\"materialCost\\\":360720,\\\"laborCost\\\":6000,\\\"goodsCost\\\":366720,\\\"directCost\\\":0,\\\"profit\\\":66072,\\\"newProduct\\\":{\\\"name\\\":\\\"足金对照新货\\\",\\\"quantity\\\":12000,\\\"pocket\\\":\\\"现货\\\"},\\\"exchange\\\":{\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\",\\\"rate\\\":90000,\\\"consumptionMg\\\":4008},\\\"costLabor\\\":{\\\"mode\\\":\\\"gram\\\",\\\"rate\\\":500},\\\"costPayer\\\":\\\"assistant2\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"assistant2\\\",\\\"labor\\\":\\\"assistant2\\\"},\\\"fee_items\\\":[]},\\\"purchaseMg\\\":0,\\\"buyRate\\\":0,\\\"calculatedPurchaseAmount\\\":0,\\\"purchaseAmount\\\":0,\\\"actualBuyRate\\\":null,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":432792,\\\"cashReceipt\\\":432792,\\\"cashPayment\\\":0,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":\"\",\"purchase_id\":null,\"inventory_group\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\",\"revision\":1,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"\"},\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261119011\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金对照新货\",\"code\":\"\",\"unit\":\"g\",\"quantity\":12000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":366720,\"costParts\":{\"material\":360720,\"labor\":6000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":4008},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"sale\":432792,\"baseSale\":432792,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"补金 4.008克 × 1000.00元;新货工费 240.00元;折旧 79.92元\",\"recoveryMaterialMg\":4008,\"recovery_id\":\"\"}],\"discount\":0,\"total\":432792,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:32.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":432792,\"account\":\"助理2微信\",\"reference\":\"置换差额实际收款 · HS202611190001\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":432792,\"goods\":366720,\"expense\":0,\"profit\":66072,\"created\":\"2026-11-19T02:01:32.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":7992,\"kind\":\"recovery\",\"note\":\"HS202611190001\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-12000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\"}],\"usages\":[],\"purchase\":null,\"purchaseSource\":null},\"after\":{\"record\":{\"id\":\"\",\"number\":\"HS202611190001\",\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":8200,\\\"meltedMg\\\":8100,\\\"purity\\\":99.9,\\\"foldedMg\\\":8092}]\",\"data\":\"{\\\"mode\\\":\\\"exchange\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"customer\\\":\\\"对照换货客户\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"小昊\\\",\\\"member\\\":\\\"assistant2\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":8200,\\\"meltedMg\\\":8100,\\\"purity\\\":99.9,\\\"foldedMg\\\":8092}],\\\"oldMg\\\":8092,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":12000,\\\"matchedMg\\\":8092,\\\"differenceMg\\\":3908,\\\"surplusMg\\\":0,\\\"goldRate\\\":100000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":1000,\\\"depreciationMg\\\":7992,\\\"goldAmount\\\":390800,\\\"laborAmount\\\":24000,\\\"depreciationAmount\\\":7992,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":0,\\\"rounding_mode\\\":\\\"cent\\\",\\\"rounding_adjustment\\\":0,\\\"receivable\\\":422792,\\\"payer\\\":\\\"assistant2\\\",\\\"payment_account\\\":\\\"助理2微信\\\",\\\"materialCost\\\":351720,\\\"laborCost\\\":6000,\\\"goodsCost\\\":357720,\\\"directCost\\\":0,\\\"profit\\\":65072,\\\"newProduct\\\":{\\\"name\\\":\\\"足金对照新货\\\",\\\"quantity\\\":12000,\\\"pocket\\\":\\\"现货\\\"},\\\"exchange\\\":{\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\",\\\"rate\\\":90000,\\\"consumptionMg\\\":3908},\\\"costLabor\\\":{\\\"mode\\\":\\\"gram\\\",\\\"rate\\\":500},\\\"costPayer\\\":\\\"assistant2\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"assistant2\\\",\\\"labor\\\":\\\"assistant2\\\"},\\\"fee_items\\\":[]},\\\"purchaseMg\\\":0,\\\"buyRate\\\":0,\\\"calculatedPurchaseAmount\\\":0,\\\"purchaseAmount\\\":0,\\\"actualBuyRate\\\":null,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":422792,\\\"cashReceipt\\\":422792,\\\"cashPayment\\\":0,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":\"\",\"purchase_id\":null,\"inventory_group\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\",\"revision\":2,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"2026-11-20T02:00:10.000Z\"},\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261119011\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金对照新货\",\"code\":\"\",\"unit\":\"g\",\"quantity\":12000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":357720,\"costParts\":{\"material\":351720,\"labor\":6000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":3908},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"sale\":422792,\"baseSale\":422792,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"补金 3.908克 × 1000.00元;新货工费 240.00元;折旧 79.92元\",\"recoveryMaterialMg\":3908,\"recovery_id\":\"\"}],\"discount\":0,\"total\":422792,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:32.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"2026-11-19\",\"rounding_mode\":\"cent\",\"internal_note\":\"\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":432792,\"account\":\"助理2微信\",\"reference\":\"置换差额实际收款 · HS202611190001\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":-432792,\"account\":\"助理2微信\",\"reference\":\"更正冲回:回收专用更正;跨天更正旧料克重\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:10.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":422792,\"account\":\"助理2微信\",\"reference\":\"回收更正补记:跨天更正旧料克重\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:10.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":432792,\"goods\":366720,\"expense\":0,\"profit\":66072,\"created\":\"2026-11-19T02:01:32.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"回收专用更正冲回\",\"sales\":-432792,\"goods\":-366720,\"expense\":0,\"profit\":-66072,\"created\":\"2026-11-20T02:00:10.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"回收专用更正补记\",\"sales\":422792,\"goods\":357720,\"expense\":0,\"profit\":65072,\"created\":\"2026-11-20T02:00:10.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":7992,\"kind\":\"recovery\",\"note\":\"HS202611190001\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-12000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":-7992,\"kind\":\"recovery_change_reverse\",\"note\":\"回收更正:HS202611190001;跨天更正旧料克重\",\"purchase_cost\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:10.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":12000,\"kind\":\"recovery_change_reverse\",\"note\":\"回收更正:HS202611190001;跨天更正旧料克重\",\"purchase_cost\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:10.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":8092,\"kind\":\"recovery_change_old\",\"note\":\"回收更正:HS202611190001;跨天更正旧料克重\",\"purchase_cost\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:10.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-12000,\"kind\":\"recovery_change_sale\",\"note\":\"回收更正:HS202611190001;跨天更正旧料克重\",\"purchase_cost\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:10.000Z\"}],\"usages\":[],\"purchase\":null,\"purchaseSource\":null},\"notice\":\"原身份与流水保留,追加冲正及补记;不是实际新增收款、退款或重复付款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-20T02:00:10.000Z" + ], + [ + 211, + "recovery:", + "申请取消回收/置换", + "助理", + "{\"requestId\":\"\",\"reason\":\"客户反悔\",\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"5.000\",\"melted_weight\":\"4.900\",\"purity\":\"99\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"6.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"4.851\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"10.00\",\"rounding_mode\":\"yuan\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant\",\"cost_material_payer\":\"assistant\",\"cost_labor_payer\":\"assistant\",\"fee_items\":[]}},\"after\":null,\"notice\":\"审批前不改变有效收付、购料、库存或利润\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:12.000Z" + ], + [ + 212, + "recovery:", + "驳回回收更正申请", + "麦麦", + "{\"requestId\":\"\",\"note\":\"需核实\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-20T02:00:13.000Z" + ], + [ + 213, + "recovery:", + "取消回收/置换记录", + "麦麦", + "{\"reason\":\"录错\",\"before\":{\"record\":{\"id\":\"\",\"number\":\"HS202611190002\",\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":5000,\\\"meltedMg\\\":4900,\\\"purity\\\":99,\\\"foldedMg\\\":4851}]\",\"data\":\"{\\\"mode\\\":\\\"exchange\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"customer\\\":\\\"对照换货客户二\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"娜娜\\\",\\\"member\\\":\\\"assistant\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":5000,\\\"meltedMg\\\":4900,\\\"purity\\\":99,\\\"foldedMg\\\":4851}],\\\"oldMg\\\":4851,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":6000,\\\"matchedMg\\\":4851,\\\"differenceMg\\\":1149,\\\"surplusMg\\\":0,\\\"goldRate\\\":100000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":1000,\\\"depreciationMg\\\":4851,\\\"goldAmount\\\":114900,\\\"laborAmount\\\":12000,\\\"depreciationAmount\\\":4851,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":1000,\\\"rounding_mode\\\":\\\"yuan\\\",\\\"rounding_adjustment\\\":49,\\\"receivable\\\":130800,\\\"payer\\\":\\\"assistant\\\",\\\"payment_account\\\":\\\"助理微信\\\",\\\"materialCost\\\":103410,\\\"laborCost\\\":3000,\\\"goodsCost\\\":106410,\\\"directCost\\\":0,\\\"profit\\\":24390,\\\"newProduct\\\":{\\\"name\\\":\\\"足金对照新货\\\",\\\"quantity\\\":6000,\\\"pocket\\\":\\\"现货\\\"},\\\"exchange\\\":{\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\",\\\"rate\\\":90000,\\\"consumptionMg\\\":1149},\\\"costLabor\\\":{\\\"mode\\\":\\\"gram\\\",\\\"rate\\\":500},\\\"costPayer\\\":\\\"assistant\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"assistant\\\",\\\"labor\\\":\\\"assistant\\\"},\\\"fee_items\\\":[]},\\\"purchaseMg\\\":0,\\\"buyRate\\\":0,\\\"calculatedPurchaseAmount\\\":0,\\\"purchaseAmount\\\":0,\\\"actualBuyRate\\\":null,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":130800,\\\"cashReceipt\\\":130800,\\\"cashPayment\\\":0,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":\"\",\"purchase_id\":null,\"inventory_group\":\"\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\",\"revision\":1,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"\"},\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119012\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金对照新货\",\"code\":\"\",\"unit\":\"g\",\"quantity\":6000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"cost\":106410,\"costParts\":{\"material\":103410,\"labor\":3000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"sale\":131751,\"baseSale\":131751,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"补金 1.149克 × 1000.00元;新货工费 120.00元;折旧 48.51元\",\"recoveryMaterialMg\":1149,\"recovery_id\":\"\"}],\"discount\":1000,\"total\":130800,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:33.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"yuan\",\"internal_note\":\"\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":130800,\"account\":\"助理微信\",\"reference\":\"置换差额实际收款 · HS202611190002\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":130800,\"goods\":106410,\"expense\":0,\"profit\":24390,\"created\":\"2026-11-19T02:01:33.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":4851,\"kind\":\"recovery\",\"note\":\"HS202611190002\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-6000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"}],\"usages\":[],\"purchase\":null,\"purchaseSource\":null},\"after\":{\"record\":{\"id\":\"\",\"number\":\"HS202611190002\",\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":5000,\\\"meltedMg\\\":4900,\\\"purity\\\":99,\\\"foldedMg\\\":4851}]\",\"data\":\"{\\\"mode\\\":\\\"exchange\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"customer\\\":\\\"对照换货客户二\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"娜娜\\\",\\\"member\\\":\\\"assistant\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":5000,\\\"meltedMg\\\":4900,\\\"purity\\\":99,\\\"foldedMg\\\":4851}],\\\"oldMg\\\":4851,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":6000,\\\"matchedMg\\\":4851,\\\"differenceMg\\\":1149,\\\"surplusMg\\\":0,\\\"goldRate\\\":100000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":1000,\\\"depreciationMg\\\":4851,\\\"goldAmount\\\":114900,\\\"laborAmount\\\":12000,\\\"depreciationAmount\\\":4851,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":1000,\\\"rounding_mode\\\":\\\"yuan\\\",\\\"rounding_adjustment\\\":49,\\\"receivable\\\":130800,\\\"payer\\\":\\\"assistant\\\",\\\"payment_account\\\":\\\"助理微信\\\",\\\"materialCost\\\":103410,\\\"laborCost\\\":3000,\\\"goodsCost\\\":106410,\\\"directCost\\\":0,\\\"profit\\\":24390,\\\"newProduct\\\":{\\\"name\\\":\\\"足金对照新货\\\",\\\"quantity\\\":6000,\\\"pocket\\\":\\\"现货\\\"},\\\"exchange\\\":{\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\",\\\"rate\\\":90000,\\\"consumptionMg\\\":1149},\\\"costLabor\\\":{\\\"mode\\\":\\\"gram\\\",\\\"rate\\\":500},\\\"costPayer\\\":\\\"assistant\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"assistant\\\",\\\"labor\\\":\\\"assistant\\\"},\\\"fee_items\\\":[]},\\\"purchaseMg\\\":0,\\\"buyRate\\\":0,\\\"calculatedPurchaseAmount\\\":0,\\\"purchaseAmount\\\":0,\\\"actualBuyRate\\\":null,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":130800,\\\"cashReceipt\\\":130800,\\\"cashPayment\\\":0,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":\"\",\"purchase_id\":null,\"inventory_group\":\"\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\",\"revision\":2,\"status\":\"cancelled\",\"cancelled_at\":\"2026-11-20T02:00:15.000Z\",\"updated\":\"2026-11-20T02:00:15.000Z\"},\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119012\",\"status\":\"cancelled\",\"lines\":[{\"name\":\"足金对照新货\",\"code\":\"\",\"unit\":\"g\",\"quantity\":6000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"cost\":106410,\"costParts\":{\"material\":103410,\"labor\":3000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"sale\":131751,\"baseSale\":131751,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"补金 1.149克 × 1000.00元;新货工费 120.00元;折旧 48.51元\",\"recoveryMaterialMg\":1149,\"recovery_id\":\"\"}],\"discount\":1000,\"total\":130800,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:33.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"yuan\",\"internal_note\":\"\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":130800,\"account\":\"助理微信\",\"reference\":\"置换差额实际收款 · HS202611190002\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":-130800,\"account\":\"助理微信\",\"reference\":\"更正冲回:回收专用更正;录错\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:15.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":130800,\"goods\":106410,\"expense\":0,\"profit\":24390,\"created\":\"2026-11-19T02:01:33.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"回收专用更正冲回\",\"sales\":-130800,\"goods\":-106410,\"expense\":0,\"profit\":-24390,\"created\":\"2026-11-20T02:00:15.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":4851,\"kind\":\"recovery\",\"note\":\"HS202611190002\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-6000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":-4851,\"kind\":\"recovery_change_reverse\",\"note\":\"回收更正:HS202611190002;录错\",\"purchase_cost\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:15.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":6000,\"kind\":\"recovery_change_reverse\",\"note\":\"回收更正:HS202611190002;录错\",\"purchase_cost\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:15.000Z\"}],\"usages\":[],\"purchase\":null,\"purchaseSource\":null},\"notice\":\"原身份与流水保留,追加冲正及补记;不是实际新增收款、退款或重复付款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-20T02:00:15.000Z" + ], + [ + 214, + "material-pool:2026-11-20", + "登记实际购料", + "助理", + "{\"id\":\"\",\"date\":\"2026-11-20\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200003\",\"averageRate\":90949,\"recovery_id\":\"\",\"cashAmount\":900000,\"offsetAmount\":0,\"allocations\":[{\"payer\":\"assistant\",\"amount\":900000,\"source\":\"cash\"}],\"notice\":\"回收购料按最终总额入池;实际现金仅记净付款,非现金抵扣按业务成员计入库存资金份额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:20.000Z" + ], + [ + 215, + "material-purchase:", + "登记实际购料", + "助理", + "{\"before\":null,\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200003\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:20.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:20.000Z" + ], + [ + 216, + "recovery:", + "登记直接回收", + "助理", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":10000,\"meltedMg\":10000,\"purity\":100,\"foldedMg\":10000}],\"oldMg\":10000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":10000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":10000,\"buyRate\":90000,\"calculatedPurchaseAmount\":900000,\"purchaseAmount\":900000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-900000,\"cashReceipt\":0,\"cashPayment\":900000,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"order_id\":null,\"purchase_id\":\"\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:20.000Z" + ], + [ + 217, + "material-pool:2026-11-20", + "登记实际购料", + "麦麦", + "{\"id\":\"\",\"date\":\"2026-11-20\",\"mg\":3000,\"amount\":270000,\"payer\":\"owner\",\"note\":\"直接回收 · HS202611200004\",\"averageRate\":90949,\"recovery_id\":\"\",\"cashAmount\":270000,\"offsetAmount\":0,\"allocations\":[{\"payer\":\"owner\",\"amount\":270000,\"source\":\"cash\"}],\"notice\":\"回收购料按最终总额入池;实际现金仅记净付款,非现金抵扣按业务成员计入库存资金份额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-20T02:00:21.000Z" + ], + [ + 218, + "material-purchase:", + "登记实际购料", + "麦麦", + "{\"before\":null,\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":3000,\"amount\":270000,\"payer\":\"owner\",\"note\":\"直接回收 · HS202611200004\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:21.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-20T02:00:21.000Z" + ], + [ + 219, + "recovery:", + "登记直接回收", + "麦麦", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"麦麦\",\"member\":\"owner\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":3000,\"meltedMg\":3000,\"purity\":100,\"foldedMg\":3000}],\"oldMg\":3000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":3000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"owner\",\"payment_account\":\"麦麦现金\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":3000,\"buyRate\":90000,\"calculatedPurchaseAmount\":270000,\"purchaseAmount\":270000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-270000,\"cashReceipt\":0,\"cashPayment\":270000,\"cardFee\":0,\"paymentMethods\":[\"现金\"],\"order_id\":null,\"purchase_id\":\"\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-20T02:00:21.000Z" + ], + [ + 220, + "recovery:", + "修改回收/置换记录", + "助理", + "{\"reason\":\"当天更正\",\"before\":{\"record\":{\"id\":\"\",\"number\":\"HS202611200003\",\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":10000,\\\"meltedMg\\\":10000,\\\"purity\\\":100,\\\"foldedMg\\\":10000}]\",\"data\":\"{\\\"mode\\\":\\\"direct\\\",\\\"date\\\":\\\"2026-11-20\\\",\\\"customer\\\":\\\"对照回收客户\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"娜娜\\\",\\\"member\\\":\\\"assistant\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":10000,\\\"meltedMg\\\":10000,\\\"purity\\\":100,\\\"foldedMg\\\":10000}],\\\"oldMg\\\":10000,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":0,\\\"matchedMg\\\":0,\\\"differenceMg\\\":0,\\\"surplusMg\\\":10000,\\\"goldRate\\\":0,\\\"laborRate\\\":0,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":0,\\\"depreciationMg\\\":0,\\\"goldAmount\\\":0,\\\"laborAmount\\\":0,\\\"depreciationAmount\\\":0,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":0,\\\"rounding_mode\\\":\\\"cent\\\",\\\"rounding_adjustment\\\":0,\\\"receivable\\\":0,\\\"payer\\\":\\\"assistant\\\",\\\"payment_account\\\":\\\"助理微信\\\",\\\"materialCost\\\":0,\\\"laborCost\\\":0,\\\"goodsCost\\\":0,\\\"directCost\\\":0,\\\"profit\\\":0,\\\"purchaseMg\\\":10000,\\\"buyRate\\\":90000,\\\"calculatedPurchaseAmount\\\":900000,\\\"purchaseAmount\\\":900000,\\\"actualBuyRate\\\":90000,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":-900000,\\\"cashReceipt\\\":0,\\\"cashPayment\\\":900000,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":null,\"purchase_id\":\"\",\"inventory_group\":\"\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\",\"revision\":1,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"\"},\"order\":null,\"payments\":[],\"expenses\":[],\"settlements\":[],\"journal\":[],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-20\",\"pocket\":\"回收旧料\",\"mg\":10000,\"kind\":\"recovery\",\"note\":\"HS202611200003\",\"purchase_cost\":900000,\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\"}],\"usages\":[],\"purchase\":{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200003\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:20.000Z\"},\"purchaseSource\":{\"purchase_id\":\"\",\"recovery_id\":\"\",\"cash_amount\":900000,\"offset_amount\":0,\"allocations\":\"[{\\\"payer\\\":\\\"assistant\\\",\\\"amount\\\":900000,\\\"source\\\":\\\"cash\\\"}]\"}},\"after\":{\"record\":{\"id\":\"\",\"number\":\"HS202611200003\",\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":10000,\\\"meltedMg\\\":10000,\\\"purity\\\":100,\\\"foldedMg\\\":10000}]\",\"data\":\"{\\\"mode\\\":\\\"direct\\\",\\\"date\\\":\\\"2026-11-20\\\",\\\"customer\\\":\\\"对照回收客户\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"娜娜\\\",\\\"member\\\":\\\"assistant\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":10000,\\\"meltedMg\\\":10000,\\\"purity\\\":100,\\\"foldedMg\\\":10000}],\\\"oldMg\\\":10000,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":0,\\\"matchedMg\\\":0,\\\"differenceMg\\\":0,\\\"surplusMg\\\":10000,\\\"goldRate\\\":0,\\\"laborRate\\\":0,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":0,\\\"depreciationMg\\\":0,\\\"goldAmount\\\":0,\\\"laborAmount\\\":0,\\\"depreciationAmount\\\":0,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":0,\\\"rounding_mode\\\":\\\"cent\\\",\\\"rounding_adjustment\\\":0,\\\"receivable\\\":0,\\\"payer\\\":\\\"assistant\\\",\\\"payment_account\\\":\\\"助理微信\\\",\\\"materialCost\\\":0,\\\"laborCost\\\":0,\\\"goodsCost\\\":0,\\\"directCost\\\":0,\\\"profit\\\":0,\\\"purchaseMg\\\":10000,\\\"buyRate\\\":90500,\\\"calculatedPurchaseAmount\\\":905000,\\\"purchaseAmount\\\":900000,\\\"actualBuyRate\\\":90000,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":-900000,\\\"cashReceipt\\\":0,\\\"cashPayment\\\":900000,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":null,\"purchase_id\":\"\",\"inventory_group\":\"\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\",\"revision\":2,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"2026-11-20T02:00:25.000Z\"},\"order\":null,\"payments\":[],\"expenses\":[],\"settlements\":[],\"journal\":[],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-20\",\"pocket\":\"回收旧料\",\"mg\":10000,\"kind\":\"recovery\",\"note\":\"HS202611200003\",\"purchase_cost\":900000,\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-20\",\"pocket\":\"回收旧料\",\"mg\":-10000,\"kind\":\"recovery_change_reverse\",\"note\":\"回收更正:HS202611200003;当天更正\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:25.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-20\",\"pocket\":\"回收旧料\",\"mg\":10000,\"kind\":\"recovery_change_old\",\"note\":\"回收更正:HS202611200003;当天更正\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:25.000Z\"}],\"usages\":[],\"purchase\":{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200003\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:25.000Z\"},\"purchaseSource\":{\"purchase_id\":\"\",\"recovery_id\":\"\",\"cash_amount\":900000,\"offset_amount\":0,\"allocations\":\"[{\\\"payer\\\":\\\"assistant\\\",\\\"amount\\\":900000,\\\"source\\\":\\\"cash\\\"}]\"}},\"notice\":\"原身份与流水保留,追加冲正及补记;不是实际新增收款、退款或重复付款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:25.000Z" + ], + [ + 221, + "recovery:", + "取消回收/置换记录", + "麦麦", + "{\"reason\":\"录错\",\"before\":{\"record\":{\"id\":\"\",\"number\":\"HS202611200004\",\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"salesperson\":\"麦麦\",\"member\":\"owner\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":3000,\\\"meltedMg\\\":3000,\\\"purity\\\":100,\\\"foldedMg\\\":3000}]\",\"data\":\"{\\\"mode\\\":\\\"direct\\\",\\\"date\\\":\\\"2026-11-20\\\",\\\"customer\\\":\\\"对照回收客户\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"麦麦\\\",\\\"member\\\":\\\"owner\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":3000,\\\"meltedMg\\\":3000,\\\"purity\\\":100,\\\"foldedMg\\\":3000}],\\\"oldMg\\\":3000,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":0,\\\"matchedMg\\\":0,\\\"differenceMg\\\":0,\\\"surplusMg\\\":3000,\\\"goldRate\\\":0,\\\"laborRate\\\":0,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":0,\\\"depreciationMg\\\":0,\\\"goldAmount\\\":0,\\\"laborAmount\\\":0,\\\"depreciationAmount\\\":0,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":0,\\\"rounding_mode\\\":\\\"cent\\\",\\\"rounding_adjustment\\\":0,\\\"receivable\\\":0,\\\"payer\\\":\\\"owner\\\",\\\"payment_account\\\":\\\"麦麦现金\\\",\\\"materialCost\\\":0,\\\"laborCost\\\":0,\\\"goodsCost\\\":0,\\\"directCost\\\":0,\\\"profit\\\":0,\\\"purchaseMg\\\":3000,\\\"buyRate\\\":90000,\\\"calculatedPurchaseAmount\\\":270000,\\\"purchaseAmount\\\":270000,\\\"actualBuyRate\\\":90000,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":-270000,\\\"cashReceipt\\\":0,\\\"cashPayment\\\":270000,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"现金\\\"]}\",\"order_id\":null,\"purchase_id\":\"\",\"inventory_group\":\"\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\",\"revision\":1,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"\"},\"order\":null,\"payments\":[],\"expenses\":[],\"settlements\":[],\"journal\":[],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-20\",\"pocket\":\"回收旧料\",\"mg\":3000,\"kind\":\"recovery\",\"note\":\"HS202611200004\",\"purchase_cost\":270000,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\"}],\"usages\":[],\"purchase\":{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":3000,\"amount\":270000,\"payer\":\"owner\",\"note\":\"直接回收 · HS202611200004\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:21.000Z\"},\"purchaseSource\":{\"purchase_id\":\"\",\"recovery_id\":\"\",\"cash_amount\":270000,\"offset_amount\":0,\"allocations\":\"[{\\\"payer\\\":\\\"owner\\\",\\\"amount\\\":270000,\\\"source\\\":\\\"cash\\\"}]\"}},\"after\":{\"record\":{\"id\":\"\",\"number\":\"HS202611200004\",\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"salesperson\":\"麦麦\",\"member\":\"owner\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":3000,\\\"meltedMg\\\":3000,\\\"purity\\\":100,\\\"foldedMg\\\":3000}]\",\"data\":\"{\\\"mode\\\":\\\"direct\\\",\\\"date\\\":\\\"2026-11-20\\\",\\\"customer\\\":\\\"对照回收客户\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"麦麦\\\",\\\"member\\\":\\\"owner\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":3000,\\\"meltedMg\\\":3000,\\\"purity\\\":100,\\\"foldedMg\\\":3000}],\\\"oldMg\\\":3000,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":0,\\\"matchedMg\\\":0,\\\"differenceMg\\\":0,\\\"surplusMg\\\":3000,\\\"goldRate\\\":0,\\\"laborRate\\\":0,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":0,\\\"depreciationMg\\\":0,\\\"goldAmount\\\":0,\\\"laborAmount\\\":0,\\\"depreciationAmount\\\":0,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":0,\\\"rounding_mode\\\":\\\"cent\\\",\\\"rounding_adjustment\\\":0,\\\"receivable\\\":0,\\\"payer\\\":\\\"owner\\\",\\\"payment_account\\\":\\\"麦麦现金\\\",\\\"materialCost\\\":0,\\\"laborCost\\\":0,\\\"goodsCost\\\":0,\\\"directCost\\\":0,\\\"profit\\\":0,\\\"purchaseMg\\\":3000,\\\"buyRate\\\":90000,\\\"calculatedPurchaseAmount\\\":270000,\\\"purchaseAmount\\\":270000,\\\"actualBuyRate\\\":90000,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":-270000,\\\"cashReceipt\\\":0,\\\"cashPayment\\\":270000,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"现金\\\"]}\",\"order_id\":null,\"purchase_id\":\"\",\"inventory_group\":\"\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\",\"revision\":2,\"status\":\"cancelled\",\"cancelled_at\":\"2026-11-20T02:00:27.000Z\",\"updated\":\"2026-11-20T02:00:27.000Z\"},\"order\":null,\"payments\":[],\"expenses\":[],\"settlements\":[],\"journal\":[],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-20\",\"pocket\":\"回收旧料\",\"mg\":3000,\"kind\":\"recovery\",\"note\":\"HS202611200004\",\"purchase_cost\":270000,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-20\",\"pocket\":\"回收旧料\",\"mg\":-3000,\"kind\":\"recovery_change_reverse\",\"note\":\"回收更正:HS202611200004;录错\",\"purchase_cost\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:27.000Z\"}],\"usages\":[],\"purchase\":{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":3000,\"amount\":270000,\"payer\":\"owner\",\"note\":\"直接回收 · HS202611200004\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\",\"revision\":2,\"deleted_at\":\"2026-11-20T02:00:27.000Z\",\"updated\":\"2026-11-20T02:00:27.000Z\"},\"purchaseSource\":{\"purchase_id\":\"\",\"recovery_id\":\"\",\"cash_amount\":270000,\"offset_amount\":0,\"allocations\":\"[{\\\"payer\\\":\\\"owner\\\",\\\"amount\\\":270000,\\\"source\\\":\\\"cash\\\"}]\"}},\"notice\":\"原身份与流水保留,追加冲正及补记;不是实际新增收款、退款或重复付款\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}}", + "2026-11-20T02:00:27.000Z" + ], + [ + 222, + "", + "保存草稿", + "助理", + "{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:29.000Z" + ], + [ + 223, + "", + "confirm", + "助理", + "{\"date\":\"2026-11-20\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:29.000Z" + ], + [ + 224, + "", + "receipt", + "助理", + "{\"date\":\"2026-11-20\",\"amount\":\"2000.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:29.000Z" + ], + [ + 225, + "", + "deliver", + "助理", + "{\"date\":\"2026-11-20\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:29.000Z" + ], + [ + 226, + "", + "complete", + "助理", + "{\"date\":\"2026-11-20\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:29.000Z" + ], + [ + 227, + "", + "生成已交付单据", + "助理", + "{\"amount\":200000,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:29.000Z" + ], + [ + 228, + "material-pool:2026-11-20", + "登记实际购料", + "助理", + "{\"id\":\"\",\"date\":\"2026-11-20\",\"mg\":2000,\"amount\":180000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200005\",\"averageRate\":90949,\"recovery_id\":\"\",\"cashAmount\":180000,\"offsetAmount\":0,\"allocations\":[{\"payer\":\"assistant\",\"amount\":180000,\"source\":\"cash\"}],\"notice\":\"回收购料按最终总额入池;实际现金仅记净付款,非现金抵扣按业务成员计入库存资金份额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:30.000Z" + ], + [ + 229, + "material-purchase:", + "登记实际购料", + "助理", + "{\"before\":null,\"after\":{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":2000,\"amount\":180000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200005\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:30.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:30.000Z\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:30.000Z" + ], + [ + 230, + "recovery:", + "登记直接回收", + "助理", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"留档回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":2000,\"meltedMg\":2000,\"purity\":100,\"foldedMg\":2000}],\"oldMg\":2000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":2000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":2000,\"buyRate\":90000,\"calculatedPurchaseAmount\":180000,\"purchaseAmount\":180000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-180000,\"cashReceipt\":0,\"cashPayment\":180000,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"order_id\":null,\"purchase_id\":\"\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}}", + "2026-11-20T02:00:30.000Z" + ] + ] + }, + "closes": { + "columns": [ + "date", + "report", + "actor", + "created", + "stale" + ], + "rows": [ + [ + "2026-11-18", + "{\"date\":\"2026-11-18\",\"from\":\"2026-11-18\",\"sales\":3268763,\"goods\":2795200,\"knownGoods\":2795200,\"expense\":5581,\"profit\":467982,\"knownProfit\":467982,\"materialCostPending\":false,\"pendingMaterialCount\":0,\"materialPoolActivity\":{\"basis\":\"purchaseDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:09.000Z\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\"}],\"payerOutlays\":{\"owner\":{\"payer\":\"owner\",\"material\":1820000,\"goods\":1820000,\"paidFees\":0,\"total\":1820000,\"purchaseCount\":1},\"assistant\":{\"payer\":\"assistant\",\"material\":900000,\"goods\":900000,\"paidFees\":0,\"total\":900000,\"purchaseCount\":1},\"assistant2\":{\"payer\":\"assistant2\",\"material\":0,\"goods\":0,\"paidFees\":0,\"total\":0,\"purchaseCount\":0}},\"summary\":{\"purchaseCount\":2,\"poolCount\":1,\"mg\":30000,\"materialOutlay\":2720000,\"purchaseValue\":2720000,\"ownerOutlay\":1820000,\"assistantOutlay\":900000,\"assistant2Outlay\":0,\"totalOutlay\":2720000,\"eventCount\":2}},\"materialPoolSettlement\":{\"legacyReadOnly\":true,\"assistantInventoryCredit\":628000,\"knownAssistantInventoryCredit\":628000,\"transferred\":0,\"settlementDue\":-628000,\"knownSettlementDue\":-628000,\"pendingCount\":0,\"pools\":[{\"id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"assistantInventoryCredit\":628000,\"transferred\":0,\"settlementDue\":-628000,\"pending\":false}]},\"delivered\":9,\"returns\":0,\"accounts\":[{\"account\":\"助理微信\",\"receipt\":591100,\"refund\":0,\"net\":591100},{\"account\":\"助理支付宝\",\"receipt\":202000,\"refund\":0,\"net\":202000},{\"account\":\"助理现金\",\"receipt\":330000,\"refund\":0,\"net\":330000},{\"account\":\"麦麦微信\",\"receipt\":80000,\"refund\":0,\"net\":80000},{\"account\":\"麦麦支付宝\",\"receipt\":100000,\"refund\":0,\"net\":100000},{\"account\":\"麦麦现金\",\"receipt\":980000,\"refund\":0,\"net\":980000},{\"account\":\"麦麦信用卡\",\"receipt\":588500,\"refund\":0,\"net\":588500},{\"account\":\"助理2微信\",\"receipt\":550000,\"refund\":0,\"net\":550000},{\"account\":\"助理2支付宝\",\"receipt\":217163,\"refund\":0,\"net\":217163},{\"account\":\"助理2现金\",\"receipt\":150000,\"refund\":0,\"net\":150000}],\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":217163,\"account\":\"助理2支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:18.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118002\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118003\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":980000,\"account\":\"麦麦现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:23.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118005\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":150000,\"account\":\"助理2现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:24.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118006\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118008\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":100000,\"account\":\"麦麦支付宝\",\"reference\":\"定金\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:31.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":300000,\"account\":\"麦麦信用卡\",\"reference\":\"尾款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:33.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":80000,\"account\":\"麦麦微信\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":120000,\"account\":\"助理支付宝\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:02:02.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":321100,\"goods\":290200,\"expense\":1200,\"profit\":29700,\"created\":\"2026-11-18T02:01:17.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":217163,\"goods\":183000,\"expense\":0,\"profit\":34163,\"created\":\"2026-11-18T02:01:18.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118002\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"created\":\"2026-11-18T02:01:19.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118003\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":330000,\"goods\":272000,\"expense\":0,\"profit\":58000,\"created\":\"2026-11-18T02:01:20.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":980000,\"goods\":900000,\"expense\":0,\"profit\":80000,\"created\":\"2026-11-18T02:01:23.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118005\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":150000,\"goods\":130000,\"expense\":0,\"profit\":20000,\"created\":\"2026-11-18T02:01:24.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118006\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000,\"created\":\"2026-11-18T02:01:25.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":82000,\"goods\":70000,\"expense\":0,\"profit\":12000,\"created\":\"2026-11-18T02:01:26.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118008\",\"order_date\":\"2026-11-18\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":400000,\"goods\":350000,\"expense\":1800,\"profit\":48200,\"created\":\"2026-11-18T02:01:34.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"order_date\":\"2026-11-18\"}],\"afterSales\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:02:03.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"project\":\"对照清洗\",\"customer\":\"对照售后客户二\",\"amount\":0,\"payer\":\"owner\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:02:06.000Z\"}],\"afterSaleCount\":2,\"inventory\":[{\"pocket\":\"现货\",\"mg\":80450,\"reserved\":0,\"available\":80450},{\"pocket\":\"金料\",\"mg\":55000,\"reserved\":0,\"available\":55000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"warnings\":[{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"}],\"unsettled\":[],\"settlementDue\":-628000,\"knownSettlementDue\":-628000,\"customerBalance\":0,\"close\":null,\"basis\":\"orderDate\",\"summary\":{\"orderCount\":9,\"completedCount\":9,\"draftCount\":0,\"confirmedCount\":0,\"returnedCount\":0,\"cancelledCount\":0,\"incompleteCount\":0,\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"unknownCostCount\":0,\"unknownProfitCount\":0,\"legacyUnallocatedCount\":6,\"sale\":3268763,\"material\":998000,\"laborAndFees\":19781,\"unallocated\":1783000,\"totalCost\":2800781,\"profit\":467982,\"ownerCost\":1689531,\"assistantCost\":348250,\"assistant2Cost\":763000,\"mg\":29550,\"pieces\":4,\"knownCounts\":{\"sale\":9,\"material\":3,\"laborAndFees\":3,\"unallocated\":9,\"totalCost\":9,\"profit\":9,\"ownerCost\":9,\"assistantCost\":9,\"assistant2Cost\":9},\"unknownCounts\":{\"sale\":0,\"material\":6,\"laborAndFees\":6,\"unallocated\":0,\"totalCost\":0,\"profit\":0,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":0},\"partial\":true,\"afterSaleCount\":2,\"recordCount\":11},\"orderRows\":[{\"id\":\"\",\"member\":\"assistant\",\"funds_mode\":\"team\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:01:17.000Z\",\"customer\":\"对照客户甲\",\"salesperson\":\"娜娜\",\"status\":\"delivered\",\"note\":\"客户单备注\",\"types\":[\"货盘现货\"],\"mg\":3250,\"summaryMg\":3250,\"pieces\":0,\"originalSale\":321100,\"sale\":321100,\"material\":286000,\"laborAndFees\":5400,\"unallocated\":0,\"totalCost\":291400,\"profit\":29700,\"ownerCost\":286000,\"assistantCost\":5400,\"assistant2Cost\":0,\"known\":{\"sale\":321100,\"material\":286000,\"laborAndFees\":5400,\"unallocated\":0,\"totalCost\":291400,\"profit\":29700,\"ownerCost\":286000,\"assistantCost\":5400,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999\",\"amount\":286000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":{\"rate\":88000,\"quantity\":3250},\"component\":\"material\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":4000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":200,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"},{\"kind\":\"paid\",\"name\":\"快递\",\"source\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"component\":\"fee\"}],\"laborAndFeeItems\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":4000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":200,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"},{\"kind\":\"paid\",\"name\":\"快递\",\"source\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"component\":\"fee\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant2\",\"funds_mode\":\"team\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118002\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:01:18.000Z\",\"customer\":\"对照客户乙\",\"salesperson\":\"小昊\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘现货\",\"配货 · 银饰\"],\"mg\":2000,\"summaryMg\":2000,\"pieces\":3,\"originalSale\":217163,\"sale\":217163,\"material\":null,\"laborAndFees\":null,\"unallocated\":183000,\"totalCost\":183000,\"profit\":34163,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":183000,\"known\":{\"sale\":217163,\"material\":0,\"laborAndFees\":0,\"unallocated\":183000,\"totalCost\":183000,\"profit\":34163,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":183000},\"costItems\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金999\",\"amount\":180000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 2 · 纯银925\",\"amount\":3000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\"}],\"laborAndFeeItems\":[],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":true,\"incomplete\":false,\"costHint\":\"原单货品成本未分项,计入未分项成本\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant\",\"funds_mode\":\"team\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118003\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:01:19.000Z\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"配货\"],\"mg\":0,\"summaryMg\":0,\"pieces\":1,\"originalSale\":288500,\"sale\":288500,\"material\":null,\"laborAndFees\":null,\"unallocated\":150000,\"totalCost\":151731,\"profit\":136769,\"ownerCost\":151731,\"assistantCost\":0,\"assistant2Cost\":0,\"known\":{\"sale\":288500,\"material\":0,\"laborAndFees\":1731,\"unallocated\":150000,\"totalCost\":151731,\"profit\":136769,\"ownerCost\":151731,\"assistantCost\":0,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 金镶玉吊坠\",\"amount\":150000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\"},{\"kind\":\"paid\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"component\":\"fee\"}],\"laborAndFeeItems\":[{\"kind\":\"paid\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"component\":\"fee\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":true,\"incomplete\":false,\"costHint\":\"原单货品成本未分项,计入未分项成本\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant\",\"funds_mode\":\"team\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:01:20.000Z\",\"materialPoolIds\":[\"2026-11-18\"],\"materialCostPending\":false,\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"配货\"],\"mg\":3000,\"summaryMg\":3000,\"pieces\":0,\"originalSale\":330000,\"sale\":330000,\"material\":272000,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":272000,\"profit\":58000,\"ownerCost\":0,\"assistantCost\":272000,\"assistant2Cost\":0,\"known\":{\"sale\":330000,\"material\":272000,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":272000,\"profit\":58000,\"ownerCost\":0,\"assistantCost\":272000,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999 · 2026-11-18日购料\",\"amount\":272000,\"payer\":\"assistant\",\"excluded\":false,\"materialPoolId\":\"2026-11-18\",\"materialPoolRevision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\",\"calculation\":{\"rate\":90667,\"quantity\":3000,\"weighted\":true}},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"laborAndFeeItems\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"owner\",\"funds_mode\":\"team\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118005\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:01:21.000Z\",\"customer\":\"对照草稿客户\",\"salesperson\":\"麦麦\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘·展柜A(主)\"],\"mg\":10000,\"summaryMg\":10000,\"pieces\":0,\"originalSale\":980000,\"sale\":980000,\"material\":null,\"laborAndFees\":null,\"unallocated\":900000,\"totalCost\":900000,\"profit\":80000,\"ownerCost\":900000,\"assistantCost\":0,\"assistant2Cost\":0,\"known\":{\"sale\":980000,\"material\":0,\"laborAndFees\":0,\"unallocated\":900000,\"totalCost\":900000,\"profit\":80000,\"ownerCost\":900000,\"assistantCost\":0,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金手镯\",\"amount\":900000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\"}],\"laborAndFeeItems\":[],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":true,\"incomplete\":false,\"costHint\":\"原单货品成本未分项,计入未分项成本\",\"balance\":0,\"revision\":5,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant2\",\"funds_mode\":\"team\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118006\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:01:24.000Z\",\"customer\":\"对照取消客户\",\"salesperson\":\"小昊\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘现货\"],\"mg\":1500,\"summaryMg\":1500,\"pieces\":0,\"originalSale\":150000,\"sale\":150000,\"material\":null,\"laborAndFees\":null,\"unallocated\":130000,\"totalCost\":130000,\"profit\":20000,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":130000,\"known\":{\"sale\":150000,\"material\":0,\"laborAndFees\":0,\"unallocated\":130000,\"totalCost\":130000,\"profit\":20000,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":130000},\"costItems\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金戒指\",\"amount\":130000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\"}],\"laborAndFeeItems\":[],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":true,\"incomplete\":false,\"costHint\":\"原单货品成本未分项,计入未分项成本\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant2\",\"funds_mode\":\"team\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:01:25.000Z\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘现货\"],\"mg\":5000,\"summaryMg\":5000,\"pieces\":0,\"originalSale\":500000,\"sale\":500000,\"material\":440000,\"laborAndFees\":10000,\"unallocated\":0,\"totalCost\":450000,\"profit\":50000,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":450000,\"known\":{\"sale\":500000,\"material\":440000,\"laborAndFees\":10000,\"unallocated\":0,\"totalCost\":450000,\"profit\":50000,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":450000},\"costItems\":[{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":440000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"material\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金手链\",\"amount\":10000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"laborAndFeeItems\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金手链\",\"amount\":10000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant\",\"funds_mode\":\"team\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118008\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:01:26.000Z\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘现货\"],\"mg\":800,\"summaryMg\":800,\"pieces\":0,\"originalSale\":82000,\"sale\":82000,\"material\":null,\"laborAndFees\":null,\"unallocated\":70000,\"totalCost\":70000,\"profit\":12000,\"ownerCost\":0,\"assistantCost\":70000,\"assistant2Cost\":0,\"known\":{\"sale\":82000,\"material\":0,\"laborAndFees\":0,\"unallocated\":70000,\"totalCost\":70000,\"profit\":12000,\"ownerCost\":0,\"assistantCost\":70000,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金耳钉\",\"amount\":70000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\"}],\"laborAndFeeItems\":[],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":true,\"incomplete\":false,\"costHint\":\"原单货品成本未分项,计入未分项成本\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"owner\",\"funds_mode\":\"team\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:01:27.000Z\",\"customer\":\"对照分步客户\",\"salesperson\":\"麦麦\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘现货\"],\"mg\":4000,\"summaryMg\":4000,\"pieces\":0,\"originalSale\":400000,\"sale\":400000,\"material\":null,\"laborAndFees\":null,\"unallocated\":350000,\"totalCost\":351800,\"profit\":48200,\"ownerCost\":351800,\"assistantCost\":0,\"assistant2Cost\":0,\"known\":{\"sale\":400000,\"material\":0,\"laborAndFees\":1800,\"unallocated\":350000,\"totalCost\":351800,\"profit\":48200,\"ownerCost\":351800,\"assistantCost\":0,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金项链\",\"amount\":350000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\"},{\"kind\":\"paid\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"2026-11-18\",\"amount\":1800,\"payer\":\"owner\",\"component\":\"fee\"}],\"laborAndFeeItems\":[{\"kind\":\"paid\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"2026-11-18\",\"amount\":1800,\"payer\":\"owner\",\"component\":\"fee\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":true,\"incomplete\":false,\"costHint\":\"原单货品成本未分项,计入未分项成本\",\"balance\":0,\"revision\":5,\"reviewed_revision\":0},{\"id\":\"\",\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"number\":\"售后\",\"paper_number\":\"\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:02:03.000Z\",\"customer\":\"对照售后客户\",\"salesperson\":\"助理\",\"status\":\"after_sale\",\"project\":\"对照改圈\",\"note\":\"对照改圈\",\"amount\":850,\"payer\":\"assistant\",\"types\":[\"售后\"],\"mg\":0,\"summaryMg\":0,\"pieces\":0,\"originalSale\":0,\"sale\":0,\"material\":0,\"laborAndFees\":850,\"unallocated\":0,\"totalCost\":850,\"profit\":-850,\"ownerCost\":0,\"assistantCost\":850,\"known\":{\"sale\":0,\"material\":0,\"laborAndFees\":850,\"unallocated\":0,\"totalCost\":850,\"profit\":-850,\"ownerCost\":0,\"assistantCost\":850},\"costItems\":[{\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"name\":\"对照改圈\",\"source\":\"售后 · 2026-11-18\",\"amount\":850,\"payer\":\"assistant\",\"component\":\"fee\",\"calculation\":null}],\"laborAndFeeItems\":[{\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"name\":\"对照改圈\",\"source\":\"售后 · 2026-11-18\",\"amount\":850,\"payer\":\"assistant\",\"component\":\"fee\",\"calculation\":null}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"独立售后支出,计入所选日期利润\",\"balance\":0,\"revision\":1,\"reviewed_revision\":1},{\"id\":\"\",\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"number\":\"售后\",\"paper_number\":\"\",\"date\":\"2026-11-18\",\"created\":\"2026-11-18T02:02:06.000Z\",\"customer\":\"对照售后客户二\",\"salesperson\":\"麦麦\",\"status\":\"after_sale\",\"project\":\"对照清洗\",\"note\":\"对照清洗\",\"amount\":0,\"payer\":\"owner\",\"types\":[\"售后\"],\"mg\":0,\"summaryMg\":0,\"pieces\":0,\"originalSale\":0,\"sale\":0,\"material\":0,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":0,\"profit\":0,\"ownerCost\":0,\"assistantCost\":0,\"known\":{\"sale\":0,\"material\":0,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":0,\"profit\":0,\"ownerCost\":0,\"assistantCost\":0},\"costItems\":[{\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"name\":\"对照清洗\",\"source\":\"售后 · 2026-11-18\",\"amount\":0,\"payer\":\"owner\",\"component\":\"fee\",\"calculation\":null}],\"laborAndFeeItems\":[{\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"name\":\"对照清洗\",\"source\":\"售后 · 2026-11-18\",\"amount\":0,\"payer\":\"owner\",\"component\":\"fee\",\"calculation\":null}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"独立售后支出,计入所选日期利润\",\"balance\":0,\"revision\":1,\"reviewed_revision\":1}],\"payerCosts\":{\"assistant\":{\"payer\":\"assistant\",\"name\":\"娜娜\",\"goods\":974200,\"paidFees\":2050,\"total\":976250,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":4000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":200,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\"},{\"kind\":\"paid\",\"name\":\"快递\",\"source\":\"整单费用 · 实付 2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"component\":\"fee\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\",\"calculation\":null,\"paidDate\":\"2026-11-18\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金耳钉\",\"amount\":70000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118008\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"status\":\"recorded\"},{\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"name\":\"对照改圈\",\"source\":\"售后 · 2026-11-18\",\"amount\":850,\"payer\":\"assistant\",\"component\":\"fee\",\"calculation\":null,\"project\":\"对照改圈\",\"number\":\"售后\",\"paper_number\":\"\",\"date\":\"2026-11-18\",\"customer\":\"对照售后客户\",\"status\":\"recorded\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:09.000Z\",\"purchaseAmount\":900000,\"kind\":\"goods\",\"component\":\"material\",\"materialPoolId\":\"2026-11-18\",\"name\":\"日料池采购\",\"source\":\"日料池 2026-11-18 · 实付 2026-11-18\",\"paidDate\":\"2026-11-18\",\"quantity\":10000,\"calculation\":null,\"status\":\"recorded\",\"actualOutlay\":true}]},\"owner\":{\"payer\":\"owner\",\"name\":\"麦麦\",\"goods\":4271000,\"paidFees\":3531,\"total\":4274531,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999\",\"amount\":286000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":{\"rate\":88000,\"quantity\":3250},\"component\":\"material\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 金镶玉吊坠\",\"amount\":150000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118003\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"status\":\"recorded\"},{\"kind\":\"paid\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"整单费用 · 实付 2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"component\":\"fee\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118003\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"status\":\"recorded\",\"calculation\":null,\"paidDate\":\"2026-11-18\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金手镯\",\"amount\":900000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118005\",\"date\":\"2026-11-18\",\"customer\":\"对照草稿客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金项链\",\"amount\":350000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"date\":\"2026-11-18\",\"customer\":\"对照分步客户\",\"status\":\"recorded\"},{\"kind\":\"paid\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"整单费用 · 实付 2026-11-18\",\"amount\":1800,\"payer\":\"owner\",\"component\":\"fee\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"date\":\"2026-11-18\",\"customer\":\"对照分步客户\",\"status\":\"recorded\",\"calculation\":null,\"paidDate\":\"2026-11-18\"},{\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"name\":\"对照清洗\",\"source\":\"售后 · 2026-11-18\",\"amount\":0,\"payer\":\"owner\",\"component\":\"fee\",\"calculation\":null,\"project\":\"对照清洗\",\"number\":\"售后\",\"paper_number\":\"\",\"date\":\"2026-11-18\",\"customer\":\"对照售后客户二\",\"status\":\"recorded\"},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"goods\",\"amount\":255000,\"payer\":\"owner\",\"source\":\"锁价采购 · 实付 2026-11-18\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\",\"name\":\"锁价料费\",\"materialSource\":\"original\",\"paidDate\":\"2026-11-18\",\"calculation\":{\"rate\":85000,\"quantity\":3000},\"status\":\"recorded\",\"actualOutlay\":true},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"goods\",\"amount\":255000,\"payer\":\"owner\",\"source\":\"锁价采购 · 实付 2026-11-18\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\",\"name\":\"锁价料费\",\"materialSource\":\"original\",\"paidDate\":\"2026-11-18\",\"calculation\":{\"rate\":85000,\"quantity\":3000},\"status\":\"recorded\",\"actualOutlay\":true},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"goods\",\"amount\":255000,\"payer\":\"owner\",\"source\":\"锁价采购 · 实付 2026-11-18\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\",\"name\":\"锁价料费\",\"materialSource\":\"original\",\"paidDate\":\"2026-11-18\",\"calculation\":{\"rate\":85000,\"quantity\":3000},\"status\":\"recorded\",\"actualOutlay\":true},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\",\"purchaseAmount\":1820000,\"kind\":\"goods\",\"component\":\"material\",\"materialPoolId\":\"2026-11-18\",\"name\":\"日料池采购\",\"source\":\"日料池 2026-11-18 · 实付 2026-11-18\",\"paidDate\":\"2026-11-18\",\"quantity\":20000,\"calculation\":null,\"status\":\"recorded\",\"actualOutlay\":true}]},\"assistant2\":{\"payer\":\"assistant2\",\"name\":\"小昊\",\"goods\":1021000,\"paidFees\":0,\"total\":1021000,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金999\",\"amount\":180000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118002\",\"date\":\"2026-11-18\",\"customer\":\"对照客户乙\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 2 · 纯银925\",\"amount\":3000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118002\",\"date\":\"2026-11-18\",\"customer\":\"对照客户乙\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金戒指\",\"amount\":130000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118006\",\"date\":\"2026-11-18\",\"customer\":\"对照取消客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":440000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"material\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金手链\",\"amount\":10000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"status\":\"recorded\"},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"goods\",\"amount\":258000,\"payer\":\"assistant2\",\"source\":\"锁价采购 · 实付 2026-11-18\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\",\"name\":\"锁价料费\",\"materialSource\":\"original\",\"paidDate\":\"2026-11-18\",\"calculation\":{\"rate\":86000,\"quantity\":3000},\"status\":\"recorded\",\"actualOutlay\":true}]}},\"orderPayerCosts\":{\"assistant\":{\"payer\":\"assistant\",\"name\":\"娜娜\",\"goods\":346200,\"paidFees\":2050,\"total\":348250,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":4000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":200,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\"},{\"kind\":\"paid\",\"name\":\"快递\",\"source\":\"整单费用 · 实付 2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"component\":\"fee\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\",\"calculation\":null,\"paidDate\":\"2026-11-18\"},{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999 · 2026-11-18日购料\",\"amount\":272000,\"payer\":\"assistant\",\"excluded\":false,\"materialPoolId\":\"2026-11-18\",\"materialPoolRevision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\",\"calculation\":{\"rate\":90667,\"quantity\":3000,\"weighted\":true},\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金耳钉\",\"amount\":70000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118008\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"status\":\"recorded\"},{\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"name\":\"对照改圈\",\"source\":\"售后 · 2026-11-18\",\"amount\":850,\"payer\":\"assistant\",\"component\":\"fee\",\"calculation\":null,\"project\":\"对照改圈\",\"number\":\"售后\",\"paper_number\":\"\",\"date\":\"2026-11-18\",\"customer\":\"对照售后客户\",\"status\":\"recorded\"}]},\"owner\":{\"payer\":\"owner\",\"name\":\"麦麦\",\"goods\":1686000,\"paidFees\":3531,\"total\":1689531,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999\",\"amount\":286000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":{\"rate\":88000,\"quantity\":3250},\"component\":\"material\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 金镶玉吊坠\",\"amount\":150000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118003\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"status\":\"recorded\"},{\"kind\":\"paid\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"整单费用 · 实付 2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"component\":\"fee\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118003\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"status\":\"recorded\",\"calculation\":null,\"paidDate\":\"2026-11-18\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金手镯\",\"amount\":900000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118005\",\"date\":\"2026-11-18\",\"customer\":\"对照草稿客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金项链\",\"amount\":350000,\"payer\":\"owner\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"date\":\"2026-11-18\",\"customer\":\"对照分步客户\",\"status\":\"recorded\"},{\"kind\":\"paid\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"整单费用 · 实付 2026-11-18\",\"amount\":1800,\"payer\":\"owner\",\"component\":\"fee\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"date\":\"2026-11-18\",\"customer\":\"对照分步客户\",\"status\":\"recorded\",\"calculation\":null,\"paidDate\":\"2026-11-18\"},{\"kind\":\"afterSale\",\"after_sale_id\":\"\",\"name\":\"对照清洗\",\"source\":\"售后 · 2026-11-18\",\"amount\":0,\"payer\":\"owner\",\"component\":\"fee\",\"calculation\":null,\"project\":\"对照清洗\",\"number\":\"售后\",\"paper_number\":\"\",\"date\":\"2026-11-18\",\"customer\":\"对照售后客户二\",\"status\":\"recorded\"}]},\"assistant2\":{\"payer\":\"assistant2\",\"name\":\"小昊\",\"goods\":763000,\"paidFees\":0,\"total\":763000,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金999\",\"amount\":180000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118002\",\"date\":\"2026-11-18\",\"customer\":\"对照客户乙\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 2 · 纯银925\",\"amount\":3000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118002\",\"date\":\"2026-11-18\",\"customer\":\"对照客户乙\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金戒指\",\"amount\":130000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118006\",\"date\":\"2026-11-18\",\"customer\":\"对照取消客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":440000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"material\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金手链\",\"amount\":10000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"status\":\"recorded\"}]}},\"peopleCount\":{\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"baselineDate\":\"2026-11-17\",\"mode\":\"daily-total\",\"assistant1\":{\"total\":5,\"endTotal\":5,\"baselineTotal\":null,\"baselineDate\":null,\"netChange\":null,\"netChangeReason\":\"missing-previous\",\"recordedDays\":1},\"assistant2\":{\"total\":3,\"endTotal\":3,\"baselineTotal\":null,\"baselineDate\":null,\"netChange\":null,\"netChangeReason\":\"missing-previous\",\"recordedDays\":1}},\"priceLockActivity\":{\"basis\":\"eventDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"customerCash\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":80000,\"account\":\"麦麦微信\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":120000,\"account\":\"助理支付宝\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:02:02.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null}],\"orderPayments\":[],\"materialOutlays\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\"},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\"},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\"},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\"}],\"directOutlays\":[],\"deliveryGoodsOutlays\":[],\"receipts\":{\"receipt\":520000,\"refund\":0,\"net\":520000,\"channels\":[{\"channel\":\"wechat\",\"name\":\"微信\",\"receipt\":400000,\"refund\":0,\"net\":400000},{\"channel\":\"alipay\",\"name\":\"支付宝\",\"receipt\":120000,\"refund\":0,\"net\":120000},{\"channel\":\"cash\",\"name\":\"现金\",\"receipt\":0,\"refund\":0,\"net\":0}],\"accounts\":[{\"account\":\"助理微信\",\"receipt\":270000,\"refund\":0,\"net\":270000},{\"account\":\"助理支付宝\",\"receipt\":120000,\"refund\":0,\"net\":120000},{\"account\":\"助理现金\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦微信\",\"receipt\":80000,\"refund\":0,\"net\":80000},{\"account\":\"麦麦支付宝\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦现金\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"助理2微信\",\"receipt\":50000,\"refund\":0,\"net\":50000},{\"account\":\"助理2支付宝\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"助理2现金\",\"receipt\":0,\"refund\":0,\"net\":0}],\"paymentCount\":4,\"orderCount\":4},\"payerOutlays\":{\"owner\":{\"payer\":\"owner\",\"material\":765000,\"goods\":765000,\"paidFees\":0,\"total\":765000},\"assistant\":{\"payer\":\"assistant\",\"material\":0,\"goods\":0,\"paidFees\":0,\"total\":0},\"assistant2\":{\"payer\":\"assistant2\",\"material\":258000,\"goods\":258000,\"paidFees\":0,\"total\":258000}},\"summary\":{\"receipt\":520000,\"refund\":0,\"net\":520000,\"materialOutlay\":1023000,\"goodsOutlay\":1023000,\"feeOutlay\":0,\"ownerOutlay\":765000,\"assistantOutlay\":0,\"assistant2Outlay\":258000,\"totalOutlay\":1023000,\"eventCount\":8,\"lockCount\":4}},\"outlayGoods\":6266200,\"outlayExpense\":5581,\"outlayTotal\":6271781,\"receiptsByOrderDate\":{\"basis\":\"orderDate\",\"filterScope\":\"matchingOrders\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"receipt\":3788763,\"refund\":0,\"net\":3788763,\"channels\":[{\"channel\":\"wechat\",\"name\":\"微信\",\"receipt\":1221100,\"refund\":0,\"net\":1221100},{\"channel\":\"alipay\",\"name\":\"支付宝\",\"receipt\":519163,\"refund\":0,\"net\":519163},{\"channel\":\"cash\",\"name\":\"现金\",\"receipt\":1460000,\"refund\":0,\"net\":1460000},{\"channel\":\"credit_card\",\"name\":\"信用卡\",\"receipt\":588500,\"refund\":0,\"net\":588500}],\"accounts\":[{\"account\":\"助理微信\",\"receipt\":591100,\"refund\":0,\"net\":591100},{\"account\":\"助理支付宝\",\"receipt\":202000,\"refund\":0,\"net\":202000},{\"account\":\"助理现金\",\"receipt\":330000,\"refund\":0,\"net\":330000},{\"account\":\"麦麦微信\",\"receipt\":80000,\"refund\":0,\"net\":80000},{\"account\":\"麦麦支付宝\",\"receipt\":100000,\"refund\":0,\"net\":100000},{\"account\":\"麦麦现金\",\"receipt\":980000,\"refund\":0,\"net\":980000},{\"account\":\"麦麦信用卡\",\"receipt\":588500,\"refund\":0,\"net\":588500},{\"account\":\"助理2微信\",\"receipt\":550000,\"refund\":0,\"net\":550000},{\"account\":\"助理2支付宝\",\"receipt\":217163,\"refund\":0,\"net\":217163},{\"account\":\"助理2现金\",\"receipt\":150000,\"refund\":0,\"net\":150000}],\"paymentCount\":14,\"orderCount\":13},\"totalCost\":2800781,\"recipientReceipts\":{\"assistant\":{\"recipient\":\"assistant\",\"name\":\"娜娜\",\"receipt\":1123100,\"refund\":0,\"net\":1123100,\"items\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"customer\":\"对照客户甲\",\"reference\":\"开单时已全额收款\",\"note\":\"客户单备注\",\"created\":\"2026-11-18T02:01:17.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"customer\":\"对照客户丁\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:20.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118008\",\"customer\":\"对照驳回客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:26.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"order_id\":null,\"price_lock_id\":\"\",\"order_date\":null,\"number\":\"SJ20261118-\",\"paper_number\":null,\"customer\":\"对照锁价客户\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-18T02:01:53.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":120000,\"account\":\"助理支付宝\",\"order_id\":null,\"price_lock_id\":\"\",\"order_date\":null,\"number\":\"SJ20261118-\",\"paper_number\":null,\"customer\":\"对照锁价客户二\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-18T02:02:02.000Z\"}]},\"owner\":{\"recipient\":\"owner\",\"name\":\"麦麦\",\"receipt\":1748500,\"refund\":0,\"net\":1748500,\"items\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118003\",\"customer\":\"对照客户丙\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:19.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":980000,\"account\":\"麦麦现金\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118005\",\"customer\":\"对照草稿客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:23.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":100000,\"account\":\"麦麦支付宝\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"customer\":\"对照分步客户\",\"reference\":\"定金\",\"note\":\"\",\"created\":\"2026-11-18T02:01:31.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":300000,\"account\":\"麦麦信用卡\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"customer\":\"对照分步客户\",\"reference\":\"尾款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:33.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":80000,\"account\":\"麦麦微信\",\"order_id\":null,\"price_lock_id\":\"\",\"order_date\":null,\"number\":\"SJ20261118-\",\"paper_number\":null,\"customer\":\"对照锁价客户四\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-18T02:01:56.000Z\"}]},\"assistant2\":{\"recipient\":\"assistant2\",\"name\":\"小昊\",\"receipt\":917163,\"refund\":0,\"net\":917163,\"items\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":217163,\"account\":\"助理2支付宝\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118002\",\"customer\":\"对照客户乙\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:18.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":150000,\"account\":\"助理2现金\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118006\",\"customer\":\"对照取消客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:24.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"customer\":\"对照售后订单客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"order_id\":null,\"price_lock_id\":\"\",\"order_date\":null,\"number\":\"SJ20261118-\",\"paper_number\":null,\"customer\":\"对照锁价客户三\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-18T02:01:55.000Z\"}]}},\"ownershipReceipts\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"receipt\":1460000,\"refund\":0,\"net\":1460000,\"accounts\":[{\"account\":\"麦麦现金\",\"recipient\":\"owner\",\"channel\":\"cash\",\"receipt\":980000,\"refund\":0,\"net\":980000,\"entryCount\":1},{\"account\":\"麦麦支付宝\",\"recipient\":\"owner\",\"channel\":\"alipay\",\"receipt\":100000,\"refund\":0,\"net\":100000,\"entryCount\":1},{\"account\":\"麦麦信用卡\",\"recipient\":\"owner\",\"channel\":\"credit_card\",\"receipt\":300000,\"refund\":0,\"net\":300000,\"entryCount\":1},{\"account\":\"麦麦微信\",\"recipient\":\"owner\",\"channel\":\"wechat\",\"receipt\":80000,\"refund\":0,\"net\":80000,\"entryCount\":1}],\"items\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":980000,\"account\":\"麦麦现金\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118005\",\"customer\":\"对照草稿客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:23.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":100000,\"account\":\"麦麦支付宝\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"customer\":\"对照分步客户\",\"reference\":\"定金\",\"note\":\"\",\"created\":\"2026-11-18T02:01:31.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":300000,\"account\":\"麦麦信用卡\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118009\",\"customer\":\"对照分步客户\",\"reference\":\"尾款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:33.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":80000,\"account\":\"麦麦微信\",\"order_id\":null,\"price_lock_id\":\"\",\"order_date\":null,\"number\":\"SJ20261118-\",\"paper_number\":null,\"customer\":\"对照锁价客户四\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-18T02:01:56.000Z\"}]},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"receipt\":1411600,\"refund\":0,\"net\":1411600,\"accounts\":[{\"account\":\"助理微信\",\"recipient\":\"assistant\",\"channel\":\"wechat\",\"receipt\":591100,\"refund\":0,\"net\":591100,\"entryCount\":2},{\"account\":\"助理现金\",\"recipient\":\"assistant\",\"channel\":\"cash\",\"receipt\":330000,\"refund\":0,\"net\":330000,\"entryCount\":1},{\"account\":\"助理支付宝\",\"recipient\":\"assistant\",\"channel\":\"alipay\",\"receipt\":202000,\"refund\":0,\"net\":202000,\"entryCount\":2},{\"account\":\"麦麦信用卡\",\"recipient\":\"owner\",\"channel\":\"credit_card\",\"receipt\":288500,\"refund\":0,\"net\":288500,\"entryCount\":1}],\"items\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118001\",\"customer\":\"对照客户甲\",\"reference\":\"开单时已全额收款\",\"note\":\"客户单备注\",\"created\":\"2026-11-18T02:01:17.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118004\",\"customer\":\"对照客户丁\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:20.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118008\",\"customer\":\"对照驳回客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:26.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"order_id\":null,\"price_lock_id\":\"\",\"order_date\":null,\"number\":\"SJ20261118-\",\"paper_number\":null,\"customer\":\"对照锁价客户\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-18T02:01:53.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":120000,\"account\":\"助理支付宝\",\"order_id\":null,\"price_lock_id\":\"\",\"order_date\":null,\"number\":\"SJ20261118-\",\"paper_number\":null,\"customer\":\"对照锁价客户二\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-18T02:02:02.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118003\",\"customer\":\"对照客户丙\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:19.000Z\"}]},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"receipt\":917163,\"refund\":0,\"net\":917163,\"accounts\":[{\"account\":\"助理2支付宝\",\"recipient\":\"assistant2\",\"channel\":\"alipay\",\"receipt\":217163,\"refund\":0,\"net\":217163,\"entryCount\":1},{\"account\":\"助理2现金\",\"recipient\":\"assistant2\",\"channel\":\"cash\",\"receipt\":150000,\"refund\":0,\"net\":150000,\"entryCount\":1},{\"account\":\"助理2微信\",\"recipient\":\"assistant2\",\"channel\":\"wechat\",\"receipt\":550000,\"refund\":0,\"net\":550000,\"entryCount\":2}],\"items\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":217163,\"account\":\"助理2支付宝\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118002\",\"customer\":\"对照客户乙\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:18.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":150000,\"account\":\"助理2现金\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118006\",\"customer\":\"对照取消客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:24.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"customer\":\"对照售后订单客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"order_id\":null,\"price_lock_id\":\"\",\"order_date\":null,\"number\":\"SJ20261118-\",\"paper_number\":null,\"customer\":\"对照锁价客户三\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-18T02:01:55.000Z\"}]}},\"ownershipBusiness\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"recordCount\":3,\"orderCount\":2,\"afterSaleCount\":1,\"draftCount\":0,\"sales\":1380000,\"netReceipts\":1460000,\"totalCost\":1251800,\"knownTotalCost\":1251800,\"selfCost\":1251800,\"knownSelfCost\":1251800,\"otherCost\":0,\"knownOtherCost\":0,\"profit\":128200,\"knownProfit\":128200,\"incomplete\":false,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"costByPayer\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"totalCost\":1251800,\"knownTotalCost\":1251800,\"missingCount\":0,\"pendingCount\":0},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0}},\"poolMaterial\":{\"mg\":0,\"amount\":0,\"knownAmount\":0,\"missingCount\":0,\"byPayer\":{\"owner\":{\"amount\":0,\"knownAmount\":0},\"assistant\":{\"amount\":0,\"knownAmount\":0},\"assistant2\":{\"amount\":0,\"knownAmount\":0}},\"hasPriceLocks\":false,\"days\":[],\"otherCosts\":{\"knownAmount\":1251800,\"amount\":1251800}},\"ownerAdvances\":{\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"days\":[{\"date\":\"2026-11-18\",\"items\":[{\"date\":\"2026-11-18\",\"kind\":\"order\",\"id\":\"\",\"number\":\"MM20261118-\",\"paperNumber\":\"20261118005\",\"customer\":\"对照草稿客户\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金手镯\",\"component\":\"unallocated\",\"poolId\":null,\"poolMaterial\":false,\"allocationPending\":false,\"amount\":900000,\"estimatedAmount\":null,\"status\":\"recorded\"},{\"date\":\"2026-11-18\",\"kind\":\"order\",\"id\":\"\",\"number\":\"MM20261118-\",\"paperNumber\":\"20261118009\",\"customer\":\"对照分步客户\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金项链\",\"component\":\"unallocated\",\"poolId\":null,\"poolMaterial\":false,\"allocationPending\":false,\"amount\":350000,\"estimatedAmount\":null,\"status\":\"recorded\"},{\"date\":\"2026-11-18\",\"kind\":\"order\",\"id\":\"\",\"number\":\"MM20261118-\",\"paperNumber\":\"20261118009\",\"customer\":\"对照分步客户\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"2026-11-18\",\"component\":\"fee\",\"poolId\":null,\"poolMaterial\":false,\"allocationPending\":false,\"amount\":1800,\"estimatedAmount\":null,\"status\":\"recorded\"}],\"knownAmount\":1251800,\"amount\":1251800,\"missingCount\":0,\"pendingCount\":0,\"poolAmount\":0,\"knownPoolAmount\":0,\"otherAmount\":1251800,\"knownOtherAmount\":1251800}]},\"currentAccount\":{\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"days\":[{\"date\":\"2026-11-18\",\"recordCount\":3,\"knownMaterialCost\":0,\"knownOtherCost\":1251800,\"knownProfit\":128200,\"ownerNetReceipts\":1460000,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"materialCost\":0,\"otherCost\":1251800,\"profit\":128200,\"knownAmount\":-80000,\"amount\":-80000}]},\"difference\":{\"amount\":80000,\"reconciled\":false,\"reasons\":[{\"code\":\"price_lock_timing\",\"text\":\"锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。\"}]},\"equation\":{\"basis\":\"sales\",\"revenue\":1380000,\"totalCost\":1251800,\"profit\":128200,\"complete\":true},\"settlement\":{\"available\":true,\"basis\":\"cumulative-through-date\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"dueOut\":0,\"dueIn\":647081,\"partial\":false,\"pendingCount\":0,\"legacyCount\":0,\"notice\":\"截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。\",\"counterparts\":[{\"member\":\"assistant\",\"name\":\"娜娜\",\"dueOut\":0,\"dueIn\":647081,\"openingDue\":0,\"periodNew\":-657081,\"periodTransferred\":-10000,\"closingDue\":-647081,\"offset\":290650,\"period\":{\"obligationNet\":-657081,\"transferred\":-10000,\"receivedForNet\":288500,\"advancedNet\":-945581}},{\"member\":\"assistant2\",\"name\":\"小昊\",\"dueOut\":0,\"dueIn\":0,\"openingDue\":0,\"periodNew\":0,\"periodTransferred\":0,\"closingDue\":0,\"offset\":0,\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0}}]},\"hasActivity\":true},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"recordCount\":5,\"orderCount\":4,\"afterSaleCount\":1,\"draftCount\":0,\"sales\":1021600,\"netReceipts\":1411600,\"totalCost\":785981,\"knownTotalCost\":785981,\"selfCost\":348250,\"knownSelfCost\":348250,\"otherCost\":437731,\"knownOtherCost\":437731,\"profit\":235619,\"knownProfit\":235619,\"incomplete\":false,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"costByPayer\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"totalCost\":437731,\"knownTotalCost\":437731,\"missingCount\":0,\"pendingCount\":0},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"totalCost\":348250,\"knownTotalCost\":348250,\"missingCount\":0,\"pendingCount\":0},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0}},\"poolMaterial\":{\"mg\":3000,\"amount\":272000,\"knownAmount\":272000,\"missingCount\":0,\"byPayer\":{\"owner\":{\"amount\":0,\"knownAmount\":0},\"assistant\":{\"amount\":272000,\"knownAmount\":272000},\"assistant2\":{\"amount\":0,\"knownAmount\":0}},\"hasPriceLocks\":false,\"days\":[{\"mg\":3000,\"amount\":272000,\"knownAmount\":272000,\"missingCount\":0,\"byPayer\":{\"owner\":{\"amount\":0,\"knownAmount\":0},\"assistant\":{\"amount\":272000,\"knownAmount\":272000},\"assistant2\":{\"amount\":0,\"knownAmount\":0}},\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"averageRate\":90667,\"sources\":[{\"kind\":\"public\",\"member\":null,\"priceLocked\":false,\"mg\":3000,\"averageRate\":90667,\"amount\":272000,\"knownAmount\":272000,\"missingCount\":0}]}],\"otherCosts\":{\"knownAmount\":513981,\"amount\":513981}},\"ownerAdvances\":{\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"days\":[{\"date\":\"2026-11-18\",\"items\":[{\"date\":\"2026-11-18\",\"kind\":\"order\",\"id\":\"\",\"number\":\"MM20261118-\",\"paperNumber\":\"20261118001\",\"customer\":\"对照客户甲\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999\",\"component\":\"material\",\"poolId\":null,\"poolMaterial\":false,\"allocationPending\":false,\"amount\":286000,\"estimatedAmount\":null,\"status\":\"recorded\"},{\"date\":\"2026-11-18\",\"kind\":\"order\",\"id\":\"\",\"number\":\"MM20261118-\",\"paperNumber\":\"20261118003\",\"customer\":\"对照客户丙\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 金镶玉吊坠\",\"component\":\"unallocated\",\"poolId\":null,\"poolMaterial\":false,\"allocationPending\":false,\"amount\":150000,\"estimatedAmount\":null,\"status\":\"recorded\"},{\"date\":\"2026-11-18\",\"kind\":\"order\",\"id\":\"\",\"number\":\"MM20261118-\",\"paperNumber\":\"20261118003\",\"customer\":\"对照客户丙\",\"name\":\"信用卡手续费(6‰)\",\"source\":\"2026-11-18\",\"component\":\"fee\",\"poolId\":null,\"poolMaterial\":false,\"allocationPending\":false,\"amount\":1731,\"estimatedAmount\":null,\"status\":\"recorded\"}],\"knownAmount\":437731,\"amount\":437731,\"missingCount\":0,\"pendingCount\":0,\"poolAmount\":0,\"knownPoolAmount\":0,\"otherAmount\":437731,\"knownOtherAmount\":437731}]},\"currentAccount\":{\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"days\":[{\"date\":\"2026-11-18\",\"recordCount\":5,\"knownMaterialCost\":286000,\"knownOtherCost\":151731,\"knownProfit\":235619,\"ownerNetReceipts\":288500,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"materialCost\":286000,\"otherCost\":151731,\"profit\":235619,\"knownAmount\":384850,\"amount\":384850}]},\"difference\":{\"amount\":390000,\"reconciled\":false,\"reasons\":[{\"code\":\"price_lock_timing\",\"text\":\"锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。\"}]},\"equation\":{\"basis\":\"sales\",\"revenue\":1021600,\"totalCost\":785981,\"profit\":235619,\"complete\":true},\"settlement\":{\"available\":true,\"basis\":\"cumulative-through-date\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"dueOut\":647081,\"dueIn\":0,\"partial\":false,\"pendingCount\":0,\"legacyCount\":0,\"notice\":\"截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。\",\"counterparts\":[{\"member\":\"owner\",\"name\":\"麦麦\",\"dueOut\":647081,\"dueIn\":0,\"openingDue\":0,\"periodNew\":657081,\"periodTransferred\":10000,\"closingDue\":647081,\"offset\":290650,\"period\":{\"obligationNet\":657081,\"transferred\":10000,\"receivedForNet\":-288500,\"advancedNet\":945581}},{\"member\":\"assistant2\",\"name\":\"小昊\",\"dueOut\":0,\"dueIn\":0,\"openingDue\":0,\"periodNew\":0,\"periodTransferred\":0,\"closingDue\":0,\"offset\":0,\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0}}]},\"hasActivity\":true},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"recordCount\":3,\"orderCount\":3,\"afterSaleCount\":0,\"draftCount\":0,\"sales\":867163,\"netReceipts\":917163,\"totalCost\":763000,\"knownTotalCost\":763000,\"selfCost\":763000,\"knownSelfCost\":763000,\"otherCost\":0,\"knownOtherCost\":0,\"profit\":104163,\"knownProfit\":104163,\"incomplete\":false,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"costByPayer\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"totalCost\":763000,\"knownTotalCost\":763000,\"missingCount\":0,\"pendingCount\":0}},\"poolMaterial\":{\"mg\":0,\"amount\":0,\"knownAmount\":0,\"missingCount\":0,\"byPayer\":{\"owner\":{\"amount\":0,\"knownAmount\":0},\"assistant\":{\"amount\":0,\"knownAmount\":0},\"assistant2\":{\"amount\":0,\"knownAmount\":0}},\"hasPriceLocks\":false,\"days\":[],\"otherCosts\":{\"knownAmount\":763000,\"amount\":763000}},\"ownerAdvances\":{\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"days\":[]},\"currentAccount\":{\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"days\":[{\"date\":\"2026-11-18\",\"recordCount\":3,\"knownMaterialCost\":0,\"knownOtherCost\":0,\"knownProfit\":104163,\"ownerNetReceipts\":0,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"materialCost\":0,\"otherCost\":0,\"profit\":104163,\"knownAmount\":104163,\"amount\":104163}]},\"difference\":{\"amount\":50000,\"reconciled\":false,\"reasons\":[{\"code\":\"price_lock_timing\",\"text\":\"锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。\"}]},\"equation\":{\"basis\":\"sales\",\"revenue\":867163,\"totalCost\":763000,\"profit\":104163,\"complete\":true},\"settlement\":{\"available\":true,\"basis\":\"cumulative-through-date\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"dueOut\":0,\"dueIn\":0,\"partial\":false,\"pendingCount\":0,\"legacyCount\":0,\"notice\":\"截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。\",\"counterparts\":[{\"member\":\"owner\",\"name\":\"麦麦\",\"dueOut\":0,\"dueIn\":0,\"openingDue\":0,\"periodNew\":0,\"periodTransferred\":0,\"closingDue\":0,\"offset\":0,\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0}},{\"member\":\"assistant\",\"name\":\"娜娜\",\"dueOut\":0,\"dueIn\":0,\"openingDue\":0,\"periodNew\":0,\"periodTransferred\":0,\"closingDue\":0,\"offset\":0,\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0}}]},\"hasActivity\":true}},\"dailyProfits\":{\"basis\":\"orderDate\",\"from\":\"2026-11-18\",\"date\":\"2026-11-18\",\"rows\":[{\"recordCount\":3,\"orderCount\":2,\"afterSaleCount\":1,\"draftCount\":0,\"sales\":1380000,\"knownTotalCost\":1251800,\"knownProfit\":128200,\"unknownCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"date\":\"2026-11-18\",\"member\":\"owner\",\"name\":\"麦麦\",\"totalCost\":1251800,\"profit\":128200},{\"recordCount\":5,\"orderCount\":4,\"afterSaleCount\":1,\"draftCount\":0,\"sales\":1021600,\"knownTotalCost\":785981,\"knownProfit\":235619,\"unknownCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"date\":\"2026-11-18\",\"member\":\"assistant\",\"name\":\"娜娜\",\"totalCost\":785981,\"profit\":235619},{\"recordCount\":3,\"orderCount\":3,\"afterSaleCount\":0,\"draftCount\":0,\"sales\":867163,\"knownTotalCost\":763000,\"knownProfit\":104163,\"unknownCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"date\":\"2026-11-18\",\"member\":\"assistant2\",\"name\":\"小昊\",\"totalCost\":763000,\"profit\":104163}],\"summary\":{\"recordCount\":11,\"orderCount\":9,\"afterSaleCount\":2,\"draftCount\":0,\"sales\":3268763,\"knownTotalCost\":2800781,\"knownProfit\":467982,\"unknownCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"totalCost\":2800781,\"profit\":467982}},\"dailyFunds\":{\"date\":\"2026-11-18\",\"from\":\"2026-11-18\",\"team\":{\"from\":\"2026-11-18\",\"to\":\"2026-11-18\",\"date\":\"2026-11-18\",\"members\":[{\"id\":\"owner\",\"name\":\"麦麦\"},{\"id\":\"assistant\",\"name\":\"娜娜\"},{\"id\":\"assistant2\",\"name\":\"小昊\"}],\"balances\":[{\"member\":\"owner\",\"receipts\":1748500,\"refunds\":0,\"outlays\":4274531,\"transferIn\":10000,\"transferOut\":0,\"openingChange\":0,\"periodChange\":-2516031,\"cumulativeChange\":-2516031,\"cashBalance\":-2516031,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"},{\"member\":\"assistant\",\"receipts\":1123100,\"refunds\":0,\"outlays\":978400,\"transferIn\":0,\"transferOut\":10000,\"openingChange\":0,\"periodChange\":134700,\"cumulativeChange\":134700,\"cashBalance\":134700,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"},{\"member\":\"assistant2\",\"receipts\":917163,\"refunds\":0,\"outlays\":1021000,\"transferIn\":0,\"transferOut\":0,\"openingChange\":0,\"periodChange\":-103837,\"cumulativeChange\":-103837,\"cashBalance\":-103837,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"}],\"pairs\":[{\"id\":\"owner:assistant\",\"members\":[\"owner\",\"assistant\"],\"net\":-647081,\"obligationNet\":-657081,\"transferred\":-10000,\"receivedForNet\":288500,\"advancedNet\":-945581,\"offset\":290650,\"due\":647081,\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"direction\":\"transfer\",\"period\":{\"obligationNet\":-657081,\"transferred\":-10000,\"receivedForNet\":288500,\"advancedNet\":-945581},\"entries\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":286000,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":288500,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":1731,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":150000,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000,\"revision\":1,\"sourceKind\":\"price_lock\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000,\"revision\":1,\"sourceKind\":\"price_lock\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照邮寄\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":1500,\"revision\":1,\"sourceKind\":\"reimbursement\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照包装\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":650,\"revision\":1,\"sourceKind\":\"reimbursement\",\"sourceId\":\"\"}]},{\"id\":\"owner:assistant2\",\"members\":[\"owner\",\"assistant2\"],\"net\":0,\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0,\"offset\":0,\"due\":0,\"fromMember\":null,\"toMember\":null,\"direction\":\"none\",\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0},\"entries\":[]},{\"id\":\"assistant:assistant2\",\"members\":[\"assistant\",\"assistant2\"],\"net\":0,\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0,\"offset\":0,\"due\":0,\"fromMember\":null,\"toMember\":null,\"direction\":\"none\",\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0},\"entries\":[]}],\"entries\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":286000,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":288500,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":1731,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":150000,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000,\"revision\":1,\"sourceKind\":\"price_lock\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000,\"revision\":1,\"sourceKind\":\"price_lock\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照邮寄\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":1500,\"revision\":1,\"sourceKind\":\"reimbursement\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照包装\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":650,\"revision\":1,\"sourceKind\":\"reimbursement\",\"sourceId\":\"\"}],\"transfers\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":10000,\"note\":\"对照转账\",\"actor\":\"麦麦\"}],\"revision\":\"70efa07e17ce0a2addce8e0bd7b8a0453efd7f3a18845ff4958679e7c7e5ec8e\",\"pending\":[],\"legacyReadOnly\":true,\"cutover\":\"仅已启用的三人新账事件;旧结算不自动迁入\",\"transfersDeducted\":true},\"readOnly\":false,\"hasRecords\":true,\"pendingCount\":0,\"legacyReadOnly\":true,\"transfersNotDeducted\":false,\"reimbursements\":[],\"approvedReimbursements\":0,\"ready\":true,\"transferAmount\":null,\"direction\":null,\"sources\":{\"revision\":\"70efa07e17ce0a2addce8e0bd7b8a0453efd7f3a18845ff4958679e7c7e5ec8e\",\"total\":0,\"items\":[]},\"confirmation\":null,\"actualOutlay\":null,\"missingDates\":[],\"staleDates\":[],\"days\":[]},\"reportRevision\":\"a135c4ad78c72f87ac985349eae3e0fbc880983c86af81708b22bedc856ff5bc\"}", + "麦麦", + "2026-11-18T02:02:50.000Z", + 1 + ], + [ + "2026-11-19", + "{\"date\":\"2026-11-19\",\"from\":\"2026-11-19\",\"sales\":1239792,\"goods\":1056028,\"knownGoods\":1056028,\"expense\":1400,\"profit\":182364,\"knownProfit\":182364,\"materialCostPending\":false,\"pendingMaterialCount\":0,\"materialPoolActivity\":{\"basis\":\"purchaseDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\"}],\"payerOutlays\":{\"owner\":{\"payer\":\"owner\",\"material\":0,\"goods\":0,\"paidFees\":0,\"total\":0,\"purchaseCount\":0},\"assistant\":{\"payer\":\"assistant\",\"material\":460000,\"goods\":460000,\"paidFees\":0,\"total\":460000,\"purchaseCount\":1},\"assistant2\":{\"payer\":\"assistant2\",\"material\":370000,\"goods\":370000,\"paidFees\":0,\"total\":370000,\"purchaseCount\":1}},\"summary\":{\"purchaseCount\":2,\"poolCount\":1,\"mg\":9000,\"materialOutlay\":830000,\"purchaseValue\":830000,\"ownerOutlay\":0,\"assistantOutlay\":460000,\"assistant2Outlay\":370000,\"totalOutlay\":830000,\"eventCount\":2}},\"materialPoolSettlement\":{\"legacyReadOnly\":true,\"settlementDue\":0,\"knownSettlementDue\":0,\"pendingCount\":0,\"pools\":[]},\"delivered\":6,\"returns\":1,\"accounts\":[{\"account\":\"助理微信\",\"receipt\":610800,\"refund\":0,\"net\":610800},{\"account\":\"助理支付宝\",\"receipt\":16200,\"refund\":0,\"net\":16200},{\"account\":\"助理现金\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦微信\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦支付宝\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦现金\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"助理2微信\",\"receipt\":432792,\"refund\":0,\"net\":432792},{\"account\":\"助理2支付宝\",\"receipt\":0,\"refund\":90000,\"net\":-90000},{\"account\":\"助理2现金\",\"receipt\":0,\"refund\":0,\"net\":0}],\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":432792,\"account\":\"助理2微信\",\"reference\":\"置换差额实际收款 · HS202611190001\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":130800,\"account\":\"助理微信\",\"reference\":\"置换差额实际收款 · HS202611190002\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:57.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119014\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":-210000,\"account\":\"助理微信\",\"reference\":\"更正冲回:取消审批作废;当天录错\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:59.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119014\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":220000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:40.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:51.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119016\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":16200,\"account\":\"助理支付宝\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:28.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"customer\":\"对照售后订单客户\",\"order_date\":\"2026-11-18\",\"order_after_sale\":true}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":286200,\"goods\":267000,\"expense\":600,\"profit\":18600,\"created\":\"2026-11-19T02:01:28.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":432792,\"goods\":366720,\"expense\":0,\"profit\":66072,\"created\":\"2026-11-19T02:01:32.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":130800,\"goods\":106410,\"expense\":0,\"profit\":24390,\"created\":\"2026-11-19T02:01:33.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:48.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"直接费用\",\"sales\":0,\"goods\":0,\"expense\":800,\"profit\":-800,\"created\":\"2026-11-19T02:01:52.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:57.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119014\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"订单录错作废冲回\",\"sales\":-210000,\"goods\":-180000,\"expense\":0,\"profit\":-30000,\"created\":\"2026-11-19T02:01:59.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119014\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":220000,\"goods\":181898,\"expense\":0,\"profit\":38102,\"created\":\"2026-11-19T02:02:40.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":50000,\"goods\":42000,\"expense\":0,\"profit\":8000,\"created\":\"2026-11-19T02:02:51.000Z\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119016\",\"order_date\":\"2026-11-19\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"订单退货退款售后\",\"sales\":-90000,\"goods\":-88000,\"expense\":0,\"profit\":-2000,\"created\":\"2026-11-19T02:01:05.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\"}],\"afterSales\":[],\"afterSaleCount\":0,\"inventory\":[{\"pocket\":\"现货\",\"mg\":61950,\"reserved\":0,\"available\":61950},{\"pocket\":\"金料\",\"mg\":56000,\"reserved\":0,\"available\":56000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":12843,\"reserved\":0,\"available\":12843},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"warnings\":[{\"id\":\"\",\"number\":\"MM20261119-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261119-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261119-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261119-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261119-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261119-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261119-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"},{\"id\":\"\",\"number\":\"MM20261118-\",\"message\":\"有记录待麦麦复核\"}],\"unsettled\":[],\"settlementDue\":0,\"knownSettlementDue\":0,\"customerBalance\":0,\"close\":null,\"basis\":\"orderDate\",\"summary\":{\"orderCount\":7,\"completedCount\":6,\"draftCount\":0,\"confirmedCount\":0,\"returnedCount\":1,\"cancelledCount\":1,\"incompleteCount\":0,\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"unknownCostCount\":0,\"unknownProfitCount\":0,\"legacyUnallocatedCount\":2,\"sale\":1239792,\"material\":822028,\"laborAndFees\":13400,\"unallocated\":222000,\"totalCost\":1057428,\"profit\":182364,\"ownerCost\":255600,\"assistantCost\":523108,\"assistant2Cost\":278720,\"mg\":27600,\"pieces\":0,\"knownCounts\":{\"sale\":7,\"material\":5,\"laborAndFees\":5,\"unallocated\":7,\"totalCost\":7,\"profit\":7,\"ownerCost\":7,\"assistantCost\":7,\"assistant2Cost\":7},\"unknownCounts\":{\"sale\":0,\"material\":2,\"laborAndFees\":2,\"unallocated\":0,\"totalCost\":0,\"profit\":0,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":0},\"partial\":true,\"afterSaleCount\":1,\"recordCount\":8},\"orderRows\":[{\"id\":\"\",\"order_id\":\"\",\"kind\":\"orderAfterSale\",\"orderAfterSale\":{\"orderId\":\"\",\"date\":\"2026-11-19\",\"reason\":\"客户退回一件\",\"deductionReason\":\"客户确认扣费\",\"refund\":{\"amount\":90000,\"account\":\"助理2支付宝\",\"payer\":\"assistant2\",\"reference\":\"\"},\"expenses\":[],\"original\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":{\"id\":\"\",\"status\":\"approved\",\"action\":\"return\",\"action_label\":\"订单售后\",\"order_revision\":4,\"reason\":\"客户退回一件\",\"requester_name\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:05.000Z\",\"note\":\"实物已收回\"},\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"originalJournal\":{\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}],\"order_id\":\"\",\"created\":\"2026-11-19T02:01:05.000Z\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"order_date\":\"2026-11-18\",\"member\":\"assistant2\"},\"member\":\"assistant2\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-19\",\"order_date\":\"2026-11-18\",\"created\":\"2026-11-19T02:01:05.000Z\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"status\":\"after_sale\",\"note\":\"\",\"project\":\"订单售后\",\"types\":[\"订单售后\"],\"mg\":0,\"summaryMg\":0,\"pieces\":0,\"originalSale\":500000,\"sale\":-90000,\"material\":-88000,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":-88000,\"profit\":-2000,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":-88000,\"known\":{\"sale\":-90000,\"material\":-88000,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":-88000,\"profit\":-2000,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":-88000},\"costItems\":[{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"售后收回金料成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":-88000,\"payer\":\"assistant2\",\"nonCash\":true,\"materialPoolId\":\"2026-11-19\",\"calculation\":null}],\"laborAndFeeItems\":[],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"按售后发生日调整;回收成本不属于新付款\",\"balance\":0,\"revision\":1,\"reviewed_revision\":1},{\"id\":\"\",\"member\":\"assistant\",\"funds_mode\":\"team\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"date\":\"2026-11-19\",\"created\":\"2026-11-19T02:01:28.000Z\",\"price_lock_id\":\"\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"status\":\"delivered\",\"note\":\"锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算\",\"types\":[\"货盘现货\"],\"mg\":3100,\"summaryMg\":3100,\"pieces\":0,\"originalSale\":286200,\"sale\":286200,\"material\":264000,\"laborAndFees\":3600,\"unallocated\":0,\"totalCost\":267600,\"profit\":18600,\"ownerCost\":255600,\"assistantCost\":12000,\"assistant2Cost\":0,\"known\":{\"sale\":286200,\"material\":264000,\"laborAndFees\":3600,\"unallocated\":0,\"totalCost\":267600,\"profit\":18600,\"ownerCost\":255600,\"assistantCost\":12000,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999 · 原锁价采购\",\"amount\":255000,\"payer\":\"owner\",\"excluded\":false,\"priceLockSource\":\"original\",\"calculation\":{\"rate\":85000,\"quantity\":3000}},{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999 · 补重采购\",\"amount\":9000,\"payer\":\"assistant\",\"excluded\":false,\"priceLockSource\":\"extra\",\"calculation\":{\"rate\":90000,\"quantity\":100}},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":3000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"},{\"kind\":\"paid\",\"name\":\"实际快递\",\"source\":\"2026-11-19\",\"amount\":600,\"payer\":\"owner\",\"component\":\"fee\"}],\"laborAndFeeItems\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":3000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"},{\"kind\":\"paid\",\"name\":\"实际快递\",\"source\":\"2026-11-19\",\"amount\":600,\"payer\":\"owner\",\"component\":\"fee\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"\",\"balance\":0,\"revision\":3,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant2\",\"funds_mode\":\"team\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"date\":\"2026-11-19\",\"created\":\"2026-11-19T02:01:32.000Z\",\"recovery_id\":\"\",\"recovery_mode\":\"exchange\",\"nonCashOffset\":0,\"cashPaid\":0,\"netSettlement\":432792,\"recovery_immutable_reason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\",\"customer\":\"对照换货客户\",\"salesperson\":\"小昊\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘现货\"],\"mg\":12000,\"summaryMg\":12000,\"pieces\":0,\"originalSale\":432792,\"sale\":432792,\"material\":360720,\"laborAndFees\":6000,\"unallocated\":0,\"totalCost\":366720,\"profit\":66072,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":366720,\"known\":{\"sale\":432792,\"material\":360720,\"laborAndFees\":6000,\"unallocated\":0,\"totalCost\":366720,\"profit\":66072,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":366720},\"costItems\":[{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":360720,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":{\"rate\":90000,\"quantity\":4008},\"component\":\"material\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":6000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":{\"rate\":500,\"quantity\":12000},\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"laborAndFeeItems\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":6000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":{\"rate\":500,\"quantity\":12000},\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant\",\"funds_mode\":\"team\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"date\":\"2026-11-19\",\"created\":\"2026-11-19T02:01:33.000Z\",\"recovery_id\":\"\",\"recovery_mode\":\"exchange\",\"nonCashOffset\":0,\"cashPaid\":0,\"netSettlement\":130800,\"recovery_immutable_reason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\",\"customer\":\"对照换货客户二\",\"salesperson\":\"娜娜\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘现货\"],\"mg\":6000,\"summaryMg\":6000,\"pieces\":0,\"originalSale\":130800,\"sale\":130800,\"material\":103410,\"laborAndFees\":3000,\"unallocated\":0,\"totalCost\":106410,\"profit\":24390,\"ownerCost\":0,\"assistantCost\":106410,\"assistant2Cost\":0,\"known\":{\"sale\":130800,\"material\":103410,\"laborAndFees\":3000,\"unallocated\":0,\"totalCost\":106410,\"profit\":24390,\"ownerCost\":0,\"assistantCost\":106410,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":103410,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":{\"rate\":90000,\"quantity\":1149},\"component\":\"material\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":3000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":{\"rate\":500,\"quantity\":6000},\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"laborAndFeeItems\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":3000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":{\"rate\":500,\"quantity\":6000},\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant2\",\"funds_mode\":\"team\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"date\":\"2026-11-19\",\"created\":\"2026-11-19T02:01:48.000Z\",\"customer\":\"当天客户(改)\",\"salesperson\":\"娜娜\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘现货\"],\"mg\":2000,\"summaryMg\":2000,\"pieces\":0,\"originalSale\":210000,\"sale\":210000,\"material\":null,\"laborAndFees\":null,\"unallocated\":180000,\"totalCost\":180800,\"profit\":29200,\"ownerCost\":0,\"assistantCost\":180800,\"assistant2Cost\":0,\"known\":{\"sale\":210000,\"material\":0,\"laborAndFees\":800,\"unallocated\":180000,\"totalCost\":180800,\"profit\":29200,\"ownerCost\":0,\"assistantCost\":180800,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金吊坠\",\"amount\":180000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\"},{\"kind\":\"paid\",\"name\":\"当天快递\",\"source\":\"2026-11-19\",\"amount\":800,\"payer\":\"assistant\",\"component\":\"fee\"}],\"laborAndFeeItems\":[{\"kind\":\"paid\",\"name\":\"当天快递\",\"source\":\"2026-11-19\",\"amount\":800,\"payer\":\"assistant\",\"component\":\"fee\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":true,\"incomplete\":false,\"costHint\":\"原单货品成本未分项,计入未分项成本\",\"balance\":0,\"revision\":7,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant\",\"funds_mode\":\"team\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119014\",\"date\":\"2026-11-19\",\"created\":\"2026-11-19T02:01:57.000Z\",\"cancellationApproved\":{\"id\":\"\",\"status\":\"approved\",\"order_revision\":4,\"reason\":\"当天录错\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:01:59.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"direct\":true,\"operator_name\":\"助理\",\"executedAt\":\"2026-11-19T02:01:59.000Z\"},\"customer\":\"当天取消客户\",\"salesperson\":\"娜娜\",\"status\":\"cancelled\",\"note\":\"\",\"types\":[\"货盘现货\"],\"mg\":2000,\"summaryMg\":2000,\"pieces\":0,\"originalSale\":210000,\"sale\":0,\"material\":0,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":0,\"profit\":0,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":0,\"known\":{\"sale\":0,\"material\":0,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":0,\"profit\":0,\"ownerCost\":0,\"assistantCost\":0,\"assistant2Cost\":0},\"costItems\":[],\"laborAndFeeItems\":[],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留\",\"balance\":0,\"revision\":5,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant\",\"funds_mode\":\"team\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"date\":\"2026-11-19\",\"created\":\"2026-11-19T02:02:40.000Z\",\"materialPoolIds\":[\"2026-11-19\"],\"materialCostPending\":false,\"customer\":\"滚动料池客户\",\"salesperson\":\"娜娜\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"配货\"],\"mg\":2000,\"summaryMg\":2000,\"pieces\":0,\"originalSale\":220000,\"sale\":220000,\"material\":181898,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":181898,\"profit\":38102,\"ownerCost\":0,\"assistantCost\":181898,\"assistant2Cost\":0,\"known\":{\"sale\":220000,\"material\":181898,\"laborAndFees\":0,\"unallocated\":0,\"totalCost\":181898,\"profit\":38102,\"ownerCost\":0,\"assistantCost\":181898,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999 · 2026-11-19日购料\",\"amount\":181898,\"payer\":\"assistant\",\"excluded\":false,\"materialPoolId\":\"2026-11-19\",\"materialPoolRevision\":\"2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b\",\"calculation\":{\"rate\":90949,\"quantity\":2000,\"weighted\":true}},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"laborAndFeeItems\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\"}],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":false,\"incomplete\":false,\"costHint\":\"\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0},{\"id\":\"\",\"member\":\"assistant\",\"funds_mode\":\"team\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119016\",\"date\":\"2026-11-19\",\"created\":\"2026-11-19T02:02:51.000Z\",\"customer\":\"安全测试\",\"salesperson\":\"娜娜\",\"status\":\"delivered\",\"note\":\"\",\"types\":[\"货盘现货\"],\"mg\":500,\"summaryMg\":500,\"pieces\":0,\"originalSale\":50000,\"sale\":50000,\"material\":null,\"laborAndFees\":null,\"unallocated\":42000,\"totalCost\":42000,\"profit\":8000,\"ownerCost\":0,\"assistantCost\":42000,\"assistant2Cost\":0,\"known\":{\"sale\":50000,\"material\":0,\"laborAndFees\":0,\"unallocated\":42000,\"totalCost\":42000,\"profit\":8000,\"ownerCost\":0,\"assistantCost\":42000,\"assistant2Cost\":0},\"costItems\":[{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金转运珠\",\"amount\":42000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\"}],\"laborAndFeeItems\":[],\"pendingCostItems\":[],\"missingCosts\":0,\"pendingCosts\":0,\"unknownCosts\":0,\"legacyUnallocated\":true,\"incomplete\":false,\"costHint\":\"原单货品成本未分项,计入未分项成本\",\"balance\":0,\"revision\":4,\"reviewed_revision\":0}],\"payerCosts\":{\"assistant\":{\"payer\":\"assistant\",\"name\":\"娜娜\",\"goods\":800410,\"paidFees\":800,\"total\":801210,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":103410,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":{\"rate\":90000,\"quantity\":1149},\"component\":\"material\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":3000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":{\"rate\":500,\"quantity\":6000},\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金吊坠\",\"amount\":180000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"status\":\"recorded\"},{\"kind\":\"paid\",\"name\":\"当天快递\",\"source\":\"整单费用 · 实付 2026-11-19\",\"amount\":800,\"payer\":\"assistant\",\"component\":\"fee\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"status\":\"recorded\",\"calculation\":null,\"paidDate\":\"2026-11-19\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"date\":\"2026-11-19\",\"customer\":\"滚动料池客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"date\":\"2026-11-19\",\"customer\":\"滚动料池客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"date\":\"2026-11-19\",\"customer\":\"滚动料池客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金转运珠\",\"amount\":42000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119016\",\"date\":\"2026-11-19\",\"customer\":\"安全测试\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":3000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"id\":\"price-lock-goods::0\",\"price_lock_id\":\"\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"date\":\"2026-11-19\",\"component\":\"labor\",\"status\":\"recorded\",\"actualOutlay\":true},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"id\":\"price-lock-goods::1\",\"price_lock_id\":\"\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"date\":\"2026-11-19\",\"component\":\"accessories\",\"status\":\"recorded\",\"actualOutlay\":true},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"id\":\"price-lock-goods::2\",\"price_lock_id\":\"\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"date\":\"2026-11-19\",\"component\":\"other\",\"status\":\"recorded\",\"actualOutlay\":true},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"goods\",\"amount\":9000,\"payer\":\"assistant\",\"source\":\"锁价采购 · 实付 2026-11-19\",\"quantity\":100,\"rate\":90000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:28.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\",\"name\":\"补购料费\",\"materialSource\":\"extra\",\"paidDate\":\"2026-11-19\",\"calculation\":{\"rate\":90000,\"quantity\":100},\"status\":\"recorded\",\"actualOutlay\":true},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"purchaseAmount\":460000,\"kind\":\"goods\",\"component\":\"material\",\"materialPoolId\":\"2026-11-19\",\"name\":\"日料池采购\",\"source\":\"日料池 2026-11-19 · 实付 2026-11-19\",\"paidDate\":\"2026-11-19\",\"quantity\":5000,\"calculation\":null,\"status\":\"recorded\",\"actualOutlay\":true}]},\"owner\":{\"payer\":\"owner\",\"name\":\"麦麦\",\"goods\":0,\"paidFees\":600,\"total\":600,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":600,\"payer\":\"owner\",\"note\":\"实际快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:28.000Z\",\"price_lock_id\":\"\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"kind\":\"paid\",\"component\":\"fee\",\"product\":\"足金999\",\"name\":\"实际快递\",\"source\":\"锁价费用 · 实付 2026-11-19\",\"paidDate\":\"2026-11-19\",\"status\":\"recorded\",\"calculation\":null,\"actualOutlay\":true}]},\"assistant2\":{\"payer\":\"assistant2\",\"name\":\"小昊\",\"goods\":736720,\"paidFees\":0,\"total\":736720,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":360720,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":{\"rate\":90000,\"quantity\":4008},\"component\":\"material\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":6000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":{\"rate\":500,\"quantity\":12000},\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"status\":\"recorded\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"purchaseAmount\":370000,\"kind\":\"goods\",\"component\":\"material\",\"materialPoolId\":\"2026-11-19\",\"name\":\"日料池采购\",\"source\":\"日料池 2026-11-19 · 实付 2026-11-19\",\"paidDate\":\"2026-11-19\",\"quantity\":4000,\"calculation\":null,\"status\":\"recorded\",\"actualOutlay\":true}]}},\"orderPayerCosts\":{\"assistant\":{\"payer\":\"assistant\",\"name\":\"娜娜\",\"goods\":522308,\"paidFees\":800,\"total\":523108,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999 · 补重采购\",\"amount\":9000,\"payer\":\"assistant\",\"excluded\":false,\"priceLockSource\":\"extra\",\"calculation\":{\"rate\":90000,\"quantity\":100},\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"date\":\"2026-11-19\",\"customer\":\"对照锁价客户(改)\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":3000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"date\":\"2026-11-19\",\"customer\":\"对照锁价客户(改)\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"date\":\"2026-11-19\",\"customer\":\"对照锁价客户(改)\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"date\":\"2026-11-19\",\"customer\":\"对照锁价客户(改)\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":103410,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":{\"rate\":90000,\"quantity\":1149},\"component\":\"material\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":3000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":{\"rate\":500,\"quantity\":6000},\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金吊坠\",\"amount\":180000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"status\":\"recorded\"},{\"kind\":\"paid\",\"name\":\"当天快递\",\"source\":\"整单费用 · 实付 2026-11-19\",\"amount\":800,\"payer\":\"assistant\",\"component\":\"fee\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"status\":\"recorded\",\"calculation\":null,\"paidDate\":\"2026-11-19\"},{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999 · 2026-11-19日购料\",\"amount\":181898,\"payer\":\"assistant\",\"excluded\":false,\"materialPoolId\":\"2026-11-19\",\"materialPoolRevision\":\"2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b\",\"calculation\":{\"rate\":90949,\"quantity\":2000,\"weighted\":true},\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"date\":\"2026-11-19\",\"customer\":\"滚动料池客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"date\":\"2026-11-19\",\"customer\":\"滚动料池客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"date\":\"2026-11-19\",\"customer\":\"滚动料池客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"date\":\"2026-11-19\",\"customer\":\"滚动料池客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"货品成本(原单未分项)\",\"source\":\"商品 1 · 足金转运珠\",\"amount\":42000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"component\":\"unallocated\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119016\",\"date\":\"2026-11-19\",\"customer\":\"安全测试\",\"status\":\"recorded\"}]},\"owner\":{\"payer\":\"owner\",\"name\":\"麦麦\",\"goods\":255000,\"paidFees\":600,\"total\":255600,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999 · 原锁价采购\",\"amount\":255000,\"payer\":\"owner\",\"excluded\":false,\"priceLockSource\":\"original\",\"calculation\":{\"rate\":85000,\"quantity\":3000},\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"date\":\"2026-11-19\",\"customer\":\"对照锁价客户(改)\",\"status\":\"recorded\"},{\"kind\":\"paid\",\"name\":\"实际快递\",\"source\":\"整单费用 · 实付 2026-11-19\",\"amount\":600,\"payer\":\"owner\",\"component\":\"fee\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"date\":\"2026-11-19\",\"customer\":\"对照锁价客户(改)\",\"status\":\"recorded\",\"calculation\":null,\"paidDate\":\"2026-11-19\"}]},\"assistant2\":{\"payer\":\"assistant2\",\"name\":\"小昊\",\"goods\":278720,\"paidFees\":0,\"total\":278720,\"missingCount\":0,\"pendingCount\":0,\"items\":[{\"kind\":\"goods\",\"component\":\"material\",\"name\":\"售后收回金料成本\",\"source\":\"商品 1 · 足金手链\",\"amount\":-88000,\"payer\":\"assistant2\",\"nonCash\":true,\"materialPoolId\":\"2026-11-19\",\"calculation\":null,\"order_id\":\"\",\"orderAfterSale\":true,\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"date\":\"2026-11-19\",\"customer\":\"对照售后订单客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":360720,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":{\"rate\":90000,\"quantity\":4008},\"component\":\"material\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":6000,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":{\"rate\":500,\"quantity\":12000},\"component\":\"labor\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"accessories\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"status\":\"recorded\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金对照新货\",\"amount\":0,\"payer\":\"assistant2\",\"excluded\":false,\"calculation\":null,\"component\":\"other\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"status\":\"recorded\"}]}},\"peopleCount\":{\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"baselineDate\":\"2026-11-18\",\"mode\":\"daily-total\",\"assistant1\":{\"total\":7,\"endTotal\":7,\"baselineTotal\":5,\"baselineDate\":\"2026-11-18\",\"netChange\":2,\"netChangeReason\":null,\"recordedDays\":1},\"assistant2\":{\"total\":4,\"endTotal\":4,\"baselineTotal\":3,\"baselineDate\":\"2026-11-18\",\"netChange\":1,\"netChangeReason\":null,\"recordedDays\":1}},\"priceLockActivity\":{\"basis\":\"eventDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"customerCash\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":16200,\"account\":\"助理支付宝\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:28.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null}],\"orderPayments\":[],\"materialOutlays\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"material\",\"amount\":9000,\"payer\":\"assistant\",\"source\":\"extra\",\"quantity\":100,\"rate\":90000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:28.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"component\":\"material\"}],\"directOutlays\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":600,\"payer\":\"owner\",\"note\":\"实际快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:28.000Z\",\"price_lock_id\":\"\",\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"kind\":\"fee\",\"component\":\"fee\",\"product\":\"足金999\"}],\"deliveryGoodsOutlays\":[{\"kind\":\"goods\",\"name\":\"进货工费\",\"source\":\"商品 1 · 足金999\",\"amount\":3000,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"id\":\"price-lock-goods::0\",\"price_lock_id\":\"\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"date\":\"2026-11-19\",\"component\":\"labor\"},{\"kind\":\"goods\",\"name\":\"配件成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"id\":\"price-lock-goods::1\",\"price_lock_id\":\"\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"date\":\"2026-11-19\",\"component\":\"accessories\"},{\"kind\":\"goods\",\"name\":\"其他货品成本\",\"source\":\"商品 1 · 足金999\",\"amount\":0,\"payer\":\"assistant\",\"excluded\":false,\"calculation\":null,\"id\":\"price-lock-goods::2\",\"price_lock_id\":\"\",\"order_id\":\"\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"date\":\"2026-11-19\",\"component\":\"other\"}],\"receipts\":{\"receipt\":16200,\"refund\":0,\"net\":16200,\"channels\":[{\"channel\":\"wechat\",\"name\":\"微信\",\"receipt\":0,\"refund\":0,\"net\":0},{\"channel\":\"alipay\",\"name\":\"支付宝\",\"receipt\":16200,\"refund\":0,\"net\":16200},{\"channel\":\"cash\",\"name\":\"现金\",\"receipt\":0,\"refund\":0,\"net\":0}],\"accounts\":[{\"account\":\"助理微信\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"助理支付宝\",\"receipt\":16200,\"refund\":0,\"net\":16200},{\"account\":\"助理现金\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦微信\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦支付宝\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦现金\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"助理2微信\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"助理2支付宝\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"助理2现金\",\"receipt\":0,\"refund\":0,\"net\":0}],\"paymentCount\":1,\"orderCount\":1},\"payerOutlays\":{\"owner\":{\"payer\":\"owner\",\"material\":0,\"goods\":0,\"paidFees\":600,\"total\":600},\"assistant\":{\"payer\":\"assistant\",\"material\":9000,\"goods\":12000,\"paidFees\":0,\"total\":12000},\"assistant2\":{\"payer\":\"assistant2\",\"material\":0,\"goods\":0,\"paidFees\":0,\"total\":0}},\"summary\":{\"receipt\":16200,\"refund\":0,\"net\":16200,\"materialOutlay\":9000,\"goodsOutlay\":12000,\"feeOutlay\":600,\"ownerOutlay\":600,\"assistantOutlay\":12000,\"assistant2Outlay\":0,\"totalOutlay\":12600,\"eventCount\":6,\"lockCount\":1}},\"outlayGoods\":1537130,\"outlayExpense\":1400,\"outlayTotal\":1538530,\"receiptsByOrderDate\":{\"basis\":\"orderDate\",\"filterScope\":\"matchingOrders\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"receipt\":1059792,\"refund\":90000,\"net\":969792,\"channels\":[{\"channel\":\"wechat\",\"name\":\"微信\",\"receipt\":1043592,\"refund\":0,\"net\":1043592},{\"channel\":\"alipay\",\"name\":\"支付宝\",\"receipt\":16200,\"refund\":90000,\"net\":-73800},{\"channel\":\"cash\",\"name\":\"现金\",\"receipt\":0,\"refund\":0,\"net\":0}],\"accounts\":[{\"account\":\"助理微信\",\"receipt\":610800,\"refund\":0,\"net\":610800},{\"account\":\"助理支付宝\",\"receipt\":16200,\"refund\":0,\"net\":16200},{\"account\":\"助理现金\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦微信\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦支付宝\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"麦麦现金\",\"receipt\":0,\"refund\":0,\"net\":0},{\"account\":\"助理2微信\",\"receipt\":432792,\"refund\":0,\"net\":432792},{\"account\":\"助理2支付宝\",\"receipt\":0,\"refund\":90000,\"net\":-90000},{\"account\":\"助理2现金\",\"receipt\":0,\"refund\":0,\"net\":0}],\"paymentCount\":9,\"orderCount\":8},\"totalCost\":1057428,\"recipientReceipts\":{\"assistant\":{\"recipient\":\"assistant\",\"name\":\"娜娜\",\"receipt\":627000,\"refund\":0,\"net\":627000,\"items\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":130800,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"customer\":\"对照换货客户二\",\"reference\":\"置换差额实际收款 · HS202611190002\",\"note\":\"\",\"created\":\"2026-11-19T02:01:33.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"customer\":\"当天客户(改)\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-19T02:01:48.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119014\",\"customer\":\"当天取消客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-19T02:01:57.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":-210000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119014\",\"customer\":\"当天取消客户\",\"reference\":\"更正冲回:取消审批作废;当天录错\",\"note\":\"\",\"created\":\"2026-11-19T02:01:59.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":220000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"customer\":\"滚动料池客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-19T02:02:40.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119016\",\"customer\":\"安全测试\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-19T02:02:51.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":16200,\"account\":\"助理支付宝\",\"order_id\":\"\",\"price_lock_id\":\"\",\"order_date\":\"2026-11-19\",\"number\":\"SJ20261118-\",\"paper_number\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-19T02:01:28.000Z\"}]},\"owner\":{\"recipient\":\"owner\",\"name\":\"麦麦\",\"receipt\":0,\"refund\":0,\"net\":0,\"items\":[]},\"assistant2\":{\"recipient\":\"assistant2\",\"name\":\"小昊\",\"receipt\":432792,\"refund\":90000,\"net\":342792,\"items\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":432792,\"account\":\"助理2微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"customer\":\"对照换货客户\",\"reference\":\"置换差额实际收款 · HS202611190001\",\"note\":\"\",\"created\":\"2026-11-19T02:01:32.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"customer\":\"对照售后订单客户\",\"reference\":\"整单售后退款\",\"note\":\"\",\"created\":\"2026-11-19T02:01:05.000Z\",\"order_after_sale\":true}]}},\"ownershipReceipts\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"receipt\":0,\"refund\":0,\"net\":0,\"accounts\":[],\"items\":[]},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"receipt\":417000,\"refund\":0,\"net\":417000,\"accounts\":[{\"account\":\"助理微信\",\"recipient\":\"assistant\",\"channel\":\"wechat\",\"receipt\":400800,\"refund\":0,\"net\":400800,\"entryCount\":5},{\"account\":\"助理支付宝\",\"recipient\":\"assistant\",\"channel\":\"alipay\",\"receipt\":16200,\"refund\":0,\"net\":16200,\"entryCount\":1}],\"items\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":130800,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119012\",\"customer\":\"对照换货客户二\",\"reference\":\"置换差额实际收款 · HS202611190002\",\"note\":\"\",\"created\":\"2026-11-19T02:01:33.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119014\",\"customer\":\"当天取消客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-19T02:01:57.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":-210000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119014\",\"customer\":\"当天取消客户\",\"reference\":\"更正冲回:取消审批作废;当天录错\",\"note\":\"\",\"created\":\"2026-11-19T02:01:59.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":220000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119015\",\"customer\":\"滚动料池客户\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-19T02:02:40.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119016\",\"customer\":\"安全测试\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-19T02:02:51.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":16200,\"account\":\"助理支付宝\",\"order_id\":\"\",\"price_lock_id\":\"\",\"order_date\":\"2026-11-19\",\"number\":\"SJ20261118-\",\"paper_number\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"reference\":\"\",\"note\":\"锁价备注\",\"created\":\"2026-11-19T02:01:28.000Z\"}]},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"receipt\":642792,\"refund\":90000,\"net\":552792,\"accounts\":[{\"account\":\"助理微信\",\"recipient\":\"assistant\",\"channel\":\"wechat\",\"receipt\":210000,\"refund\":0,\"net\":210000,\"entryCount\":1},{\"account\":\"助理2微信\",\"recipient\":\"assistant2\",\"channel\":\"wechat\",\"receipt\":432792,\"refund\":0,\"net\":432792,\"entryCount\":1},{\"account\":\"助理2支付宝\",\"recipient\":\"assistant2\",\"channel\":\"alipay\",\"receipt\":0,\"refund\":90000,\"net\":-90000,\"entryCount\":1}],\"items\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119013\",\"customer\":\"当天客户(改)\",\"reference\":\"开单时已全额收款\",\"note\":\"\",\"created\":\"2026-11-19T02:01:48.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":432792,\"account\":\"助理2微信\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-19\",\"number\":\"MM20261119-\",\"paper_number\":\"20261119011\",\"customer\":\"对照换货客户\",\"reference\":\"置换差额实际收款 · HS202611190001\",\"note\":\"\",\"created\":\"2026-11-19T02:01:32.000Z\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"order_id\":\"\",\"price_lock_id\":null,\"order_date\":\"2026-11-18\",\"number\":\"MM20261118-\",\"paper_number\":\"20261118007\",\"customer\":\"对照售后订单客户\",\"reference\":\"整单售后退款\",\"note\":\"\",\"created\":\"2026-11-19T02:01:05.000Z\",\"order_after_sale\":true}]}},\"ownershipBusiness\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"recordCount\":0,\"orderCount\":0,\"afterSaleCount\":0,\"draftCount\":0,\"sales\":0,\"netReceipts\":0,\"totalCost\":0,\"knownTotalCost\":0,\"selfCost\":0,\"knownSelfCost\":0,\"otherCost\":0,\"knownOtherCost\":0,\"profit\":0,\"knownProfit\":0,\"incomplete\":false,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"costByPayer\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0}},\"poolMaterial\":{\"mg\":0,\"amount\":0,\"knownAmount\":0,\"missingCount\":0,\"byPayer\":{\"owner\":{\"amount\":0,\"knownAmount\":0},\"assistant\":{\"amount\":0,\"knownAmount\":0},\"assistant2\":{\"amount\":0,\"knownAmount\":0}},\"hasPriceLocks\":false,\"days\":[],\"otherCosts\":{\"knownAmount\":0,\"amount\":0}},\"ownerAdvances\":{\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"days\":[]},\"currentAccount\":{\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"days\":[]},\"difference\":{\"amount\":0,\"reconciled\":true,\"reasons\":[]},\"equation\":{\"basis\":\"netReceipts\",\"revenue\":0,\"totalCost\":0,\"profit\":0,\"complete\":true},\"settlement\":{\"available\":true,\"basis\":\"cumulative-through-date\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"dueOut\":0,\"dueIn\":637681,\"partial\":false,\"pendingCount\":0,\"legacyCount\":0,\"notice\":\"截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。\",\"counterparts\":[{\"member\":\"assistant\",\"name\":\"娜娜\",\"dueOut\":0,\"dueIn\":637681,\"openingDue\":-647081,\"periodNew\":-600,\"periodTransferred\":-10000,\"closingDue\":-637681,\"offset\":290650,\"period\":{\"obligationNet\":-600,\"transferred\":-10000,\"receivedForNet\":0,\"advancedNet\":-600}},{\"member\":\"assistant2\",\"name\":\"小昊\",\"dueOut\":0,\"dueIn\":0,\"openingDue\":0,\"periodNew\":0,\"periodTransferred\":0,\"closingDue\":0,\"offset\":0,\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0}}]},\"hasActivity\":true},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"recordCount\":5,\"orderCount\":5,\"afterSaleCount\":0,\"draftCount\":0,\"sales\":687000,\"netReceipts\":417000,\"totalCost\":597908,\"knownTotalCost\":597908,\"selfCost\":342308,\"knownSelfCost\":342308,\"otherCost\":255600,\"knownOtherCost\":255600,\"profit\":89092,\"knownProfit\":89092,\"incomplete\":false,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"costByPayer\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"totalCost\":255600,\"knownTotalCost\":255600,\"missingCount\":0,\"pendingCount\":0},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"totalCost\":342308,\"knownTotalCost\":342308,\"missingCount\":0,\"pendingCount\":0},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0}},\"poolMaterial\":{\"mg\":2000,\"amount\":181898,\"knownAmount\":181898,\"missingCount\":0,\"byPayer\":{\"owner\":{\"amount\":0,\"knownAmount\":0},\"assistant\":{\"amount\":181898,\"knownAmount\":181898},\"assistant2\":{\"amount\":0,\"knownAmount\":0}},\"hasPriceLocks\":false,\"days\":[{\"mg\":2000,\"amount\":181898,\"knownAmount\":181898,\"missingCount\":0,\"byPayer\":{\"owner\":{\"amount\":0,\"knownAmount\":0},\"assistant\":{\"amount\":181898,\"knownAmount\":181898},\"assistant2\":{\"amount\":0,\"knownAmount\":0}},\"poolId\":\"2026-11-19\",\"date\":\"2026-11-19\",\"averageRate\":90949,\"sources\":[{\"kind\":\"public\",\"member\":null,\"priceLocked\":false,\"mg\":2000,\"averageRate\":90949,\"amount\":181898,\"knownAmount\":181898,\"missingCount\":0}]}],\"otherCosts\":{\"knownAmount\":416010,\"amount\":416010}},\"ownerAdvances\":{\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"days\":[{\"date\":\"2026-11-19\",\"items\":[{\"date\":\"2026-11-19\",\"kind\":\"order\",\"id\":\"\",\"number\":\"MM20261119-\",\"paperNumber\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"name\":\"料费成本\",\"source\":\"商品 1 · 足金999 · 原锁价采购\",\"component\":\"material\",\"poolId\":null,\"poolMaterial\":false,\"allocationPending\":false,\"amount\":255000,\"estimatedAmount\":null,\"status\":\"recorded\"},{\"date\":\"2026-11-19\",\"kind\":\"order\",\"id\":\"\",\"number\":\"MM20261119-\",\"paperNumber\":\"20261119010\",\"customer\":\"对照锁价客户(改)\",\"name\":\"实际快递\",\"source\":\"2026-11-19\",\"component\":\"fee\",\"poolId\":null,\"poolMaterial\":false,\"allocationPending\":false,\"amount\":600,\"estimatedAmount\":null,\"status\":\"recorded\"}],\"knownAmount\":255600,\"amount\":255600,\"missingCount\":0,\"pendingCount\":0,\"poolAmount\":0,\"knownPoolAmount\":0,\"otherAmount\":255600,\"knownOtherAmount\":255600}]},\"currentAccount\":{\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"days\":[{\"date\":\"2026-11-19\",\"recordCount\":5,\"knownMaterialCost\":255000,\"knownOtherCost\":600,\"knownProfit\":89092,\"ownerNetReceipts\":0,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"materialCost\":255000,\"otherCost\":600,\"profit\":89092,\"knownAmount\":344692,\"amount\":344692}]},\"difference\":{\"amount\":-270000,\"reconciled\":false,\"reasons\":[{\"code\":\"price_lock_timing\",\"text\":\"锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。\"},{\"code\":\"refund_or_cancellation\",\"text\":\"退货或作废已按原账冲回销售;尚未退清的客户款或不同日期的退款不作为销售利润。\"}]},\"equation\":{\"basis\":\"sales\",\"revenue\":687000,\"totalCost\":597908,\"profit\":89092,\"complete\":true},\"settlement\":{\"available\":true,\"basis\":\"cumulative-through-date\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"dueOut\":678881,\"dueIn\":0,\"partial\":false,\"pendingCount\":0,\"legacyCount\":0,\"notice\":\"截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。\",\"counterparts\":[{\"member\":\"owner\",\"name\":\"麦麦\",\"dueOut\":637681,\"dueIn\":0,\"openingDue\":647081,\"periodNew\":600,\"periodTransferred\":10000,\"closingDue\":637681,\"offset\":290650,\"period\":{\"obligationNet\":600,\"transferred\":10000,\"receivedForNet\":0,\"advancedNet\":600}},{\"member\":\"assistant2\",\"name\":\"小昊\",\"dueOut\":41200,\"dueIn\":0,\"openingDue\":12000,\"periodNew\":29200,\"periodTransferred\":0,\"closingDue\":41200,\"offset\":250800,\"period\":{\"obligationNet\":29200,\"transferred\":0,\"receivedForNet\":210000,\"advancedNet\":-180800}}]},\"hasActivity\":true},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"recordCount\":3,\"orderCount\":2,\"afterSaleCount\":1,\"draftCount\":0,\"sales\":552792,\"netReceipts\":552792,\"totalCost\":459520,\"knownTotalCost\":459520,\"selfCost\":278720,\"knownSelfCost\":278720,\"otherCost\":180800,\"knownOtherCost\":180800,\"profit\":93272,\"knownProfit\":93272,\"incomplete\":false,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"costByPayer\":{\"owner\":{\"member\":\"owner\",\"name\":\"麦麦\",\"totalCost\":0,\"knownTotalCost\":0,\"missingCount\":0,\"pendingCount\":0},\"assistant\":{\"member\":\"assistant\",\"name\":\"娜娜\",\"totalCost\":180800,\"knownTotalCost\":180800,\"missingCount\":0,\"pendingCount\":0},\"assistant2\":{\"member\":\"assistant2\",\"name\":\"小昊\",\"totalCost\":278720,\"knownTotalCost\":278720,\"missingCount\":0,\"pendingCount\":0}},\"poolMaterial\":{\"mg\":0,\"amount\":0,\"knownAmount\":0,\"missingCount\":0,\"byPayer\":{\"owner\":{\"amount\":0,\"knownAmount\":0},\"assistant\":{\"amount\":0,\"knownAmount\":0},\"assistant2\":{\"amount\":0,\"knownAmount\":0}},\"hasPriceLocks\":false,\"days\":[],\"otherCosts\":{\"knownAmount\":459520,\"amount\":459520}},\"ownerAdvances\":{\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"days\":[]},\"currentAccount\":{\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"days\":[{\"date\":\"2026-11-19\",\"recordCount\":3,\"knownMaterialCost\":0,\"knownOtherCost\":0,\"knownProfit\":93272,\"ownerNetReceipts\":0,\"missingCostCount\":0,\"pendingCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"materialCost\":0,\"otherCost\":0,\"profit\":93272,\"knownAmount\":93272,\"amount\":93272}]},\"difference\":{\"amount\":0,\"reconciled\":true,\"reasons\":[]},\"equation\":{\"basis\":\"netReceipts\",\"revenue\":552792,\"totalCost\":459520,\"profit\":93272,\"complete\":true},\"settlement\":{\"available\":true,\"basis\":\"cumulative-through-date\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"dueOut\":0,\"dueIn\":41200,\"partial\":false,\"pendingCount\":0,\"legacyCount\":0,\"notice\":\"截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。\",\"counterparts\":[{\"member\":\"owner\",\"name\":\"麦麦\",\"dueOut\":0,\"dueIn\":0,\"openingDue\":0,\"periodNew\":0,\"periodTransferred\":0,\"closingDue\":0,\"offset\":0,\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0}},{\"member\":\"assistant\",\"name\":\"娜娜\",\"dueOut\":0,\"dueIn\":41200,\"openingDue\":-12000,\"periodNew\":-29200,\"periodTransferred\":0,\"closingDue\":-41200,\"offset\":250800,\"period\":{\"obligationNet\":-29200,\"transferred\":0,\"receivedForNet\":-210000,\"advancedNet\":180800}}]},\"hasActivity\":true}},\"dailyProfits\":{\"basis\":\"orderDate\",\"from\":\"2026-11-19\",\"date\":\"2026-11-19\",\"rows\":[{\"recordCount\":5,\"orderCount\":5,\"afterSaleCount\":0,\"draftCount\":0,\"sales\":687000,\"knownTotalCost\":597908,\"knownProfit\":89092,\"unknownCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"date\":\"2026-11-19\",\"member\":\"assistant\",\"name\":\"娜娜\",\"totalCost\":597908,\"profit\":89092},{\"recordCount\":3,\"orderCount\":2,\"afterSaleCount\":1,\"draftCount\":0,\"sales\":552792,\"knownTotalCost\":459520,\"knownProfit\":93272,\"unknownCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"date\":\"2026-11-19\",\"member\":\"assistant2\",\"name\":\"小昊\",\"totalCost\":459520,\"profit\":93272}],\"summary\":{\"recordCount\":8,\"orderCount\":7,\"afterSaleCount\":1,\"draftCount\":0,\"sales\":1239792,\"knownTotalCost\":1057428,\"knownProfit\":182364,\"unknownCostCount\":0,\"unknownProfitCount\":0,\"incomplete\":false,\"totalCost\":1057428,\"profit\":182364}},\"dailyFunds\":{\"date\":\"2026-11-19\",\"from\":\"2026-11-19\",\"team\":{\"from\":\"2026-11-19\",\"to\":\"2026-11-19\",\"date\":\"2026-11-19\",\"members\":[{\"id\":\"owner\",\"name\":\"麦麦\"},{\"id\":\"assistant\",\"name\":\"娜娜\"},{\"id\":\"assistant2\",\"name\":\"小昊\"}],\"balances\":[{\"member\":\"owner\",\"receipts\":0,\"refunds\":0,\"outlays\":600,\"transferIn\":10000,\"transferOut\":0,\"openingChange\":-2341031,\"periodChange\":9400,\"cumulativeChange\":-2331631,\"cashBalance\":9400,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"},{\"member\":\"assistant\",\"receipts\":627000,\"refunds\":0,\"outlays\":802210,\"transferIn\":0,\"transferOut\":10000,\"openingChange\":44600,\"periodChange\":-185210,\"cumulativeChange\":-140610,\"cashBalance\":-185210,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"},{\"member\":\"assistant2\",\"receipts\":432792,\"refunds\":90000,\"outlays\":736720,\"transferIn\":0,\"transferOut\":0,\"openingChange\":-123837,\"periodChange\":-393928,\"cumulativeChange\":-517765,\"cashBalance\":-393928,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"}],\"pairs\":[{\"id\":\"owner:assistant\",\"members\":[\"owner\",\"assistant\"],\"net\":-637681,\"obligationNet\":-657681,\"transferred\":-20000,\"receivedForNet\":288500,\"advancedNet\":-946181,\"offset\":290650,\"due\":637681,\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"direction\":\"transfer\",\"period\":{\"obligationNet\":-600,\"transferred\":-10000,\"receivedForNet\":0,\"advancedNet\":-600},\"entries\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":600,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"}]},{\"id\":\"owner:assistant2\",\"members\":[\"owner\",\"assistant2\"],\"net\":0,\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0,\"offset\":0,\"due\":0,\"fromMember\":null,\"toMember\":null,\"direction\":\"none\",\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0},\"entries\":[]},{\"id\":\"assistant:assistant2\",\"members\":[\"assistant\",\"assistant2\"],\"net\":41200,\"obligationNet\":41200,\"transferred\":0,\"receivedForNet\":292000,\"advancedNet\":-250800,\"offset\":250800,\"due\":41200,\"fromMember\":\"assistant\",\"toMember\":\"assistant2\",\"direction\":\"transfer\",\"period\":{\"obligationNet\":29200,\"transferred\":0,\"receivedForNet\":210000,\"advancedNet\":-180800},\"entries\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"assistant\",\"toMember\":\"assistant2\",\"amount\":210000,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":800,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":180000,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"}]}],\"entries\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":600,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"assistant\",\"toMember\":\"assistant2\",\"amount\":210000,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":800,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":180000,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"}],\"transfers\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":10000,\"note\":\"对照转账二\",\"actor\":\"麦麦\"}],\"revision\":\"91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e\",\"pending\":[],\"legacyReadOnly\":true,\"cutover\":\"仅已启用的三人新账事件;旧结算不自动迁入\",\"transfersDeducted\":true},\"readOnly\":false,\"hasRecords\":true,\"pendingCount\":0,\"legacyReadOnly\":true,\"transfersNotDeducted\":false,\"reimbursements\":[],\"approvedReimbursements\":0,\"ready\":true,\"transferAmount\":null,\"direction\":null,\"sources\":{\"revision\":\"91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e\",\"total\":0,\"items\":[]},\"confirmation\":null,\"actualOutlay\":null,\"missingDates\":[],\"staleDates\":[],\"days\":[]},\"reportRevision\":\"fa73de27deceb492d63cf1d58c3eba7bf0d1089f22a851135fe95a461efa7504\"}", + "麦麦", + "2026-11-19T02:04:46.000Z", + 1 + ] + ] + }, + "corrections": { + "columns": [ + "target", + "type", + "reason", + "actor", + "created" + ], + "rows": [ + [ + "", + "payment", + "重复录入", + "麦麦", + "2026-11-19T02:00:45.000Z" + ], + [ + "", + "payment", + "当天录错", + "助理", + "2026-11-19T02:01:59.000Z" + ], + [ + "", + "payment", + "跨天更正旧料克重", + "麦麦", + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "payment", + "录错", + "麦麦", + "2026-11-20T02:00:15.000Z" + ] + ] + }, + "credit_card_rate_snapshots": { + "columns": [ + "kind", + "entity_id", + "rate_permille" + ], + "rows": [ + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "price_lock", + "", + 6 + ], + [ + "price_lock", + "", + 6 + ], + [ + "price_lock", + "", + 6 + ], + [ + "price_lock", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ], + [ + "order", + "", + 6 + ] + ] + }, + "customer_material_deposits": { + "columns": [ + "id", + "number", + "date", + "mg", + "memo", + "actor", + "actor_id", + "created" + ], + "rows": [ + [ + "", + "JC202611190001", + "2026-11-19", + 1500, + "对照寄存袋", + "助理", + "", + "2026-11-19T02:01:43.000Z" + ] + ] + }, + "customer_material_events": { + "columns": [ + "id", + "deposit_id", + "recovery_id", + "date", + "delta_mg", + "memo", + "actor", + "created" + ], + "rows": [] + }, + "customer_material_origins": { + "columns": [ + "recovery_id", + "deposit_id", + "mg" + ], + "rows": [] + }, + "daily_outlay_confirmations": { + "columns": [ + "date", + "amount", + "revision", + "source_revision", + "note", + "actor_id", + "actor", + "created", + "updated" + ], + "rows": [] + }, + "daily_people_counts": { + "columns": [ + "date", + "count", + "revision", + "actor", + "created", + "updated", + "assistant1_count", + "assistant2_count", + "member_counts" + ], + "rows": [ + [ + "2026-11-18", + 12, + 1, + "麦麦", + "2026-11-18T02:02:37.000Z", + "2026-11-18T02:02:37.000Z", + 5, + 3, + "{}" + ], + [ + "2026-11-19", + 0, + 1, + "麦麦", + "2026-11-19T02:02:14.000Z", + "2026-11-19T02:02:14.000Z", + 7, + 4, + "{}" + ] + ] + }, + "document_print_status": { + "columns": [ + "kind", + "id", + "printed", + "revision", + "updated", + "actor" + ], + "rows": [ + [ + "order", + "", + 0, + 2, + "2026-11-18T02:01:50.000Z", + "助理" + ], + [ + "recovery", + "", + 1, + 1, + "2026-11-19T02:01:40.000Z", + "助理2" + ] + ] + }, + "expenses": { + "columns": [ + "id", + "order_id", + "date", + "amount", + "payer", + "note", + "actor", + "created" + ], + "rows": [ + [ + "", + "", + "2026-11-18", + 1200, + "assistant", + "快递", + "助理", + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "", + "2026-11-18", + 1731, + "owner", + "信用卡手续费(6‰)", + "麦麦", + "2026-11-18T02:01:19.000Z" + ], + [ + "", + "", + "2026-11-18", + 1800, + "owner", + "信用卡手续费(6‰)", + "麦麦", + "2026-11-18T02:01:33.000Z" + ], + [ + "", + "", + "2026-11-19", + 1000, + "assistant", + "补寄快递", + "麦麦", + "2026-11-19T02:00:37.000Z" + ], + [ + "", + "", + "2026-11-19", + 600, + "owner", + "实际快递", + "助理", + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "", + "2026-11-19", + 800, + "assistant", + "当天快递", + "助理", + "2026-11-19T02:01:52.000Z" + ] + ] + }, + "inventory_changes": { + "columns": [ + "id", + "group_id", + "group_revision", + "action", + "revision", + "reason", + "before_value", + "after_value", + "group_hash", + "inventory_hash", + "status", + "requester_id", + "requester_name", + "requester_member", + "created", + "reviewer_id", + "reviewer_name", + "reviewed", + "note" + ], + "rows": [ + [ + "", + "", + 1, + "update", + 2, + "跨天更正克重", + "{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"2.500\",\"note\":\"娜娜手动入库\",\"cost\":\"\"}", + "{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"3.000\",\"note\":\"娜娜手动入库\",\"cost\":\"\"}", + "1315bac0908b5f7f01fea4d28a287ae5da62c59daeb9f2171f8514bcef40c0a6", + "f9ba1a518632dfdce2281e0ed60f59765fbd918986839f55170f1ad4376c5d93", + "approved", + "", + "助理", + "assistant", + "2026-11-19T02:00:07.000Z", + "", + "麦麦", + "2026-11-19T02:00:11.000Z", + "" + ], + [ + "", + "", + 1, + "delete", + 2, + "跨天删除申请", + "{\"kind\":\"decrease\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"0.500\",\"note\":\"娜娜手动出库\",\"cost\":\"\"}", + null, + "68ac593ba1049c1320a0f64a9c6d473d482ffc14903b6136fb60011767312617", + "35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5", + "rejected", + "", + "助理", + "assistant", + "2026-11-19T02:00:13.000Z", + "", + "麦麦", + "2026-11-19T02:00:15.000Z", + "保留原记录" + ] + ] + }, + "inventory_count_baselines": { + "columns": [ + "pocket", + "date", + "initial_count", + "movement_id", + "created" + ], + "rows": [] + }, + "inventory_manual_groups": { + "columns": [ + "group_id", + "revision", + "status", + "creator_id", + "creator_name", + "member", + "original_ids", + "current_ids", + "value", + "created", + "updated" + ], + "rows": [ + [ + "", + 1, + "active", + "", + "麦麦", + "owner", + "[\"\",\"\"]", + "[\"\",\"\"]", + "{\"kind\":\"transfer\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"金料\",\"grams\":\"5.000\",\"note\":\"调拨\",\"cost\":\"\"}", + "2026-11-18T02:01:03.000Z", + "2026-11-18T02:01:03.000Z" + ], + [ + "", + 2, + "modified", + "", + "助理", + "assistant", + "[\"\"]", + "[\"\"]", + "{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"3.000\",\"note\":\"娜娜手动入库\",\"cost\":\"\"}", + "2026-11-18T02:01:04.000Z", + "2026-11-19T02:00:11.000Z" + ], + [ + "", + 1, + "active", + "", + "助理", + "assistant", + "[\"\"]", + "[\"\"]", + "{\"kind\":\"decrease\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"0.500\",\"note\":\"娜娜手动出库\",\"cost\":\"\"}", + "2026-11-18T02:01:05.000Z", + "2026-11-18T02:01:05.000Z" + ], + [ + "", + 3, + "deleted", + "", + "助理", + "assistant", + "[\"\"]", + "[]", + "{\"kind\":\"increase\",\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"to\":\"\",\"grams\":\"1.200\",\"note\":\"当天手动入库\",\"cost\":\"\"}", + "2026-11-19T02:00:16.000Z", + "2026-11-19T02:00:21.000Z" + ] + ] + }, + "inventory_manual_rows": { + "columns": [ + "movement_id", + "group_id", + "generation", + "role" + ], + "rows": [ + [ + "", + "", + 1, + "effective" + ], + [ + "", + "", + 1, + "effective" + ], + [ + "", + "", + 1, + "effective" + ], + [ + "", + "", + 1, + "effective" + ], + [ + "", + "", + 2, + "reversal" + ], + [ + "", + "", + 2, + "effective" + ], + [ + "", + "", + 1, + "effective" + ], + [ + "", + "", + 2, + "reversal" + ], + [ + "", + "", + 2, + "effective" + ], + [ + "", + "", + 3, + "reversal" + ] + ] + }, + "inventory_snapshots": { + "columns": [ + "date", + "inventory", + "actor", + "created", + "updated", + "stale", + "revision", + "source", + "scheduled_for" + ], + "rows": [ + [ + "2026-11-18", + "[{\"pocket\":\"现货\",\"mg\":80450,\"reserved\":0,\"available\":80450},{\"pocket\":\"金料\",\"mg\":55000,\"reserved\":0,\"available\":55000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}]", + "麦麦", + "2026-11-18T02:02:46.000Z", + "2026-11-18T02:02:50.000Z", + 1, + "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "manual", + null + ], + [ + "2026-11-19", + "[{\"pocket\":\"现货\",\"mg\":61950,\"reserved\":0,\"available\":61950},{\"pocket\":\"金料\",\"mg\":56000,\"reserved\":0,\"available\":56000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":12843,\"reserved\":0,\"available\":12843},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}]", + "麦麦", + "2026-11-19T02:04:45.000Z", + "2026-11-19T02:04:46.000Z", + 1, + "26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace", + "manual", + null + ] + ] + }, + "journal": { + "columns": [ + "id", + "order_id", + "date", + "kind", + "sales", + "goods", + "expense", + "profit", + "created" + ], + "rows": [ + [ + "", + "", + "2026-11-18", + "交付", + 321100, + 290200, + 1200, + 29700, + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "", + "2026-11-18", + "交付", + 217163, + 183000, + 0, + 34163, + "2026-11-18T02:01:18.000Z" + ], + [ + "", + "", + "2026-11-18", + "交付", + 288500, + 150000, + 1731, + 136769, + "2026-11-18T02:01:19.000Z" + ], + [ + "", + "", + "2026-11-18", + "交付", + 330000, + 272000, + 0, + 58000, + "2026-11-18T02:01:20.000Z" + ], + [ + "", + "", + "2026-11-18", + "交付", + 980000, + 900000, + 0, + 80000, + "2026-11-18T02:01:23.000Z" + ], + [ + "", + "", + "2026-11-18", + "交付", + 150000, + 130000, + 0, + 20000, + "2026-11-18T02:01:24.000Z" + ], + [ + "", + "", + "2026-11-18", + "交付", + 500000, + 450000, + 0, + 50000, + "2026-11-18T02:01:25.000Z" + ], + [ + "", + "", + "2026-11-18", + "交付", + 82000, + 70000, + 0, + 12000, + "2026-11-18T02:01:26.000Z" + ], + [ + "", + "", + "2026-11-18", + "交付", + 400000, + 350000, + 1800, + 48200, + "2026-11-18T02:01:34.000Z" + ], + [ + "", + "", + "2026-11-19", + "直接费用", + 0, + 0, + 1000, + -1000, + "2026-11-19T02:00:37.000Z" + ], + [ + "", + "", + "2026-11-18", + "订单录错作废冲回", + -150000, + -130000, + 0, + -20000, + "2026-11-19T02:00:45.000Z" + ], + [ + "", + "", + "2026-11-19", + "订单退货退款售后", + -90000, + -88000, + 0, + -2000, + "2026-11-19T02:01:05.000Z" + ], + [ + "", + "", + "2026-11-19", + "交付", + 286200, + 267000, + 600, + 18600, + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "", + "2026-11-19", + "交付", + 432792, + 366720, + 0, + 66072, + "2026-11-19T02:01:32.000Z" + ], + [ + "", + "", + "2026-11-19", + "交付", + 130800, + 106410, + 0, + 24390, + "2026-11-19T02:01:33.000Z" + ], + [ + "", + "", + "2026-11-19", + "交付", + 210000, + 180000, + 0, + 30000, + "2026-11-19T02:01:48.000Z" + ], + [ + "", + "", + "2026-11-19", + "直接费用", + 0, + 0, + 800, + -800, + "2026-11-19T02:01:52.000Z" + ], + [ + "", + "", + "2026-11-19", + "交付", + 210000, + 180000, + 0, + 30000, + "2026-11-19T02:01:57.000Z" + ], + [ + "", + "", + "2026-11-19", + "订单录错作废冲回", + -210000, + -180000, + 0, + -30000, + "2026-11-19T02:01:59.000Z" + ], + [ + "", + "", + "2026-11-18", + "日购料成本调整", + 0, + -65, + 0, + 65, + "2026-11-19T02:02:27.000Z" + ], + [ + "", + "", + "2026-11-19", + "交付", + 220000, + 181898, + 0, + 38102, + "2026-11-19T02:02:40.000Z" + ], + [ + "", + "", + "2026-11-19", + "交付", + 50000, + 42000, + 0, + 8000, + "2026-11-19T02:02:51.000Z" + ], + [ + "", + "", + "2026-11-19", + "回收专用更正冲回", + -432792, + -366720, + 0, + -66072, + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "", + "2026-11-19", + "回收专用更正补记", + 422792, + 357720, + 0, + 65072, + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "", + "2026-11-19", + "回收专用更正冲回", + -130800, + -106410, + 0, + -24390, + "2026-11-20T02:00:15.000Z" + ], + [ + "", + "", + "2026-11-20", + "交付", + 200000, + 185000, + 0, + 15000, + "2026-11-20T02:00:29.000Z" + ] + ] + }, + "material_pool_events": { + "columns": [ + "id", + "pool_id", + "usage_id", + "order_id", + "date", + "kind", + "before_value", + "after_value", + "actor", + "created" + ], + "rows": [ + [ + "", + "2026-11-18", + "", + "", + "2026-11-18", + "交付占用", + "null", + "{\"poolId\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":null,\"ownerAmount\":null,\"assistantAmount\":null,\"revision\":1}", + "助理", + "2026-11-18T02:01:20.000Z" + ], + [ + "", + "2026-11-18", + "", + "", + "2026-11-18", + "补齐料费", + "{\"poolId\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":null,\"ownerAmount\":null,\"assistantAmount\":null,\"revision\":1,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}]}", + "{\"poolId\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":272000,\"ownerAmount\":0,\"assistantAmount\":272000,\"revision\":2,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}]}", + "助理", + "2026-11-18T02:01:20.000Z" + ], + [ + "", + "2026-11-18", + "", + "", + "2026-11-18", + "加权料费调整", + "{\"poolId\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":272000,\"ownerAmount\":0,\"assistantAmount\":272000,\"revision\":2,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}]}", + "{\"poolId\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":271935,\"ownerAmount\":0,\"assistantAmount\":271935,\"revision\":3,\"allocations\":[{\"payer\":\"assistant\",\"amount\":271935}]}", + "麦麦", + "2026-11-19T02:02:27.000Z" + ], + [ + "", + "2026-11-19", + "", + "", + "2026-11-19", + "交付占用", + "null", + "{\"poolId\":\"2026-11-19\",\"mg\":2000,\"active\":1,\"amount\":null,\"ownerAmount\":null,\"assistantAmount\":null,\"revision\":1}", + "助理", + "2026-11-19T02:02:40.000Z" + ] + ] + }, + "material_pool_settlements": { + "columns": [ + "id", + "pool_id", + "date", + "amount", + "note", + "actor", + "created" + ], + "rows": [] + }, + "material_pool_usages": { + "columns": [ + "id", + "order_id", + "line_index", + "pool_id", + "date", + "mg", + "active", + "amount", + "owner_amount", + "assistant_amount", + "revision", + "created", + "updated" + ], + "rows": [ + [ + "", + "", + 0, + "2026-11-18", + "2026-11-18", + 3000, + 1, + 271935, + 0, + 271935, + 3, + "2026-11-18T02:01:20.000Z", + "2026-11-19T02:02:27.000Z" + ], + [ + "", + "", + 0, + "2026-11-19", + "2026-11-19", + 2000, + 1, + 181898, + 0, + 181898, + 1, + "2026-11-19T02:02:40.000Z", + "2026-11-20T02:00:15.000Z" + ] + ] + }, + "material_public_substitutions": { + "columns": [ + "kind", + "source_id", + "purchase_id", + "ranges" + ], + "rows": [] + }, + "material_purchase_changes": { + "columns": [ + "id", + "purchase_id", + "purchase_revision", + "action", + "payload", + "reason", + "snapshot_hash", + "preview", + "status", + "requester_id", + "requester_name", + "requester_role", + "created", + "reviewer_id", + "reviewer_name", + "reviewed", + "note" + ], + "rows": [ + [ + "", + "", + 1, + "edit", + "{\"revision\":1,\"date\":\"2026-11-18\",\"grams\":\"11\",\"total\":\"9900\",\"payer\":\"assistant\",\"note\":\"核对凭据\"}", + "核对原始购料凭据后申请", + "312cd6108881f22b6110278a2de189f06dbd93ab8176328cfffab2b3bfd4820e", + "{\"before\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"revision\":1},\"after\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"revision\":2},\"relatedOrders\":[{\"id\":\"\",\"number\":\"20261118004\",\"date\":\"2026-11-18\",\"member\":\"assistant\",\"before\":{\"goodsCost\":272000,\"profit\":57000,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000},\"after\":{\"goodsCost\":271935,\"profit\":57065,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000}}],\"affectedDates\":[\"2026-11-18\"],\"summary\":{\"affectedOrderCount\":1,\"goodsDelta\":-65,\"profitDelta\":65}}", + "approved", + "", + "助理", + "assistant", + "2026-11-19T02:02:23.000Z", + "", + "麦麦", + "2026-11-19T02:02:27.000Z", + "已核对付款凭据" + ], + [ + "", + "", + 2, + "delete", + "{\"revision\":2}", + "申请删除历史购料", + "6fd4b29ee88402317bf9135121bd612474a256612f449cb1f4ccc96f3c0ebb36", + "{\"before\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"revision\":2},\"after\":null,\"relatedOrders\":[{\"id\":\"\",\"number\":\"20261118004\",\"date\":\"2026-11-18\",\"member\":\"assistant\",\"before\":{\"goodsCost\":271935,\"profit\":57065,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000},\"after\":{\"goodsCost\":273000,\"profit\":56000,\"settlementDue\":0,\"ownerCost\":273000,\"total\":330000,\"netReceived\":330000}}],\"affectedDates\":[\"2026-11-18\"],\"summary\":{\"affectedOrderCount\":1,\"goodsDelta\":1065,\"profitDelta\":-1065}}", + "rejected", + "", + "助理", + "assistant", + "2026-11-19T02:02:29.000Z", + "", + "麦麦", + "2026-11-19T02:02:30.000Z", + "购料真实存在" + ] + ] + }, + "material_purchase_payment_origins": { + "columns": [ + "purchase_id", + "payer_source" + ], + "rows": [ + [ + "", + "purchase" + ], + [ + "", + "purchase" + ], + [ + "", + "purchase" + ], + [ + "", + "purchase" + ], + [ + "", + "purchase" + ], + [ + "", + "purchase" + ], + [ + "", + "purchase" + ], + [ + "", + "purchase" + ] + ] + }, + "material_purchase_shares": { + "columns": [ + "purchase_id", + "payer", + "allocations" + ], + "rows": [] + }, + "material_purchases": { + "columns": [ + "id", + "pool_id", + "date", + "mg", + "amount", + "payer", + "note", + "actor", + "created", + "revision", + "deleted_at", + "updated" + ], + "rows": [ + [ + "", + "2026-11-18", + "2026-11-18", + 11000, + 990000, + "assistant", + "核对凭据", + "助理", + "2026-11-18T02:01:09.000Z", + 2, + "", + "2026-11-19T02:02:27.000Z" + ], + [ + "", + "2026-11-18", + "2026-11-18", + 20000, + 1820000, + "owner", + "麦麦购料", + "麦麦", + "2026-11-18T02:01:10.000Z", + 1, + "", + "2026-11-18T02:01:10.000Z" + ], + [ + "", + "2026-11-19", + "2026-11-19", + 5000, + 460000, + "assistant", + "第二天购料", + "助理", + "2026-11-19T02:02:19.000Z", + 1, + "", + "2026-11-19T02:02:19.000Z" + ], + [ + "", + "2026-11-19", + "2026-11-19", + 4000, + 370000, + "assistant2", + "", + "助理2", + "2026-11-19T02:02:20.000Z", + 1, + "", + "2026-11-19T02:02:20.000Z" + ], + [ + "", + "2026-11-19", + "2026-11-19", + 1500, + 138000, + "owner", + "当天改价", + "麦麦", + "2026-11-19T02:02:33.000Z", + 3, + "2026-11-19T02:02:37.000Z", + "2026-11-19T02:02:37.000Z" + ], + [ + "", + "2026-11-20", + "2026-11-20", + 10000, + 900000, + "assistant", + "直接回收 · HS202611200003", + "助理", + "2026-11-20T02:00:20.000Z", + 2, + "", + "2026-11-20T02:00:25.000Z" + ], + [ + "", + "2026-11-20", + "2026-11-20", + 3000, + 270000, + "owner", + "直接回收 · HS202611200004", + "麦麦", + "2026-11-20T02:00:21.000Z", + 2, + "2026-11-20T02:00:27.000Z", + "2026-11-20T02:00:27.000Z" + ], + [ + "", + "2026-11-20", + "2026-11-20", + 2000, + 180000, + "assistant", + "直接回收 · HS202611200005", + "助理", + "2026-11-20T02:00:30.000Z", + 1, + "", + "2026-11-20T02:00:30.000Z" + ] + ] + }, + "material_return_sources": { + "columns": [ + "return_kind", + "return_id", + "sources" + ], + "rows": [ + [ + "order", + "", + "[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}]" + ] + ] + }, + "material_rolling_days": { + "columns": [ + "date", + "opening", + "snapshot", + "frozen", + "revision" + ], + "rows": [ + [ + "2026-11-19", + "{\"mg\":28000,\"amount\":2538065,\"allocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"pending\":false,\"pools\":[{\"id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"totalMg\":31000,\"totalAmount\":2810000,\"averageRate\":90645,\"usedMg\":3000,\"remainingMg\":28000,\"shortageMg\":0,\"consumedCost\":271935,\"remainingCost\":2538065,\"status\":\"using\",\"revision\":\"2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:27.000Z\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\"}],\"usages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":271935,\"owner_amount\":0,\"assistant_amount\":271935,\"revision\":3,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-19T02:02:27.000Z\",\"fifo_sequence\":1,\"number\":\"MM20261118-\",\"customer\":\"对照客户丁\",\"order_status\":\"delivered\",\"member\":\"assistant\",\"product\":\"足金999\"}],\"settlements\":[],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":990000,\"consumed\":271935,\"remaining\":718065}},\"settlement\":{\"assistantInventoryCredit\":718065,\"transferred\":0,\"settlementDue\":-718065,\"pending\":false}}]}", + "{\"id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"rolling\":true,\"frozen\":false,\"totalMg\":38000,\"totalAmount\":3456065,\"usedMg\":2000,\"remainingMg\":36000,\"shortageMg\":0,\"consumedCost\":181898,\"remainingCost\":3274167,\"remainingAllocations\":[{\"payer\":\"assistant\",\"amount\":536167,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"}],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":1178065,\"consumed\":181898,\"remaining\":996167},\"assistant2\":{\"purchased\":458000,\"consumed\":0,\"remaining\":458000}},\"averageRate\":90949,\"status\":\"using\",\"revision\":\"278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc\",\"opening\":{\"mg\":28000,\"amount\":2538065,\"allocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"pending\":false,\"pools\":[{\"id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"totalMg\":31000,\"totalAmount\":2810000,\"averageRate\":90645,\"usedMg\":3000,\"remainingMg\":28000,\"shortageMg\":0,\"consumedCost\":271935,\"remainingCost\":2538065,\"status\":\"using\",\"revision\":\"2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:27.000Z\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\"}],\"usages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":271935,\"owner_amount\":0,\"assistant_amount\":271935,\"revision\":3,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-19T02:02:27.000Z\",\"fifo_sequence\":1,\"number\":\"MM20261118-\",\"customer\":\"对照客户丁\",\"order_status\":\"delivered\",\"member\":\"assistant\",\"product\":\"足金999\"}],\"settlements\":[],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":990000,\"consumed\":271935,\"remaining\":718065}},\"settlement\":{\"assistantInventoryCredit\":718065,\"transferred\":0,\"settlementDue\":-718065,\"pending\":false}}]},\"todayPurchases\":{\"mg\":9000,\"amount\":830000,\"count\":2,\"items\":[{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\"}]},\"todayReturns\":{\"mg\":1000,\"amount\":88000,\"count\":1,\"grossMg\":1000,\"grossAmount\":88000,\"grossCount\":1},\"returns\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0}],\"purchases\":[{\"id\":\"carry:2026-11-19\",\"date\":\"2026-11-19\",\"mg\":28000,\"amount\":2538065,\"payer\":\"assistant\",\"allocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"created\":\"2026-11-19T00:00:00.000Z\",\"note\":\"以前结转\",\"sourceKind\":\"carry\",\"cashAmount\":0,\"canEdit\":false},{\"id\":\"return::material:0\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0,\"batches\":[],\"materialKind\":\"public\",\"materialOwner\":null,\"payer\":\"assistant2\",\"sourceKind\":\"return\",\"note\":\"退货回料\",\"canEdit\":false},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\"}],\"usages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":2000,\"active\":1,\"amount\":181898,\"owner_amount\":0,\"assistant_amount\":181898,\"revision\":1,\"created\":\"2026-11-19T02:02:40.000Z\",\"updated\":\"2026-11-20T02:00:15.000Z\",\"fifo_sequence\":2,\"number\":\"MM20261119-\",\"customer\":\"滚动料池客户\",\"order_status\":\"delivered\",\"assistant2_amount\":0,\"member\":\"assistant\",\"product\":\"足金999\"}],\"settlements\":[],\"settlement\":{\"legacyReadOnly\":true,\"settlementDue\":0,\"assistantInventoryCredit\":0,\"transferred\":0,\"pending\":false}}", + 1, + 12 + ], + [ + "2026-11-20", + "{\"mg\":36000,\"amount\":3274167,\"allocations\":[{\"payer\":\"assistant\",\"amount\":536167,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"}],\"pending\":false}", + "{\"id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"rolling\":true,\"frozen\":false,\"totalMg\":36000,\"totalAmount\":3274167,\"usedMg\":0,\"remainingMg\":36000,\"shortageMg\":0,\"consumedCost\":0,\"remainingCost\":3274167,\"remainingAllocations\":[{\"payer\":\"assistant\",\"amount\":536167,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"}],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":996167,\"consumed\":0,\"remaining\":996167},\"assistant2\":{\"purchased\":458000,\"consumed\":0,\"remaining\":458000}},\"averageRate\":90949,\"status\":\"unused\",\"revision\":\"2888d0d62256b3e0f97b8b29f2dcd22e44ce293073f970fe6a3139844f4a12dd\",\"opening\":{\"mg\":36000,\"amount\":3274167,\"allocations\":[{\"payer\":\"assistant\",\"amount\":536167,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"}],\"pending\":false},\"todayPurchases\":{\"mg\":0,\"amount\":0,\"count\":0,\"items\":[]},\"todayReturns\":{\"mg\":0,\"amount\":0,\"count\":0,\"grossMg\":0,\"grossAmount\":0,\"grossCount\":0},\"returns\":[],\"purchases\":[{\"id\":\"carry:2026-11-20\",\"date\":\"2026-11-20\",\"mg\":36000,\"amount\":3274167,\"payer\":\"assistant\",\"allocations\":[{\"payer\":\"assistant\",\"amount\":536167,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"}],\"created\":\"2026-11-20T00:00:00.000Z\",\"note\":\"以前结转\",\"sourceKind\":\"carry\",\"cashAmount\":0,\"canEdit\":false}],\"usages\":[],\"settlements\":[],\"settlement\":{\"legacyReadOnly\":true,\"settlementDue\":0,\"assistantInventoryCredit\":0,\"transferred\":0,\"pending\":false},\"materialGroups\":[{\"key\":\"public\",\"kind\":\"public\",\"member\":null,\"purchases\":[{\"id\":\"carry:2026-11-20\",\"date\":\"2026-11-20\",\"mg\":36000,\"amount\":3274167,\"payer\":\"assistant\",\"allocations\":[{\"payer\":\"assistant\",\"amount\":536167,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"}],\"created\":\"2026-11-20T00:00:00.000Z\",\"note\":\"以前结转\",\"sourceKind\":\"carry\",\"cashAmount\":0,\"canEdit\":false}],\"totalMg\":36000,\"totalAmount\":3274167,\"averageRate\":90949},{\"key\":\"personal:assistant\",\"kind\":\"personal_recovery\",\"member\":\"assistant\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200003\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:25.000Z\",\"source_sequence\":7,\"materialOwner\":\"assistant\",\"materialKind\":\"personal_recovery\",\"recoveryId\":\"\",\"recovery_id\":\"\",\"cashAmount\":900000,\"offsetAmount\":0,\"allocations\":[{\"payer\":\"assistant\",\"amount\":900000,\"source\":\"cash\"}],\"canEdit\":false,\"sourceKind\":\"purchase\"},{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":2000,\"amount\":180000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200005\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:30.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:30.000Z\",\"source_sequence\":9,\"materialOwner\":\"assistant\",\"materialKind\":\"personal_recovery\",\"recoveryId\":\"\",\"recovery_id\":\"\",\"cashAmount\":180000,\"offsetAmount\":0,\"allocations\":[{\"payer\":\"assistant\",\"amount\":180000,\"source\":\"cash\"}],\"canEdit\":false,\"sourceKind\":\"purchase\"}],\"totalMg\":12000,\"totalAmount\":1080000,\"averageRate\":90000}],\"personalPools\":{\"assistant\":{\"key\":\"personal:assistant\",\"kind\":\"personal_recovery\",\"member\":\"assistant\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200003\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:25.000Z\",\"source_sequence\":7,\"materialOwner\":\"assistant\",\"materialKind\":\"personal_recovery\",\"recoveryId\":\"\",\"recovery_id\":\"\",\"cashAmount\":900000,\"offsetAmount\":0,\"allocations\":[{\"payer\":\"assistant\",\"amount\":900000,\"source\":\"cash\"}],\"canEdit\":false,\"sourceKind\":\"purchase\"},{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":2000,\"amount\":180000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200005\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:30.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:30.000Z\",\"source_sequence\":9,\"materialOwner\":\"assistant\",\"materialKind\":\"personal_recovery\",\"recoveryId\":\"\",\"recovery_id\":\"\",\"cashAmount\":180000,\"offsetAmount\":0,\"allocations\":[{\"payer\":\"assistant\",\"amount\":180000,\"source\":\"cash\"}],\"canEdit\":false,\"sourceKind\":\"purchase\"}],\"totalMg\":12000,\"totalAmount\":1080000,\"averageRate\":90000,\"usedMg\":0,\"consumedCost\":0,\"remainingMg\":12000,\"remainingCost\":1080000,\"remainingAllocations\":[{\"payer\":\"assistant\",\"amount\":900000,\"source\":\"cash\"},{\"payer\":\"assistant\",\"amount\":180000,\"source\":\"cash\"}],\"remainingBatches\":[{\"purchaseId\":\"\",\"recoveryId\":\"\",\"mg\":10000},{\"purchaseId\":\"\",\"recoveryId\":\"\",\"mg\":2000}],\"shortageMg\":0,\"status\":\"unused\",\"byPayer\":{\"owner\":{\"purchased\":0,\"consumed\":0,\"remaining\":0},\"assistant\":{\"purchased\":1080000,\"consumed\":0,\"remaining\":1080000},\"assistant2\":{\"purchased\":0,\"consumed\":0,\"remaining\":0}},\"date\":\"2026-11-20\",\"id\":\"2026-11-20\"}},\"remainingMaterialGroups\":[{\"kind\":\"public\",\"member\":null,\"mg\":36000,\"amount\":3274167,\"allocations\":[{\"payer\":\"assistant\",\"amount\":536167,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"}],\"batches\":[{\"purchaseId\":\"carry:2026-11-20\",\"mg\":36000}]},{\"kind\":\"personal_recovery\",\"member\":\"assistant\",\"mg\":12000,\"amount\":1080000,\"allocations\":[{\"payer\":\"assistant\",\"amount\":900000,\"source\":\"cash\"},{\"payer\":\"assistant\",\"amount\":180000,\"source\":\"cash\"}],\"batches\":[{\"purchaseId\":\"\",\"recoveryId\":\"\",\"mg\":10000},{\"purchaseId\":\"\",\"recoveryId\":\"\",\"mg\":2000}]}]}", + 0, + 8 + ] + ] + }, + "material_rolling_legacy": { + "columns": [ + "pool_id", + "snapshot" + ], + "rows": [ + [ + "2026-11-18", + "{\"id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"totalMg\":31000,\"totalAmount\":2810000,\"averageRate\":90645,\"usedMg\":3000,\"remainingMg\":28000,\"shortageMg\":0,\"consumedCost\":271935,\"remainingCost\":2538065,\"status\":\"using\",\"revision\":\"2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:27.000Z\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\"}],\"usages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":271935,\"owner_amount\":0,\"assistant_amount\":271935,\"revision\":3,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-19T02:02:27.000Z\",\"fifo_sequence\":1,\"number\":\"MM20261118-\",\"customer\":\"对照客户丁\",\"order_status\":\"delivered\",\"member\":\"assistant\",\"product\":\"足金999\"}],\"settlements\":[],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":990000,\"consumed\":271935,\"remaining\":718065}},\"settlement\":{\"assistantInventoryCredit\":718065,\"transferred\":0,\"settlementDue\":-718065,\"pending\":false}}" + ] + ] + }, + "material_rolling_returns": { + "columns": [ + "id", + "order_id", + "line_index", + "date", + "mg", + "amount", + "allocations", + "origin_pool_id", + "same_day", + "actor", + "created" + ], + "rows": [ + [ + "", + "", + 0, + "2026-11-19", + 1000, + 88000, + "[{\"payer\":\"assistant2\",\"amount\":88000}]", + "", + 0, + "麦麦", + "2026-11-19T02:01:05.000Z" + ] + ] + }, + "material_rolling_source_order": { + "columns": [ + "sequence", + "kind", + "source_id" + ], + "rows": [ + [ + 1, + "return", + "" + ], + [ + 2, + "purchase", + "" + ], + [ + 3, + "purchase", + "" + ], + [ + 4, + "purchase", + "" + ], + [ + 5, + "purchase", + "" + ], + [ + 6, + "purchase", + "" + ], + [ + 7, + "purchase", + "" + ], + [ + 8, + "purchase", + "" + ], + [ + 9, + "purchase", + "" + ] + ] + }, + "material_usage_allocations": { + "columns": [ + "usage_id", + "allocations" + ], + "rows": [] + }, + "material_usage_order": { + "columns": [ + "sequence", + "kind", + "source_id" + ], + "rows": [ + [ + 1, + "order", + "" + ], + [ + 2, + "order", + "" + ] + ] + }, + "material_usage_parties": { + "columns": [ + "usage_id", + "assistant2_amount" + ], + "rows": [ + [ + "", + 0 + ] + ] + }, + "material_usage_sources": { + "columns": [ + "usage_id", + "sources" + ], + "rows": [] + }, + "meta": { + "columns": [ + "key", + "value" + ], + "rows": [ + [ + "team-members-initialized-v1", + "{\"version\":1}" + ], + [ + "team-mode-v1", + "{\"version\":1,\"cutover\":\"2026-11-18T02:00:00.000Z\",\"historicalDefault\":\"assistant\",\"notice\":\"历史金额、审计与双人结算保留;三人资金仅从新启用实体及明确基线生效\"}" + ], + [ + "team-material-funding-rule", + "{\"version\":2,\"previousVersion\":1,\"cutover\":\"2026-11-18T02:00:00.000Z\",\"sourceCount\":0,\"changedSources\":0,\"legacyRebasedSources\":0,\"notice\":\"只升级已启用三人来源;历史二人不激活;采购记实际现金,料费按有效订单耗用记往来,原转账保留\"}" + ], + [ + "team-accounts-initialized-v1", + "{\"version\":1}" + ], + [ + "shop-settings-v1", + "{\"version\":1,\"revision\":7,\"storeName\":\"黄金对照珠宝\",\"receiptSubtitle\":\"黄金对照销售单\",\"contact\":\"联系电话 000-0000\",\"members\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\",\"operatorName\":\"\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\",\"operatorName\":\"\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\"}],\"creditCardRatePermille\":6,\"profitSharePercent\":30,\"profitShareEffectiveMonth\":\"2000-01\",\"profitShareHistory\":[{\"month\":\"2000-01\",\"percent\":30}],\"costPresets\":{\"jd\":{\"amount\":\"8\",\"payer\":\"owner\"},\"yt\":{\"amount\":\"6\",\"payer\":\"order\"},\"box\":{\"amount\":\"3\",\"payer\":\"owner\"},\"steel\":{\"amount\":\"7\",\"payer\":\"owner\"},\"silver\":{\"amount\":\"18\",\"payer\":\"owner\"}},\"feeDefaults\":{\"certificate\":\"4\",\"packaging\":\"3\",\"shipping\":\"8\",\"packagingPayer\":\"owner\"},\"loginAliases\":{\"owner\":[\"麦麦\"],\"assistant\":[\"娜娜\",\"助理\",\"助理1\"],\"assistant2\":[\"小昊\",\"助理2\"]}}" + ], + [ + "printing", + "{\"width\":241,\"height\":140,\"offsetX\":2,\"offsetY\":3,\"rows\":3,\"contentTop\":12,\"rowHeight\":10}" + ], + [ + "paper-sequence", + "17" + ], + [ + "recovery-sequence", + "5" + ], + [ + "customer-material-sequence", + "1" + ], + [ + "rolling-material-pools-v1", + "{\"enabled\":true,\"cutover\":\"2026-11-19\",\"created\":\"2026-11-19T02:02:18.000Z\",\"actor\":\"麦麦\"}" + ] + ] + }, + "movement_counts": { + "columns": [ + "movement_id", + "stock_count", + "effective_date" + ], + "rows": [] + }, + "movements": { + "columns": [ + "id", + "group_id", + "order_id", + "date", + "pocket", + "mg", + "kind", + "note", + "purchase_cost", + "actor", + "created" + ], + "rows": [ + [ + "", + "", + null, + "2026-11-18", + "现货", + 100000, + "opening", + "黄金对照起始库存", + null, + "麦麦", + "2026-11-18T02:01:00.000Z" + ], + [ + "", + "", + null, + "2026-11-18", + "金料", + 50000, + "opening", + "黄金对照起始金料", + null, + "麦麦", + "2026-11-18T02:01:01.000Z" + ], + [ + "", + "", + null, + "2026-11-18", + "pocket_", + 20000, + "opening", + "展柜起始", + null, + "麦麦", + "2026-11-18T02:01:02.000Z" + ], + [ + "", + "", + null, + "2026-11-18", + "现货", + -5000, + "transfer", + "调拨", + null, + "麦麦", + "2026-11-18T02:01:03.000Z" + ], + [ + "", + "", + null, + "2026-11-18", + "金料", + 5000, + "transfer", + "调拨", + null, + "麦麦", + "2026-11-18T02:01:03.000Z" + ], + [ + "", + "", + null, + "2026-11-18", + "现货", + 2500, + "increase", + "娜娜手动入库", + null, + "助理", + "2026-11-18T02:01:04.000Z" + ], + [ + "", + "", + null, + "2026-11-18", + "现货", + -500, + "decrease", + "娜娜手动出库", + null, + "助理", + "2026-11-18T02:01:05.000Z" + ], + [ + "", + "", + "", + "2026-11-18", + "现货", + -3250, + "sale", + "MM20261118-", + null, + "助理", + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "", + "", + "2026-11-18", + "现货", + -2000, + "sale", + "MM20261118-", + null, + "助理2", + "2026-11-18T02:01:18.000Z" + ], + [ + "", + "", + "", + "2026-11-18", + "pocket_", + -10000, + "sale", + "MM20261118-", + null, + "麦麦", + "2026-11-18T02:01:23.000Z" + ], + [ + "", + "", + "", + "2026-11-18", + "现货", + -1500, + "sale", + "MM20261118-", + null, + "助理2", + "2026-11-18T02:01:24.000Z" + ], + [ + "", + "", + "", + "2026-11-18", + "现货", + -5000, + "sale", + "MM20261118-", + null, + "助理2", + "2026-11-18T02:01:25.000Z" + ], + [ + "", + "", + "", + "2026-11-18", + "现货", + -800, + "sale", + "MM20261118-", + null, + "助理", + "2026-11-18T02:01:26.000Z" + ], + [ + "", + "", + "", + "2026-11-18", + "现货", + -4000, + "sale", + "MM20261118-", + null, + "麦麦", + "2026-11-18T02:01:34.000Z" + ], + [ + "", + "", + null, + "2026-11-18", + "现货", + -2500, + "manual_reversal", + "手动库存更正冲回:", + null, + "麦麦", + "2026-11-19T02:00:11.000Z" + ], + [ + "", + "", + null, + "2026-11-18", + "现货", + 3000, + "increase", + "娜娜手动入库", + null, + "麦麦", + "2026-11-19T02:00:11.000Z" + ], + [ + "", + "", + null, + "2026-11-19", + "金料", + 1000, + "increase", + "当天手动入库", + null, + "助理", + "2026-11-19T02:00:16.000Z" + ], + [ + "", + "", + null, + "2026-11-19", + "金料", + -1000, + "manual_reversal", + "手动库存更正冲回:", + null, + "助理", + "2026-11-19T02:00:19.000Z" + ], + [ + "", + "", + null, + "2026-11-19", + "金料", + 1200, + "increase", + "当天手动入库", + null, + "助理", + "2026-11-19T02:00:19.000Z" + ], + [ + "", + "", + null, + "2026-11-19", + "金料", + -1200, + "manual_reversal", + "手动库存更正冲回:", + null, + "麦麦", + "2026-11-19T02:00:21.000Z" + ], + [ + "", + "", + "", + "2026-11-18", + "现货", + 1500, + "order_cancel_reverse", + "MM20261118-;审批作废:重复录入", + null, + "麦麦", + "2026-11-19T02:00:45.000Z" + ], + [ + "", + "after-sale:", + "", + "2026-11-19", + "金料", + 1000, + "return", + "MM20261118- · 售后回收旧料", + null, + "麦麦", + "2026-11-19T02:01:05.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + 3000, + "lock_purchase", + "SJ20261118- 足金999 原锁定黄金入库", + 255000, + "助理", + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + 100, + "lock_purchase", + "SJ20261118- 足金999 补重黄金入库", + 9000, + "助理", + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + -3100, + "sale", + "MM20261119-", + null, + "助理", + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "回收旧料", + 7992, + "recovery", + "HS202611190001", + null, + "助理2", + "2026-11-19T02:01:32.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + -12000, + "sale", + "MM20261119-", + null, + "助理2", + "2026-11-19T02:01:32.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "回收旧料", + 4851, + "recovery", + "HS202611190002", + null, + "助理", + "2026-11-19T02:01:33.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + -6000, + "sale", + "MM20261119-", + null, + "助理", + "2026-11-19T02:01:33.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + -2000, + "sale", + "MM20261119-", + null, + "助理", + "2026-11-19T02:01:48.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + -2000, + "sale", + "MM20261119-", + null, + "助理", + "2026-11-19T02:01:57.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + 2000, + "order_cancel_reverse", + "MM20261119-;当天直接作废:当天录错", + null, + "助理", + "2026-11-19T02:01:59.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + -500, + "sale", + "MM20261119-", + null, + "助理", + "2026-11-19T02:02:51.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "回收旧料", + -7992, + "recovery_change_reverse", + "回收更正:HS202611190001;跨天更正旧料克重", + null, + "麦麦", + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + 12000, + "recovery_change_reverse", + "回收更正:HS202611190001;跨天更正旧料克重", + null, + "麦麦", + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "回收旧料", + 8092, + "recovery_change_old", + "回收更正:HS202611190001;跨天更正旧料克重", + null, + "麦麦", + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + -12000, + "recovery_change_sale", + "回收更正:HS202611190001;跨天更正旧料克重", + null, + "麦麦", + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "回收旧料", + -4851, + "recovery_change_reverse", + "回收更正:HS202611190002;录错", + null, + "麦麦", + "2026-11-20T02:00:15.000Z" + ], + [ + "", + "", + "", + "2026-11-19", + "现货", + 6000, + "recovery_change_reverse", + "回收更正:HS202611190002;录错", + null, + "麦麦", + "2026-11-20T02:00:15.000Z" + ], + [ + "", + "", + null, + "2026-11-20", + "回收旧料", + 10000, + "recovery", + "HS202611200003", + 900000, + "助理", + "2026-11-20T02:00:20.000Z" + ], + [ + "", + "", + null, + "2026-11-20", + "回收旧料", + 3000, + "recovery", + "HS202611200004", + 270000, + "麦麦", + "2026-11-20T02:00:21.000Z" + ], + [ + "", + "", + null, + "2026-11-20", + "回收旧料", + -10000, + "recovery_change_reverse", + "回收更正:HS202611200003;当天更正", + null, + "助理", + "2026-11-20T02:00:25.000Z" + ], + [ + "", + "", + null, + "2026-11-20", + "回收旧料", + 10000, + "recovery_change_old", + "回收更正:HS202611200003;当天更正", + null, + "助理", + "2026-11-20T02:00:25.000Z" + ], + [ + "", + "", + null, + "2026-11-20", + "回收旧料", + -3000, + "recovery_change_reverse", + "回收更正:HS202611200004;录错", + null, + "麦麦", + "2026-11-20T02:00:27.000Z" + ], + [ + "", + "", + "", + "2026-11-20", + "现货", + -2000, + "sale", + "MM20261120-", + null, + "助理", + "2026-11-20T02:00:29.000Z" + ], + [ + "", + "", + null, + "2026-11-20", + "回收旧料", + 2000, + "recovery", + "HS202611200005", + 180000, + "助理", + "2026-11-20T02:00:30.000Z" + ] + ] + }, + "operations": { + "columns": [ + "id", + "hash", + "result" + ], + "rows": [ + [ + "golden-00013-shop-settings", + "cd4cd44b4246732f21d310f3c20bb480ef8ec80b8b7fc410d5b45c117d3ec42d", + "{\"ok\":true,\"shopSettings\":{\"version\":1,\"revision\":1,\"storeName\":\"黄金对照珠宝\",\"receiptSubtitle\":\"黄金对照销售单\",\"contact\":\"联系电话 000-0000\",\"members\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\",\"operatorName\":\"\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\",\"operatorName\":\"\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\"}],\"creditCardRatePermille\":6,\"profitSharePercent\":30,\"profitShareEffectiveMonth\":\"2000-01\",\"profitShareHistory\":[{\"month\":\"2000-01\",\"percent\":30}],\"costPresets\":{\"jd\":{\"amount\":\"8\",\"payer\":\"owner\"},\"yt\":{\"amount\":\"6\",\"payer\":\"order\"},\"box\":{\"amount\":\"3\",\"payer\":\"owner\"},\"steel\":{\"amount\":\"7\",\"payer\":\"owner\"},\"silver\":{\"amount\":\"18\",\"payer\":\"owner\"}},\"feeDefaults\":{\"certificate\":\"4\",\"packaging\":\"3\",\"shipping\":\"8\",\"packagingPayer\":\"owner\"}},\"printing\":{\"store\":\"黄金对照珠宝\",\"subtitle\":\"黄金对照销售单\",\"contact\":\"联系电话 000-0000\",\"width\":241,\"height\":140,\"offsetX\":0,\"offsetY\":0,\"rows\":3,\"contentTop\":12,\"rowHeight\":10}}" + ], + [ + "golden-00016-printing", + "4eedb03990d2189d3e47d4c6a52e54413365b59276d3d218e55d7ea622b5072d", + "{\"ok\":true,\"shopSettings\":{\"version\":1,\"revision\":1,\"storeName\":\"黄金对照珠宝\",\"receiptSubtitle\":\"黄金对照销售单\",\"contact\":\"联系电话 000-0000\",\"members\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\",\"operatorName\":\"\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\",\"operatorName\":\"\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\"}],\"creditCardRatePermille\":6,\"profitSharePercent\":30,\"profitShareEffectiveMonth\":\"2000-01\",\"profitShareHistory\":[{\"month\":\"2000-01\",\"percent\":30}],\"costPresets\":{\"jd\":{\"amount\":\"8\",\"payer\":\"owner\"},\"yt\":{\"amount\":\"6\",\"payer\":\"order\"},\"box\":{\"amount\":\"3\",\"payer\":\"owner\"},\"steel\":{\"amount\":\"7\",\"payer\":\"owner\"},\"silver\":{\"amount\":\"18\",\"payer\":\"owner\"}},\"feeDefaults\":{\"certificate\":\"4\",\"packaging\":\"3\",\"shipping\":\"8\",\"packagingPayer\":\"owner\"}},\"printing\":{\"store\":\"黄金对照珠宝\",\"subtitle\":\"黄金对照销售单\",\"contact\":\"联系电话 000-0000\",\"width\":241,\"height\":140,\"offsetX\":2,\"offsetY\":3,\"rows\":3,\"contentTop\":12,\"rowHeight\":10}}" + ], + [ + "golden-00018-pockets", + "130444b84b8e8203a4251028307389e87d6ffc74bf85ca9de37ae61a1ddc3c88", + "{\"pocket\":{\"key\":\"pocket_\",\"name\":\"展柜A\",\"active\":true,\"self\":true,\"builtin\":false,\"revision\":1,\"created\":\"2026-11-18T02:00:32.000Z\",\"updated\":\"2026-11-18T02:00:32.000Z\",\"countUnit\":null,\"countSince\":null},\"catalog\":[{\"key\":\"现货\",\"name\":\"现货\",\"active\":true,\"self\":true,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"金料\",\"name\":\"金料\",\"active\":true,\"self\":true,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"找金\",\"name\":\"找金\",\"active\":true,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"回收旧料\",\"name\":\"回收旧料\",\"active\":true,\"self\":true,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"君宝汇\",\"name\":\"君宝汇\",\"active\":true,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"臻金汇\",\"name\":\"臻金汇\",\"active\":false,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"金金\",\"name\":\"金金\",\"active\":false,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"定制工厂\",\"name\":\"定制工厂\",\"active\":false,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"pocket_\",\"name\":\"展柜A\",\"active\":true,\"self\":true,\"builtin\":false,\"revision\":1,\"created\":\"2026-11-18T02:00:32.000Z\",\"updated\":\"2026-11-18T02:00:32.000Z\",\"countUnit\":null,\"countSince\":null}],\"pockets\":[\"现货\",\"金料\",\"找金\",\"回收旧料\",\"君宝汇\",\"pocket_\"]}" + ], + [ + "golden-00020-update", + "fc5bf462309e46017f352c233aaea3a9b7c655e84aeec5f737933e58d0aac0e6", + "{\"pocket\":{\"key\":\"pocket_\",\"name\":\"展柜A(主)\",\"active\":true,\"self\":true,\"builtin\":false,\"revision\":2,\"created\":\"2026-11-18T02:00:32.000Z\",\"updated\":\"2026-11-18T02:00:34.000Z\",\"countUnit\":null,\"countSince\":null},\"catalog\":[{\"key\":\"现货\",\"name\":\"现货\",\"active\":true,\"self\":true,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"金料\",\"name\":\"金料\",\"active\":true,\"self\":true,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"找金\",\"name\":\"找金\",\"active\":true,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"回收旧料\",\"name\":\"回收旧料\",\"active\":true,\"self\":true,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"君宝汇\",\"name\":\"君宝汇\",\"active\":true,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"臻金汇\",\"name\":\"臻金汇\",\"active\":false,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"金金\",\"name\":\"金金\",\"active\":false,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"定制工厂\",\"name\":\"定制工厂\",\"active\":false,\"self\":false,\"builtin\":true,\"revision\":1,\"created\":\"2026-11-18T02:00:00.000Z\",\"updated\":\"2026-11-18T02:00:00.000Z\",\"countUnit\":null,\"countSince\":null},{\"key\":\"pocket_\",\"name\":\"展柜A(主)\",\"active\":true,\"self\":true,\"builtin\":false,\"revision\":2,\"created\":\"2026-11-18T02:00:32.000Z\",\"updated\":\"2026-11-18T02:00:34.000Z\",\"countUnit\":null,\"countSince\":null}],\"pockets\":[\"现货\",\"金料\",\"找金\",\"回收旧料\",\"君宝汇\",\"pocket_\"]}" + ], + [ + "golden-00022-employees", + "4ccee43722c03e43824a8d02d696be799c8757fe81e1d2fe62a37e38e948a4bb", + "{\"ok\":true,\"revision\":2,\"employees\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"owner\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":false,\"canDeactivate\":false,\"canReactivate\":false,\"deleteReason\":\"店主账号不能删除或停用\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"},{\"member\":\"staff_\",\"label\":\"临时店员\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"}],\"employee\":{\"member\":\"staff_\",\"label\":\"临时店员\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"}}" + ], + [ + "golden-00024-update", + "a22bd2c86b4beb4c0a090c311334d2d671e45dabbd0e7e7181bcf85f0e2b88bf", + "{\"ok\":true,\"revision\":3,\"employees\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"owner\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":false,\"canDeactivate\":false,\"canReactivate\":false,\"deleteReason\":\"店主账号不能删除或停用\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"},{\"member\":\"staff_\",\"label\":\"临时店员甲\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"}],\"employee\":{\"member\":\"staff_\",\"label\":\"临时店员甲\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"}}" + ], + [ + "golden-00025-deactivate", + "9841b968e65aaeda14e5588169b053a47d9261a51de1e9c8d73d0abc735211fd", + "{\"ok\":true,\"revision\":4,\"employees\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"owner\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":false,\"canDeactivate\":false,\"canReactivate\":false,\"deleteReason\":\"店主账号不能删除或停用\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"},{\"member\":\"staff_\",\"label\":\"临时店员甲\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":false,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":false,\"canReactivate\":true,\"deleteReason\":\"\"}],\"employee\":{\"member\":\"staff_\",\"label\":\"临时店员甲\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":false,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":false,\"canReactivate\":true,\"deleteReason\":\"\"}}" + ], + [ + "golden-00026-reactivate", + "99eda2b63b02231c9729b870660b42111e786168a8c9079ab241aef9f216818e", + "{\"ok\":true,\"revision\":5,\"employees\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"owner\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":false,\"canDeactivate\":false,\"canReactivate\":false,\"deleteReason\":\"店主账号不能删除或停用\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"},{\"member\":\"staff_\",\"label\":\"临时店员甲\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"}],\"employee\":{\"member\":\"staff_\",\"label\":\"临时店员甲\",\"loginName\":\"temp-clerk\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"}}" + ], + [ + "golden-00027-delete", + "0f09000b2ca17ef8761f0d21f90781c9f696cbdabeedfc684c16f8a9d89f1143", + "{\"ok\":true,\"revision\":6,\"employees\":[{\"member\":\"owner\",\"label\":\"麦麦\",\"loginName\":\"麦麦\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"owner\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":false,\"canDeactivate\":false,\"canReactivate\":false,\"deleteReason\":\"店主账号不能删除或停用\"},{\"member\":\"assistant\",\"label\":\"娜娜\",\"loginName\":\"助理\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"},{\"member\":\"assistant2\",\"label\":\"小昊\",\"loginName\":\"助理2\",\"operatorName\":\"\",\"userId\":\"\",\"passwordSet\":true,\"enabled\":true,\"role\":\"assistant\",\"hasBusinessData\":false,\"businessUsage\":[],\"canDelete\":true,\"canDeactivate\":true,\"canReactivate\":false,\"deleteReason\":\"\"}]}" + ], + [ + "golden-00030-password", + "fcf4c7b76629418cc6761f0a0b9b379ebe8eebebcb10bb513cdb0e4cbe7fdf4b", + "{\"ok\":true,\"member\":\"assistant2\"}" + ], + [ + "golden-00033-password", + "b8d95216fe6e2fa37f0c7935d80c8b84fe95b9551fb889071b1a6eb2078de520", + "{\"ok\":true}" + ], + [ + "golden-00035-stock", + "7b68a2324d762f540a2ff467efa93c7db15bc0fe4fbec60f4c9d6000c34528e8", + "{\"group\":\"\"}" + ], + [ + "golden-00036-stock", + "4780ba218cd1f80472f4afc43ebc05c59aa5316afc0c7435afa2e26ab0fe1bd4", + "{\"group\":\"\"}" + ], + [ + "golden-00037-stock", + "3fed90434cd52b114317d0046fe0ffac685136e596ccddb3ade5845764adf58a", + "{\"group\":\"\"}" + ], + [ + "golden-00038-stock", + "a608d6b8d8abf9b1e7b27395decaec52b9aacdb38a00b94f03fb4cc9c685502e", + "{\"group\":\"\"}" + ], + [ + "golden-00039-stock", + "69beb049ace0d0f0571cb0b3220d3cf35d131d85b6182f16ca4d9bc7c576cfdc", + "{\"group\":\"\"}" + ], + [ + "golden-00040-stock", + "72f20e5c0c55dcd2ba29a57d00df5be939dd6791a64aa7d1600a1099ab85c5d5", + "{\"group\":\"\"}" + ], + [ + "golden-00042-material-purchases", + "43a827ba03b8f55d1ad8ccdd5ec83c80f185005d4eaf1d8dc1c9aca8fd35de57", + "{\"id\":\"\",\"poolId\":\"2026-11-18\",\"pool\":{\"id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"totalMg\":10000,\"totalAmount\":900000,\"averageRate\":90000,\"usedMg\":0,\"remainingMg\":10000,\"shortageMg\":0,\"consumedCost\":0,\"remainingCost\":900000,\"status\":\"unused\",\"revision\":\"0e321cf14889f6a24b63cbba1ec96623b1705edc520a42d559c605f61f9e560b\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:09.000Z\",\"member\":\"assistant\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false}],\"usages\":[],\"settlements\":[],\"byPayer\":{\"owner\":{\"purchased\":0,\"consumed\":0,\"remaining\":0},\"assistant\":{\"purchased\":900000,\"consumed\":0,\"remaining\":900000}},\"settlement\":{\"legacyReadOnly\":true,\"pending\":false,\"settlementDue\":null},\"legacyReadOnly\":true}}" + ], + [ + "golden-00043-material-purchases", + "17560b34784b3dfb953a4baf4827024ba1d525f07f0f9052f9746ad68622348b", + "{\"id\":\"\",\"poolId\":\"2026-11-18\",\"pool\":{\"id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"totalMg\":30000,\"totalAmount\":2720000,\"averageRate\":90667,\"usedMg\":0,\"remainingMg\":30000,\"shortageMg\":0,\"consumedCost\":0,\"remainingCost\":2720000,\"status\":\"unused\",\"revision\":\"9655756a9b9e645bb4674d581527be550dda252e21d90d2f298bce50e094c878\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:09.000Z\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"owner\"}],\"usages\":[],\"settlements\":[],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":900000,\"consumed\":0,\"remaining\":900000}},\"settlement\":{\"assistantInventoryCredit\":900000,\"transferred\":0,\"settlementDue\":-900000,\"pending\":false},\"legacyReadOnly\":true}}" + ], + [ + "golden-00044-issue-per-gram", + "aeb9a8fa45d9783feb58b20a12d375bf369b33999c133bc8e5f185c863a87cc1", + "{\"id\":\"\"}" + ], + [ + "golden-00045-issue-per-piece", + "6c81dd7c42ad52d4af649ff9c2fa9583026533a8bf8bca3a56317f612279e6fe", + "{\"id\":\"\"}" + ], + [ + "golden-00046-issue-fixed-credit-card", + "3695a2c2f3009a04ba28644dda420002a1e447795fb8969284e8957cd36fa526", + "{\"id\":\"\"}" + ], + [ + "golden-00047-issue-material-pool", + "b2a77a4048e2088ab2fb8ebff60836b4e7c97bbbc400fcf6ed058315bb919b02", + "{\"id\":\"\"}" + ], + [ + "golden-00048-save-draft", + "c6d0c79bd9c6d0000c64c69d12f6ec42d56d97638e8fa5c80c4ff8c90f6fcaba", + "{\"id\":\"\"}" + ], + [ + "golden-00049-issue-from-draft", + "89ce39022d5b9e66740869eb624d9d2e2256eb8fb633106c828cdb82c9c7e235", + "{\"id\":\"\"}" + ], + [ + "golden-00050-issue-to-cancel", + "233a43780d4f70550c4e2e45afc85bc1f751e2f8156084505f065921bae44a3d", + "{\"id\":\"\"}" + ], + [ + "golden-00051-issue-for-after-sale", + "3c7f1f47ee51b060a616f0b63e1e7a90d4f6d9be4c25998697e3649a5028a3b8", + "{\"id\":\"\"}" + ], + [ + "golden-00052-issue-to-reject", + "676a66a7ae26d3d708cb3c4bbe47c37b3faa95bfc33a43e1cef9c27e0fa8b88d", + "{\"id\":\"\"}" + ], + [ + "golden-00053-save-draft-steps", + "a17ee6acb5f484e26be16dfe7df627712d2e79a7c73064aafe146629ef4542eb", + "{\"id\":\"\"}" + ], + [ + "golden-00054-steps-confirm", + "83d4a7206a4a27cd51bf5ec6ae82354baff51e06dcde55b525eab4ca0cd1a46b", + "{\"id\":\"\"}" + ], + [ + "golden-00055-steps-receipt-deposit", + "2fe979707656b1e66c0f9f295238fa3be218f16ba79efec532c02961beebc701", + "{\"id\":\"\"}" + ], + [ + "golden-00057-steps-receipt-balance", + "be63fcd7d6c5ba12d6fad874ffbf90ddfbcd3d448a6b3c745fe9fb3752fe3cc0", + "{\"id\":\"\"}" + ], + [ + "golden-00058-steps-complete", + "7eaa9c4e9cd61f8722c94a61cbf8ad6a6e1e29389a3d4760dec865601607f69b", + "{\"id\":\"\"}" + ], + [ + "golden-00060-", + "4e6c82ca15fdcef0c67b9b0e9eb01a6fa4251f30493496060c287f7836e4626f", + "{\"kind\":\"order\",\"id\":\"\",\"printed\":true,\"revision\":1,\"updated\":\"2026-11-18T02:01:48.000Z\",\"actor\":\"助理\",\"sourceRevision\":4}" + ], + [ + "golden-00061-print-status-unset", + "8300d13065b7fd64c15a050a1e5336232995542ab41e26482dd565fa241a1528", + "{\"kind\":\"order\",\"id\":\"\",\"printed\":false,\"revision\":2,\"updated\":\"2026-11-18T02:01:50.000Z\",\"actor\":\"助理\",\"sourceRevision\":4}" + ], + [ + "golden-00062-lock-create", + "b12857ec23d73d9ac69ac1aca8b8802b4a457014295bd830707a6199356b143c", + "{\"id\":\"\",\"price_lock_id\":\"\",\"status\":\"pending\",\"revision\":1}" + ], + [ + "golden-00063-lock-create-2", + "90203f484206e90d30a5e9a164fe1a08f3b3eb6a3985a0cec6ba98396d8c4529", + "{\"id\":\"\",\"price_lock_id\":\"\",\"status\":\"pending\",\"revision\":1}" + ], + [ + "golden-00064-lock-create-3", + "a2848c69787061947f7315921765526d1888dac418a4813dc8c8cbee36c965dd", + "{\"id\":\"\",\"price_lock_id\":\"\",\"status\":\"pending\",\"revision\":1}" + ], + [ + "golden-00065-lock-create-owner", + "3a4bede107e4521317a2a00e6d8b32f316d02713da5d7d46c64677a8487418f1", + "{\"id\":\"\",\"price_lock_id\":\"\",\"status\":\"pending\",\"revision\":1}" + ], + [ + "golden-00066-lock-edit-same-day", + "f01f0cb6c0cb37793a64c3860fb36fe7108f67ebbde0b810ac694835f8505f5c", + "{\"id\":\"\",\"price_lock_id\":\"\",\"status\":\"pending\",\"revision\":2,\"lock\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户二\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"updated\":\"2026-11-18T02:02:02.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":120000,\"account\":\"助理支付宝\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:02:02.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":100000,\"account\":\"助理支付宝\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户二\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:54.000Z\",\"line_index\":null,\"voided\":1,\"void_reason\":\"当天更正收款\",\"voided_at\":\"2026-11-18T02:02:02.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"received\":120000,\"refunded\":0,\"netReceived\":120000,\"credit_card_fees\":[],\"credit_card_fee_total\":0}}" + ], + [ + "golden-00067-after-sales", + "97b781a1f71dcf1737f2e57100027f2b778f38cc06ff69d00080efa8a5d8ae36", + "{\"after_sale_id\":\"\",\"kind\":\"afterSale\"}" + ], + [ + "golden-00068-after-sale-owner-zero", + "8bb7bdc2be4bf06a3998d92152ba2b351748ff01d5bf468b8be34b42e720480b", + "{\"after_sale_id\":\"\",\"kind\":\"afterSale\"}" + ], + [ + "golden-00070-order-templates", + "41c3de104de6226ff7c16f79f153cf7e8d3dfd5fcb5f45bb5ca05953e35f6950", + "{\"id\":\"\",\"name\":\"对照常用模板\",\"revision\":1,\"updated\":\"2026-11-18T02:02:08.000Z\"}" + ], + [ + "golden-00071-update", + "4a6b7a71937255b692fd238def2456954a37ac776d75c18d5f27122bf841c94e", + "{\"id\":\"\",\"name\":\"对照常用模板(改)\",\"revision\":2,\"updated\":\"2026-11-18T02:02:13.000Z\"}" + ], + [ + "golden-00072-template-assistant", + "0bc97032c73cf7ebb9994eff57875024aba1731c51a31bbba08c32784a49eea2", + "{\"id\":\"\",\"name\":\"娜娜自建模板\",\"revision\":1,\"updated\":\"2026-11-18T02:02:14.000Z\"}" + ], + [ + "golden-00073-template-delete", + "76b8020bdce9055f9a61440ff6c0afa35d0234ba6ce443978d7bac3eef574420", + "{\"id\":\"\",\"deleted\":true}" + ], + [ + "golden-00074-reimbursements", + "1e4413a2d743e6fc7f70e639761adb0a15e409e335d0b7939bbac50922e74a97", + "{\"id\":\"\",\"reimbursement\":{\"id\":\"\",\"date\":\"2026-11-18\",\"items\":[{\"id\":\"\",\"name\":\"对照邮寄\",\"amount\":1500,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":1500},{\"id\":\"\",\"name\":\"对照包装\",\"amount\":650,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":650}],\"total\":2150,\"note\":\"对照报销\",\"status\":\"pending\",\"revision\":1,\"requester_id\":\"\",\"requester_name\":\"助理\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"review_note\":\"\",\"created\":\"2026-11-18T02:02:18.000Z\",\"updated\":\"2026-11-18T02:02:18.000Z\",\"payer\":\"assistant\",\"member\":\"assistant\",\"fundingMode\":\"independent\",\"canEdit\":true,\"canApprove\":false}}" + ], + [ + "golden-00075-reimbursement-update", + "4434ab11b93b602072f09591cc30ad1c353721201106e7d73b2102be3b5a177e", + "{\"id\":\"\",\"reimbursement\":{\"id\":\"\",\"date\":\"2026-11-18\",\"items\":[{\"id\":\"\",\"name\":\"对照邮寄\",\"amount\":1500,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":1500},{\"id\":\"\",\"name\":\"对照包装\",\"amount\":650,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":650}],\"total\":2150,\"note\":\"补充备注\",\"status\":\"pending\",\"revision\":2,\"requester_id\":\"\",\"requester_name\":\"助理\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"review_note\":\"\",\"created\":\"2026-11-18T02:02:18.000Z\",\"updated\":\"2026-11-18T02:02:22.000Z\",\"payer\":\"assistant\",\"member\":\"assistant\",\"fundingMode\":\"independent\",\"canEdit\":true,\"canApprove\":false}}" + ], + [ + "golden-00077-approve", + "bfdf034305b0c671f8d1d9316163d41fa02be1521d9bf5198958a77b1471d395", + "{\"id\":\"\",\"reimbursement\":{\"id\":\"\",\"date\":\"2026-11-18\",\"items\":[{\"id\":\"\",\"name\":\"对照邮寄\",\"amount\":1500,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":1500},{\"id\":\"\",\"name\":\"对照包装\",\"amount\":650,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":650}],\"total\":2150,\"note\":\"补充备注\",\"status\":\"approved\",\"revision\":3,\"requester_id\":\"\",\"requester_name\":\"助理\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-18T02:02:24.000Z\",\"review_note\":\"\",\"created\":\"2026-11-18T02:02:18.000Z\",\"updated\":\"2026-11-18T02:02:24.000Z\",\"payer\":\"assistant\",\"member\":\"assistant\",\"fundingMode\":\"independent\",\"canEdit\":false,\"canApprove\":false}}" + ], + [ + "golden-00078-reimbursement-2", + "ef6a6ab2fa180322480e407785e5c4030cee87e2107da2af92bee7e3e4f6e76a", + "{\"id\":\"\",\"reimbursement\":{\"id\":\"\",\"date\":\"2026-11-18\",\"items\":[{\"id\":\"\",\"name\":\"对照快递\",\"amount\":900,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":900}],\"total\":900,\"note\":\"\",\"status\":\"pending\",\"revision\":1,\"requester_id\":\"\",\"requester_name\":\"助理2\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"review_note\":\"\",\"created\":\"2026-11-18T02:02:25.000Z\",\"updated\":\"2026-11-18T02:02:25.000Z\",\"payer\":\"assistant2\",\"member\":\"assistant2\",\"fundingMode\":\"independent\",\"canEdit\":true,\"canApprove\":false}}" + ], + [ + "golden-00079-reimbursement-reject", + "1aa11f40ce75a3b623981d7c789d172eca7fb841393782215f05c96828feec91", + "{\"id\":\"\",\"reimbursement\":{\"id\":\"\",\"date\":\"2026-11-18\",\"items\":[{\"id\":\"\",\"name\":\"对照快递\",\"amount\":900,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\",\"usedAmount\":0,\"remainingAmount\":900}],\"total\":900,\"note\":\"\",\"status\":\"rejected\",\"revision\":2,\"requester_id\":\"\",\"requester_name\":\"助理2\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-18T02:02:26.000Z\",\"review_note\":\"凭据不全\",\"created\":\"2026-11-18T02:02:25.000Z\",\"updated\":\"2026-11-18T02:02:26.000Z\",\"payer\":\"assistant2\",\"member\":\"assistant2\",\"fundingMode\":\"independent\",\"canEdit\":true,\"canApprove\":false}}" + ], + [ + "golden-00081-transfer", + "7209b1010784dd0db00781dcbc99a07e4fd1041a34f31a2432ad09676d2e556c", + "{\"id\":\"\",\"team\":{\"from\":\"2026-11-18\",\"to\":\"2026-11-18\",\"date\":\"2026-11-18\",\"members\":[{\"id\":\"owner\",\"name\":\"麦麦\"},{\"id\":\"assistant\",\"name\":\"娜娜\"},{\"id\":\"assistant2\",\"name\":\"小昊\"}],\"balances\":[{\"member\":\"owner\",\"receipts\":1748500,\"refunds\":0,\"outlays\":4274531,\"transferIn\":10000,\"transferOut\":0,\"openingChange\":0,\"periodChange\":-2516031,\"cumulativeChange\":-2516031,\"cashBalance\":-2516031,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"},{\"member\":\"assistant\",\"receipts\":1123100,\"refunds\":0,\"outlays\":978400,\"transferIn\":0,\"transferOut\":10000,\"openingChange\":0,\"periodChange\":134700,\"cumulativeChange\":134700,\"cashBalance\":134700,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"},{\"member\":\"assistant2\",\"receipts\":917163,\"refunds\":0,\"outlays\":1021000,\"transferIn\":0,\"transferOut\":0,\"openingChange\":0,\"periodChange\":-103837,\"cumulativeChange\":-103837,\"cashBalance\":-103837,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"}],\"pairs\":[{\"id\":\"owner:assistant\",\"members\":[\"owner\",\"assistant\"],\"net\":-647081,\"obligationNet\":-657081,\"transferred\":-10000,\"receivedForNet\":288500,\"advancedNet\":-945581,\"offset\":290650,\"due\":647081,\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"direction\":\"transfer\",\"period\":{\"obligationNet\":-657081,\"transferred\":-10000,\"receivedForNet\":288500,\"advancedNet\":-945581},\"entries\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":286000,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":288500,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":1731,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":150000,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000,\"revision\":1,\"sourceKind\":\"price_lock\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000,\"revision\":1,\"sourceKind\":\"price_lock\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照邮寄\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":1500,\"revision\":1,\"sourceKind\":\"reimbursement\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照包装\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":650,\"revision\":1,\"sourceKind\":\"reimbursement\",\"sourceId\":\"\"}]},{\"id\":\"owner:assistant2\",\"members\":[\"owner\",\"assistant2\"],\"net\":0,\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0,\"offset\":0,\"due\":0,\"fromMember\":null,\"toMember\":null,\"direction\":\"none\",\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0},\"entries\":[]},{\"id\":\"assistant:assistant2\",\"members\":[\"assistant\",\"assistant2\"],\"net\":0,\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0,\"offset\":0,\"due\":0,\"fromMember\":null,\"toMember\":null,\"direction\":\"none\",\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0},\"entries\":[]}],\"entries\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":286000,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":288500,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":1731,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":150000,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000,\"revision\":1,\"sourceKind\":\"price_lock\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000,\"revision\":1,\"sourceKind\":\"price_lock\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照邮寄\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":1500,\"revision\":1,\"sourceKind\":\"reimbursement\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照包装\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":650,\"revision\":1,\"sourceKind\":\"reimbursement\",\"sourceId\":\"\"}],\"transfers\":[{\"id\":\"\",\"date\":\"2026-11-18\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":10000,\"note\":\"对照转账\",\"actor\":\"麦麦\"}],\"revision\":\"70efa07e17ce0a2addce8e0bd7b8a0453efd7f3a18845ff4958679e7c7e5ec8e\",\"pending\":[],\"legacyReadOnly\":true,\"cutover\":\"仅已启用的三人新账事件;旧结算不自动迁入\",\"transfersDeducted\":true}}" + ], + [ + "golden-00084-people-count", + "c66aa27a18e597f8b06194268e0a2633ebc41ea2712612e89adc13c9644612b2", + "{\"date\":\"2026-11-18\",\"previousDate\":\"2026-11-17\",\"previous\":{\"assistant1Count\":null,\"assistant2Count\":null},\"previousDates\":{\"assistant1\":null,\"assistant2\":null},\"mode\":\"daily-total\",\"assistant1Count\":5,\"assistant1Change\":null,\"assistant1ChangeReason\":\"missing-previous\",\"assistant2Count\":3,\"assistant2Change\":null,\"assistant2ChangeReason\":\"missing-previous\",\"revision\":1}" + ], + [ + "golden-00085-people", + "9339ecf4ad00adf6c1d85539b802b8b9e9d4d2a0f697d9fa154c7c8daf2eebd3", + "{\"date\":\"2026-11-18\",\"member\":\"assistant\",\"total_count\":100,\"new_count\":null,\"revision\":1,\"legacy\":false,\"previous\":null}" + ], + [ + "golden-00086-review", + "e08a23097d186852182a4d084cef83945fbda51c3127013ab0ad0581ec5927f5", + "{\"date\":\"2026-11-18\",\"snapshot\":{\"date\":\"2026-11-18\",\"inventory\":[{\"pocket\":\"现货\",\"mg\":80450,\"reserved\":0,\"available\":80450},{\"pocket\":\"金料\",\"mg\":55000,\"reserved\":0,\"available\":55000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:02:46.000Z\",\"updated\":\"2026-11-18T02:02:46.000Z\",\"stale\":false,\"revision\":\"3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086\",\"source\":\"manual\",\"scheduled_for\":null}}" + ], + [ + "golden-00089-close-d1", + "ee00920abdd47687ef5ba4efcde4a47d7d155445e9e6aad76e80e6809c6a9a50", + "{\"date\":\"2026-11-18\",\"snapshot\":{\"date\":\"2026-11-18\",\"inventory\":[{\"pocket\":\"现货\",\"mg\":80450,\"reserved\":0,\"available\":80450},{\"pocket\":\"金料\",\"mg\":55000,\"reserved\":0,\"available\":55000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:02:46.000Z\",\"updated\":\"2026-11-18T02:02:50.000Z\",\"stale\":false,\"revision\":\"3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086\",\"source\":\"manual\",\"scheduled_for\":null},\"basis\":\"orderDate\",\"reportRevision\":\"a135c4ad78c72f87ac985349eae3e0fbc880983c86af81708b22bedc856ff5bc\"}" + ], + [ + "golden-00093-movement-update-request", + "eae07c566ba07f67f254ef387f32eacee1cde8ee382d852632863d40ac714fc1", + "{\"groupId\":\"\",\"applied\":false,\"pending\":true,\"requestId\":\"\",\"request\":{\"id\":\"\",\"groupId\":\"\",\"action\":\"update\",\"revision\":1,\"groupRevision\":1,\"status\":\"pending\",\"reason\":\"跨天更正克重\",\"before\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"2.500\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"after\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"3.000\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:00:07.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"staleReason\":\"\",\"inventoryChanged\":false,\"inventoryRevision\":\"f9ba1a518632dfdce2281e0ed60f59765fbd918986839f55170f1ad4376c5d93\",\"canApprove\":false},\"group\":{\"groupId\":\"\",\"revision\":1,\"status\":\"active\",\"manual\":true,\"canEdit\":false,\"canDelete\":false,\"requiresApproval\":true,\"deleteRequiresApproval\":true,\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"values\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"2.500\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":2500,\"kind\":\"increase\",\"note\":\"娜娜手动入库\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:04.000Z\"}],\"pending\":{\"id\":\"\",\"groupId\":\"\",\"action\":\"update\",\"revision\":1,\"groupRevision\":1,\"status\":\"pending\",\"reason\":\"跨天更正克重\",\"before\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"2.500\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"after\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"3.000\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:00:07.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"staleReason\":\"\",\"inventoryChanged\":false,\"inventoryRevision\":\"f9ba1a518632dfdce2281e0ed60f59765fbd918986839f55170f1ad4376c5d93\",\"canApprove\":false}}}" + ], + [ + "golden-00095-inventory-approve", + "af8c31f3419ef2f583e5fa5f05c4ca3186329e877f10d59d7fb74f6954310354", + "{\"groupId\":\"\",\"applied\":true,\"pending\":false,\"requestId\":\"\",\"request\":{\"id\":\"\",\"groupId\":\"\",\"action\":\"update\",\"revision\":2,\"groupRevision\":1,\"status\":\"approved\",\"reason\":\"跨天更正克重\",\"before\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"2.500\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"after\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"3.000\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:00:07.000Z\",\"reviewerName\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:11.000Z\",\"note\":\"\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"staleReason\":\"\",\"inventoryChanged\":true,\"inventoryRevision\":\"35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5\",\"canApprove\":false},\"group\":{\"groupId\":\"\",\"revision\":2,\"status\":\"modified\",\"manual\":true,\"canEdit\":true,\"canDelete\":true,\"requiresApproval\":false,\"deleteRequiresApproval\":false,\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"values\":{\"kind\":\"increase\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"3.000\",\"note\":\"娜娜手动入库\",\"cost\":\"\"},\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":3000,\"kind\":\"increase\",\"note\":\"娜娜手动入库\",\"purchase_cost\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:00:11.000Z\"}],\"pending\":null}}" + ], + [ + "golden-00096-movement-delete-request", + "f1fb2ecec85de4d8b096edaeb14aa755d5932fef71dc7c5708e6d4b32e51c7b5", + "{\"groupId\":\"\",\"applied\":false,\"pending\":true,\"requestId\":\"\",\"request\":{\"id\":\"\",\"groupId\":\"\",\"action\":\"delete\",\"revision\":1,\"groupRevision\":1,\"status\":\"pending\",\"reason\":\"跨天删除申请\",\"before\":{\"kind\":\"decrease\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"0.500\",\"note\":\"娜娜手动出库\",\"cost\":\"\"},\"after\":null,\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:00:13.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"staleReason\":\"\",\"inventoryChanged\":false,\"inventoryRevision\":\"35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5\",\"canApprove\":false},\"group\":{\"groupId\":\"\",\"revision\":1,\"status\":\"active\",\"manual\":true,\"canEdit\":false,\"canDelete\":false,\"requiresApproval\":true,\"deleteRequiresApproval\":true,\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"values\":{\"kind\":\"decrease\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"0.500\",\"note\":\"娜娜手动出库\",\"cost\":\"\"},\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-500,\"kind\":\"decrease\",\"note\":\"娜娜手动出库\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:05.000Z\"}],\"pending\":{\"id\":\"\",\"groupId\":\"\",\"action\":\"delete\",\"revision\":1,\"groupRevision\":1,\"status\":\"pending\",\"reason\":\"跨天删除申请\",\"before\":{\"kind\":\"decrease\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"0.500\",\"note\":\"娜娜手动出库\",\"cost\":\"\"},\"after\":null,\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:00:13.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"staleReason\":\"\",\"inventoryChanged\":false,\"inventoryRevision\":\"35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5\",\"canApprove\":false}}}" + ], + [ + "golden-00097-inventory-reject", + "0f38882eb87b36f60632a5c68e619264a22f8dbbf93251947027b6861307ce0c", + "{\"groupId\":\"\",\"applied\":false,\"pending\":false,\"requestId\":\"\",\"request\":{\"id\":\"\",\"groupId\":\"\",\"action\":\"delete\",\"revision\":2,\"groupRevision\":1,\"status\":\"rejected\",\"reason\":\"跨天删除申请\",\"before\":{\"kind\":\"decrease\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"0.500\",\"note\":\"娜娜手动出库\",\"cost\":\"\"},\"after\":null,\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:00:13.000Z\",\"reviewerName\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:15.000Z\",\"note\":\"保留原记录\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"staleReason\":\"\",\"inventoryChanged\":false,\"inventoryRevision\":\"35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5\",\"canApprove\":false},\"group\":{\"groupId\":\"\",\"revision\":1,\"status\":\"active\",\"manual\":true,\"canEdit\":true,\"canDelete\":true,\"requiresApproval\":false,\"deleteRequiresApproval\":false,\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"values\":{\"kind\":\"decrease\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"to\":\"\",\"grams\":\"0.500\",\"note\":\"娜娜手动出库\",\"cost\":\"\"},\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-500,\"kind\":\"decrease\",\"note\":\"娜娜手动出库\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:05.000Z\"}],\"pending\":null}}" + ], + [ + "golden-00098-stock-same-day", + "44e4f3f2bd30853045fe047c43d261e8b584c1ba0d77622717d9aa0f74aa641e", + "{\"group\":\"\"}" + ], + [ + "golden-00099-movement-update-direct", + "1f1d5efab630aee4370a2d79d37e68e15f748145f8b9e24966f8036ea17c4b76", + "{\"groupId\":\"\",\"applied\":true,\"pending\":false,\"group\":{\"groupId\":\"\",\"revision\":2,\"status\":\"modified\",\"manual\":true,\"canEdit\":true,\"canDelete\":true,\"requiresApproval\":false,\"deleteRequiresApproval\":true,\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"values\":{\"kind\":\"increase\",\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"to\":\"\",\"grams\":\"1.200\",\"note\":\"当天手动入库\",\"cost\":\"\"},\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"mg\":1200,\"kind\":\"increase\",\"note\":\"当天手动入库\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:19.000Z\"}],\"pending\":null}}" + ], + [ + "golden-00100-movement-delete-owner", + "cd992c601ee6c3aaef3d8a6bf3c2bb144b008e590931e7b4d3e28add874e262a", + "{\"groupId\":\"\",\"applied\":true,\"pending\":false,\"group\":{\"groupId\":\"\",\"revision\":3,\"status\":\"deleted\",\"manual\":true,\"canEdit\":false,\"canDelete\":false,\"requiresApproval\":false,\"deleteRequiresApproval\":false,\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"values\":{\"kind\":\"increase\",\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"to\":\"\",\"grams\":\"1.200\",\"note\":\"当天手动入库\",\"cost\":\"\"},\"movements\":[],\"pending\":null}}" + ], + [ + "golden-00102-order-change-request", + "36e89ff53432589c81a2d1525f567b9e75353e92a62095926d733026e411d7c6", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"action\":\"edit\",\"reason\":\"跨天修改客户名\",\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:25.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"action_label\":\"修改订单\",\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false,\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":321100,\"refunded\":0,\"netReceived\":321100,\"balance\":0,\"rounding_adjustment\":50,\"goodsCost\":290200,\"directCost\":1200,\"materialCostPending\":false,\"knownGoodsCost\":290200,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29700,\"profit\":29700,\"knownProfit\":29700,\"ownerCost\":286000,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:17.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲(改)\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":321100,\"refunded\":0,\"netReceived\":321100,\"balance\":0,\"rounding_adjustment\":50,\"goodsCost\":290200,\"directCost\":1200,\"materialCostPending\":false,\"knownGoodsCost\":290200,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29700,\"profit\":29700,\"knownProfit\":29700,\"ownerCost\":286000,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:25.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"changes\":[]}},\"changes\":[{\"field\":\"customer\",\"label\":\"客户称呼\",\"before\":\"对照客户甲\",\"after\":\"对照客户甲(改)\"},{\"field\":\"fee_items\",\"label\":\"实际费用\",\"before\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"after\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}]}],\"relatedOrders\":[]},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":{\"id\":\"\",\"status\":\"pending\",\"action\":\"edit\",\"action_label\":\"修改订单\",\"order_revision\":4,\"reason\":\"跨天修改客户名\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:00:25.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false},\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":321100,\"refunded\":0,\"netReceived\":321100,\"balance\":0,\"rounding_adjustment\":50,\"goodsCost\":290200,\"directCost\":1200,\"materialCostPending\":false,\"knownGoodsCost\":290200,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29700,\"profit\":29700,\"knownProfit\":29700,\"ownerCost\":286000,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"申请修改订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"跨天修改客户名\",\"revision\":4,\"changes\":[{\"field\":\"customer\",\"label\":\"客户称呼\",\"before\":\"对照客户甲\",\"after\":\"对照客户甲(改)\"},{\"field\":\"fee_items\",\"label\":\"实际费用\",\"before\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"after\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}]}],\"summary\":{\"before\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:25.000Z\"},{\"action\":\"改为未打印\",\"actor\":\"助理\",\"detail\":{\"printed\":false,\"notice\":\"记录打印操作状态,不改变订单账目\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:50.000Z\"},{\"action\":\"记录打印操作\",\"actor\":\"助理\",\"detail\":{\"printed\":true,\"notice\":\"记录打印操作状态,不改变订单账目\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:48.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":321100,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"3211.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"}],\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:17.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00105-order-change-approve", + "af61480b3881a17678d2d056437124a713e42e93cafb94082ed073cb1b94093f", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"action\":\"edit\",\"reason\":\"跨天修改客户名\",\"status\":\"approved\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:25.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:31.000Z\",\"note\":\"凭据已核对\",\"action_label\":\"修改订单\",\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false,\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":321100,\"refunded\":0,\"netReceived\":321100,\"balance\":0,\"rounding_adjustment\":50,\"goodsCost\":290200,\"directCost\":1200,\"materialCostPending\":false,\"knownGoodsCost\":290200,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29700,\"profit\":29700,\"knownProfit\":29700,\"ownerCost\":286000,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:17.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲(改)\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":321100,\"refunded\":0,\"netReceived\":321100,\"balance\":0,\"rounding_adjustment\":50,\"goodsCost\":290200,\"directCost\":1200,\"materialCostPending\":false,\"knownGoodsCost\":290200,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29700,\"profit\":29700,\"knownProfit\":29700,\"ownerCost\":286000,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:25.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"changes\":[]}},\"changes\":[{\"field\":\"customer\",\"label\":\"客户称呼\",\"before\":\"对照客户甲\",\"after\":\"对照客户甲(改)\"},{\"field\":\"fee_items\",\"label\":\"实际费用\",\"before\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"after\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}]}],\"relatedOrders\":[]},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲(改)\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":{\"id\":\"\",\"status\":\"approved\",\"action\":\"edit\",\"action_label\":\"修改订单\",\"order_revision\":4,\"reason\":\"跨天修改客户名\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:00:25.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:31.000Z\",\"note\":\"凭据已核对\"},\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":321100,\"refunded\":0,\"netReceived\":321100,\"balance\":0,\"rounding_adjustment\":50,\"goodsCost\":290200,\"directCost\":1200,\"materialCostPending\":false,\"knownGoodsCost\":290200,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29700,\"profit\":29700,\"knownProfit\":29700,\"ownerCost\":286000,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"同意修改订单\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"跨天修改客户名\",\"note\":\"凭据已核对\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:25.000Z\",\"reviewed\":\"2026-11-19T02:00:31.000Z\",\"summary\":{\"before\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"changes\":[]}},\"notice\":\"按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:31.000Z\"},{\"action\":\"整单账务修改\",\"actor\":\"麦麦\",\"detail\":{\"reason\":\"跨天修改客户名\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":321100,\"goods\":290200,\"expense\":1200,\"profit\":29700,\"created\":\"2026-11-18T02:01:17.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-3250,\"kind\":\"sale\",\"note\":\"MM20261118-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲(改)\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":321100,\"goods\":290200,\"expense\":1200,\"profit\":29700,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:31.000Z\"},{\"action\":\"申请修改订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"跨天修改客户名\",\"revision\":4,\"changes\":[{\"field\":\"customer\",\"label\":\"客户称呼\",\"before\":\"对照客户甲\",\"after\":\"对照客户甲(改)\"},{\"field\":\"fee_items\",\"label\":\"实际费用\",\"before\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"after\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}]}],\"summary\":{\"before\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:25.000Z\"},{\"action\":\"改为未打印\",\"actor\":\"助理\",\"detail\":{\"printed\":false,\"notice\":\"记录打印操作状态,不改变订单账目\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:50.000Z\"},{\"action\":\"记录打印操作\",\"actor\":\"助理\",\"detail\":{\"printed\":true,\"notice\":\"记录打印操作状态,不改变订单账目\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:48.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":321100,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"3211.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:17.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:31.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00106-order-change-request-2", + "cc178b6a7e0f45c206c758bca25661c9db5d3462efcdd28acc7f6210a758c487", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"action\":\"edit\",\"reason\":\"想改售价\",\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:33.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"action_label\":\"修改订单\",\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false,\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":82000,\"refunded\":0,\"netReceived\":82000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":70000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":70000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":12000,\"profit\":12000,\"knownProfit\":12000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:26.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":82000,\"refunded\":0,\"netReceived\":82000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":70000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":70000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":12000,\"profit\":12000,\"knownProfit\":12000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:33.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"changes\":[]}},\"changes\":[{\"field\":\"fees_date\",\"label\":\"费用日期\",\"before\":\"\",\"after\":\"2026-11-18\"}],\"relatedOrders\":[]},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":{\"id\":\"\",\"status\":\"pending\",\"action\":\"edit\",\"action_label\":\"修改订单\",\"order_revision\":4,\"reason\":\"想改售价\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:00:33.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false},\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":82000,\"refunded\":0,\"netReceived\":82000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":70000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":70000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":12000,\"profit\":12000,\"knownProfit\":12000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"申请修改订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"想改售价\",\"revision\":4,\"changes\":[{\"field\":\"fees_date\",\"label\":\"费用日期\",\"before\":\"\",\"after\":\"2026-11-18\"}],\"summary\":{\"before\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:33.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":82000,\"account\":\"助理支付宝\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"820.00\",\"account\":\"助理支付宝\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"}],\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:26.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00107-order-change-reject", + "82f6ea48f5ca62b22bae8b1161270a3bd8b179c2c1dce10a415aedeedbbdd938", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"action\":\"edit\",\"reason\":\"想改售价\",\"status\":\"rejected\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:33.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:34.000Z\",\"note\":\"售价无误\",\"action_label\":\"修改订单\",\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false,\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":82000,\"refunded\":0,\"netReceived\":82000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":70000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":70000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":12000,\"profit\":12000,\"knownProfit\":12000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:26.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":82000,\"refunded\":0,\"netReceived\":82000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":70000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":70000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":12000,\"profit\":12000,\"knownProfit\":12000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:33.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"changes\":[]}},\"changes\":[{\"field\":\"fees_date\",\"label\":\"费用日期\",\"before\":\"\",\"after\":\"2026-11-18\"}],\"relatedOrders\":[]},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":82000,\"refunded\":0,\"netReceived\":82000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":70000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":70000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":12000,\"profit\":12000,\"knownProfit\":12000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"驳回修改申请\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"想改售价\",\"note\":\"售价无误\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:33.000Z\",\"reviewed\":\"2026-11-19T02:00:34.000Z\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:34.000Z\"},{\"action\":\"申请修改订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"想改售价\",\"revision\":4,\"changes\":[{\"field\":\"fees_date\",\"label\":\"费用日期\",\"before\":\"\",\"after\":\"2026-11-18\"}],\"summary\":{\"before\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:33.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":82000,\"account\":\"助理支付宝\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"820.00\",\"account\":\"助理支付宝\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"}],\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:26.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00108-order-expense-request", + "c599492369b15e92d4a3e8dd583a9da2657257678a2a7079ddb255408d1b4dce", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"action\":\"expense\",\"reason\":\"补记快递\",\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:36.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"action_label\":\"费用补记\",\"action_input\":{\"date\":\"2026-11-19\",\"amount\":\"10\",\"payer\":\"assistant\",\"note\":\"补寄快递\"},\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false,\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":58000,\"profit\":58000,\"knownProfit\":58000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:20.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":1000,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":57000,\"profit\":57000,\"knownProfit\":57000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:36.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"changes\":[{\"field\":\"expenses\",\"label\":\"实际费用流水\",\"before\":[],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}]},{\"field\":\"directCost\",\"label\":\"直接费用\",\"before\":0,\"after\":1000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":58000,\"after\":57000}],\"relatedOrders\":[]},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":{\"id\":\"\",\"status\":\"pending\",\"action\":\"expense\",\"action_label\":\"费用补记\",\"order_revision\":4,\"reason\":\"补记快递\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false},\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":58000,\"profit\":58000,\"knownProfit\":58000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"申请修改订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"action\":\"expense\",\"reason\":\"补记快递\",\"revision\":4,\"changes\":[{\"field\":\"expenses\",\"label\":\"实际费用流水\",\"before\":[],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}]},{\"field\":\"directCost\",\"label\":\"直接费用\",\"before\":0,\"after\":1000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":58000,\"after\":57000}],\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:36.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":330000,\"account\":\"助理现金\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"3300.00\",\"account\":\"助理现金\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"}],\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:20.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00109-order-expense-approve", + "3febbacbff587e38023c9509d097fa0e63ff68d44ccf14b3e7088f07852a8548", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"action\":\"expense\",\"reason\":\"补记快递\",\"status\":\"approved\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:36.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:37.000Z\",\"note\":\"核实\",\"action_label\":\"费用补记\",\"action_input\":{\"date\":\"2026-11-19\",\"amount\":\"10\",\"payer\":\"assistant\",\"note\":\"补寄快递\"},\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false,\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":58000,\"profit\":58000,\"knownProfit\":58000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:20.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":1000,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":57000,\"profit\":57000,\"knownProfit\":57000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:36.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"changes\":[{\"field\":\"expenses\",\"label\":\"实际费用流水\",\"before\":[],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}]},{\"field\":\"directCost\",\"label\":\"直接费用\",\"before\":0,\"after\":1000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":58000,\"after\":57000}],\"relatedOrders\":[]},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":{\"id\":\"\",\"status\":\"approved\",\"action\":\"expense\",\"action_label\":\"费用补记\",\"order_revision\":4,\"reason\":\"补记快递\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:37.000Z\",\"note\":\"核实\"},\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:00:37.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":1000,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":57000,\"profit\":57000,\"knownProfit\":57000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"同意修改订单\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"action\":\"expense\",\"reason\":\"补记快递\",\"note\":\"核实\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:36.000Z\",\"reviewed\":\"2026-11-19T02:00:37.000Z\",\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"notice\":\"按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:37.000Z\"},{\"action\":\"expense\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-19\",\"amount\":\"10\",\"payer\":\"assistant\",\"note\":\"补寄快递\",\"revision\":5,\"reason\":\"补记快递\",\"verified\":true,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:37.000Z\"},{\"action\":\"申请修改订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"action\":\"expense\",\"reason\":\"补记快递\",\"revision\":4,\"changes\":[{\"field\":\"expenses\",\"label\":\"实际费用流水\",\"before\":[],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}]},{\"field\":\"directCost\",\"label\":\"直接费用\",\"before\":0,\"after\":1000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":58000,\"after\":57000}],\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:36.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":330000,\"account\":\"助理现金\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"3300.00\",\"account\":\"助理现金\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:37.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00110-owner-edit-order", + "3a2ef13b9ab76cae13946ba37fc367a708e90266dacdac14162819a330437bb2", + "{\"id\":\"\",\"revision\":5,\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"老板改备注\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":288500,\"refunded\":0,\"netReceived\":288500,\"balance\":0,\"rounding_adjustment\":-40,\"goodsCost\":150000,\"directCost\":1731,\"materialCostPending\":false,\"knownGoodsCost\":150000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":136769,\"profit\":136769,\"knownProfit\":136769,\"ownerCost\":151731,\"ownerDirect\":288500,\"ownerCredit\":288500,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"整单账务修改\",\"actor\":\"麦麦\",\"detail\":{\"reason\":\"老板更正备注\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"created\":\"2026-11-18T02:01:19.000Z\"}],\"movements\":[]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"老板改备注\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:39.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"麦麦\",\"detail\":{\"amount\":288500,\"account\":\"麦麦信用卡\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"complete\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"deliver\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"receipt\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"2885.00\",\"account\":\"麦麦信用卡\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"confirm\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"麦麦\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:39.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00111-cancellation-request", + "74e30a046bf2962ff659715d23cfd45ed466a21d8e5a7bc80920c5c8a15a0087", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"reason\":\"重复录入\",\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理2\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:41.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"canApprove\":false,\"summary\":{\"total\":150000,\"netReceived\":150000,\"goodsCost\":130000,\"directCost\":0,\"profit\":20000,\"settlementDue\":0,\"inventory\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":1500}]}},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照取消客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118006\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金戒指\",\"code\":\"\",\"unit\":\"g\",\"quantity\":1500,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":130000,\"sale\":150000,\"baseSale\":150000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":150000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:24.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"取消单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":{\"id\":\"\",\"status\":\"pending\",\"order_revision\":4,\"reason\":\"重复录入\",\"requester_name\":\"助理2\",\"created\":\"2026-11-19T02:00:41.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false},\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":150000,\"account\":\"助理2现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:24.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":150000,\"refunded\":0,\"netReceived\":150000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":130000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":130000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":20000,\"profit\":20000,\"knownProfit\":20000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"申请取消订单\",\"actor\":\"助理2\",\"detail\":{\"requestId\":\"\",\"reason\":\"重复录入\",\"revision\":4,\"summary\":{\"total\":150000,\"netReceived\":150000,\"goodsCost\":130000,\"directCost\":0,\"profit\":20000,\"settlementDue\":0,\"inventory\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":1500}]},\"notice\":\"申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-19T02:00:41.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理2\",\"detail\":{\"amount\":150000,\"account\":\"助理2现金\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"complete\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"1500.00\",\"account\":\"助理2现金\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理2\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"}],\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:24.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00113-cancellation-approve", + "c6d6789d973ff18367998a080c8ecee4875fc61fb08f08d9ac8c090644a815b2", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"reason\":\"重复录入\",\"status\":\"approved\",\"requester_id\":\"\",\"requester_name\":\"助理2\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:41.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:45.000Z\",\"note\":\"核对原单后确认\",\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"canApprove\":false,\"summary\":{\"total\":150000,\"netReceived\":150000,\"goodsCost\":130000,\"directCost\":0,\"profit\":20000,\"settlementDue\":0,\"inventory\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":1500}]}},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照取消客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118006\",\"status\":\"cancelled\",\"lines\":[{\"name\":\"足金戒指\",\"code\":\"\",\"unit\":\"g\",\"quantity\":1500,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":130000,\"sale\":150000,\"baseSale\":150000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":150000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:24.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"取消单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":{\"id\":\"\",\"status\":\"approved\",\"order_revision\":4,\"reason\":\"重复录入\",\"requester_name\":\"助理2\",\"created\":\"2026-11-19T02:00:41.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:45.000Z\",\"note\":\"核对原单后确认\"},\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":150000,\"account\":\"助理2现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:24.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":-150000,\"account\":\"助理2现金\",\"reference\":\"更正冲回:取消审批作废;重复录入\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:00:45.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[{\"target\":\"\",\"type\":\"payment\",\"reason\":\"重复录入\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:00:45.000Z\"}],\"received\":0,\"refunded\":0,\"netReceived\":0,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":130000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":130000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":20000,\"profit\":0,\"knownProfit\":0,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"同意取消订单(录错作废)\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"reason\":\"重复录入\",\"note\":\"核对原单后确认\",\"requestedBy\":\"助理2\",\"requestedAt\":\"2026-11-19T02:00:41.000Z\",\"reviewed\":\"2026-11-19T02:00:45.000Z\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照取消客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118006\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金戒指\",\"code\":\"\",\"unit\":\"g\",\"quantity\":1500,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":130000,\"sale\":150000,\"baseSale\":150000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":150000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:24.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"取消单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":150000,\"account\":\"助理2现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:24.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":150000,\"goods\":130000,\"expense\":0,\"profit\":20000,\"created\":\"2026-11-18T02:01:24.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-1500,\"kind\":\"sale\",\"note\":\"MM20261118-\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:24.000Z\"}],\"corrections\":[],\"materialUsages\":[],\"priceLock\":null},\"after\":{\"revision\":5,\"status\":\"cancelled\",\"netReceived\":0,\"directCost\":0,\"profit\":0,\"settlementDue\":0},\"inventory\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":1500}],\"notice\":\"原订单、作废记录、收支与库存流水保留;不是客户退货退款;原采购和双方实际交款不变,原已交款按作废后的应结余额处理\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:45.000Z\"},{\"action\":\"申请取消订单\",\"actor\":\"助理2\",\"detail\":{\"requestId\":\"\",\"reason\":\"重复录入\",\"revision\":4,\"summary\":{\"total\":150000,\"netReceived\":150000,\"goodsCost\":130000,\"directCost\":0,\"profit\":20000,\"settlementDue\":0,\"inventory\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":1500}]},\"notice\":\"申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-19T02:00:41.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理2\",\"detail\":{\"amount\":150000,\"account\":\"助理2现金\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"complete\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"1500.00\",\"account\":\"助理2现金\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理2\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:24.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:45.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00115-ownership-direct", + "907aa5a35311fb2666022492b907f91ce9947334bb3ea7fbea1da4be46506ed7", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"from_member\":\"assistant\",\"to_member\":\"assistant2\",\"reason\":\"核实业务归属\",\"status\":\"approved\",\"direct\":true,\"requester_id\":\"\",\"requester_name\":\"麦麦\",\"requester_role\":\"owner\",\"created\":\"2026-11-19T02:00:49.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:49.000Z\",\"note\":\"\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"order_number\":\"MM20261118-\",\"order_customer\":\"对照驳回客户\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false},\"applied\":true,\"revision\":5,\"member\":\"assistant2\",\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":{\"id\":\"\",\"status\":\"approved\",\"order_revision\":4,\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"reason\":\"核实业务归属\",\"requester_name\":\"麦麦\",\"created\":\"2026-11-19T02:00:49.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:49.000Z\",\"note\":\"\",\"direct\":true},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":82000,\"refunded\":0,\"netReceived\":82000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":70000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":70000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":12000,\"profit\":12000,\"knownProfit\":12000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"直接修改订单归属\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"reason\":\"核实业务归属\",\"note\":\"\",\"requestedBy\":\"麦麦\",\"requestedAt\":\"2026-11-19T02:00:49.000Z\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\",\"revision\":4},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\",\"revision\":5},\"related\":[{\"kind\":\"order\",\"id\":\"\"},{\"kind\":\"movement\",\"id\":\"\"}],\"notice\":\"业绩、成本和利润随订单归属;实际收付款账户、付款人、金额、库存与成本利润数值保持不变,成员往来仅追加归属差额,真实转账保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:49.000Z\"},{\"action\":\"驳回修改申请\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"想改售价\",\"note\":\"售价无误\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:33.000Z\",\"reviewed\":\"2026-11-19T02:00:34.000Z\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:34.000Z\"},{\"action\":\"申请修改订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"action\":\"edit\",\"reason\":\"想改售价\",\"revision\":4,\"changes\":[{\"field\":\"fees_date\",\"label\":\"费用日期\",\"before\":\"\",\"after\":\"2026-11-18\"}],\"summary\":{\"before\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:33.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":82000,\"account\":\"助理支付宝\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"820.00\",\"account\":\"助理支付宝\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:26.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:49.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00116-ownership-request", + "6f9c4d1d9cf5261a7ab249b92fc764b45d699aa180efc04ca8ba20cbb024f376", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":5,\"from_member\":\"assistant\",\"to_member\":\"assistant2\",\"reason\":\"申请转给小昊\",\"status\":\"pending\",\"direct\":false,\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:53.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"order_number\":\"MM20261118-\",\"order_customer\":\"对照客户丙\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false},\"applied\":false,\"revision\":5,\"member\":\"assistant\",\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"老板改备注\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":{\"id\":\"\",\"status\":\"pending\",\"order_revision\":5,\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"reason\":\"申请转给小昊\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:00:53.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"direct\":false,\"stale\":false},\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":288500,\"refunded\":0,\"netReceived\":288500,\"balance\":0,\"rounding_adjustment\":-40,\"goodsCost\":150000,\"directCost\":1731,\"materialCostPending\":false,\"knownGoodsCost\":150000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":136769,\"profit\":136769,\"knownProfit\":136769,\"ownerCost\":151731,\"ownerDirect\":288500,\"ownerCredit\":288500,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"申请修改订单归属\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"reason\":\"申请转给小昊\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"revision\":5,\"notice\":\"申请不改变订单、财务、库存或可见范围,由麦麦审批后生效\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:53.000Z\"},{\"action\":\"整单账务修改\",\"actor\":\"麦麦\",\"detail\":{\"reason\":\"老板更正备注\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"created\":\"2026-11-18T02:01:19.000Z\"}],\"movements\":[]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"老板改备注\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:39.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"麦麦\",\"detail\":{\"amount\":288500,\"account\":\"麦麦信用卡\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"complete\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"deliver\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"receipt\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"2885.00\",\"account\":\"麦麦信用卡\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"confirm\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"麦麦\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:39.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00117-ownership-reject", + "f4d127e9565afaa0b47346cfd7c8568dd38a07b3c04b5f4ce179e0642e0b54f8", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":5,\"from_member\":\"assistant\",\"to_member\":\"assistant2\",\"reason\":\"申请转给小昊\",\"status\":\"rejected\",\"direct\":false,\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:53.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:56.000Z\",\"note\":\"不转\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"order_number\":\"MM20261118-\",\"order_customer\":\"对照客户丙\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false},\"applied\":false,\"revision\":5,\"member\":\"assistant\",\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"老板改备注\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":288500,\"refunded\":0,\"netReceived\":288500,\"balance\":0,\"rounding_adjustment\":-40,\"goodsCost\":150000,\"directCost\":1731,\"materialCostPending\":false,\"knownGoodsCost\":150000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":136769,\"profit\":136769,\"knownProfit\":136769,\"ownerCost\":151731,\"ownerDirect\":288500,\"ownerCredit\":288500,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"驳回订单归属申请\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"reason\":\"申请转给小昊\",\"note\":\"不转\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:53.000Z\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:56.000Z\"},{\"action\":\"申请修改订单归属\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"reason\":\"申请转给小昊\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"revision\":5,\"notice\":\"申请不改变订单、财务、库存或可见范围,由麦麦审批后生效\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:53.000Z\"},{\"action\":\"整单账务修改\",\"actor\":\"麦麦\",\"detail\":{\"reason\":\"老板更正备注\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"created\":\"2026-11-18T02:01:19.000Z\"}],\"movements\":[]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"老板改备注\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:39.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"麦麦\",\"detail\":{\"amount\":288500,\"account\":\"麦麦信用卡\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"complete\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"deliver\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"receipt\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"2885.00\",\"account\":\"麦麦信用卡\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"confirm\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"麦麦\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-18T02:01:19.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:39.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00118-cancellation-request-2", + "6b67a2c940f3bf9a0a06f369abde994138e20bb7e3788a01b513c4c8817cbdce", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":5,\"reason\":\"客户想退\",\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:58.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"canApprove\":false,\"summary\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"inventory\":[]}},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":{\"id\":\"\",\"status\":\"pending\",\"order_revision\":5,\"reason\":\"客户想退\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:00:58.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false},\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":{\"id\":\"\",\"status\":\"approved\",\"action\":\"expense\",\"action_label\":\"费用补记\",\"order_revision\":4,\"reason\":\"补记快递\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:37.000Z\",\"note\":\"核实\"},\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:00:37.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":1000,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":57000,\"profit\":57000,\"knownProfit\":57000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"申请取消订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"reason\":\"客户想退\",\"revision\":5,\"summary\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"inventory\":[]},\"notice\":\"申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:58.000Z\"},{\"action\":\"同意修改订单\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"action\":\"expense\",\"reason\":\"补记快递\",\"note\":\"核实\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:36.000Z\",\"reviewed\":\"2026-11-19T02:00:37.000Z\",\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"notice\":\"按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:37.000Z\"},{\"action\":\"expense\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-19\",\"amount\":\"10\",\"payer\":\"assistant\",\"note\":\"补寄快递\",\"revision\":5,\"reason\":\"补记快递\",\"verified\":true,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:37.000Z\"},{\"action\":\"申请修改订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"action\":\"expense\",\"reason\":\"补记快递\",\"revision\":4,\"changes\":[{\"field\":\"expenses\",\"label\":\"实际费用流水\",\"before\":[],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}]},{\"field\":\"directCost\",\"label\":\"直接费用\",\"before\":0,\"after\":1000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":58000,\"after\":57000}],\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:36.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":330000,\"account\":\"助理现金\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"3300.00\",\"account\":\"助理现金\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:37.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00119-cancellation-reject", + "9b7c007040b9211094144517769c0ef74d3e3b2e47b75ffd4ebf2dd2e6f6961b", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":5,\"reason\":\"客户想退\",\"status\":\"rejected\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:00:58.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:59.000Z\",\"note\":\"已交付不取消\",\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"canApprove\":false,\"summary\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"inventory\":[]}},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":{\"id\":\"\",\"status\":\"approved\",\"action\":\"expense\",\"action_label\":\"费用补记\",\"order_revision\":4,\"reason\":\"补记快递\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:00:37.000Z\",\"note\":\"核实\"},\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:00:37.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":1000,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":57000,\"profit\":57000,\"knownProfit\":57000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"驳回取消申请\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"reason\":\"客户想退\",\"note\":\"已交付不取消\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:58.000Z\",\"reviewed\":\"2026-11-19T02:00:59.000Z\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:59.000Z\"},{\"action\":\"申请取消订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"reason\":\"客户想退\",\"revision\":5,\"summary\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"inventory\":[]},\"notice\":\"申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:58.000Z\"},{\"action\":\"同意修改订单\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"action\":\"expense\",\"reason\":\"补记快递\",\"note\":\"核实\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:00:36.000Z\",\"reviewed\":\"2026-11-19T02:00:37.000Z\",\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"notice\":\"按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:37.000Z\"},{\"action\":\"expense\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-19\",\"amount\":\"10\",\"payer\":\"assistant\",\"note\":\"补寄快递\",\"revision\":5,\"reason\":\"补记快递\",\"verified\":true,\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:00:37.000Z\"},{\"action\":\"申请修改订单\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"action\":\"expense\",\"reason\":\"补记快递\",\"revision\":4,\"changes\":[{\"field\":\"expenses\",\"label\":\"实际费用流水\",\"before\":[],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}]},{\"field\":\"directCost\",\"label\":\"直接费用\",\"before\":0,\"after\":1000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":58000,\"after\":57000}],\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:00:36.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":330000,\"account\":\"助理现金\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"3300.00\",\"account\":\"助理现金\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-18T02:01:20.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:37.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00120-after-sale-request", + "5501f74191460218f5f1f9c15c3651aa3b0d2537251c20b77ebb465f93894940", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"action\":\"return\",\"reason\":\"客户退回一件\",\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理2\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:01:03.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"action_label\":\"订单售后\",\"action_input\":{\"date\":\"2026-11-19\",\"afterSale\":{\"lines\":[{\"lineIndex\":0,\"quantity\":\"1.000\",\"pocket\":\"金料\",\"disposition\":\"scrap\"}],\"refund\":{\"amount\":\"900\",\"account\":\"助理2支付宝\",\"payer\":\"assistant2\"},\"deductionReason\":\"客户确认扣费\",\"expenses\":[]}},\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false,\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:25.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"returned\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":\"2026-11-19\",\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":90000,\"netReceived\":410000,\"balance\":0,\"orderAfterSale\":{\"orderId\":\"\",\"date\":\"2026-11-19\",\"reason\":\"客户退回一件\",\"deductionReason\":\"客户确认扣费\",\"refund\":{\"amount\":90000,\"account\":\"助理2支付宝\",\"payer\":\"assistant2\",\"reference\":\"\"},\"expenses\":[],\"original\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"originalJournal\":{\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}],\"originalOrder\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}},\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":48000,\"knownProfit\":48000,\"ownerCost\":0,\"assistantInventoryCredit\":0,\"assistantInventoryCreditSources\":[],\"assistantInventoryCreditExplanation\":\"\",\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:01:03.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":500000,\"netReceived\":500000,\"goodsCost\":450000,\"directCost\":0,\"profit\":50000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":500000,\"netReceived\":410000,\"goodsCost\":450000,\"directCost\":0,\"profit\":48000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000},{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"kind\":\"return\",\"mg\":1000}],\"changes\":[{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"mg\":1000}]}},\"changes\":[{\"field\":\"status\",\"label\":\"订单状态\",\"before\":\"delivered\",\"after\":\"returned\"},{\"field\":\"returned_date\",\"label\":\"退货日期\",\"before\":null,\"after\":\"2026-11-19\"},{\"field\":\"refunded\",\"label\":\"累计退款\",\"before\":0,\"after\":90000},{\"field\":\"payments\",\"label\":\"收退款流水\",\"before\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\"}]},{\"field\":\"netReceived\",\"label\":\"已收净额\",\"before\":500000,\"after\":410000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":50000,\"after\":48000}],\"relatedOrders\":[],\"afterSale\":{\"orderId\":\"\",\"date\":\"2026-11-19\",\"reason\":\"客户退回一件\",\"deductionReason\":\"客户确认扣费\",\"refund\":{\"amount\":90000,\"account\":\"助理2支付宝\",\"payer\":\"assistant2\",\"reference\":\"\"},\"expenses\":[],\"original\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"originalJournal\":{\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}],\"originalOrder\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":{\"id\":\"\",\"status\":\"pending\",\"action\":\"return\",\"action_label\":\"订单售后\",\"order_revision\":4,\"reason\":\"客户退回一件\",\"requester_name\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false},\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"申请修改订单\",\"actor\":\"助理2\",\"detail\":{\"requestId\":\"\",\"action\":\"return\",\"reason\":\"客户退回一件\",\"revision\":4,\"changes\":[{\"field\":\"status\",\"label\":\"订单状态\",\"before\":\"delivered\",\"after\":\"returned\"},{\"field\":\"returned_date\",\"label\":\"退货日期\",\"before\":null,\"after\":\"2026-11-19\"},{\"field\":\"refunded\",\"label\":\"累计退款\",\"before\":0,\"after\":90000},{\"field\":\"payments\",\"label\":\"收退款流水\",\"before\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\"}]},{\"field\":\"netReceived\",\"label\":\"已收净额\",\"before\":500000,\"after\":410000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":50000,\"after\":48000}],\"summary\":{\"before\":{\"total\":500000,\"netReceived\":500000,\"goodsCost\":450000,\"directCost\":0,\"profit\":50000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":500000,\"netReceived\":410000,\"goodsCost\":450000,\"directCost\":0,\"profit\":48000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000},{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"kind\":\"return\",\"mg\":1000}],\"changes\":[{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"mg\":1000}]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-19T02:01:03.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理2\",\"detail\":{\"amount\":500000,\"account\":\"助理2微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"complete\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"5000.00\",\"account\":\"助理2微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理2\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"}],\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:25.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00121-after-sale-approve", + "b28c9a7a9fee46c5a5868b91524625dead1030816f0255f1b15eb6352411617a", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"action\":\"return\",\"reason\":\"客户退回一件\",\"status\":\"approved\",\"requester_id\":\"\",\"requester_name\":\"助理2\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:01:03.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:05.000Z\",\"note\":\"实物已收回\",\"action_label\":\"订单售后\",\"action_input\":{\"date\":\"2026-11-19\",\"afterSale\":{\"lines\":[{\"lineIndex\":0,\"quantity\":\"1.000\",\"pocket\":\"金料\",\"disposition\":\"scrap\"}],\"refund\":{\"amount\":\"900\",\"account\":\"助理2支付宝\",\"payer\":\"assistant2\"},\"deductionReason\":\"客户确认扣费\",\"expenses\":[]}},\"order_number\":\"MM20261118-\",\"order_date\":\"2026-11-18\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false,\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:25.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"returned\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":\"2026-11-19\",\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":90000,\"netReceived\":410000,\"balance\":0,\"orderAfterSale\":{\"orderId\":\"\",\"date\":\"2026-11-19\",\"reason\":\"客户退回一件\",\"deductionReason\":\"客户确认扣费\",\"refund\":{\"amount\":90000,\"account\":\"助理2支付宝\",\"payer\":\"assistant2\",\"reference\":\"\"},\"expenses\":[],\"original\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"originalJournal\":{\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}],\"originalOrder\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}},\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":48000,\"knownProfit\":48000,\"ownerCost\":0,\"assistantInventoryCredit\":0,\"assistantInventoryCreditSources\":[],\"assistantInventoryCreditExplanation\":\"\",\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:01:03.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":500000,\"netReceived\":500000,\"goodsCost\":450000,\"directCost\":0,\"profit\":50000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":500000,\"netReceived\":410000,\"goodsCost\":450000,\"directCost\":0,\"profit\":48000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000},{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"kind\":\"return\",\"mg\":1000}],\"changes\":[{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"mg\":1000}]}},\"changes\":[{\"field\":\"status\",\"label\":\"订单状态\",\"before\":\"delivered\",\"after\":\"returned\"},{\"field\":\"returned_date\",\"label\":\"退货日期\",\"before\":null,\"after\":\"2026-11-19\"},{\"field\":\"refunded\",\"label\":\"累计退款\",\"before\":0,\"after\":90000},{\"field\":\"payments\",\"label\":\"收退款流水\",\"before\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\"}]},{\"field\":\"netReceived\",\"label\":\"已收净额\",\"before\":500000,\"after\":410000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":50000,\"after\":48000}],\"relatedOrders\":[],\"afterSale\":{\"orderId\":\"\",\"date\":\"2026-11-19\",\"reason\":\"客户退回一件\",\"deductionReason\":\"客户确认扣费\",\"refund\":{\"amount\":90000,\"account\":\"助理2支付宝\",\"payer\":\"assistant2\",\"reference\":\"\"},\"expenses\":[],\"original\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"originalJournal\":{\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}],\"originalOrder\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}},\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"returned\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":\"2026-11-19\",\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":{\"id\":\"\",\"status\":\"approved\",\"action\":\"return\",\"action_label\":\"订单售后\",\"order_revision\":4,\"reason\":\"客户退回一件\",\"requester_name\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:05.000Z\",\"note\":\"实物已收回\"},\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":90000,\"netReceived\":410000,\"balance\":0,\"orderAfterSale\":{\"orderId\":\"\",\"date\":\"2026-11-19\",\"reason\":\"客户退回一件\",\"deductionReason\":\"客户确认扣费\",\"refund\":{\"amount\":90000,\"account\":\"助理2支付宝\",\"payer\":\"assistant2\",\"reference\":\"\"},\"expenses\":[],\"original\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":{\"id\":\"\",\"status\":\"approved\",\"action\":\"return\",\"action_label\":\"订单售后\",\"order_revision\":4,\"reason\":\"客户退回一件\",\"requester_name\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:05.000Z\",\"note\":\"实物已收回\"},\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"originalJournal\":{\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}],\"originalOrder\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":{\"id\":\"\",\"status\":\"approved\",\"action\":\"return\",\"action_label\":\"订单售后\",\"order_revision\":4,\"reason\":\"客户退回一件\",\"requester_name\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:05.000Z\",\"note\":\"实物已收回\"},\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}},\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":48000,\"knownProfit\":48000,\"ownerCost\":0,\"assistantInventoryCredit\":0,\"assistantInventoryCreditSources\":[],\"assistantInventoryCreditExplanation\":\"\",\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"同意修改订单\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"action\":\"return\",\"reason\":\"客户退回一件\",\"note\":\"实物已收回\",\"requestedBy\":\"助理2\",\"requestedAt\":\"2026-11-19T02:01:03.000Z\",\"reviewed\":\"2026-11-19T02:01:05.000Z\",\"summary\":{\"before\":{\"total\":500000,\"netReceived\":500000,\"goodsCost\":450000,\"directCost\":0,\"profit\":50000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":500000,\"netReceived\":410000,\"goodsCost\":450000,\"directCost\":0,\"profit\":48000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000},{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"kind\":\"return\",\"mg\":1000}],\"changes\":[{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"mg\":1000}]}},\"notice\":\"按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:01:05.000Z\"},{\"action\":\"订单退货退款售后\",\"actor\":\"麦麦\",\"detail\":{\"date\":\"2026-11-19\",\"revision\":5,\"reason\":\"客户退回一件\",\"verified\":true,\"afterSale\":{\"lines\":[{\"lineIndex\":0,\"quantity\":\"1.000\",\"pocket\":\"金料\",\"disposition\":\"scrap\"}],\"refund\":{\"amount\":\"900\",\"account\":\"助理2支付宝\",\"payer\":\"assistant2\"},\"deductionReason\":\"客户确认扣费\",\"expenses\":[]},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:01:05.000Z\"},{\"action\":\"申请修改订单\",\"actor\":\"助理2\",\"detail\":{\"requestId\":\"\",\"action\":\"return\",\"reason\":\"客户退回一件\",\"revision\":4,\"changes\":[{\"field\":\"status\",\"label\":\"订单状态\",\"before\":\"delivered\",\"after\":\"returned\"},{\"field\":\"returned_date\",\"label\":\"退货日期\",\"before\":null,\"after\":\"2026-11-19\"},{\"field\":\"refunded\",\"label\":\"累计退款\",\"before\":0,\"after\":90000},{\"field\":\"payments\",\"label\":\"收退款流水\",\"before\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\"}]},{\"field\":\"netReceived\",\"label\":\"已收净额\",\"before\":500000,\"after\":410000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":50000,\"after\":48000}],\"summary\":{\"before\":{\"total\":500000,\"netReceived\":500000,\"goodsCost\":450000,\"directCost\":0,\"profit\":50000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":500000,\"netReceived\":410000,\"goodsCost\":450000,\"directCost\":0,\"profit\":48000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000},{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"kind\":\"return\",\"mg\":1000}],\"changes\":[{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"mg\":1000}]}},\"notice\":\"申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-19T02:01:03.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理2\",\"detail\":{\"amount\":500000,\"account\":\"助理2微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"complete\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"amount\":\"5000.00\",\"account\":\"助理2微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理2\",\"detail\":{\"date\":\"2026-11-18\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理2\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant2\"}},\"created\":\"2026-11-18T02:01:25.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:01:05.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00122-after-sale-update-request", + "de5dc19d7219cfea872a0b6edc1a2e548f499768674e46f638e6122259429cd3", + "{\"id\":\"\",\"after_sale_id\":\"\",\"applied\":false,\"pending\":true,\"requestId\":\"\",\"request\":{\"id\":\"\",\"afterSaleId\":\"\",\"revision\":1,\"recordRevision\":1,\"status\":\"pending\",\"reason\":\"金额录错\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"member\":\"assistant\",\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:01:09.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false,\"staleReason\":\"\",\"canApprove\":false},\"record\":{\"id\":\"\",\"revision\":1,\"record\":{\"id\":\"\",\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:02:03.000Z\",\"member\":\"assistant\",\"revision\":1},\"values\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":\"8.50\",\"payer\":\"assistant\"},\"permissions\":{\"canEdit\":false,\"canDirectEdit\":false,\"requiresApproval\":true,\"canRequest\":false,\"reason\":\"已有待审批修改,请先由麦麦处理\"},\"pending\":{\"id\":\"\",\"afterSaleId\":\"\",\"revision\":1,\"recordRevision\":1,\"status\":\"pending\",\"reason\":\"金额录错\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"member\":\"assistant\",\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:01:09.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false,\"staleReason\":\"\",\"canApprove\":false},\"history\":[]}}" + ], + [ + "golden-00123-after-sale-change-approve", + "0d69455d0434e4f7aa180047c525333bb29fb9bcf1d4beac810682ae3b248f20", + "{\"id\":\"\",\"afterSaleId\":\"\",\"revision\":2,\"recordRevision\":1,\"status\":\"approved\",\"reason\":\"金额录错\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"member\":\"assistant\",\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:01:09.000Z\",\"reviewerName\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:12.000Z\",\"note\":\"核实\",\"stale\":false,\"staleReason\":\"\",\"canApprove\":false}" + ], + [ + "golden-00124-after-sale-update-request-2", + "ed4b5128d3723d40e0283b57bf4a49f006c77e419232fef8c85353259f662ff6", + "{\"id\":\"\",\"after_sale_id\":\"\",\"applied\":false,\"pending\":true,\"requestId\":\"\",\"request\":{\"id\":\"\",\"afterSaleId\":\"\",\"revision\":1,\"recordRevision\":2,\"status\":\"pending\",\"reason\":\"再次调整\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":1200,\"payer\":\"assistant\"},\"member\":\"assistant\",\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:01:14.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false,\"staleReason\":\"\",\"canApprove\":false},\"record\":{\"id\":\"\",\"revision\":2,\"record\":{\"id\":\"\",\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:02:03.000Z\",\"member\":\"assistant\",\"revision\":2},\"values\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":\"9.50\",\"payer\":\"assistant\"},\"permissions\":{\"canEdit\":false,\"canDirectEdit\":false,\"requiresApproval\":true,\"canRequest\":false,\"reason\":\"已有待审批修改,请先由麦麦处理\"},\"pending\":{\"id\":\"\",\"afterSaleId\":\"\",\"revision\":1,\"recordRevision\":2,\"status\":\"pending\",\"reason\":\"再次调整\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":1200,\"payer\":\"assistant\"},\"member\":\"assistant\",\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:01:14.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false,\"staleReason\":\"\",\"canApprove\":false},\"history\":[{\"id\":\"\",\"afterSaleId\":\"\",\"revision\":2,\"recordRevision\":1,\"status\":\"approved\",\"reason\":\"金额录错\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":850,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"member\":\"assistant\",\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:01:09.000Z\",\"reviewerName\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:12.000Z\",\"note\":\"核实\",\"stale\":false,\"staleReason\":\"\",\"canApprove\":false}]}}" + ], + [ + "golden-00125-after-sale-change-reject", + "80d6f8d1ae69f4a4eedc9ff8dd086fffe86e0a6219400d1bb06cf328ead35772", + "{\"id\":\"\",\"afterSaleId\":\"\",\"revision\":2,\"recordRevision\":2,\"status\":\"rejected\",\"reason\":\"再次调整\",\"before\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":950,\"payer\":\"assistant\"},\"after\":{\"date\":\"2026-11-18\",\"project\":\"对照改圈\",\"customer\":\"对照售后客户\",\"amount\":1200,\"payer\":\"assistant\"},\"member\":\"assistant\",\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"created\":\"2026-11-19T02:01:14.000Z\",\"reviewerName\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:15.000Z\",\"note\":\"金额无误\",\"stale\":false,\"staleReason\":\"\",\"canApprove\":false}" + ], + [ + "golden-00127-lock-change-request", + "2887f1933d6fa21a81fdb800dcca61e01d841aa740ddb1f78926f8f55bb2ba69", + "{\"id\":\"\",\"requestId\":\"\",\"price_lock_id\":\"\",\"request\":{\"id\":\"\",\"price_lock_id\":\"\",\"price_lock_revision\":1,\"action\":\"edit\",\"reason\":\"改客户名\",\"payload\":{\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"discount\":\"0.00\",\"member\":\"assistant\",\"payment\":{\"amount\":\"2700.00\",\"account\":\"助理微信\",\"verified\":true},\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":\"3.000\",\"goldPrice\":\"900.00\",\"laborRate\":\"20.00\",\"laborMode\":\"gram\",\"pieces\":1,\"charges\":[],\"lineId\":\"\",\"material\":{\"source\":\"manual\",\"rate\":\"850.00\",\"payer\":\"owner\",\"verified\":true}}],\"action\":\"edit\",\"revision\":1,\"reason\":\"改客户名\",\"verified\":true},\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:01:18.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"requestId\":\"\",\"revision\":1,\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-18T02:01:53.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-19T02:01:18.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"changes\":[{\"field\":\"customer\",\"before\":\"对照锁价客户\",\"after\":\"对照锁价客户(改)\"}],\"relatedOrders\":[],\"relatedPriceLocks\":[],\"stale\":false}}" + ], + [ + "golden-00128-lock-change-approve", + "15538c02ba6aab9ee89c1570363e89c3b0fabaa72c670bfed164d0986c073e82", + "{\"id\":\"\",\"requestId\":\"\",\"price_lock_id\":\"\",\"request\":{\"id\":\"\",\"price_lock_id\":\"\",\"price_lock_revision\":1,\"action\":\"edit\",\"reason\":\"改客户名\",\"payload\":{\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"discount\":\"0.00\",\"member\":\"assistant\",\"payment\":{\"amount\":\"2700.00\",\"account\":\"助理微信\",\"verified\":true},\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":\"3.000\",\"goldPrice\":\"900.00\",\"laborRate\":\"20.00\",\"laborMode\":\"gram\",\"pieces\":1,\"charges\":[],\"lineId\":\"\",\"material\":{\"source\":\"manual\",\"rate\":\"850.00\",\"payer\":\"owner\",\"verified\":true}}],\"action\":\"edit\",\"revision\":1,\"reason\":\"改客户名\",\"verified\":true},\"status\":\"approved\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:01:18.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:21.000Z\",\"note\":\"核实\",\"requestId\":\"\",\"revision\":1,\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-18T02:01:53.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-19T02:01:18.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"changes\":[{\"field\":\"customer\",\"before\":\"对照锁价客户\",\"after\":\"对照锁价客户(改)\"}],\"relatedOrders\":[],\"relatedPriceLocks\":[],\"stale\":false},\"lock\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-19T02:01:21.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0}}" + ], + [ + "golden-00129-lock-cancel-request", + "ec81ba15d1b2cd14780a4dddd87e50f98f0dcb16e62cfb562e4d9e2ce279f2f9", + "{\"id\":\"\",\"requestId\":\"\",\"price_lock_id\":\"\",\"request\":{\"id\":\"\",\"price_lock_id\":\"\",\"price_lock_revision\":1,\"action\":\"cancel\",\"reason\":\"客户不要了\",\"payload\":{\"action\":\"cancel\",\"revision\":1,\"reason\":\"客户不要了\",\"verified\":true},\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理2\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:01:23.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"requestId\":\"\",\"revision\":1,\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户三\",\"salesperson\":\"小昊\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"updated\":\"2026-11-18T02:01:55.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant2\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"account\":null,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":50000,\"refunded\":0,\"netReceived\":50000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户三\",\"salesperson\":\"小昊\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"estimated_total\":276000,\"discount\":0,\"status\":\"cancelled\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"updated\":\"2026-11-19T02:01:23.000Z\",\"cancelled_at\":\"2026-11-19T02:01:23.000Z\",\"cancelled_reason\":\"客户不要了\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant2\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[],\"material_events\":[],\"voided_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":1,\"void_reason\":\"客户不要了\",\"voided_at\":\"2026-11-19T02:01:23.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"account\":null,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":1,\"void_reason\":\"客户不要了\",\"voided_at\":\"2026-11-19T02:01:23.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"received\":0,\"refunded\":0,\"netReceived\":0,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"materialReturnDate\":\"2026-11-19\",\"changes\":[{\"field\":\"netReceived\",\"before\":50000,\"after\":0},{\"field\":\"status\",\"before\":\"pending\",\"after\":\"cancelled\"}],\"relatedOrders\":[],\"relatedPriceLocks\":[],\"stale\":false}}" + ], + [ + "golden-00130-lock-cancel-reject", + "f468f4d1e8075bd6261940eb41fb5e08bf45f6ea68612e7472c593545d1941d1", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"price_lock_id\":\"\",\"price_lock_revision\":1,\"action\":\"cancel\",\"reason\":\"客户不要了\",\"payload\":{\"action\":\"cancel\",\"revision\":1,\"reason\":\"客户不要了\",\"verified\":true},\"status\":\"rejected\",\"requester_id\":\"\",\"requester_name\":\"助理2\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:01:23.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:24.000Z\",\"note\":\"客户仍要\",\"requestId\":\"\",\"revision\":1,\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户三\",\"salesperson\":\"小昊\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"updated\":\"2026-11-18T02:01:55.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant2\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"account\":null,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":50000,\"refunded\":0,\"netReceived\":50000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户三\",\"salesperson\":\"小昊\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"estimated_total\":276000,\"discount\":0,\"status\":\"cancelled\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"updated\":\"2026-11-19T02:01:23.000Z\",\"cancelled_at\":\"2026-11-19T02:01:23.000Z\",\"cancelled_reason\":\"客户不要了\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant2\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[],\"material_events\":[],\"voided_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":1,\"void_reason\":\"客户不要了\",\"voided_at\":\"2026-11-19T02:01:23.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"account\":null,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":1,\"void_reason\":\"客户不要了\",\"voided_at\":\"2026-11-19T02:01:23.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"received\":0,\"refunded\":0,\"netReceived\":0,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"materialReturnDate\":\"2026-11-19\",\"changes\":[{\"field\":\"netReceived\",\"before\":50000,\"after\":0},{\"field\":\"status\",\"before\":\"pending\",\"after\":\"cancelled\"}],\"relatedOrders\":[],\"relatedPriceLocks\":[],\"stale\":false}}" + ], + [ + "golden-00131-lock-cancel-owner", + "e5bd1c8b4fd3d210aa624140b088de1e0f9e47c6c6dc63aa500b4668a582827c", + "{\"id\":\"\",\"price_lock_id\":\"\",\"status\":\"cancelled\",\"revision\":2,\"lock\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户四\",\"salesperson\":\"麦麦\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"cancelled\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"updated\":\"2026-11-19T02:01:26.000Z\",\"cancelled_at\":\"2026-11-19T02:01:26.000Z\",\"cancelled_reason\":\"录错作废\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"owner\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[],\"material_events\":[],\"voided_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":80000,\"account\":\"麦麦微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":null,\"voided\":1,\"void_reason\":\"录错作废\",\"voided_at\":\"2026-11-19T02:01:26.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户四\",\"product\":\"足金999\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:56.000Z\",\"line_index\":0,\"voided\":1,\"void_reason\":\"录错作废\",\"voided_at\":\"2026-11-19T02:01:26.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"received\":0,\"refunded\":0,\"netReceived\":0,\"credit_card_fees\":[],\"credit_card_fee_total\":0}}" + ], + [ + "golden-00132-lock-deliver", + "84eb4ce4f9db401646c6b205eeb4581b4d63aafeccfc8197fef1caec4e870ff2", + "{\"id\":\"\",\"order_id\":\"\",\"price_lock_id\":\"\",\"status\":\"delivered\",\"revision\":3}" + ], + [ + "golden-00133-recovery-exchange", + "5b083818291f0ac8a78257aea87076f978da77ad9ef860e9c4a77e1fea475075", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":8000,\"meltedMg\":8000,\"purity\":99.9,\"foldedMg\":7992}],\"oldMg\":7992,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":12000,\"matchedMg\":7992,\"differenceMg\":4008,\"surplusMg\":0,\"goldRate\":100000,\"laborRate\":2000,\"laborMode\":\"gram\",\"depreciationRate\":1000,\"depreciationMg\":7992,\"goldAmount\":400800,\"laborAmount\":24000,\"depreciationAmount\":7992,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":432792,\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"materialCost\":360720,\"laborCost\":6000,\"goodsCost\":366720,\"directCost\":0,\"profit\":66072,\"newProduct\":{\"name\":\"足金对照新货\",\"quantity\":12000,\"pocket\":\"现货\"},\"exchange\":{\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":4008},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"costPayer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"fee_items\":[]},\"purchaseMg\":0,\"buyRate\":0,\"calculatedPurchaseAmount\":0,\"purchaseAmount\":0,\"actualBuyRate\":null,\"offsetAmount\":0,\"netSettlement\":432792,\"cashReceipt\":432792,\"cashPayment\":0,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"id\":\"\",\"number\":\"HS202611190001\",\"order_id\":\"\",\"purchase_id\":null,\"created\":\"2026-11-19T02:01:32.000Z\",\"actor\":\"助理2\",\"revision\":1,\"paper_number\":\"20261119011\",\"materialCostPending\":false,\"status\":\"active\",\"cancelledAt\":\"\",\"canEdit\":true,\"canCancel\":true,\"pendingRequestId\":null,\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}" + ], + [ + "golden-00134-recovery-exchange-2", + "9438812b4e60c384ce05b07f957a946e05b086671cce8271f1bc8f11763296c1", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":5000,\"meltedMg\":4900,\"purity\":99,\"foldedMg\":4851}],\"oldMg\":4851,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":6000,\"matchedMg\":4851,\"differenceMg\":1149,\"surplusMg\":0,\"goldRate\":100000,\"laborRate\":2000,\"laborMode\":\"gram\",\"depreciationRate\":1000,\"depreciationMg\":4851,\"goldAmount\":114900,\"laborAmount\":12000,\"depreciationAmount\":4851,\"charges\":[],\"chargesAmount\":0,\"discount\":1000,\"rounding_mode\":\"yuan\",\"rounding_adjustment\":49,\"receivable\":130800,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":103410,\"laborCost\":3000,\"goodsCost\":106410,\"directCost\":0,\"profit\":24390,\"newProduct\":{\"name\":\"足金对照新货\",\"quantity\":6000,\"pocket\":\"现货\"},\"exchange\":{\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"costPayer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"fee_items\":[]},\"purchaseMg\":0,\"buyRate\":0,\"calculatedPurchaseAmount\":0,\"purchaseAmount\":0,\"actualBuyRate\":null,\"offsetAmount\":0,\"netSettlement\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"id\":\"\",\"number\":\"HS202611190002\",\"order_id\":\"\",\"purchase_id\":null,\"created\":\"2026-11-19T02:01:33.000Z\",\"actor\":\"助理\",\"revision\":1,\"paper_number\":\"20261119012\",\"materialCostPending\":false,\"status\":\"active\",\"cancelledAt\":\"\",\"canEdit\":true,\"canCancel\":true,\"pendingRequestId\":null,\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}" + ], + [ + "golden-00135-print-status-recovery-set", + "ab1c35a9a12683fdf838ee923e927742c291a4579c3bc4f917cc70ab93aa3806", + "{\"kind\":\"recovery\",\"id\":\"\",\"printed\":true,\"revision\":1,\"updated\":\"2026-11-19T02:01:40.000Z\",\"actor\":\"助理2\",\"sourceRevision\":1}" + ], + [ + "golden-00136-customer-materials", + "700070b84ffbeb463a501757ccf420a1c2bb503649adb1f277d045e51cf19d32", + "{\"id\":\"\",\"number\":\"JC202611190001\",\"date\":\"2026-11-19\",\"mg\":1500,\"remainingMg\":1500,\"usedMg\":0,\"memo\":\"对照寄存袋\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:43.000Z\",\"events\":[]}" + ], + [ + "golden-00138-issue-d2", + "04e943b1ae810a15d1f67aef478faa32874e861fab532c59306d72416a793690", + "{\"id\":\"\"}" + ], + [ + "golden-00139-same-day-edit-direct", + "402cf0624b20217d404c285d9217ebab94ab8db752ee3fdde1b9192d9f9467cb", + "{\"id\":\"\",\"revision\":5,\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"2026-11-19\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":210000,\"refunded\":0,\"netReceived\":210000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":180000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":180000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":30000,\"profit\":30000,\"knownProfit\":30000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"整单账务修改\",\"actor\":\"助理\",\"detail\":{\"reason\":\"当天改客户\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:48.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-2000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"2026-11-19\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:50.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":210000,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"amount\":\"2100.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:01:50.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00140-same-day-expense", + "311a7261c2b30829ffa878cbbd0ecf3358c44fdc5202354dbd135d7519f15f03", + "{\"id\":\"\"}" + ], + [ + "golden-00141-ownership-request-same-day", + "9c57f81d29cd646a2f5167e06d0ff5ccc3bb782830ef3c5757e958c0118c2c23", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":6,\"from_member\":\"assistant\",\"to_member\":\"assistant2\",\"reason\":\"实际由小昊接待\",\"status\":\"pending\",\"direct\":false,\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:01:54.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"order_number\":\"MM20261119-\",\"order_customer\":\"当天客户(改)\",\"order_date\":\"2026-11-19\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false},\"applied\":false,\"revision\":6,\"member\":\"assistant\",\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":6,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"2026-11-19\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":{\"id\":\"\",\"status\":\"pending\",\"order_revision\":6,\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"reason\":\"实际由小昊接待\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:01:54.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"direct\":false,\"stale\":false},\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":800,\"payer\":\"assistant\",\"note\":\"当天快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:52.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":210000,\"refunded\":0,\"netReceived\":210000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":180000,\"directCost\":800,\"materialCostPending\":false,\"knownGoodsCost\":180000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29200,\"profit\":29200,\"knownProfit\":29200,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"申请修改订单归属\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"reason\":\"实际由小昊接待\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"revision\":6,\"notice\":\"申请不改变订单、财务、库存或可见范围,由麦麦审批后生效\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:54.000Z\"},{\"action\":\"expense\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"revision\":6,\"reason\":\"当天快递\",\"verified\":true,\"amount\":\"8\",\"payer\":\"assistant\",\"note\":\"当天快递\",\"direct\":true,\"directDate\":\"2026-11-19\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:52.000Z\"},{\"action\":\"整单账务修改\",\"actor\":\"助理\",\"detail\":{\"reason\":\"当天改客户\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:48.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-2000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"2026-11-19\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:50.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":210000,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"amount\":\"2100.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"}],\"sync\":{\"revision\":6,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:01:52.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00142-ownership-approve", + "2a8e00f32b671be0548d0d5e05ba45cc993a8e55e7ae2ea4ffee0e3ae7b03c4a", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":6,\"from_member\":\"assistant\",\"to_member\":\"assistant2\",\"reason\":\"实际由小昊接待\",\"status\":\"approved\",\"direct\":false,\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:01:54.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:56.000Z\",\"note\":\"核实\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"order_number\":\"MM20261119-\",\"order_customer\":\"当天客户(改)\",\"order_date\":\"2026-11-19\",\"order_status\":\"delivered\",\"stale\":false,\"canApprove\":false},\"applied\":true,\"revision\":7,\"member\":\"assistant2\",\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":7,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"2026-11-19\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":{\"id\":\"\",\"status\":\"approved\",\"order_revision\":6,\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"reason\":\"实际由小昊接待\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:01:54.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:56.000Z\",\"note\":\"核实\",\"direct\":false},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":800,\"payer\":\"assistant\",\"note\":\"当天快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:52.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":210000,\"refunded\":0,\"netReceived\":210000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":180000,\"directCost\":800,\"materialCostPending\":false,\"knownGoodsCost\":180000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29200,\"profit\":29200,\"knownProfit\":29200,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"同意修改订单归属\",\"actor\":\"麦麦\",\"detail\":{\"requestId\":\"\",\"reason\":\"实际由小昊接待\",\"note\":\"核实\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:01:54.000Z\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\",\"revision\":6},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\",\"revision\":7},\"related\":[{\"kind\":\"order\",\"id\":\"\"},{\"kind\":\"movement\",\"id\":\"\"}],\"notice\":\"业绩、成本和利润随订单归属;实际收付款账户、付款人、金额、库存与成本利润数值保持不变,成员往来仅追加归属差额,真实转账保留\",\"actorIdentity\":{\"id\":\"\",\"role\":\"owner\",\"member\":\"owner\"}},\"created\":\"2026-11-19T02:01:56.000Z\"},{\"action\":\"申请修改订单归属\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"reason\":\"实际由小昊接待\",\"before\":{\"member\":\"assistant\",\"label\":\"娜娜\"},\"after\":{\"member\":\"assistant2\",\"label\":\"小昊\"},\"revision\":6,\"notice\":\"申请不改变订单、财务、库存或可见范围,由麦麦审批后生效\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:54.000Z\"},{\"action\":\"expense\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"revision\":6,\"reason\":\"当天快递\",\"verified\":true,\"amount\":\"8\",\"payer\":\"assistant\",\"note\":\"当天快递\",\"direct\":true,\"directDate\":\"2026-11-19\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:52.000Z\"},{\"action\":\"整单账务修改\",\"actor\":\"助理\",\"detail\":{\"reason\":\"当天改客户\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:48.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-2000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}]},\"after\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"2026-11-19\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"revision\":5,\"received\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"settlementDue\":0},\"notice\":\"原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:50.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":210000,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"amount\":\"2100.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:48.000Z\"}],\"sync\":{\"revision\":7,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:01:56.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00143-issue-d2-cancel", + "3d3ca8acd7f5c8c3ef7c8aed8274b157fe1d17e4110a18ca8a023e0e5cbcd5ad", + "{\"id\":\"\"}" + ], + [ + "golden-00144-cancel-today", + "c90be43f34d49a778f933fec18ee7087a533206c93cb2f94f40544f6fe1ae372", + "{\"id\":\"\",\"requestId\":\"\",\"request\":{\"id\":\"\",\"order_id\":\"\",\"order_revision\":4,\"reason\":\"当天录错\",\"status\":\"approved\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:01:59.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"direct\":true,\"operator_name\":\"助理\",\"executedAt\":\"2026-11-19T02:01:59.000Z\",\"order_number\":\"MM20261119-\",\"order_date\":\"2026-11-19\",\"order_status\":\"delivered\",\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"stale\":false,\"canApprove\":false,\"summary\":{\"total\":210000,\"netReceived\":210000,\"goodsCost\":180000,\"directCost\":0,\"profit\":30000,\"settlementDue\":0,\"inventory\":[{\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":2000}]}},\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天取消客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119014\",\"status\":\"cancelled\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:57.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"cancellationPending\":null,\"cancellationApproved\":{\"id\":\"\",\"status\":\"approved\",\"order_revision\":4,\"reason\":\"当天录错\",\"requester_name\":\"助理\",\"created\":\"2026-11-19T02:01:59.000Z\",\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"direct\":true,\"operator_name\":\"助理\",\"executedAt\":\"2026-11-19T02:01:59.000Z\"},\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:57.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":-210000,\"account\":\"助理微信\",\"reference\":\"更正冲回:取消审批作废;当天录错\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:59.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[{\"target\":\"\",\"type\":\"payment\",\"reason\":\"当天录错\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:59.000Z\"}],\"received\":0,\"refunded\":0,\"netReceived\":0,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":180000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":180000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":30000,\"profit\":0,\"knownProfit\":0,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"audit\":[{\"action\":\"当天直接取消订单(录错作废)\",\"actor\":\"助理\",\"detail\":{\"requestId\":\"\",\"reason\":\"当天录错\",\"note\":\"\",\"requestedBy\":\"助理\",\"requestedAt\":\"2026-11-19T02:01:59.000Z\",\"reviewed\":null,\"direct\":true,\"operator\":\"助理\",\"operationDate\":\"2026-11-19\",\"before\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天取消客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119014\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:57.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:57.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:57.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-2000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:57.000Z\"}],\"corrections\":[],\"materialUsages\":[],\"priceLock\":null},\"after\":{\"revision\":5,\"status\":\"cancelled\",\"netReceived\":0,\"directCost\":0,\"profit\":0,\"settlementDue\":0},\"inventory\":[{\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":2000}],\"notice\":\"原订单、作废记录、收支与库存流水保留;不是客户退货退款;原采购和双方实际交款不变,原已交款按作废后的应结余额处理\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:59.000Z\"},{\"action\":\"生成已交付单据\",\"actor\":\"助理\",\"detail\":{\"amount\":210000,\"account\":\"助理微信\",\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:57.000Z\"},{\"action\":\"complete\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:57.000Z\"},{\"action\":\"deliver\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"verified\":true,\"revision\":4,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:57.000Z\"},{\"action\":\"receipt\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"amount\":\"2100.00\",\"account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"verified\":true,\"reference\":\"开单时已全额收款\",\"revision\":3,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:57.000Z\"},{\"action\":\"confirm\",\"actor\":\"助理\",\"detail\":{\"date\":\"2026-11-19\",\"revision\":2,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:57.000Z\"},{\"action\":\"保存草稿\",\"actor\":\"助理\",\"detail\":{\"revision\":1,\"actorIdentity\":{\"id\":\"\",\"role\":\"assistant\",\"member\":\"assistant\"}},\"created\":\"2026-11-19T02:01:57.000Z\"}],\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:01:59.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}" + ], + [ + "golden-00148-transfer", + "8c1fbb03b8113dd285c86a63cabd4de246ac79643d811639c431356229f042e1", + "{\"id\":\"\",\"team\":{\"from\":\"2026-11-19\",\"to\":\"2026-11-19\",\"date\":\"2026-11-19\",\"members\":[{\"id\":\"owner\",\"name\":\"麦麦\"},{\"id\":\"assistant\",\"name\":\"娜娜\"},{\"id\":\"assistant2\",\"name\":\"小昊\"}],\"balances\":[{\"member\":\"owner\",\"receipts\":0,\"refunds\":0,\"outlays\":600,\"transferIn\":10000,\"transferOut\":0,\"openingChange\":-2341031,\"periodChange\":9400,\"cumulativeChange\":-2331631,\"cashBalance\":9400,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"},{\"member\":\"assistant\",\"receipts\":357000,\"refunds\":0,\"outlays\":300210,\"transferIn\":0,\"transferOut\":10000,\"openingChange\":134600,\"periodChange\":46790,\"cumulativeChange\":181390,\"cashBalance\":46790,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"},{\"member\":\"assistant2\",\"receipts\":432792,\"refunds\":90000,\"outlays\":366720,\"transferIn\":0,\"transferOut\":0,\"openingChange\":-123837,\"periodChange\":-23928,\"cumulativeChange\":-147765,\"cashBalance\":-23928,\"balanceType\":\"recorded-change\",\"notice\":\"仅三人新账已登记的资金增减,不含真实期初余额\"}],\"pairs\":[{\"id\":\"owner:assistant\",\"members\":[\"owner\",\"assistant\"],\"net\":-637681,\"obligationNet\":-657681,\"transferred\":-20000,\"receivedForNet\":288500,\"advancedNet\":-946181,\"offset\":290650,\"due\":637681,\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"direction\":\"transfer\",\"period\":{\"obligationNet\":-600,\"transferred\":-10000,\"receivedForNet\":0,\"advancedNet\":-600},\"entries\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":600,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"}]},{\"id\":\"owner:assistant2\",\"members\":[\"owner\",\"assistant2\"],\"net\":0,\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0,\"offset\":0,\"due\":0,\"fromMember\":null,\"toMember\":null,\"direction\":\"none\",\"period\":{\"obligationNet\":0,\"transferred\":0,\"receivedForNet\":0,\"advancedNet\":0},\"entries\":[]},{\"id\":\"assistant:assistant2\",\"members\":[\"assistant\",\"assistant2\"],\"net\":41200,\"obligationNet\":41200,\"transferred\":0,\"receivedForNet\":292000,\"advancedNet\":-250800,\"offset\":250800,\"due\":41200,\"fromMember\":\"assistant\",\"toMember\":\"assistant2\",\"direction\":\"transfer\",\"period\":{\"obligationNet\":29200,\"transferred\":0,\"receivedForNet\":210000,\"advancedNet\":-180800},\"entries\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"assistant\",\"toMember\":\"assistant2\",\"amount\":210000,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":800,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":180000,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"}]}],\"entries\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":600,\"revision\":1,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"assistant\",\"toMember\":\"assistant2\",\"amount\":210000,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":800,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"},{\"id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":180000,\"revision\":3,\"sourceKind\":\"order\",\"sourceId\":\"\"}],\"transfers\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":10000,\"note\":\"对照转账二\",\"actor\":\"麦麦\"}],\"revision\":\"91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e\",\"pending\":[],\"legacyReadOnly\":true,\"cutover\":\"仅已启用的三人新账事件;旧结算不自动迁入\",\"transfersDeducted\":true}}" + ], + [ + "golden-00150-people-count-d2-save", + "d7981e192a38e0d12322df7823756ed6253da9b92d1f79b138788cb781807d33", + "{\"date\":\"2026-11-19\",\"previousDate\":\"2026-11-18\",\"previous\":{\"assistant1Count\":5,\"assistant2Count\":3},\"previousDates\":{\"assistant1\":\"2026-11-18\",\"assistant2\":\"2026-11-18\"},\"mode\":\"daily-total\",\"assistant1Count\":7,\"assistant1Change\":2,\"assistant1ChangeReason\":null,\"assistant2Count\":4,\"assistant2Change\":1,\"assistant2ChangeReason\":null,\"revision\":1}" + ], + [ + "golden-00152-rolling-enable", + "cb1992cf32044f64105764b83f92d3b2e491751b2b762ca907ed5bbca8fca2a0", + "{\"rolling\":{\"enabled\":true,\"cutover\":\"2026-11-19\",\"canEnable\":false,\"reason\":\"\"},\"current\":{\"id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"rolling\":true,\"frozen\":false,\"totalMg\":28000,\"totalAmount\":2536000,\"usedMg\":0,\"remainingMg\":28000,\"shortageMg\":0,\"consumedCost\":0,\"remainingCost\":2536000,\"remainingAllocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"}],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":628000,\"consumed\":0,\"remaining\":628000},\"assistant2\":{\"purchased\":88000,\"consumed\":0,\"remaining\":88000}},\"averageRate\":90571,\"status\":\"unused\",\"revision\":\"ff814cc4c01584def21570bc60f0854b715c6ea408a557d8938b7070af0d103d\",\"opening\":{\"mg\":27000,\"amount\":2448000,\"allocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}]},\"todayPurchases\":{\"mg\":0,\"amount\":0,\"count\":0,\"items\":[]},\"todayReturns\":{\"mg\":1000,\"amount\":88000,\"count\":1,\"grossMg\":1000,\"grossAmount\":88000,\"grossCount\":1},\"returns\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0}],\"purchases\":[{\"id\":\"carry:2026-11-19\",\"date\":\"2026-11-19\",\"mg\":27000,\"amount\":2448000,\"payer\":\"assistant\",\"allocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"created\":\"2026-11-19T00:00:00.000Z\",\"note\":\"以前结转\",\"sourceKind\":\"carry\",\"cashAmount\":0,\"canEdit\":false},{\"id\":\"return::material:0\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0,\"batches\":[],\"materialKind\":\"public\",\"materialOwner\":null,\"payer\":\"assistant2\",\"sourceKind\":\"return\",\"note\":\"退货回料\",\"canEdit\":false}],\"usages\":[],\"settlements\":[],\"settlement\":{\"legacyReadOnly\":true,\"settlementDue\":0,\"assistantInventoryCredit\":0,\"transferred\":0,\"pending\":false}}}" + ], + [ + "golden-00153-purchase-d2", + "28336d5d0b154dda4d5cd51304e37a2332b024bd6995855a1bb5f06f29dcae88", + "{\"id\":\"\",\"poolId\":\"2026-11-19\",\"pool\":{\"id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"rolling\":true,\"frozen\":false,\"totalMg\":33000,\"totalAmount\":2996000,\"usedMg\":0,\"remainingMg\":33000,\"shortageMg\":0,\"consumedCost\":0,\"remainingCost\":2996000,\"remainingAllocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"}],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":1088000,\"consumed\":0,\"remaining\":1088000},\"assistant2\":{\"purchased\":88000,\"consumed\":0,\"remaining\":88000}},\"averageRate\":90788,\"status\":\"unused\",\"revision\":\"d957c8c11a47cb6cd1c7a6ef6deed7d7713ae16b9a71f6b2785951a75cd2dadd\",\"todayPurchases\":{\"mg\":5000,\"amount\":460000,\"count\":1,\"items\":[{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\",\"member\":\"assistant\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false}]},\"todayReturns\":{\"mg\":1000,\"amount\":88000,\"count\":1,\"grossMg\":1000,\"grossAmount\":88000,\"grossCount\":1},\"purchases\":[{\"id\":\"carry:2026-11-19\",\"date\":\"2026-11-19\",\"mg\":27000,\"amount\":2448000,\"payer\":\"assistant\",\"allocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"shared\":true,\"canEdit\":false,\"canRequestChange\":false,\"sourceKind\":\"carry\",\"cashAmount\":0},{\"id\":\"return::material:0\",\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"payer\":\"assistant2\",\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"shared\":true,\"canEdit\":false,\"canRequestChange\":false,\"sourceKind\":\"return\",\"cashAmount\":0},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\",\"member\":\"assistant\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false}],\"usages\":[],\"settlements\":[],\"settlement\":{\"legacyReadOnly\":true,\"pending\":false,\"settlementDue\":null},\"opening\":{\"mg\":27000,\"amount\":2448000,\"allocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}]},\"returns\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"sameDay\":false,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"anonymous\":true}],\"legacyReadOnly\":true}}" + ], + [ + "golden-00154-purchase-d2-xiaohao", + "9bb24949d613bb26f1dffe81e9bc824b8c6feb2051a6e62db8e24a6d7fec0a21", + "{\"id\":\"\",\"poolId\":\"2026-11-19\",\"pool\":{\"id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"rolling\":true,\"frozen\":false,\"totalMg\":37000,\"totalAmount\":3366000,\"usedMg\":0,\"remainingMg\":37000,\"shortageMg\":0,\"consumedCost\":0,\"remainingCost\":3366000,\"remainingAllocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"}],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":1088000,\"consumed\":0,\"remaining\":1088000},\"assistant2\":{\"purchased\":458000,\"consumed\":0,\"remaining\":458000}},\"averageRate\":90973,\"status\":\"unused\",\"revision\":\"9e003dda2a0f5a651e44e6fd5de9e538d583d5c58dfd96aaa75b35b062e227af\",\"todayPurchases\":{\"mg\":9000,\"amount\":830000,\"count\":2,\"items\":[{\"id\":\"\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"shared\":true,\"canEdit\":false,\"canRequestChange\":false,\"sourceKind\":\"purchase\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\",\"member\":\"assistant2\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false}]},\"todayReturns\":{\"mg\":1000,\"amount\":88000,\"count\":1,\"grossMg\":1000,\"grossAmount\":88000,\"grossCount\":1},\"purchases\":[{\"id\":\"carry:2026-11-19\",\"date\":\"2026-11-19\",\"mg\":27000,\"amount\":2448000,\"payer\":\"assistant\",\"allocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"shared\":true,\"canEdit\":false,\"canRequestChange\":false,\"sourceKind\":\"carry\",\"cashAmount\":0},{\"id\":\"return::material:0\",\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"payer\":\"assistant2\",\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"shared\":true,\"canEdit\":false,\"canRequestChange\":false,\"sourceKind\":\"return\",\"cashAmount\":0},{\"id\":\"\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"shared\":true,\"canEdit\":false,\"canRequestChange\":false,\"sourceKind\":\"purchase\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\",\"member\":\"assistant2\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false}],\"usages\":[],\"settlements\":[],\"settlement\":{\"legacyReadOnly\":true,\"pending\":false,\"settlementDue\":null},\"opening\":{\"mg\":27000,\"amount\":2448000,\"allocations\":[{\"payer\":\"assistant\",\"amount\":628000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}]},\"returns\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0}],\"legacyReadOnly\":true}}" + ], + [ + "golden-00156-purchase-change-request", + "9ae923232d123b7d610c90d648b073fa3ff321695fda75bf4c357fe60254ca5d", + "{\"id\":\"\",\"purchase_id\":\"\",\"purchase_revision\":1,\"action\":\"edit\",\"reason\":\"核对原始购料凭据后申请\",\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:02:23.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false,\"canApprove\":false,\"preview\":{\"before\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"revision\":1},\"after\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"revision\":2},\"relatedOrders\":[{\"id\":\"\",\"number\":\"20261118004\",\"date\":\"2026-11-18\",\"member\":\"assistant\",\"before\":{\"goodsCost\":272000,\"profit\":57000,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000},\"after\":{\"goodsCost\":271935,\"profit\":57065,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000}}],\"affectedDates\":[\"2026-11-18\"],\"summary\":{\"affectedOrderCount\":1}}}" + ], + [ + "golden-00158-purchase-change-approve", + "32a2cb7c7c14ff271a315d9f85504d34552ee86472f333e6b2ee6356560241a4", + "{\"id\":\"\",\"purchase_id\":\"\",\"purchase_revision\":1,\"action\":\"edit\",\"reason\":\"核对原始购料凭据后申请\",\"status\":\"approved\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:02:23.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:02:27.000Z\",\"note\":\"已核对付款凭据\",\"stale\":false,\"canApprove\":false,\"preview\":{\"before\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"revision\":1},\"after\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"revision\":2},\"relatedOrders\":[{\"id\":\"\",\"number\":\"20261118004\",\"date\":\"2026-11-18\",\"member\":\"assistant\",\"before\":{\"goodsCost\":272000,\"profit\":57000,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000},\"after\":{\"goodsCost\":271935,\"profit\":57065,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000}}],\"affectedDates\":[\"2026-11-18\"],\"summary\":{\"affectedOrderCount\":1,\"goodsDelta\":-65,\"profitDelta\":65}}}" + ], + [ + "golden-00159-purchase-delete-request", + "968b47652caa3fc028dda04d568e5ef9fcff46c748d560892bcef0aaf589e8b0", + "{\"id\":\"\",\"purchase_id\":\"\",\"purchase_revision\":2,\"action\":\"delete\",\"reason\":\"申请删除历史购料\",\"status\":\"pending\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:02:29.000Z\",\"reviewer_id\":null,\"reviewer_name\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false,\"canApprove\":false,\"preview\":{\"before\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"revision\":2},\"after\":null,\"relatedOrders\":[{\"id\":\"\",\"number\":\"20261118004\",\"date\":\"2026-11-18\",\"member\":\"assistant\",\"before\":{\"goodsCost\":271935,\"profit\":57065,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000},\"after\":{\"goodsCost\":273000,\"profit\":56000,\"settlementDue\":0,\"ownerCost\":273000,\"total\":330000,\"netReceived\":330000}}],\"affectedDates\":[\"2026-11-18\"],\"summary\":{\"affectedOrderCount\":1}}}" + ], + [ + "golden-00160-purchase-change-reject", + "921bc6f635228028dd8f63e6757827da6a7e28e98e2483a1e9dd66e8c29f75ac", + "{\"id\":\"\",\"purchase_id\":\"\",\"purchase_revision\":2,\"action\":\"delete\",\"reason\":\"申请删除历史购料\",\"status\":\"rejected\",\"requester_id\":\"\",\"requester_name\":\"助理\",\"requester_role\":\"assistant\",\"created\":\"2026-11-19T02:02:29.000Z\",\"reviewer_id\":\"\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:02:30.000Z\",\"note\":\"购料真实存在\",\"stale\":false,\"canApprove\":false,\"preview\":{\"before\":{\"id\":\"\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"revision\":2},\"after\":null,\"relatedOrders\":[{\"id\":\"\",\"number\":\"20261118004\",\"date\":\"2026-11-18\",\"member\":\"assistant\",\"before\":{\"goodsCost\":271935,\"profit\":57065,\"settlementDue\":0,\"ownerCost\":0,\"total\":330000,\"netReceived\":330000},\"after\":{\"goodsCost\":273000,\"profit\":56000,\"settlementDue\":0,\"ownerCost\":273000,\"total\":330000,\"netReceived\":330000}}],\"affectedDates\":[\"2026-11-18\"],\"summary\":{\"affectedOrderCount\":1,\"goodsDelta\":1065,\"profitDelta\":-1065}}}" + ], + [ + "golden-00162-purchase-to-delete", + "bdb4b899c63859b27d79c8083fcd5b8149ef6576e0209f40c84a1d24203853f5", + "{\"id\":\"\",\"poolId\":\"2026-11-19\",\"pool\":{\"id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"rolling\":true,\"frozen\":false,\"totalMg\":39000,\"totalAmount\":3546065,\"usedMg\":0,\"remainingMg\":39000,\"shortageMg\":0,\"consumedCost\":0,\"remainingCost\":3546065,\"remainingAllocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"},{\"payer\":\"owner\",\"amount\":90000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:33.000Z\"}],\"byPayer\":{\"owner\":{\"purchased\":1910000,\"consumed\":0,\"remaining\":1910000},\"assistant\":{\"purchased\":1178065,\"consumed\":0,\"remaining\":1178065},\"assistant2\":{\"purchased\":458000,\"consumed\":0,\"remaining\":458000}},\"averageRate\":90925,\"status\":\"unused\",\"revision\":\"88796bce0013dc02ca8ca610e43f143452f0f65c48352b8a31129d713ebf12bd\",\"opening\":{\"mg\":28000,\"amount\":2538065,\"allocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"pending\":false,\"pools\":[{\"id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"totalMg\":31000,\"totalAmount\":2810000,\"averageRate\":90645,\"usedMg\":3000,\"remainingMg\":28000,\"shortageMg\":0,\"consumedCost\":271935,\"remainingCost\":2538065,\"status\":\"using\",\"revision\":\"2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:27.000Z\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\"}],\"usages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":271935,\"owner_amount\":0,\"assistant_amount\":271935,\"revision\":3,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-19T02:02:27.000Z\",\"fifo_sequence\":1,\"number\":\"MM20261118-\",\"customer\":\"对照客户丁\",\"order_status\":\"delivered\",\"member\":\"assistant\",\"product\":\"足金999\"}],\"settlements\":[],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":990000,\"consumed\":271935,\"remaining\":718065}},\"settlement\":{\"assistantInventoryCredit\":718065,\"transferred\":0,\"settlementDue\":-718065,\"pending\":false}}]},\"todayPurchases\":{\"mg\":10000,\"amount\":920000,\"count\":3,\"items\":[{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant2\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":90000,\"payer\":\"owner\",\"note\":\"待删除\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:02:33.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:33.000Z\",\"source_sequence\":6,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"owner\"}]},\"todayReturns\":{\"mg\":1000,\"amount\":88000,\"count\":1,\"grossMg\":1000,\"grossAmount\":88000,\"grossCount\":1},\"returns\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0}],\"purchases\":[{\"id\":\"carry:2026-11-19\",\"date\":\"2026-11-19\",\"mg\":28000,\"amount\":2538065,\"payer\":\"assistant\",\"allocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"created\":\"2026-11-19T00:00:00.000Z\",\"note\":\"以前结转\",\"sourceKind\":\"carry\",\"cashAmount\":0,\"canEdit\":false,\"canRequestChange\":false,\"ownerReviewRequired\":false},{\"id\":\"return::material:0\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0,\"batches\":[],\"materialKind\":\"public\",\"materialOwner\":null,\"payer\":\"assistant2\",\"sourceKind\":\"return\",\"note\":\"退货回料\",\"canEdit\":false,\"canRequestChange\":false,\"ownerReviewRequired\":false},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant2\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":90000,\"payer\":\"owner\",\"note\":\"待删除\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:02:33.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:33.000Z\",\"source_sequence\":6,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"owner\"}],\"usages\":[],\"settlements\":[],\"settlement\":{\"legacyReadOnly\":true,\"settlementDue\":0,\"assistantInventoryCredit\":0,\"transferred\":0,\"pending\":false},\"legacyReadOnly\":true}}" + ], + [ + "golden-00163-purchase-edit-same-day", + "379704402bf09c85ee66f5bfd9be4749abc0713b818ba901914a6d37c12ad38c", + "{\"id\":\"\",\"poolId\":\"2026-11-19\",\"previousPoolId\":\"2026-11-19\",\"pool\":{\"id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"rolling\":true,\"frozen\":false,\"totalMg\":39500,\"totalAmount\":3594065,\"usedMg\":0,\"remainingMg\":39500,\"shortageMg\":0,\"consumedCost\":0,\"remainingCost\":3594065,\"remainingAllocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"},{\"payer\":\"owner\",\"amount\":138000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:33.000Z\"}],\"byPayer\":{\"owner\":{\"purchased\":1958000,\"consumed\":0,\"remaining\":1958000},\"assistant\":{\"purchased\":1178065,\"consumed\":0,\"remaining\":1178065},\"assistant2\":{\"purchased\":458000,\"consumed\":0,\"remaining\":458000}},\"averageRate\":90989,\"status\":\"unused\",\"revision\":\"16ac04efab7be0ef91ae5b56186cfdb6a60326e325808a5c54051a85fa3943d1\",\"opening\":{\"mg\":28000,\"amount\":2538065,\"allocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"pending\":false,\"pools\":[{\"id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"totalMg\":31000,\"totalAmount\":2810000,\"averageRate\":90645,\"usedMg\":3000,\"remainingMg\":28000,\"shortageMg\":0,\"consumedCost\":271935,\"remainingCost\":2538065,\"status\":\"using\",\"revision\":\"2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:27.000Z\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\"}],\"usages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":271935,\"owner_amount\":0,\"assistant_amount\":271935,\"revision\":3,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-19T02:02:27.000Z\",\"fifo_sequence\":1,\"number\":\"MM20261118-\",\"customer\":\"对照客户丁\",\"order_status\":\"delivered\",\"member\":\"assistant\",\"product\":\"足金999\"}],\"settlements\":[],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":990000,\"consumed\":271935,\"remaining\":718065}},\"settlement\":{\"assistantInventoryCredit\":718065,\"transferred\":0,\"settlementDue\":-718065,\"pending\":false}}]},\"todayPurchases\":{\"mg\":10500,\"amount\":968000,\"count\":3,\"items\":[{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant2\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":1500,\"amount\":138000,\"payer\":\"owner\",\"note\":\"当天改价\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:02:33.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:35.000Z\",\"source_sequence\":6,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"owner\"}]},\"todayReturns\":{\"mg\":1000,\"amount\":88000,\"count\":1,\"grossMg\":1000,\"grossAmount\":88000,\"grossCount\":1},\"returns\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0}],\"purchases\":[{\"id\":\"carry:2026-11-19\",\"date\":\"2026-11-19\",\"mg\":28000,\"amount\":2538065,\"payer\":\"assistant\",\"allocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"created\":\"2026-11-19T00:00:00.000Z\",\"note\":\"以前结转\",\"sourceKind\":\"carry\",\"cashAmount\":0,\"canEdit\":false,\"canRequestChange\":false,\"ownerReviewRequired\":false},{\"id\":\"return::material:0\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0,\"batches\":[],\"materialKind\":\"public\",\"materialOwner\":null,\"payer\":\"assistant2\",\"sourceKind\":\"return\",\"note\":\"退货回料\",\"canEdit\":false,\"canRequestChange\":false,\"ownerReviewRequired\":false},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant2\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":1500,\"amount\":138000,\"payer\":\"owner\",\"note\":\"当天改价\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:02:33.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:35.000Z\",\"source_sequence\":6,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"owner\"}],\"usages\":[],\"settlements\":[],\"settlement\":{\"legacyReadOnly\":true,\"settlementDue\":0,\"assistantInventoryCredit\":0,\"transferred\":0,\"pending\":false},\"legacyReadOnly\":true}}" + ], + [ + "golden-00164-purchase-delete", + "6d935d81d9d633e348af910847f2aaaa37e83c41bac3a7e21d168370da7e06c1", + "{\"id\":\"\",\"poolId\":\"2026-11-19\",\"previousPoolId\":\"2026-11-19\",\"pool\":{\"id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"rolling\":true,\"frozen\":false,\"totalMg\":38000,\"totalAmount\":3456065,\"usedMg\":0,\"remainingMg\":38000,\"shortageMg\":0,\"consumedCost\":0,\"remainingCost\":3456065,\"remainingAllocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2},{\"payer\":\"assistant2\",\"amount\":88000,\"source_id\":\"return::material:0\",\"created\":\"2026-11-19T02:01:05.000Z\"},{\"payer\":\"assistant\",\"amount\":460000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:19.000Z\"},{\"payer\":\"assistant2\",\"amount\":370000,\"source_id\":\"\",\"created\":\"2026-11-19T02:02:20.000Z\"}],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":1178065,\"consumed\":0,\"remaining\":1178065},\"assistant2\":{\"purchased\":458000,\"consumed\":0,\"remaining\":458000}},\"averageRate\":90949,\"status\":\"unused\",\"revision\":\"9486762293324e10f1a52858598f622e173f4469097a1cca00e6032f7d2cc15a\",\"opening\":{\"mg\":28000,\"amount\":2538065,\"allocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"pending\":false,\"pools\":[{\"id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"totalMg\":31000,\"totalAmount\":2810000,\"averageRate\":90645,\"usedMg\":3000,\"remainingMg\":28000,\"shortageMg\":0,\"consumedCost\":271935,\"remainingCost\":2538065,\"status\":\"using\",\"revision\":\"2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":11000,\"amount\":990000,\"payer\":\"assistant\",\"note\":\"核对凭据\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":2,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:27.000Z\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\"}],\"usages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":271935,\"owner_amount\":0,\"assistant_amount\":271935,\"revision\":3,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-19T02:02:27.000Z\",\"fifo_sequence\":1,\"number\":\"MM20261118-\",\"customer\":\"对照客户丁\",\"order_status\":\"delivered\",\"member\":\"assistant\",\"product\":\"足金999\"}],\"settlements\":[],\"byPayer\":{\"owner\":{\"purchased\":1820000,\"consumed\":0,\"remaining\":1820000},\"assistant\":{\"purchased\":990000,\"consumed\":271935,\"remaining\":718065}},\"settlement\":{\"assistantInventoryCredit\":718065,\"transferred\":0,\"settlementDue\":-718065,\"pending\":false}}]},\"todayPurchases\":{\"mg\":9000,\"amount\":830000,\"count\":2,\"items\":[{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant2\"}]},\"todayReturns\":{\"mg\":1000,\"amount\":88000,\"count\":1,\"grossMg\":1000,\"grossAmount\":88000,\"grossCount\":1},\"returns\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0}],\"purchases\":[{\"id\":\"carry:2026-11-19\",\"date\":\"2026-11-19\",\"mg\":28000,\"amount\":2538065,\"payer\":\"assistant\",\"allocations\":[{\"payer\":\"assistant\",\"amount\":718065,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:09.000Z\",\"source_sequence\":1},{\"payer\":\"owner\",\"amount\":1820000,\"source_id\":\"\",\"created\":\"2026-11-18T02:01:10.000Z\",\"source_sequence\":2}],\"created\":\"2026-11-19T00:00:00.000Z\",\"note\":\"以前结转\",\"sourceKind\":\"carry\",\"cashAmount\":0,\"canEdit\":false,\"canRequestChange\":false,\"ownerReviewRequired\":false},{\"id\":\"return::material:0\",\"order_id\":\"\",\"line_index\":0,\"date\":\"2026-11-19\",\"mg\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"origin_pool_id\":\"\",\"same_day\":0,\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:01:05.000Z\",\"source_sequence\":1,\"number\":\"20261118007\",\"paper_number\":\"20261118007\",\"order_date\":\"2026-11-18\",\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"sameDay\":false,\"cashAmount\":0,\"batches\":[],\"materialKind\":\"public\",\"materialOwner\":null,\"payer\":\"assistant2\",\"sourceKind\":\"return\",\"note\":\"退货回料\",\"canEdit\":false,\"canRequestChange\":false,\"ownerReviewRequired\":false},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":5000,\"amount\":460000,\"payer\":\"assistant\",\"note\":\"第二天购料\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:02:19.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:19.000Z\",\"source_sequence\":4,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant\"},{\"id\":\"\",\"pool_id\":\"2026-11-19\",\"date\":\"2026-11-19\",\"mg\":4000,\"amount\":370000,\"payer\":\"assistant2\",\"note\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:02:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-19T02:02:20.000Z\",\"source_sequence\":5,\"sourceKind\":\"purchase\",\"canEdit\":true,\"canRequestChange\":false,\"ownerReviewRequired\":false,\"member\":\"assistant2\"}],\"usages\":[],\"settlements\":[],\"settlement\":{\"legacyReadOnly\":true,\"settlementDue\":0,\"assistantInventoryCredit\":0,\"transferred\":0,\"pending\":false},\"legacyReadOnly\":true},\"deleted\":true}" + ], + [ + "golden-00165-issue-rolling-pool", + "11bbce5992772dd06f932e144b3900c09f15d0c46aaeba5bf52f9d8b4febe3b9", + "{\"id\":\"\"}" + ], + [ + "golden-idempotency-replay-0001", + "179eb09f23fedf9f35da0b07bdc15d37088f41fafcd92bbcf6447c1970bf9f4d", + "{\"id\":\"\"}" + ], + [ + "golden-00191-inventory-review-d2", + "c19307bfb99c0a0bc27ee135c704aeaa2754528d536b95901d6af9a647f4413b", + "{\"date\":\"2026-11-19\",\"snapshot\":{\"date\":\"2026-11-19\",\"inventory\":[{\"pocket\":\"现货\",\"mg\":61950,\"reserved\":0,\"available\":61950},{\"pocket\":\"金料\",\"mg\":56000,\"reserved\":0,\"available\":56000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":12843,\"reserved\":0,\"available\":12843},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:04:45.000Z\",\"updated\":\"2026-11-19T02:04:45.000Z\",\"stale\":false,\"revision\":\"26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace\",\"source\":\"manual\",\"scheduled_for\":null}}" + ], + [ + "golden-00192-close-d2", + "d53d51363cbc92980ce7cd50f4ecbcae6fa1b3294fb7aef0ced5da1e0696275b", + "{\"date\":\"2026-11-19\",\"snapshot\":{\"date\":\"2026-11-19\",\"inventory\":[{\"pocket\":\"现货\",\"mg\":61950,\"reserved\":0,\"available\":61950},{\"pocket\":\"金料\",\"mg\":56000,\"reserved\":0,\"available\":56000},{\"pocket\":\"找金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"回收旧料\",\"mg\":12843,\"reserved\":0,\"available\":12843},{\"pocket\":\"君宝汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"臻金汇\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"金金\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"定制工厂\",\"mg\":0,\"reserved\":0,\"available\":0},{\"pocket\":\"pocket_\",\"mg\":10000,\"reserved\":0,\"available\":10000}],\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:04:45.000Z\",\"updated\":\"2026-11-19T02:04:46.000Z\",\"stale\":false,\"revision\":\"26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace\",\"source\":\"manual\",\"scheduled_for\":null},\"basis\":\"orderDate\",\"reportRevision\":\"fa73de27deceb492d63cf1d58c3eba7bf0d1089f22a851135fe95a461efa7504\"}" + ], + [ + "golden-00198-recovery-update-request", + "14dbbd6ed5fbb8412b5870a76d1456c5d5f5d13c577aca311ecc87df0fa9b93b", + "{\"id\":\"\",\"applied\":false,\"pending\":true,\"requestId\":\"\",\"request\":{\"id\":\"\",\"recoveryId\":\"\",\"revision\":1,\"recoveryRevision\":1,\"action\":\"update\",\"status\":\"pending\",\"reason\":\"跨天更正旧料克重\",\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"8.000\",\"melted_weight\":\"8.000\",\"purity\":\"99.9\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"12.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"7.992\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"0.00\",\"rounding_mode\":\"cent\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant2\",\"cost_material_payer\":\"assistant2\",\"cost_labor_payer\":\"assistant2\",\"fee_items\":[]}},\"after\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"8.200\",\"melted_weight\":\"8.100\",\"purity\":\"99.9\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"12.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"7.992\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"0.00\",\"rounding_mode\":\"cent\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant2\",\"cost_material_payer\":\"assistant2\",\"cost_labor_payer\":\"assistant2\",\"fee_items\":[]}},\"summary\":{\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":7992,\"newMg\":12000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":432792,\"cashReceipt\":432792,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":366720,\"directCost\":0,\"profit\":66072},\"after\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":8092,\"newMg\":12000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":422792,\"cashReceipt\":422792,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":357720,\"directCost\":0,\"profit\":65072},\"affectedDates\":[\"2026-11-19\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false},\"requesterName\":\"助理2\",\"requesterMember\":\"assistant2\",\"member\":\"assistant2\",\"created\":\"2026-11-20T02:00:06.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false,\"canApprove\":false},\"recovery\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":8000,\"meltedMg\":8000,\"purity\":99.9,\"foldedMg\":7992}],\"oldMg\":7992,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":12000,\"matchedMg\":7992,\"differenceMg\":4008,\"surplusMg\":0,\"goldRate\":100000,\"laborRate\":2000,\"laborMode\":\"gram\",\"depreciationRate\":1000,\"depreciationMg\":7992,\"goldAmount\":400800,\"laborAmount\":24000,\"depreciationAmount\":7992,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":432792,\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"materialCost\":360720,\"laborCost\":6000,\"goodsCost\":366720,\"directCost\":0,\"profit\":66072,\"newProduct\":{\"name\":\"足金对照新货\",\"quantity\":12000,\"pocket\":\"现货\"},\"exchange\":{\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":4008},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"costPayer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"fee_items\":[]},\"purchaseMg\":0,\"buyRate\":0,\"calculatedPurchaseAmount\":0,\"purchaseAmount\":0,\"actualBuyRate\":null,\"offsetAmount\":0,\"netSettlement\":432792,\"cashReceipt\":432792,\"cashPayment\":0,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"id\":\"\",\"number\":\"HS202611190001\",\"order_id\":\"\",\"purchase_id\":null,\"created\":\"2026-11-19T02:01:32.000Z\",\"actor\":\"助理2\",\"revision\":1,\"paper_number\":\"20261119011\",\"materialCostPending\":false,\"status\":\"active\",\"cancelledAt\":\"\",\"canEdit\":false,\"canCancel\":false,\"pendingRequestId\":\"\",\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}}" + ], + [ + "golden-00200-recovery-change-approve", + "361ec33acd1f68a2ccb6a529844d97b0054f8707a3dd48b03c77b894ddcf7361", + "{\"id\":\"\",\"recoveryId\":\"\",\"revision\":2,\"recoveryRevision\":1,\"action\":\"update\",\"status\":\"approved\",\"reason\":\"跨天更正旧料克重\",\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"8.000\",\"melted_weight\":\"8.000\",\"purity\":\"99.9\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"12.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"7.992\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"0.00\",\"rounding_mode\":\"cent\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant2\",\"cost_material_payer\":\"assistant2\",\"cost_labor_payer\":\"assistant2\",\"fee_items\":[]}},\"after\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"8.200\",\"melted_weight\":\"8.100\",\"purity\":\"99.9\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"12.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"7.992\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"0.00\",\"rounding_mode\":\"cent\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant2\",\"cost_material_payer\":\"assistant2\",\"cost_labor_payer\":\"assistant2\",\"fee_items\":[]}},\"summary\":{\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":7992,\"newMg\":12000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":432792,\"cashReceipt\":432792,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":366720,\"directCost\":0,\"profit\":66072},\"after\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":8092,\"newMg\":12000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":422792,\"cashReceipt\":422792,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":357720,\"directCost\":0,\"profit\":65072},\"affectedDates\":[\"2026-11-19\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false},\"requesterName\":\"助理2\",\"requesterMember\":\"assistant2\",\"member\":\"assistant2\",\"created\":\"2026-11-20T02:00:06.000Z\",\"reviewerName\":\"麦麦\",\"reviewed\":\"2026-11-20T02:00:10.000Z\",\"note\":\"核实\",\"stale\":false,\"canApprove\":false}" + ], + [ + "golden-00201-recovery-cancel-request", + "4a2bcc39216a490e4ebe2cb764d5447398a06128f27605c671d4907520ef66c9", + "{\"id\":\"\",\"applied\":false,\"pending\":true,\"requestId\":\"\",\"request\":{\"id\":\"\",\"recoveryId\":\"\",\"revision\":1,\"recoveryRevision\":1,\"action\":\"cancel\",\"status\":\"pending\",\"reason\":\"客户反悔\",\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"5.000\",\"melted_weight\":\"4.900\",\"purity\":\"99\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"6.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"4.851\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"10.00\",\"rounding_mode\":\"yuan\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant\",\"cost_material_payer\":\"assistant\",\"cost_labor_payer\":\"assistant\",\"fee_items\":[]}},\"after\":null,\"summary\":{\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":4851,\"newMg\":6000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":106410,\"directCost\":0,\"profit\":24390},\"after\":null,\"affectedDates\":[\"2026-11-19\",\"2026-11-20\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false},\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"member\":\"assistant\",\"created\":\"2026-11-20T02:00:12.000Z\",\"reviewerName\":null,\"reviewed\":null,\"note\":\"\",\"stale\":false,\"canApprove\":false},\"recovery\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":5000,\"meltedMg\":4900,\"purity\":99,\"foldedMg\":4851}],\"oldMg\":4851,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":6000,\"matchedMg\":4851,\"differenceMg\":1149,\"surplusMg\":0,\"goldRate\":100000,\"laborRate\":2000,\"laborMode\":\"gram\",\"depreciationRate\":1000,\"depreciationMg\":4851,\"goldAmount\":114900,\"laborAmount\":12000,\"depreciationAmount\":4851,\"charges\":[],\"chargesAmount\":0,\"discount\":1000,\"rounding_mode\":\"yuan\",\"rounding_adjustment\":49,\"receivable\":130800,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":103410,\"laborCost\":3000,\"goodsCost\":106410,\"directCost\":0,\"profit\":24390,\"newProduct\":{\"name\":\"足金对照新货\",\"quantity\":6000,\"pocket\":\"现货\"},\"exchange\":{\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"costPayer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"fee_items\":[]},\"purchaseMg\":0,\"buyRate\":0,\"calculatedPurchaseAmount\":0,\"purchaseAmount\":0,\"actualBuyRate\":null,\"offsetAmount\":0,\"netSettlement\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"id\":\"\",\"number\":\"HS202611190002\",\"order_id\":\"\",\"purchase_id\":null,\"created\":\"2026-11-19T02:01:33.000Z\",\"actor\":\"助理\",\"revision\":1,\"paper_number\":\"20261119012\",\"materialCostPending\":false,\"status\":\"active\",\"cancelledAt\":\"\",\"canEdit\":false,\"canCancel\":false,\"pendingRequestId\":\"\",\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}}" + ], + [ + "golden-00202-recovery-change-reject", + "ef7e0c2638ea400eb2ef01544d5a0db725b720cb31019463781531dddb5c16e8", + "{\"id\":\"\",\"recoveryId\":\"\",\"revision\":2,\"recoveryRevision\":1,\"action\":\"cancel\",\"status\":\"rejected\",\"reason\":\"客户反悔\",\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"5.000\",\"melted_weight\":\"4.900\",\"purity\":\"99\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"6.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"4.851\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"10.00\",\"rounding_mode\":\"yuan\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant\",\"cost_material_payer\":\"assistant\",\"cost_labor_payer\":\"assistant\",\"fee_items\":[]}},\"after\":null,\"summary\":{\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":4851,\"newMg\":6000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":106410,\"directCost\":0,\"profit\":24390},\"after\":null,\"affectedDates\":[\"2026-11-19\",\"2026-11-20\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false},\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"member\":\"assistant\",\"created\":\"2026-11-20T02:00:12.000Z\",\"reviewerName\":\"麦麦\",\"reviewed\":\"2026-11-20T02:00:13.000Z\",\"note\":\"需核实\",\"stale\":false,\"canApprove\":false}" + ], + [ + "golden-00203-recovery-cancel-owner", + "9c4efcbcd879543856a4c8f93fcd6355935e67cacc862b6a487bce8438dd59d4", + "{\"id\":\"\",\"applied\":true,\"pending\":false,\"requestId\":\"\",\"request\":{\"id\":\"\",\"recoveryId\":\"\",\"revision\":1,\"recoveryRevision\":1,\"action\":\"cancel\",\"status\":\"approved\",\"reason\":\"录错\",\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"5.000\",\"melted_weight\":\"4.900\",\"purity\":\"99\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"6.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"4.851\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"10.00\",\"rounding_mode\":\"yuan\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant\",\"cost_material_payer\":\"assistant\",\"cost_labor_payer\":\"assistant\",\"fee_items\":[]}},\"after\":null,\"summary\":{\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":4851,\"newMg\":6000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":106410,\"directCost\":0,\"profit\":24390},\"after\":null,\"affectedDates\":[\"2026-11-19\",\"2026-11-20\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false},\"requesterName\":\"麦麦\",\"requesterMember\":\"owner\",\"member\":\"assistant\",\"created\":\"2026-11-20T02:00:15.000Z\",\"reviewerName\":\"麦麦\",\"reviewed\":\"2026-11-20T02:00:15.000Z\",\"note\":\"\",\"stale\":false,\"canApprove\":false},\"recovery\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":5000,\"meltedMg\":4900,\"purity\":99,\"foldedMg\":4851}],\"oldMg\":4851,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":6000,\"matchedMg\":4851,\"differenceMg\":1149,\"surplusMg\":0,\"goldRate\":100000,\"laborRate\":2000,\"laborMode\":\"gram\",\"depreciationRate\":1000,\"depreciationMg\":4851,\"goldAmount\":114900,\"laborAmount\":12000,\"depreciationAmount\":4851,\"charges\":[],\"chargesAmount\":0,\"discount\":1000,\"rounding_mode\":\"yuan\",\"rounding_adjustment\":49,\"receivable\":130800,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":103410,\"laborCost\":3000,\"goodsCost\":106410,\"directCost\":0,\"profit\":0,\"newProduct\":{\"name\":\"足金对照新货\",\"quantity\":6000,\"pocket\":\"现货\"},\"exchange\":{\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"costPayer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"fee_items\":[]},\"purchaseMg\":0,\"buyRate\":0,\"calculatedPurchaseAmount\":0,\"purchaseAmount\":0,\"actualBuyRate\":null,\"offsetAmount\":0,\"netSettlement\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"id\":\"\",\"number\":\"HS202611190002\",\"order_id\":\"\",\"purchase_id\":null,\"created\":\"2026-11-19T02:01:33.000Z\",\"actor\":\"助理\",\"revision\":2,\"paper_number\":\"20261119012\",\"materialCostPending\":false,\"status\":\"cancelled\",\"cancelledAt\":\"2026-11-20T02:00:15.000Z\",\"canEdit\":false,\"canCancel\":false,\"pendingRequestId\":null,\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}}" + ], + [ + "golden-00204-recovery-direct", + "d03fe86c5908bd1da6ba00bd3a1bb21dced0643d1fe603c0af9a00a079d196b0", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":10000,\"meltedMg\":10000,\"purity\":100,\"foldedMg\":10000}],\"oldMg\":10000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":10000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":10000,\"buyRate\":90000,\"calculatedPurchaseAmount\":900000,\"purchaseAmount\":900000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-900000,\"cashReceipt\":0,\"cashPayment\":900000,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"id\":\"\",\"number\":\"HS202611200003\",\"order_id\":null,\"purchase_id\":\"\",\"created\":\"2026-11-20T02:00:20.000Z\",\"actor\":\"助理\",\"revision\":1,\"materialBatch\":{\"purchaseId\":\"\",\"recoveryId\":\"\",\"member\":\"assistant\",\"mg\":10000,\"usedMg\":0,\"remainingMg\":10000,\"usages\":[]},\"status\":\"active\",\"cancelledAt\":\"\",\"canEdit\":true,\"canCancel\":true,\"pendingRequestId\":null,\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}" + ], + [ + "golden-00205-recovery-owner", + "d210db4f82ca3a39c406de52860d9c71a242ac92d3ba1b4a6bc14c54c208c0e1", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"麦麦\",\"member\":\"owner\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":3000,\"meltedMg\":3000,\"purity\":100,\"foldedMg\":3000}],\"oldMg\":3000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":3000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"owner\",\"payment_account\":\"麦麦现金\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":3000,\"buyRate\":90000,\"calculatedPurchaseAmount\":270000,\"purchaseAmount\":270000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-270000,\"cashReceipt\":0,\"cashPayment\":270000,\"cardFee\":0,\"paymentMethods\":[\"现金\"],\"id\":\"\",\"number\":\"HS202611200004\",\"order_id\":null,\"purchase_id\":\"\",\"created\":\"2026-11-20T02:00:21.000Z\",\"actor\":\"麦麦\",\"revision\":1,\"materialBatch\":{\"purchaseId\":\"\",\"recoveryId\":\"\",\"member\":\"owner\",\"mg\":3000,\"usedMg\":0,\"remainingMg\":3000,\"usages\":[]},\"status\":\"active\",\"cancelledAt\":\"\",\"canEdit\":true,\"canCancel\":true,\"pendingRequestId\":null,\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}" + ], + [ + "golden-00206-recovery-update-same-day", + "436e559359fe8f3874506f47fc2330b89834f1291001294f1eb0f65d5b63450a", + "{\"id\":\"\",\"applied\":true,\"pending\":false,\"requestId\":\"\",\"request\":{\"id\":\"\",\"recoveryId\":\"\",\"revision\":1,\"recoveryRevision\":1,\"action\":\"update\",\"status\":\"approved\",\"reason\":\"当天更正\",\"before\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"10.000\",\"melted_weight\":\"10.000\",\"purity\":\"100\"}],\"buy_rate\":\"900.00\",\"buy_total\":\"9000.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true},\"after\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"10.000\",\"melted_weight\":\"10.000\",\"purity\":\"100\"}],\"buy_rate\":\"905.00\",\"buy_total\":\"9000.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true},\"summary\":{\"before\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"oldMg\":10000,\"newMg\":0,\"purchaseMg\":10000,\"purchaseAmount\":900000,\"receivable\":0,\"cashReceipt\":0,\"cashPayment\":900000,\"offsetAmount\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0},\"after\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"oldMg\":10000,\"newMg\":0,\"purchaseMg\":10000,\"purchaseAmount\":900000,\"receivable\":0,\"cashReceipt\":0,\"cashPayment\":900000,\"offsetAmount\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0},\"affectedDates\":[\"2026-11-20\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false},\"requesterName\":\"助理\",\"requesterMember\":\"assistant\",\"member\":\"assistant\",\"created\":\"2026-11-20T02:00:25.000Z\",\"reviewerName\":\"助理\",\"reviewed\":\"2026-11-20T02:00:25.000Z\",\"note\":\"\",\"stale\":false,\"canApprove\":false},\"recovery\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":10000,\"meltedMg\":10000,\"purity\":100,\"foldedMg\":10000}],\"oldMg\":10000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":10000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":10000,\"buyRate\":90500,\"calculatedPurchaseAmount\":905000,\"purchaseAmount\":900000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-900000,\"cashReceipt\":0,\"cashPayment\":900000,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"id\":\"\",\"number\":\"HS202611200003\",\"order_id\":null,\"purchase_id\":\"\",\"created\":\"2026-11-20T02:00:20.000Z\",\"actor\":\"助理\",\"revision\":2,\"materialBatch\":{\"purchaseId\":\"\",\"recoveryId\":\"\",\"member\":\"assistant\",\"mg\":10000,\"usedMg\":0,\"remainingMg\":10000,\"usages\":[]},\"status\":\"active\",\"cancelledAt\":\"\",\"canEdit\":true,\"canCancel\":true,\"pendingRequestId\":null,\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}}" + ], + [ + "golden-00207-recovery-cancel-owner-direct", + "72da47f290b1521c22d61d3733befe6fc713388d35445791eff164410145e5d4", + "{\"id\":\"\",\"applied\":true,\"pending\":false,\"requestId\":\"\",\"request\":{\"id\":\"\",\"recoveryId\":\"\",\"revision\":1,\"recoveryRevision\":1,\"action\":\"cancel\",\"status\":\"approved\",\"reason\":\"录错\",\"before\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"麦麦\",\"member\":\"owner\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"3.000\",\"melted_weight\":\"3.000\",\"purity\":\"100\"}],\"buy_rate\":\"900.00\",\"buy_total\":\"2700.00\",\"payer\":\"owner\",\"payment_account\":\"麦麦现金\",\"verified\":true},\"after\":null,\"summary\":{\"before\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"oldMg\":3000,\"newMg\":0,\"purchaseMg\":3000,\"purchaseAmount\":270000,\"receivable\":0,\"cashReceipt\":0,\"cashPayment\":270000,\"offsetAmount\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0},\"after\":null,\"affectedDates\":[\"2026-11-20\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false},\"requesterName\":\"麦麦\",\"requesterMember\":\"owner\",\"member\":\"owner\",\"created\":\"2026-11-20T02:00:27.000Z\",\"reviewerName\":\"麦麦\",\"reviewed\":\"2026-11-20T02:00:27.000Z\",\"note\":\"\",\"stale\":false,\"canApprove\":false},\"recovery\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"麦麦\",\"member\":\"owner\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":3000,\"meltedMg\":3000,\"purity\":100,\"foldedMg\":3000}],\"oldMg\":3000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":3000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"owner\",\"payment_account\":\"麦麦现金\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":3000,\"buyRate\":90000,\"calculatedPurchaseAmount\":270000,\"purchaseAmount\":270000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-270000,\"cashReceipt\":0,\"cashPayment\":270000,\"cardFee\":0,\"paymentMethods\":[\"现金\"],\"id\":\"\",\"number\":\"HS202611200004\",\"order_id\":null,\"purchase_id\":\"\",\"created\":\"2026-11-20T02:00:21.000Z\",\"actor\":\"麦麦\",\"revision\":2,\"materialBatch\":{\"purchaseId\":\"\",\"recoveryId\":\"\",\"member\":\"owner\",\"mg\":3000,\"usedMg\":0,\"remainingMg\":0,\"usages\":[]},\"status\":\"cancelled\",\"cancelledAt\":\"2026-11-20T02:00:27.000Z\",\"canEdit\":false,\"canCancel\":false,\"pendingRequestId\":null,\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}}" + ], + [ + "golden-00208-issue-known-issue", + "2f76113a5c519742ec966002178d9ccfe53ffe444b8271379acbcd4242c64530", + "{\"id\":\"\"}" + ], + [ + "golden-00209-recovery-known-issue", + "4ed2e53017e7e733a0f5f1a0db5214ce5cb2ee3c557994493a8fb992c1fbed74", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"留档回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":2000,\"meltedMg\":2000,\"purity\":100,\"foldedMg\":2000}],\"oldMg\":2000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":2000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":2000,\"buyRate\":90000,\"calculatedPurchaseAmount\":180000,\"purchaseAmount\":180000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-180000,\"cashReceipt\":0,\"cashPayment\":180000,\"cardFee\":0,\"paymentMethods\":[\"微信\"],\"id\":\"\",\"number\":\"HS202611200005\",\"order_id\":null,\"purchase_id\":\"\",\"created\":\"2026-11-20T02:00:30.000Z\",\"actor\":\"助理\",\"revision\":1,\"materialBatch\":{\"purchaseId\":\"\",\"recoveryId\":\"\",\"member\":\"assistant\",\"mg\":2000,\"usedMg\":0,\"remainingMg\":2000,\"usages\":[]},\"status\":\"active\",\"cancelledAt\":\"\",\"canEdit\":true,\"canCancel\":true,\"pendingRequestId\":null,\"immutableReason\":\"本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录\"}" + ] + ] + }, + "order_after_sales": { + "columns": [ + "order_id", + "date", + "record", + "actor", + "created" + ], + "rows": [ + [ + "", + "2026-11-19", + "{\"orderId\":\"\",\"date\":\"2026-11-19\",\"reason\":\"客户退回一件\",\"deductionReason\":\"客户确认扣费\",\"refund\":{\"amount\":90000,\"account\":\"助理2支付宝\",\"payer\":\"assistant2\",\"reference\":\"\"},\"expenses\":[],\"original\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":{\"id\":\"\",\"status\":\"approved\",\"action\":\"return\",\"action_label\":\"订单售后\",\"order_revision\":4,\"reason\":\"客户退回一件\",\"requester_name\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\",\"reviewer_name\":\"麦麦\",\"reviewed\":\"2026-11-19T02:01:05.000Z\",\"note\":\"实物已收回\"},\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"originalJournal\":{\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]}", + "麦麦", + "2026-11-19T02:01:05.000Z" + ] + ] + }, + "order_cancellations": { + "columns": [ + "id", + "order_id", + "order_revision", + "reason", + "snapshot", + "snapshot_hash", + "status", + "requester_id", + "requester_name", + "requester_role", + "created", + "reviewer_id", + "reviewer_name", + "reviewed", + "note" + ], + "rows": [ + [ + "", + "", + 4, + "重复录入", + "{\"data\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照取消客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118006\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金戒指\",\"code\":\"\",\"unit\":\"g\",\"quantity\":1500,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":130000,\"sale\":150000,\"baseSale\":150000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":150000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:24.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"取消单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":150000,\"account\":\"助理2现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:24.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":150000,\"goods\":130000,\"expense\":0,\"profit\":20000,\"created\":\"2026-11-18T02:01:24.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-1500,\"kind\":\"sale\",\"note\":\"MM20261118-\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:24.000Z\"}],\"corrections\":[],\"materialUsages\":[],\"priceLock\":null},\"summary\":{\"total\":150000,\"netReceived\":150000,\"goodsCost\":130000,\"directCost\":0,\"profit\":20000,\"settlementDue\":0,\"inventory\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":1500}]}}", + "99612934d174d280facec09a37fe3051c9b4d23ab080bce1fc46005b07f0ff05", + "approved", + "", + "助理2", + "assistant", + "2026-11-19T02:00:41.000Z", + "", + "麦麦", + "2026-11-19T02:00:45.000Z", + "核对原单后确认" + ], + [ + "", + "", + 5, + "客户想退", + "{\"data\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"麦麦\",\"created\":\"2026-11-19T02:00:37.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":330000,\"goods\":272000,\"expense\":0,\"profit\":58000,\"created\":\"2026-11-18T02:01:20.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"直接费用\",\"sales\":0,\"goods\":0,\"expense\":1000,\"profit\":-1000,\"created\":\"2026-11-19T02:00:37.000Z\"}],\"movements\":[],\"corrections\":[],\"materialUsages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":272000,\"owner_amount\":0,\"assistant_amount\":272000,\"revision\":2,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-18T02:01:20.000Z\"}],\"priceLock\":null},\"summary\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"inventory\":[]}}", + "847bfcac5834e78aebd5d5d4c6e65fd7ccebcbea4925fc2f8ebf6174220f8d73", + "rejected", + "", + "助理", + "assistant", + "2026-11-19T02:00:58.000Z", + "", + "麦麦", + "2026-11-19T02:00:59.000Z", + "已交付不取消" + ], + [ + "", + "", + 4, + "当天录错", + "{\"data\":{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天取消客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119014\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:57.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:57.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:57.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-2000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:57.000Z\"}],\"corrections\":[],\"materialUsages\":[],\"priceLock\":null},\"summary\":{\"total\":210000,\"netReceived\":210000,\"goodsCost\":180000,\"directCost\":0,\"profit\":30000,\"settlementDue\":0,\"inventory\":[{\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":2000}]},\"direct\":true,\"operationDate\":\"2026-11-19\"}", + "43a214c80b713a4fd11b1fdafaff9b35c5f709deb365845c7171565ac1441a1f", + "approved", + "", + "助理", + "assistant", + "2026-11-19T02:01:59.000Z", + null, + null, + null, + "" + ] + ] + }, + "order_changes": { + "columns": [ + "id", + "order_id", + "order_revision", + "action", + "reason", + "payload", + "snapshot", + "snapshot_hash", + "preview", + "effect_hash", + "status", + "requester_id", + "requester_name", + "requester_role", + "created", + "reviewer_id", + "reviewer_name", + "reviewed", + "note" + ], + "rows": [ + [ + "", + "", + 4, + "edit", + "跨天修改客户名", + "{\"id\":\"\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲(改)\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"internal_note\":\"#复购 内部备注\",\"discount\":\"0.00\",\"rounding_mode\":\"yuan\",\"fees_date\":\"2026-11-18\",\"fee_cost_mode\":\"legacy\",\"payment_account\":\"助理微信\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":\"3.250\",\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":\"2902.00\",\"costParts\":{\"material\":\"2860.00\",\"labor\":\"40.00\",\"accessories\":\"2.00\",\"other\":\"0.00\"},\"costMaterial\":{\"mode\":\"gram\",\"rate\":\"880.00\"},\"costLabor\":{\"mode\":\"total\",\"rate\":\"\"},\"sale\":\"3210.50\",\"baseSale\":\"3185.00\",\"charges\":[{\"name\":\"刻字\",\"amount\":\"20.00\"},{\"name\":\"包装\",\"amount\":\"5.50\"}],\"pricingMode\":\"auto\",\"goldPrice\":\"950.00\",\"laborRate\":\"30.00\",\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"fee_items\":[{\"key\":\"shipping\",\"amount\":\"12.00\",\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"estimated\",\"edited\":true,\"expense_id\":\"\",\"date\":\"2026-11-18\"}],\"revision\":4,\"reason\":\"跨天修改客户名\",\"verified\":true}", + "{\"dependencies\":{\"pools\":[],\"pockets\":[\"现货\"]},\"data\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":321100,\"goods\":290200,\"expense\":1200,\"profit\":29700,\"created\":\"2026-11-18T02:01:17.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-3250,\"kind\":\"sale\",\"note\":\"MM20261118-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"material_pool_usages\":[],\"corrections\":[],\"priceLock\":null},\"pools\":[]}", + "d23f050555d101cb54d0e8156e9e0709299bd2e995f71a53442c20c9d1360073", + "{\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":321100,\"refunded\":0,\"netReceived\":321100,\"balance\":0,\"rounding_adjustment\":50,\"goodsCost\":290200,\"directCost\":1200,\"materialCostPending\":false,\"knownGoodsCost\":290200,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29700,\"profit\":29700,\"knownProfit\":29700,\"ownerCost\":286000,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:17.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户甲(改)\",\"salesperson\":\"娜娜\",\"note\":\"客户单备注\",\"paper_number\":\"20261118001\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}],\"discount\":0,\"total\":321100,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:17.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理微信\",\"fee_items\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"#复购 内部备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":321100,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:17.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":321100,\"refunded\":0,\"netReceived\":321100,\"balance\":0,\"rounding_adjustment\":50,\"goodsCost\":290200,\"directCost\":1200,\"materialCostPending\":false,\"knownGoodsCost\":290200,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":29700,\"profit\":29700,\"knownProfit\":29700,\"ownerCost\":286000,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:25.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":321100,\"netReceived\":321100,\"goodsCost\":290200,\"directCost\":1200,\"profit\":29700,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-3250}],\"changes\":[]}},\"changes\":[{\"field\":\"customer\",\"label\":\"客户称呼\",\"before\":\"对照客户甲\",\"after\":\"对照客户甲(改)\"},{\"field\":\"fee_items\",\"label\":\"实际费用\",\"before\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":false}],\"after\":[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}]}],\"relatedOrders\":[]}", + "9c256b4ae8d204359749e05746edd5192ef5b07b6fc0305683319168d6d6e242", + "approved", + "", + "助理", + "assistant", + "2026-11-19T02:00:25.000Z", + "", + "麦麦", + "2026-11-19T02:00:31.000Z", + "凭据已核对" + ], + [ + "", + "", + 4, + "edit", + "想改售价", + "{\"id\":\"\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"note\":\"\",\"internal_note\":\"驳回单备注\",\"discount\":\"0.00\",\"rounding_mode\":\"cent\",\"fees_date\":\"2026-11-18\",\"fee_cost_mode\":\"legacy\",\"payment_account\":\"助理支付宝\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":\"0.800\",\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":\"700.00\",\"costMaterial\":{\"mode\":\"gram\"},\"costLabor\":{\"mode\":\"total\",\"rate\":\"\"},\"sale\":\"800\",\"baseSale\":\"820.00\",\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"fee_items\":[],\"revision\":4,\"reason\":\"想改售价\",\"verified\":true}", + "{\"dependencies\":{\"pools\":[],\"pockets\":[\"现货\"]},\"data\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":82000,\"goods\":70000,\"expense\":0,\"profit\":12000,\"created\":\"2026-11-18T02:01:26.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-800,\"kind\":\"sale\",\"note\":\"MM20261118-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"material_pool_usages\":[],\"corrections\":[],\"priceLock\":null},\"pools\":[]}", + "fe254d7169502c70415cfe28b40a41d25f14a47a20c5f7b9c4c586b2702ee6ce", + "{\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":82000,\"refunded\":0,\"netReceived\":82000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":70000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":70000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":12000,\"profit\":12000,\"knownProfit\":12000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:26.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":82000,\"refunded\":0,\"netReceived\":82000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":70000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":70000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":12000,\"profit\":12000,\"knownProfit\":12000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:33.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":82000,\"netReceived\":82000,\"goodsCost\":70000,\"directCost\":0,\"profit\":12000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-800}],\"changes\":[]}},\"changes\":[{\"field\":\"fees_date\",\"label\":\"费用日期\",\"before\":\"\",\"after\":\"2026-11-18\"}],\"relatedOrders\":[]}", + "c8e2026a13f461a7a1604fc2cc7034302a8436545f18c4bc0e6e025a66a104bc", + "rejected", + "", + "助理", + "assistant", + "2026-11-19T02:00:33.000Z", + "", + "麦麦", + "2026-11-19T02:00:34.000Z", + "售价无误" + ], + [ + "", + "", + 4, + "expense", + "补记快递", + "{\"date\":\"2026-11-19\",\"amount\":\"10\",\"payer\":\"assistant\",\"note\":\"补寄快递\",\"revision\":4,\"reason\":\"补记快递\",\"verified\":true}", + "{\"dependencies\":{\"pools\":[\"2026-11-18\"],\"pockets\":[]},\"data\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":330000,\"goods\":272000,\"expense\":0,\"profit\":58000,\"created\":\"2026-11-18T02:01:20.000Z\"}],\"movements\":[],\"material_pool_usages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":272000,\"owner_amount\":0,\"assistant_amount\":272000,\"revision\":2,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-18T02:01:20.000Z\"}],\"corrections\":[],\"priceLock\":null},\"pools\":[{\"id\":\"2026-11-18\",\"purchases\":[{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"娜娜购料\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:09.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:09.000Z\"},{\"id\":\"\",\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":20000,\"amount\":1820000,\"payer\":\"owner\",\"note\":\"麦麦购料\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:10.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-18T02:01:10.000Z\"}],\"usages\":[{\"fifo_sequence\":1,\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":272000,\"owner_amount\":0,\"assistant_amount\":272000,\"revision\":2,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-18T02:01:20.000Z\"}],\"settlements\":[],\"orders\":[{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":330000,\"goods\":272000,\"expense\":0,\"profit\":58000,\"created\":\"2026-11-18T02:01:20.000Z\"}],\"movements\":[],\"material_pool_usages\":[{\"id\":\"\",\"order_id\":\"\",\"line_index\":0,\"pool_id\":\"2026-11-18\",\"date\":\"2026-11-18\",\"mg\":3000,\"active\":1,\"amount\":272000,\"owner_amount\":0,\"assistant_amount\":272000,\"revision\":2,\"created\":\"2026-11-18T02:01:20.000Z\",\"updated\":\"2026-11-18T02:01:20.000Z\"}],\"corrections\":[],\"priceLock\":null}]}]}", + "37ba5a195c7786738fe8564c2dc60bc47686d5ea7023a842e7258fa763e4b632", + "{\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":58000,\"profit\":58000,\"knownProfit\":58000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:20.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丁\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118004\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":272000,\"costParts\":{\"material\":272000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":272000,\"quantity\":3000,\"averageRate\":90667,\"allocations\":[{\"payer\":\"assistant\",\"amount\":272000}],\"revision\":\"e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55\"}}],\"discount\":0,\"total\":330000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:20.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理现金\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"料池单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":330000,\"account\":\"助理现金\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:20.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}],\"settlements\":[],\"corrections\":[],\"received\":330000,\"refunded\":0,\"netReceived\":330000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":272000,\"directCost\":1000,\"materialCostPending\":false,\"knownGoodsCost\":272000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":57000,\"profit\":57000,\"knownProfit\":57000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:00:36.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":0,\"profit\":58000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":330000,\"netReceived\":330000,\"goodsCost\":272000,\"directCost\":1000,\"profit\":57000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[],\"after\":[],\"changes\":[]}},\"changes\":[{\"field\":\"expenses\",\"label\":\"实际费用流水\",\"before\":[],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":1000,\"payer\":\"assistant\",\"note\":\"补寄快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:00:36.000Z\"}]},{\"field\":\"directCost\",\"label\":\"直接费用\",\"before\":0,\"after\":1000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":58000,\"after\":57000}],\"relatedOrders\":[]}", + "dbf34817ed54802207262fe081dfbf44813cccaa2607b590c9a0770879a3154d", + "approved", + "", + "助理", + "assistant", + "2026-11-19T02:00:36.000Z", + "", + "麦麦", + "2026-11-19T02:00:37.000Z", + "核实" + ], + [ + "", + "", + 4, + "return", + "客户退回一件", + "{\"date\":\"2026-11-19\",\"revision\":4,\"reason\":\"客户退回一件\",\"verified\":true,\"afterSale\":{\"lines\":[{\"lineIndex\":0,\"quantity\":\"1.000\",\"pocket\":\"金料\",\"disposition\":\"scrap\"}],\"refund\":{\"amount\":\"900\",\"account\":\"助理2支付宝\",\"payer\":\"assistant2\"},\"deductionReason\":\"客户确认扣费\",\"expenses\":[]}}", + "{\"dependencies\":{\"pools\":[\"2026-11-19\"],\"pockets\":[\"现货\",\"金料\"],\"orderAfterSale\":true},\"data\":{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000,\"created\":\"2026-11-18T02:01:25.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-5000,\"kind\":\"sale\",\"note\":\"MM20261118-\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"material_pool_usages\":[],\"corrections\":[],\"priceLock\":null},\"pools\":[{\"id\":\"2026-11-19\",\"purchases\":[],\"usages\":[],\"settlements\":[],\"orders\":[]}],\"orderAfterSale\":{\"record\":null,\"lots\":[],\"returns\":[],\"createdLots\":[]}}", + "dffb92ef5d2b2de81f790a36317c6307b58c013e10698d70dc5c5a6a32586941", + "{\"before\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":4,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-18T02:01:25.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"after\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"returned\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":\"2026-11-19\",\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":90000,\"netReceived\":410000,\"balance\":0,\"orderAfterSale\":{\"orderId\":\"\",\"date\":\"2026-11-19\",\"reason\":\"客户退回一件\",\"deductionReason\":\"客户确认扣费\",\"refund\":{\"amount\":90000,\"account\":\"助理2支付宝\",\"payer\":\"assistant2\",\"reference\":\"\"},\"expenses\":[],\"original\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"originalJournal\":{\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}],\"originalOrder\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}},\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":48000,\"knownProfit\":48000,\"ownerCost\":0,\"assistantInventoryCredit\":0,\"assistantInventoryCreditSources\":[],\"assistantInventoryCreditExplanation\":\"\",\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"sync\":{\"revision\":5,\"done_revision\":0,\"error\":null,\"updated\":\"2026-11-19T02:01:03.000Z\"},\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"summary\":{\"before\":{\"total\":500000,\"netReceived\":500000,\"goodsCost\":450000,\"directCost\":0,\"profit\":50000,\"settlementDue\":0,\"materialCostPending\":false},\"after\":{\"total\":500000,\"netReceived\":410000,\"goodsCost\":450000,\"directCost\":0,\"profit\":48000,\"settlementDue\":0,\"materialCostPending\":false},\"inventory\":{\"before\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000}],\"after\":[{\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"kind\":\"sale\",\"mg\":-5000},{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"kind\":\"return\",\"mg\":1000}],\"changes\":[{\"date\":\"2026-11-19\",\"pocket\":\"金料\",\"mg\":1000}]}},\"changes\":[{\"field\":\"status\",\"label\":\"订单状态\",\"before\":\"delivered\",\"after\":\"returned\"},{\"field\":\"returned_date\",\"label\":\"退货日期\",\"before\":null,\"after\":\"2026-11-19\"},{\"field\":\"refunded\",\"label\":\"累计退款\",\"before\":0,\"after\":90000},{\"field\":\"payments\",\"label\":\"收退款流水\",\"before\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"after\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"amount\":90000,\"account\":\"助理2支付宝\",\"reference\":\"整单售后退款\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:03.000Z\"}]},{\"field\":\"netReceived\",\"label\":\"已收净额\",\"before\":500000,\"after\":410000},{\"field\":\"profit\",\"label\":\"利润\",\"before\":50000,\"after\":48000}],\"relatedOrders\":[],\"afterSale\":{\"orderId\":\"\",\"date\":\"2026-11-19\",\"reason\":\"客户退回一件\",\"deductionReason\":\"客户确认扣费\",\"refund\":{\"amount\":90000,\"account\":\"助理2支付宝\",\"payer\":\"assistant2\",\"reference\":\"\"},\"expenses\":[],\"original\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6},\"originalJournal\":{\"sales\":500000,\"goods\":450000,\"expense\":0,\"profit\":50000},\"summary\":{\"refundAmount\":90000,\"retainedAmount\":410000,\"materialReturnedCost\":88000,\"laborRestockedCost\":0,\"materialLoss\":352000,\"costLoss\":362000,\"originalDirectCost\":0,\"newExpenses\":0,\"directCost\":0,\"profit\":48000,\"finalProfit\":48000,\"profitAdjustment\":-2000,\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}]},\"lines\":[{\"lineIndex\":0,\"name\":\"足金手链\",\"code\":\"\",\"quantity\":1000,\"originalQuantity\":5000,\"pocket\":\"金料\",\"disposition\":\"scrap\",\"stockCount\":null,\"originalMaterialCost\":440000,\"materialReturnedCost\":88000,\"materialLoss\":352000,\"laborRestockedCost\":0,\"laborPayer\":\"assistant2\",\"costLoss\":362000,\"materialAllocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"materialSources\":[{\"kind\":\"public\",\"member\":null,\"quantity\":1000,\"amount\":88000,\"allocations\":[{\"payer\":\"assistant2\",\"amount\":88000}],\"batches\":[],\"basisAmount\":88000,\"basisMg\":1000,\"prefixMg\":0,\"prefixAmount\":0}],\"restockedLaborAllocations\":[]}],\"originalOrder\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照售后订单客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261118007\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":500000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:25.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"售后单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\",\"cancellationPending\":null,\"cancellationApproved\":null,\"changePending\":null,\"changeApproved\":null,\"ownershipPending\":null,\"ownershipApproved\":null,\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":500000,\"account\":\"助理2微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:25.000Z\"}],\"expenses\":[],\"settlements\":[],\"corrections\":[],\"received\":500000,\"refunded\":0,\"netReceived\":500000,\"balance\":0,\"rounding_adjustment\":0,\"goodsCost\":450000,\"directCost\":0,\"materialCostPending\":false,\"knownGoodsCost\":450000,\"pendingFees\":[],\"draftFees\":0,\"estimatedProfit\":50000,\"profit\":50000,\"knownProfit\":50000,\"ownerCost\":0,\"ownerDirect\":0,\"ownerCredit\":0,\"costTransferred\":0,\"profitTransferred\":0,\"costDue\":0,\"profitDue\":0,\"settlementDue\":0,\"knownSettlementDue\":0,\"funds_mode\":\"team\",\"credit_card_rate_permille\":6}}}", + "441c953d7de997c8b430718ab9769ba0d8c665413ce4e159330d3b69306bb85e", + "approved", + "", + "助理2", + "assistant", + "2026-11-19T02:01:03.000Z", + "", + "麦麦", + "2026-11-19T02:01:05.000Z", + "实物已收回" + ] + ] + }, + "order_ownership_changes": { + "columns": [ + "id", + "order_id", + "order_revision", + "from_member", + "to_member", + "reason", + "snapshot", + "snapshot_hash", + "status", + "direct", + "requester_id", + "requester_name", + "requester_role", + "created", + "reviewer_id", + "reviewer_name", + "reviewed", + "note" + ], + "rows": [ + [ + "", + "", + 4, + "assistant", + "assistant2", + "核实业务归属", + "{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照驳回客户\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261118008\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":82000,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"助理支付宝\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"驳回单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"lock\":null,\"entities\":[{\"kind\":\"order\",\"id\":\"\",\"member\":\"assistant\"},{\"kind\":\"movement\",\"id\":\"\",\"member\":\"assistant\"}],\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":82000,\"account\":\"助理支付宝\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":82000,\"goods\":70000,\"expense\":0,\"profit\":12000,\"created\":\"2026-11-18T02:01:26.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"pocket\":\"现货\",\"mg\":-800,\"kind\":\"sale\",\"note\":\"MM20261118-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:26.000Z\"}],\"material_pool_usages\":[],\"material_rolling_returns\":[],\"usageParties\":[],\"corrections\":[],\"lockEvents\":[],\"fundSources\":[{\"kind\":\"order\",\"source_id\":\"\",\"snapshot\":\"{\\\"obligations\\\":[],\\\"cash\\\":[{\\\"key\\\":\\\"payment:\\\",\\\"date\\\":\\\"2026-11-18\\\",\\\"kind\\\":\\\"receipt\\\",\\\"member\\\":\\\"assistant\\\",\\\"amount\\\":82000},{\\\"key\\\":\\\"goods:0:total\\\",\\\"date\\\":\\\"2026-11-18\\\",\\\"kind\\\":\\\"outlay\\\",\\\"member\\\":\\\"assistant\\\",\\\"amount\\\":70000}],\\\"pending\\\":[]}\",\"revision\":1,\"legacy\":0,\"created\":\"2026-11-18T02:01:26.000Z\",\"updated\":\"2026-11-18T02:01:26.000Z\"}],\"fundingClaims\":[]}", + "abcd16bddb92de0da4ce802d1b410d0f3454879c483d0580b19055368ff83523", + "approved", + 1, + "", + "麦麦", + "owner", + "2026-11-19T02:00:49.000Z", + "", + "麦麦", + "2026-11-19T02:00:49.000Z", + "" + ], + [ + "", + "", + 5, + "assistant", + "assistant2", + "申请转给小昊", + "{\"order\":{\"id\":\"\",\"number\":\"MM20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照客户丙\",\"salesperson\":\"麦麦\",\"note\":\"老板改备注\",\"paper_number\":\"20261118003\",\"status\":\"delivered\",\"lines\":[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}],\"discount\":300,\"total\":288500,\"revision\":5,\"reviewed_revision\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"delivered_date\":\"2026-11-18\",\"returned_date\":null,\"paper_date\":\"2026-11-18\",\"payment_account\":\"麦麦信用卡\",\"fee_items\":[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}],\"fees_date\":\"2026-11-18\",\"rounding_mode\":\"yuan\",\"internal_note\":\"一口价备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"lock\":null,\"entities\":[{\"kind\":\"order\",\"id\":\"\",\"member\":\"assistant\"}],\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":288500,\"account\":\"麦麦信用卡\",\"reference\":\"开单时已全额收款\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"actor\":\"麦麦\",\"created\":\"2026-11-18T02:01:19.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"交付\",\"sales\":288500,\"goods\":150000,\"expense\":1731,\"profit\":136769,\"created\":\"2026-11-18T02:01:19.000Z\"}],\"movements\":[],\"material_pool_usages\":[],\"material_rolling_returns\":[],\"usageParties\":[],\"corrections\":[],\"lockEvents\":[],\"fundSources\":[{\"kind\":\"order\",\"source_id\":\"\",\"snapshot\":\"{\\\"obligations\\\":[{\\\"key\\\":\\\"payment:\\\",\\\"date\\\":\\\"2026-11-18\\\",\\\"kind\\\":\\\"receipt\\\",\\\"project\\\":\\\"客户款代收\\\",\\\"fromMember\\\":\\\"owner\\\",\\\"toMember\\\":\\\"assistant\\\",\\\"amount\\\":288500},{\\\"key\\\":\\\"expense:\\\",\\\"date\\\":\\\"2026-11-18\\\",\\\"kind\\\":\\\"advance\\\",\\\"project\\\":\\\"订单实际费用\\\",\\\"fromMember\\\":\\\"assistant\\\",\\\"toMember\\\":\\\"owner\\\",\\\"amount\\\":1731},{\\\"key\\\":\\\"goods:0:total\\\",\\\"date\\\":\\\"2026-11-18\\\",\\\"kind\\\":\\\"advance\\\",\\\"project\\\":\\\"商品实际垫付\\\",\\\"fromMember\\\":\\\"assistant\\\",\\\"toMember\\\":\\\"owner\\\",\\\"amount\\\":150000}],\\\"cash\\\":[{\\\"key\\\":\\\"payment:\\\",\\\"date\\\":\\\"2026-11-18\\\",\\\"kind\\\":\\\"receipt\\\",\\\"member\\\":\\\"owner\\\",\\\"amount\\\":288500},{\\\"key\\\":\\\"expense:\\\",\\\"date\\\":\\\"2026-11-18\\\",\\\"kind\\\":\\\"outlay\\\",\\\"member\\\":\\\"owner\\\",\\\"amount\\\":1731},{\\\"key\\\":\\\"goods:0:total\\\",\\\"date\\\":\\\"2026-11-18\\\",\\\"kind\\\":\\\"outlay\\\",\\\"member\\\":\\\"owner\\\",\\\"amount\\\":150000}],\\\"pending\\\":[]}\",\"revision\":1,\"legacy\":0,\"created\":\"2026-11-18T02:01:19.000Z\",\"updated\":\"2026-11-18T02:01:19.000Z\"}],\"fundingClaims\":[]}", + "44ede66f1a12ffc14bb048af4f2bf20305c9de1af8790291ffdac9f051157237", + "rejected", + 0, + "", + "助理", + "assistant", + "2026-11-19T02:00:53.000Z", + "", + "麦麦", + "2026-11-19T02:00:56.000Z", + "不转" + ], + [ + "", + "", + 6, + "assistant", + "assistant2", + "实际由小昊接待", + "{\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"当天客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119013\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}],\"discount\":0,\"total\":210000,\"revision\":6,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"2026-11-19\",\"rounding_mode\":\"cent\",\"internal_note\":\"当天单备注\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"lock\":null,\"entities\":[{\"kind\":\"order\",\"id\":\"\",\"member\":\"assistant\"},{\"kind\":\"movement\",\"id\":\"\",\"member\":\"assistant\"}],\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":210000,\"account\":\"助理微信\",\"reference\":\"开单时已全额收款\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}],\"expenses\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"amount\":800,\"payer\":\"assistant\",\"note\":\"当天快递\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:52.000Z\"}],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":210000,\"goods\":180000,\"expense\":0,\"profit\":30000,\"created\":\"2026-11-19T02:01:48.000Z\"},{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"直接费用\",\"sales\":0,\"goods\":0,\"expense\":800,\"profit\":-800,\"created\":\"2026-11-19T02:01:52.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-2000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:48.000Z\"}],\"material_pool_usages\":[],\"material_rolling_returns\":[],\"usageParties\":[],\"corrections\":[],\"lockEvents\":[],\"fundSources\":[{\"kind\":\"order\",\"source_id\":\"\",\"snapshot\":\"{\\\"obligations\\\":[],\\\"cash\\\":[{\\\"key\\\":\\\"payment:\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"kind\\\":\\\"receipt\\\",\\\"member\\\":\\\"assistant\\\",\\\"amount\\\":210000},{\\\"key\\\":\\\"expense:\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"kind\\\":\\\"outlay\\\",\\\"member\\\":\\\"assistant\\\",\\\"amount\\\":800},{\\\"key\\\":\\\"goods:0:total\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"kind\\\":\\\"outlay\\\",\\\"member\\\":\\\"assistant\\\",\\\"amount\\\":180000}],\\\"pending\\\":[]}\",\"revision\":2,\"legacy\":0,\"created\":\"2026-11-19T02:01:48.000Z\",\"updated\":\"2026-11-19T02:01:52.000Z\"}],\"fundingClaims\":[]}", + "e46d1e580779d9ee460f82834a149693d05838d5864f5a124532b8382ca7c2a5", + "approved", + 0, + "", + "助理", + "assistant", + "2026-11-19T02:01:54.000Z", + "", + "麦麦", + "2026-11-19T02:01:56.000Z", + "核实" + ] + ] + }, + "order_templates": { + "columns": [ + "id", + "name", + "preset", + "revision", + "created", + "updated" + ], + "rows": [ + [ + "", + "assistant\u001f对照常用模板(改)", + "{\"salesperson\":\"娜娜\",\"payment_account\":\"助理微信\",\"credit_card_fee_payer\":\"owner\",\"discount\":\"0\",\"note\":\"\",\"fee_auto_initialized\":true,\"lines\":[{\"nameType\":\"足金999\",\"customName\":\"\",\"unit\":\"g\",\"quantity\":\"1\",\"pocket\":\"现货\",\"payer\":\"assistant\",\"pricingMode\":\"auto\",\"goldPrice\":\"950\",\"laborMode\":\"gram\",\"laborRate\":\"30\",\"pieces\":\"1\",\"priceNote\":\"\",\"sale\":\"\",\"baseSale\":\"\",\"name\":\"足金999\",\"charges\":[],\"costParts\":{\"material\":\"880\",\"labor\":\"20\",\"accessories\":\"0\",\"other\":\"0\"},\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\",\"rate\":\"\"}}],\"fee_items\":[]}", + 2, + "2026-11-18T02:02:08.000Z", + "2026-11-18T02:02:13.000Z" + ] + ] + }, + "orders": { + "columns": [ + "id", + "number", + "date", + "customer", + "salesperson", + "note", + "paper_number", + "status", + "lines", + "discount", + "total", + "revision", + "reviewed_revision", + "created", + "delivered_date", + "returned_date", + "paper_date", + "payment_account", + "fee_items", + "fees_date", + "rounding_mode", + "internal_note", + "fee_cost_mode", + "customer_type" + ], + "rows": [ + [ + "", + "MM20261118-", + "2026-11-18", + "对照客户甲(改)", + "娜娜", + "客户单备注", + "20261118001", + "delivered", + "[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3250,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":290200,\"costParts\":{\"material\":286000,\"labor\":4000,\"accessories\":200,\"other\":0},\"costMaterial\":{\"mode\":\"gram\",\"rate\":88000},\"costLabor\":{\"mode\":\"total\"},\"sale\":321050,\"baseSale\":318500,\"charges\":[{\"name\":\"刻字\",\"amount\":2000},{\"name\":\"包装\",\"amount\":550}],\"pricingMode\":\"auto\",\"goldPrice\":95000,\"laborRate\":3000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 950.00元/克 + 工费 30.00元/克\"}]", + 0, + 321100, + 5, + 0, + "2026-11-18T02:01:17.000Z", + "2026-11-18", + null, + "2026-11-18", + "助理微信", + "[{\"key\":\"shipping\",\"amount\":1200,\"payer\":\"assistant\",\"note\":\"快递\",\"status\":\"recorded\",\"edited\":true,\"date\":\"2026-11-18\",\"expense_id\":\"\"}]", + "2026-11-18", + "yuan", + "#复购 内部备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261118-", + "2026-11-18", + "对照客户乙", + "小昊", + "", + "20261118002", + "delivered", + "[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":180000,\"sale\":208710,\"baseSale\":208710,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":95555,\"laborRate\":8800,\"laborMode\":\"piece\",\"pieces\":2,\"priceNote\":\"金价 955.55元/克 + 工费 88.00元/件 × 2件\"},{\"name\":\"纯银925\",\"code\":\"\",\"unit\":\"件\",\"quantity\":3,\"pocket\":\"\",\"payer\":\"assistant2\",\"cost\":3000,\"sale\":9990,\"baseSale\":9990,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 1537, + 217163, + 4, + 0, + "2026-11-18T02:01:18.000Z", + "2026-11-18", + null, + "2026-11-18", + "助理2支付宝", + "[]", + "", + "cent", + "按件内部备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261118-", + "2026-11-18", + "对照客户丙", + "麦麦", + "老板改备注", + "20261118003", + "delivered", + "[{\"name\":\"金镶玉吊坠\",\"code\":\"\",\"unit\":\"件\",\"quantity\":1,\"pocket\":\"\",\"payer\":\"owner\",\"cost\":150000,\"sale\":288840,\"baseSale\":288840,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"一口价\"}]", + 300, + 288500, + 5, + 0, + "2026-11-18T02:01:19.000Z", + "2026-11-18", + null, + "2026-11-18", + "麦麦信用卡", + "[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1731,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}]", + "2026-11-18", + "yuan", + "一口价备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261118-", + "2026-11-18", + "对照客户丁", + "娜娜", + "", + "20261118004", + "delivered", + "[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":271935,\"costParts\":{\"material\":271935,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-18\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":330000,\"baseSale\":330000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-18\",\"date\":\"2026-11-18\",\"status\":\"allocated\",\"amount\":271935,\"quantity\":3000,\"averageRate\":90645,\"allocations\":[{\"payer\":\"assistant\",\"amount\":271935}],\"revision\":\"2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75\"}}]", + 0, + 330000, + 6, + 0, + "2026-11-18T02:01:20.000Z", + "2026-11-18", + null, + "2026-11-18", + "助理现金", + "[]", + "", + "cent", + "料池单备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261118-", + "2026-11-18", + "对照草稿客户", + "麦麦", + "", + "20261118005", + "delivered", + "[{\"name\":\"足金手镯\",\"code\":\"\",\"unit\":\"g\",\"quantity\":10000,\"pocket\":\"pocket_\",\"payer\":\"owner\",\"cost\":900000,\"sale\":980000,\"baseSale\":980000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 0, + 980000, + 5, + 0, + "2026-11-18T02:01:21.000Z", + "2026-11-18", + null, + "2026-11-18", + "麦麦现金", + "[]", + "", + "yuan", + "草稿单备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261118-", + "2026-11-18", + "对照取消客户", + "小昊", + "", + "20261118006", + "cancelled", + "[{\"name\":\"足金戒指\",\"code\":\"\",\"unit\":\"g\",\"quantity\":1500,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":130000,\"sale\":150000,\"baseSale\":150000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 0, + 150000, + 5, + 0, + "2026-11-18T02:01:24.000Z", + "2026-11-18", + null, + "2026-11-18", + "助理2现金", + "[]", + "", + "cent", + "取消单备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261118-", + "2026-11-18", + "对照售后订单客户", + "小昊", + "", + "20261118007", + "returned", + "[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":5000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"cost\":450000,\"costParts\":{\"material\":440000,\"labor\":10000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":500000,\"baseSale\":500000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 0, + 500000, + 5, + 0, + "2026-11-18T02:01:25.000Z", + "2026-11-18", + "2026-11-19", + "2026-11-18", + "助理2微信", + "[]", + "", + "cent", + "售后单备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261118-", + "2026-11-18", + "对照驳回客户", + "娜娜", + "", + "20261118008", + "delivered", + "[{\"name\":\"足金耳钉\",\"code\":\"\",\"unit\":\"g\",\"quantity\":800,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":70000,\"sale\":82000,\"baseSale\":82000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 0, + 82000, + 5, + 0, + "2026-11-18T02:01:26.000Z", + "2026-11-18", + null, + "2026-11-18", + "助理支付宝", + "[]", + "", + "cent", + "驳回单备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261118-", + "2026-11-18", + "对照分步客户", + "麦麦", + "", + "20261118009", + "delivered", + "[{\"name\":\"足金项链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":4000,\"pocket\":\"现货\",\"payer\":\"owner\",\"cost\":350000,\"sale\":400000,\"baseSale\":400000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 0, + 400000, + 5, + 0, + "2026-11-18T02:01:27.000Z", + "2026-11-18", + null, + "2026-11-18", + "麦麦支付宝", + "[{\"key\":\"card_fee:\",\"system\":\"credit_card\",\"source_kind\":\"payment\",\"source_id\":\"\",\"date\":\"2026-11-18\",\"amount\":1800,\"payer\":\"owner\",\"note\":\"信用卡手续费(6‰)\",\"rate_permille\":6,\"status\":\"recorded\",\"expense_id\":\"\"}]", + "", + "cent", + "分步单备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261119-", + "2026-11-19", + "对照锁价客户(改)", + "娜娜", + "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "20261119010", + "delivered", + "[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3100,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"assistant\"},\"cost\":267000,\"costParts\":{\"material\":264000,\"labor\":3000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":286200,\"baseSale\":285200,\"charges\":[{\"name\":\"服务\",\"amount\":1000}],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\",\"lineId\":\"\",\"materialAllocations\":[{\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"amount\":255000,\"payer\":\"owner\"},{\"source\":\"extra\",\"quantity\":100,\"rate\":90000,\"amount\":9000,\"payer\":\"assistant\"}]}]", + 0, + 286200, + 3, + 0, + "2026-11-19T02:01:28.000Z", + "2026-11-19", + null, + "2026-11-19", + "助理支付宝", + "[{\"key\":\"shipping\",\"amount\":600,\"payer\":\"owner\",\"note\":\"实际快递\",\"status\":\"recorded\",\"edited\":false}]", + "2026-11-19", + "yuan", + "", + "legacy", + "unknown" + ], + [ + "", + "MM20261119-", + "2026-11-19", + "对照换货客户", + "小昊", + "", + "20261119011", + "delivered", + "[{\"name\":\"足金对照新货\",\"code\":\"\",\"unit\":\"g\",\"quantity\":12000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":357720,\"costParts\":{\"material\":351720,\"labor\":6000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":3908},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"sale\":422792,\"baseSale\":422792,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"补金 3.908克 × 1000.00元;新货工费 240.00元;折旧 79.92元\",\"recoveryMaterialMg\":3908,\"recovery_id\":\"\"}]", + 0, + 422792, + 5, + 0, + "2026-11-19T02:01:32.000Z", + "2026-11-19", + null, + "2026-11-19", + "助理2微信", + "[]", + "2026-11-19", + "cent", + "", + "legacy", + "unknown" + ], + [ + "", + "MM20261119-", + "2026-11-19", + "对照换货客户二", + "娜娜", + "", + "20261119012", + "cancelled", + "[{\"name\":\"足金对照新货\",\"code\":\"\",\"unit\":\"g\",\"quantity\":6000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"cost\":106410,\"costParts\":{\"material\":103410,\"labor\":3000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"sale\":131751,\"baseSale\":131751,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"补金 1.149克 × 1000.00元;新货工费 120.00元;折旧 48.51元\",\"recoveryMaterialMg\":1149,\"recovery_id\":\"\"}]", + 1000, + 130800, + 5, + 0, + "2026-11-19T02:01:33.000Z", + "2026-11-19", + null, + "2026-11-19", + "助理微信", + "[]", + "", + "yuan", + "", + "legacy", + "unknown" + ], + [ + "", + "MM20261119-", + "2026-11-19", + "当天客户(改)", + "娜娜", + "", + "20261119013", + "delivered", + "[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 0, + 210000, + 7, + 0, + "2026-11-19T02:01:48.000Z", + "2026-11-19", + null, + "2026-11-19", + "助理微信", + "[]", + "2026-11-19", + "cent", + "当天单备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261119-", + "2026-11-19", + "当天取消客户", + "娜娜", + "", + "20261119014", + "cancelled", + "[{\"name\":\"足金吊坠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":180000,\"sale\":210000,\"baseSale\":210000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 0, + 210000, + 5, + 0, + "2026-11-19T02:01:57.000Z", + "2026-11-19", + null, + "2026-11-19", + "助理微信", + "[]", + "", + "cent", + "当天单备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261119-", + "2026-11-19", + "滚动料池客户", + "娜娜", + "", + "20261119015", + "delivered", + "[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"\",\"payer\":\"assistant\",\"cost\":181898,\"costParts\":{\"material\":181898,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"pool\",\"poolId\":\"2026-11-19\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":220000,\"baseSale\":220000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\",\"materialPool\":{\"poolId\":\"2026-11-19\",\"date\":\"2026-11-19\",\"status\":\"allocated\",\"amount\":181898,\"quantity\":2000,\"averageRate\":90949,\"allocations\":[{\"payer\":\"assistant\",\"amount\":181898}],\"revision\":\"278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc\",\"rolling\":true}}]", + 0, + 220000, + 4, + 0, + "2026-11-19T02:02:40.000Z", + "2026-11-19", + null, + "2026-11-19", + "助理微信", + "[]", + "", + "cent", + "滚动料池备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261119-", + "2026-11-19", + "安全测试", + "娜娜", + "", + "20261119016", + "delivered", + "[{\"name\":\"足金转运珠\",\"code\":\"\",\"unit\":\"g\",\"quantity\":500,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":42000,\"sale\":50000,\"baseSale\":50000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 0, + 50000, + 4, + 0, + "2026-11-19T02:02:51.000Z", + "2026-11-19", + null, + "2026-11-19", + "助理微信", + "[]", + "", + "cent", + "安全测试备注", + "legacy", + "unknown" + ], + [ + "", + "MM20261120-", + "2026-11-20", + "留档客户", + "娜娜", + "", + "20261120017", + "delivered", + "[{\"name\":\"足金手链\",\"code\":\"\",\"unit\":\"g\",\"quantity\":2000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"cost\":185000,\"costParts\":{\"material\":180000,\"labor\":5000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":200000,\"baseSale\":200000,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"\"}]", + 0, + 200000, + 4, + 0, + "2026-11-20T02:00:29.000Z", + "2026-11-20", + null, + "2026-11-20", + "助理微信", + "[]", + "", + "cent", + "留档备注", + "legacy", + "unknown" + ] + ] + }, + "payments": { + "columns": [ + "id", + "order_id", + "date", + "kind", + "amount", + "account", + "reference", + "actor", + "created" + ], + "rows": [ + [ + "", + "", + "2026-11-18", + "receipt", + 321100, + "助理微信", + "开单时已全额收款", + "助理", + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + 217163, + "助理2支付宝", + "开单时已全额收款", + "助理2", + "2026-11-18T02:01:18.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + 288500, + "麦麦信用卡", + "开单时已全额收款", + "麦麦", + "2026-11-18T02:01:19.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + 330000, + "助理现金", + "开单时已全额收款", + "助理", + "2026-11-18T02:01:20.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + 980000, + "麦麦现金", + "开单时已全额收款", + "麦麦", + "2026-11-18T02:01:23.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + 150000, + "助理2现金", + "开单时已全额收款", + "助理2", + "2026-11-18T02:01:24.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + 500000, + "助理2微信", + "开单时已全额收款", + "助理2", + "2026-11-18T02:01:25.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + 82000, + "助理支付宝", + "开单时已全额收款", + "助理", + "2026-11-18T02:01:26.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + 100000, + "麦麦支付宝", + "定金", + "麦麦", + "2026-11-18T02:01:31.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + 300000, + "麦麦信用卡", + "尾款", + "麦麦", + "2026-11-18T02:01:33.000Z" + ], + [ + "", + "", + "2026-11-18", + "receipt", + -150000, + "助理2现金", + "更正冲回:取消审批作废;重复录入", + "麦麦", + "2026-11-19T02:00:45.000Z" + ], + [ + "", + "", + "2026-11-19", + "refund", + 90000, + "助理2支付宝", + "整单售后退款", + "麦麦", + "2026-11-19T02:01:05.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + 432792, + "助理2微信", + "置换差额实际收款 · HS202611190001", + "助理2", + "2026-11-19T02:01:32.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + 130800, + "助理微信", + "置换差额实际收款 · HS202611190002", + "助理", + "2026-11-19T02:01:33.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + 210000, + "助理微信", + "开单时已全额收款", + "助理", + "2026-11-19T02:01:48.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + 210000, + "助理微信", + "开单时已全额收款", + "助理", + "2026-11-19T02:01:57.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + -210000, + "助理微信", + "更正冲回:取消审批作废;当天录错", + "助理", + "2026-11-19T02:01:59.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + 220000, + "助理微信", + "开单时已全额收款", + "助理", + "2026-11-19T02:02:40.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + 50000, + "助理微信", + "开单时已全额收款", + "助理", + "2026-11-19T02:02:51.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + -432792, + "助理2微信", + "更正冲回:回收专用更正;跨天更正旧料克重", + "麦麦", + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + 422792, + "助理2微信", + "回收更正补记:跨天更正旧料克重", + "麦麦", + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "", + "2026-11-19", + "receipt", + -130800, + "助理微信", + "更正冲回:回收专用更正;录错", + "麦麦", + "2026-11-20T02:00:15.000Z" + ], + [ + "", + "", + "2026-11-20", + "receipt", + 200000, + "助理微信", + "开单时已全额收款", + "助理", + "2026-11-20T02:00:29.000Z" + ] + ] + }, + "pocket_catalog": { + "columns": [ + "key", + "name", + "normalized_name", + "active", + "self", + "builtin", + "sort_order", + "revision", + "created", + "updated", + "count_unit", + "count_since" + ], + "rows": [ + [ + "现货", + "现货", + "现货", + 1, + 1, + 1, + 0, + 1, + "2026-11-18T02:00:00.000Z", + "2026-11-18T02:00:00.000Z", + null, + null + ], + [ + "金料", + "金料", + "金料", + 1, + 1, + 1, + 1, + 1, + "2026-11-18T02:00:00.000Z", + "2026-11-18T02:00:00.000Z", + null, + null + ], + [ + "找金", + "找金", + "找金", + 1, + 0, + 1, + 2, + 1, + "2026-11-18T02:00:00.000Z", + "2026-11-18T02:00:00.000Z", + null, + null + ], + [ + "回收旧料", + "回收旧料", + "回收旧料", + 1, + 1, + 1, + 3, + 1, + "2026-11-18T02:00:00.000Z", + "2026-11-18T02:00:00.000Z", + null, + null + ], + [ + "君宝汇", + "君宝汇", + "君宝汇", + 1, + 0, + 1, + 4, + 1, + "2026-11-18T02:00:00.000Z", + "2026-11-18T02:00:00.000Z", + null, + null + ], + [ + "臻金汇", + "臻金汇", + "臻金汇", + 0, + 0, + 1, + 5, + 1, + "2026-11-18T02:00:00.000Z", + "2026-11-18T02:00:00.000Z", + null, + null + ], + [ + "金金", + "金金", + "金金", + 0, + 0, + 1, + 6, + 1, + "2026-11-18T02:00:00.000Z", + "2026-11-18T02:00:00.000Z", + null, + null + ], + [ + "定制工厂", + "定制工厂", + "定制工厂", + 0, + 0, + 1, + 7, + 1, + "2026-11-18T02:00:00.000Z", + "2026-11-18T02:00:00.000Z", + null, + null + ], + [ + "pocket_", + "展柜A(主)", + "展柜a(主)", + 1, + 1, + 0, + 8, + 2, + "2026-11-18T02:00:32.000Z", + "2026-11-18T02:00:34.000Z", + null, + null + ] + ] + }, + "price_lock_changes": { + "columns": [ + "id", + "price_lock_id", + "price_lock_revision", + "action", + "reason", + "payload", + "snapshot", + "snapshot_hash", + "preview", + "effect_hash", + "status", + "requester_id", + "requester_name", + "requester_role", + "created", + "reviewer_id", + "reviewer_name", + "reviewed", + "note" + ], + "rows": [ + [ + "", + "", + 1, + "edit", + "改客户名", + "{\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"discount\":\"0.00\",\"member\":\"assistant\",\"payment\":{\"amount\":\"2700.00\",\"account\":\"助理微信\",\"verified\":true},\"lines\":[{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":\"3.000\",\"goldPrice\":\"900.00\",\"laborRate\":\"20.00\",\"laborMode\":\"gram\",\"pieces\":1,\"charges\":[],\"lineId\":\"\",\"material\":{\"source\":\"manual\",\"rate\":\"850.00\",\"payer\":\"owner\",\"verified\":true}}],\"action\":\"edit\",\"revision\":1,\"reason\":\"改客户名\",\"verified\":true}", + "{\"lock\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":\"{\\\"name\\\":\\\"足金999\\\",\\\"code\\\":\\\"\\\",\\\"unit\\\":\\\"g\\\",\\\"quantity\\\":3000,\\\"pocket\\\":\\\"\\\",\\\"payer\\\":\\\"owner\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"owner\\\",\\\"labor\\\":\\\"owner\\\"},\\\"cost\\\":255000,\\\"costParts\\\":{\\\"material\\\":255000,\\\"labor\\\":0,\\\"accessories\\\":0,\\\"other\\\":0},\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\"},\\\"costLabor\\\":{\\\"mode\\\":\\\"total\\\"},\\\"sale\\\":276000,\\\"baseSale\\\":276000,\\\"charges\\\":[],\\\"pricingMode\\\":\\\"auto\\\",\\\"goldPrice\\\":90000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"pieces\\\":1,\\\"priceNote\\\":\\\"金价 900.00元/克 + 工费 20.00元/克\\\"}\",\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-18T02:01:53.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":\"[{\\\"id\\\":\\\"\\\",\\\"line_index\\\":0,\\\"line\\\":{\\\"name\\\":\\\"足金999\\\",\\\"code\\\":\\\"\\\",\\\"unit\\\":\\\"g\\\",\\\"quantity\\\":3000,\\\"pocket\\\":\\\"\\\",\\\"payer\\\":\\\"owner\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"owner\\\",\\\"labor\\\":\\\"owner\\\"},\\\"cost\\\":255000,\\\"costParts\\\":{\\\"material\\\":255000,\\\"labor\\\":0,\\\"accessories\\\":0,\\\"other\\\":0},\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\"},\\\"costLabor\\\":{\\\"mode\\\":\\\"total\\\"},\\\"sale\\\":276000,\\\"baseSale\\\":276000,\\\"charges\\\":[],\\\"pricingMode\\\":\\\"auto\\\",\\\"goldPrice\\\":90000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"pieces\\\":1,\\\"priceNote\\\":\\\"金价 900.00元/克 + 工费 20.00元/克\\\"},\\\"locked_mg\\\":3000,\\\"sell_rate\\\":90000,\\\"buy_rate\\\":85000,\\\"buy_payer\\\":\\\"owner\\\",\\\"material_amount\\\":255000,\\\"material_source\\\":\\\"manual\\\"}]\"},\"events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"member\":\"assistant\"}", + "904dd2b0b315f8c2f9b70e365589e937dd77ebbaa82a20756b23bb211134a54f", + "{\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-18T02:01:53.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户(改)\",\"salesperson\":\"娜娜\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"updated\":\"2026-11-19T02:01:18.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":270000,\"account\":\"助理微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":255000,\"account\":null,\"payer\":\"owner\",\"source\":\"original\",\"quantity\":3000,\"rate\":85000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户(改)\",\"product\":\"足金999\",\"actor\":\"助理\",\"created\":\"2026-11-18T02:01:53.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":270000,\"refunded\":0,\"netReceived\":270000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"changes\":[{\"field\":\"customer\",\"before\":\"对照锁价客户\",\"after\":\"对照锁价客户(改)\"}],\"relatedOrders\":[],\"relatedPriceLocks\":[]}", + "cc43956d125fd840597d7c2bb00cb7549954d98b4d6b389d40da23f06ebbf821", + "approved", + "", + "助理", + "assistant", + "2026-11-19T02:01:18.000Z", + "", + "麦麦", + "2026-11-19T02:01:21.000Z", + "核实" + ], + [ + "", + "", + 1, + "cancel", + "客户不要了", + "{\"action\":\"cancel\",\"revision\":1,\"reason\":\"客户不要了\",\"verified\":true}", + "{\"lock\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户三\",\"salesperson\":\"小昊\",\"note\":\"锁价备注\",\"line\":\"{\\\"name\\\":\\\"足金999\\\",\\\"code\\\":\\\"\\\",\\\"unit\\\":\\\"g\\\",\\\"quantity\\\":3000,\\\"pocket\\\":\\\"\\\",\\\"payer\\\":\\\"assistant2\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"assistant2\\\",\\\"labor\\\":\\\"assistant2\\\"},\\\"cost\\\":258000,\\\"costParts\\\":{\\\"material\\\":258000,\\\"labor\\\":0,\\\"accessories\\\":0,\\\"other\\\":0},\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\"},\\\"costLabor\\\":{\\\"mode\\\":\\\"total\\\"},\\\"sale\\\":276000,\\\"baseSale\\\":276000,\\\"charges\\\":[],\\\"pricingMode\\\":\\\"auto\\\",\\\"goldPrice\\\":90000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"pieces\\\":1,\\\"priceNote\\\":\\\"金价 900.00元/克 + 工费 20.00元/克\\\"}\",\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"updated\":\"2026-11-18T02:01:55.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":\"[{\\\"id\\\":\\\"\\\",\\\"line_index\\\":0,\\\"line\\\":{\\\"name\\\":\\\"足金999\\\",\\\"code\\\":\\\"\\\",\\\"unit\\\":\\\"g\\\",\\\"quantity\\\":3000,\\\"pocket\\\":\\\"\\\",\\\"payer\\\":\\\"assistant2\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"assistant2\\\",\\\"labor\\\":\\\"assistant2\\\"},\\\"cost\\\":258000,\\\"costParts\\\":{\\\"material\\\":258000,\\\"labor\\\":0,\\\"accessories\\\":0,\\\"other\\\":0},\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\"},\\\"costLabor\\\":{\\\"mode\\\":\\\"total\\\"},\\\"sale\\\":276000,\\\"baseSale\\\":276000,\\\"charges\\\":[],\\\"pricingMode\\\":\\\"auto\\\",\\\"goldPrice\\\":90000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"pieces\\\":1,\\\"priceNote\\\":\\\"金价 900.00元/克 + 工费 20.00元/克\\\"},\\\"locked_mg\\\":3000,\\\"sell_rate\\\":90000,\\\"buy_rate\\\":86000,\\\"buy_payer\\\":\\\"assistant2\\\",\\\"material_amount\\\":258000,\\\"material_source\\\":\\\"manual\\\"}]\"},\"events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"account\":null,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"member\":\"assistant2\"}", + "0ddcc4f60a4e9de4145ab24a09df3baf07dc0359921ad0bfdd229232b4b57e0c", + "{\"before\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户三\",\"salesperson\":\"小昊\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"estimated_total\":276000,\"discount\":0,\"status\":\"pending\",\"revision\":1,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"updated\":\"2026-11-18T02:01:55.000Z\",\"cancelled_at\":null,\"cancelled_reason\":null,\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant2\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"material_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"account\":null,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":0,\"void_reason\":null,\"voided_at\":null,\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"voided_events\":[],\"received\":50000,\"refunded\":0,\"netReceived\":50000,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"after\":{\"id\":\"\",\"number\":\"SJ20261118-\",\"date\":\"2026-11-18\",\"customer\":\"对照锁价客户三\",\"salesperson\":\"小昊\",\"note\":\"锁价备注\",\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"estimated_total\":276000,\"discount\":0,\"status\":\"cancelled\",\"revision\":2,\"final_order_id\":null,\"delivery\":null,\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"updated\":\"2026-11-19T02:01:23.000Z\",\"cancelled_at\":\"2026-11-19T02:01:23.000Z\",\"cancelled_reason\":\"客户不要了\",\"lines\":[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\",\"delivery\":null}],\"member\":\"assistant2\",\"kind\":\"priceLock\",\"credit_card_rate_permille\":6,\"material_source\":\"manual\",\"cash_events\":[],\"material_events\":[],\"voided_events\":[{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"amount\":50000,\"account\":\"助理2微信\",\"payer\":null,\"source\":null,\"quantity\":null,\"rate\":null,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":null,\"voided\":1,\"void_reason\":\"客户不要了\",\"voided_at\":\"2026-11-19T02:01:23.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null},{\"id\":\"\",\"price_lock_id\":\"\",\"date\":\"2026-11-18\",\"kind\":\"material\",\"amount\":258000,\"account\":null,\"payer\":\"assistant2\",\"source\":\"original\",\"quantity\":3000,\"rate\":86000,\"number\":\"SJ20261118-\",\"customer\":\"对照锁价客户三\",\"product\":\"足金999\",\"actor\":\"助理2\",\"created\":\"2026-11-18T02:01:55.000Z\",\"line_index\":0,\"voided\":1,\"void_reason\":\"客户不要了\",\"voided_at\":\"2026-11-19T02:01:23.000Z\",\"card_fee_amount\":null,\"card_fee_payer\":null,\"card_fee_expense_id\":null,\"card_fee_rate\":null,\"card_fee_note\":null}],\"received\":0,\"refunded\":0,\"netReceived\":0,\"credit_card_fees\":[],\"credit_card_fee_total\":0},\"materialReturnDate\":\"2026-11-19\",\"changes\":[{\"field\":\"netReceived\",\"before\":50000,\"after\":0},{\"field\":\"status\",\"before\":\"pending\",\"after\":\"cancelled\"}],\"relatedOrders\":[],\"relatedPriceLocks\":[]}", + "1e34ccf179f7493d0b0c8dea731d2915a3946f5217aeef7731a1dfbb9113dac0", + "rejected", + "", + "助理2", + "assistant", + "2026-11-19T02:01:23.000Z", + "", + "麦麦", + "2026-11-19T02:01:24.000Z", + "客户仍要" + ] + ] + }, + "price_lock_events": { + "columns": [ + "id", + "price_lock_id", + "date", + "kind", + "amount", + "account", + "payer", + "source", + "quantity", + "rate", + "number", + "customer", + "product", + "actor", + "created", + "line_index", + "voided", + "void_reason", + "voided_at", + "card_fee_amount", + "card_fee_payer", + "card_fee_expense_id", + "card_fee_rate", + "card_fee_note" + ], + "rows": [ + [ + "", + "", + "2026-11-18", + "receipt", + 270000, + "助理微信", + null, + null, + null, + null, + "SJ20261118-", + "对照锁价客户(改)", + "足金999", + "助理", + "2026-11-18T02:01:53.000Z", + null, + 0, + null, + null, + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-18", + "material", + 255000, + null, + "owner", + "original", + 3000, + 85000, + "SJ20261118-", + "对照锁价客户(改)", + "足金999", + "助理", + "2026-11-18T02:01:53.000Z", + 0, + 0, + null, + null, + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-18", + "receipt", + 100000, + "助理支付宝", + null, + null, + null, + null, + "SJ20261118-", + "对照锁价客户二", + "足金999", + "助理", + "2026-11-18T02:01:54.000Z", + null, + 1, + "当天更正收款", + "2026-11-18T02:02:02.000Z", + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-18", + "material", + 255000, + null, + "owner", + "original", + 3000, + 85000, + "SJ20261118-", + "对照锁价客户二", + "足金999", + "助理", + "2026-11-18T02:01:54.000Z", + 0, + 0, + null, + null, + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-18", + "receipt", + 50000, + "助理2微信", + null, + null, + null, + null, + "SJ20261118-", + "对照锁价客户三", + "足金999", + "助理2", + "2026-11-18T02:01:55.000Z", + null, + 0, + null, + null, + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-18", + "material", + 258000, + null, + "assistant2", + "original", + 3000, + 86000, + "SJ20261118-", + "对照锁价客户三", + "足金999", + "助理2", + "2026-11-18T02:01:55.000Z", + 0, + 0, + null, + null, + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-18", + "receipt", + 80000, + "麦麦微信", + null, + null, + null, + null, + "SJ20261118-", + "对照锁价客户四", + "足金999", + "麦麦", + "2026-11-18T02:01:56.000Z", + null, + 1, + "录错作废", + "2026-11-19T02:01:26.000Z", + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-18", + "material", + 255000, + null, + "owner", + "original", + 3000, + 85000, + "SJ20261118-", + "对照锁价客户四", + "足金999", + "麦麦", + "2026-11-18T02:01:56.000Z", + 0, + 1, + "录错作废", + "2026-11-19T02:01:26.000Z", + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-18", + "receipt", + 120000, + "助理支付宝", + null, + null, + null, + null, + "SJ20261118-", + "对照锁价客户二", + "足金999", + "助理", + "2026-11-18T02:02:02.000Z", + null, + 0, + null, + null, + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-19", + "material", + 9000, + null, + "assistant", + "extra", + 100, + 90000, + "SJ20261118-", + "对照锁价客户(改)", + "足金999", + "助理", + "2026-11-19T02:01:28.000Z", + 0, + 0, + null, + null, + null, + null, + null, + null, + null + ], + [ + "", + "", + "2026-11-19", + "receipt", + 16200, + "助理支付宝", + null, + null, + null, + null, + "SJ20261118-", + "对照锁价客户(改)", + "足金999", + "助理", + "2026-11-19T02:01:28.000Z", + null, + 0, + null, + null, + null, + null, + null, + null, + null + ] + ] + }, + "price_lock_pool_reservations": { + "columns": [ + "id", + "price_lock_id", + "line_index", + "pool_id", + "mg", + "amount", + "allocations", + "snapshot", + "revision", + "created", + "updated" + ], + "rows": [] + }, + "price_lock_pool_returns": { + "columns": [ + "id", + "price_lock_id", + "line_index", + "kind", + "date", + "mg", + "amount", + "allocations", + "origin_pool_id", + "same_day", + "actor", + "created" + ], + "rows": [] + }, + "price_locks": { + "columns": [ + "id", + "number", + "date", + "customer", + "salesperson", + "note", + "line", + "locked_mg", + "sell_rate", + "buy_rate", + "buy_payer", + "material_amount", + "estimated_total", + "discount", + "status", + "revision", + "final_order_id", + "delivery", + "actor", + "created", + "updated", + "cancelled_at", + "cancelled_reason", + "lines" + ], + "rows": [ + [ + "", + "SJ20261118-", + "2026-11-18", + "对照锁价客户(改)", + "娜娜", + "锁价备注", + "{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"}", + 3000, + 90000, + 85000, + "owner", + 255000, + 276000, + 0, + "delivered", + 3, + "", + "{\"date\":\"2026-11-19\",\"total\":286200,\"difference\":16200,\"lines\":[{\"lineId\":\"\",\"date\":\"2026-11-19\",\"quantity\":3100,\"original_used_mg\":3000,\"extra_mg\":100,\"leftover_mg\":0,\"leftover_cost\":0,\"inventory\":{\"pocket\":\"现货\",\"original\":\"receive\",\"extra\":\"receive\"}}],\"quantity\":3100,\"original_used_mg\":3000,\"extra_mg\":100,\"leftover_mg\":0,\"leftover_cost\":0,\"inventory\":{\"pocket\":\"现货\",\"original\":\"receive\",\"extra\":\"receive\"}}", + "助理", + "2026-11-18T02:01:53.000Z", + "2026-11-19T02:01:28.000Z", + null, + null, + "[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\"}]" + ], + [ + "", + "SJ20261118-", + "2026-11-18", + "对照锁价客户二", + "娜娜", + "锁价备注", + "{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"}", + 3000, + 90000, + 85000, + "owner", + 255000, + 276000, + 0, + "pending", + 2, + null, + null, + "助理", + "2026-11-18T02:01:54.000Z", + "2026-11-18T02:02:02.000Z", + null, + null, + "[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\"}]" + ], + [ + "", + "SJ20261118-", + "2026-11-18", + "对照锁价客户三", + "小昊", + "锁价备注", + "{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"}", + 3000, + 90000, + 86000, + "assistant2", + 258000, + 276000, + 0, + "pending", + 1, + null, + null, + "助理2", + "2026-11-18T02:01:55.000Z", + "2026-11-18T02:01:55.000Z", + null, + null, + "[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":258000,\"costParts\":{\"material\":258000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":86000,\"buy_payer\":\"assistant2\",\"material_amount\":258000,\"material_source\":\"manual\"}]" + ], + [ + "", + "SJ20261118-", + "2026-11-18", + "对照锁价客户四", + "麦麦", + "锁价备注", + "{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"}", + 3000, + 90000, + 85000, + "owner", + 255000, + 276000, + 0, + "cancelled", + 2, + null, + null, + "麦麦", + "2026-11-18T02:01:56.000Z", + "2026-11-19T02:01:26.000Z", + "2026-11-19T02:01:26.000Z", + "录错作废", + "[{\"id\":\"\",\"line_index\":0,\"line\":{\"name\":\"足金999\",\"code\":\"\",\"unit\":\"g\",\"quantity\":3000,\"pocket\":\"\",\"payer\":\"owner\",\"costPayers\":{\"material\":\"owner\",\"labor\":\"owner\"},\"cost\":255000,\"costParts\":{\"material\":255000,\"labor\":0,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\"},\"costLabor\":{\"mode\":\"total\"},\"sale\":276000,\"baseSale\":276000,\"charges\":[],\"pricingMode\":\"auto\",\"goldPrice\":90000,\"laborRate\":2000,\"laborMode\":\"gram\",\"pieces\":1,\"priceNote\":\"金价 900.00元/克 + 工费 20.00元/克\"},\"locked_mg\":3000,\"sell_rate\":90000,\"buy_rate\":85000,\"buy_payer\":\"owner\",\"material_amount\":255000,\"material_source\":\"manual\"}]" + ] + ] + }, + "private_people": { + "columns": [ + "date", + "member", + "total_count", + "new_count", + "revision", + "actor", + "created", + "updated" + ], + "rows": [ + [ + "2026-11-18", + "assistant", + 100, + null, + 1, + "麦麦", + "2026-11-18T02:02:40.000Z", + "2026-11-18T02:02:40.000Z" + ] + ] + }, + "recoveries": { + "columns": [ + "id", + "number", + "mode", + "date", + "customer", + "salesperson", + "member", + "note", + "old_lines", + "data", + "order_id", + "purchase_id", + "inventory_group", + "actor", + "created", + "revision", + "status", + "cancelled_at", + "updated" + ], + "rows": [ + [ + "", + "HS202611190001", + "exchange", + "2026-11-19", + "对照换货客户", + "小昊", + "assistant2", + "", + "[{\"name\":\"Au旧料\",\"incomingMg\":8200,\"meltedMg\":8100,\"purity\":99.9,\"foldedMg\":8092}]", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":8200,\"meltedMg\":8100,\"purity\":99.9,\"foldedMg\":8092}],\"oldMg\":8092,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":12000,\"matchedMg\":8092,\"differenceMg\":3908,\"surplusMg\":0,\"goldRate\":100000,\"laborRate\":2000,\"laborMode\":\"gram\",\"depreciationRate\":1000,\"depreciationMg\":7992,\"goldAmount\":390800,\"laborAmount\":24000,\"depreciationAmount\":7992,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":422792,\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"materialCost\":351720,\"laborCost\":6000,\"goodsCost\":357720,\"directCost\":0,\"profit\":65072,\"newProduct\":{\"name\":\"足金对照新货\",\"quantity\":12000,\"pocket\":\"现货\"},\"exchange\":{\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":3908},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"costPayer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"fee_items\":[]},\"purchaseMg\":0,\"buyRate\":0,\"calculatedPurchaseAmount\":0,\"purchaseAmount\":0,\"actualBuyRate\":null,\"offsetAmount\":0,\"netSettlement\":422792,\"cashReceipt\":422792,\"cashPayment\":0,\"cardFee\":0,\"paymentMethods\":[\"微信\"]}", + "", + null, + "", + "助理2", + "2026-11-19T02:01:32.000Z", + 2, + "active", + "", + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "HS202611190002", + "exchange", + "2026-11-19", + "对照换货客户二", + "娜娜", + "assistant", + "", + "[{\"name\":\"Au旧料\",\"incomingMg\":5000,\"meltedMg\":4900,\"purity\":99,\"foldedMg\":4851}]", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":5000,\"meltedMg\":4900,\"purity\":99,\"foldedMg\":4851}],\"oldMg\":4851,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":6000,\"matchedMg\":4851,\"differenceMg\":1149,\"surplusMg\":0,\"goldRate\":100000,\"laborRate\":2000,\"laborMode\":\"gram\",\"depreciationRate\":1000,\"depreciationMg\":4851,\"goldAmount\":114900,\"laborAmount\":12000,\"depreciationAmount\":4851,\"charges\":[],\"chargesAmount\":0,\"discount\":1000,\"rounding_mode\":\"yuan\",\"rounding_adjustment\":49,\"receivable\":130800,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":103410,\"laborCost\":3000,\"goodsCost\":106410,\"directCost\":0,\"profit\":24390,\"newProduct\":{\"name\":\"足金对照新货\",\"quantity\":6000,\"pocket\":\"现货\"},\"exchange\":{\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"costPayer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"fee_items\":[]},\"purchaseMg\":0,\"buyRate\":0,\"calculatedPurchaseAmount\":0,\"purchaseAmount\":0,\"actualBuyRate\":null,\"offsetAmount\":0,\"netSettlement\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"cardFee\":0,\"paymentMethods\":[\"微信\"]}", + "", + null, + "", + "助理", + "2026-11-19T02:01:33.000Z", + 2, + "cancelled", + "2026-11-20T02:00:15.000Z", + "2026-11-20T02:00:15.000Z" + ], + [ + "", + "HS202611200003", + "direct", + "2026-11-20", + "对照回收客户", + "娜娜", + "assistant", + "", + "[{\"name\":\"Au旧料\",\"incomingMg\":10000,\"meltedMg\":10000,\"purity\":100,\"foldedMg\":10000}]", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":10000,\"meltedMg\":10000,\"purity\":100,\"foldedMg\":10000}],\"oldMg\":10000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":10000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":10000,\"buyRate\":90500,\"calculatedPurchaseAmount\":905000,\"purchaseAmount\":900000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-900000,\"cashReceipt\":0,\"cashPayment\":900000,\"cardFee\":0,\"paymentMethods\":[\"微信\"]}", + null, + "", + "", + "助理", + "2026-11-20T02:00:20.000Z", + 2, + "active", + "", + "2026-11-20T02:00:25.000Z" + ], + [ + "", + "HS202611200004", + "direct", + "2026-11-20", + "对照回收客户", + "麦麦", + "owner", + "", + "[{\"name\":\"Au旧料\",\"incomingMg\":3000,\"meltedMg\":3000,\"purity\":100,\"foldedMg\":3000}]", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"麦麦\",\"member\":\"owner\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":3000,\"meltedMg\":3000,\"purity\":100,\"foldedMg\":3000}],\"oldMg\":3000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":3000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"owner\",\"payment_account\":\"麦麦现金\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":3000,\"buyRate\":90000,\"calculatedPurchaseAmount\":270000,\"purchaseAmount\":270000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-270000,\"cashReceipt\":0,\"cashPayment\":270000,\"cardFee\":0,\"paymentMethods\":[\"现金\"]}", + null, + "", + "", + "麦麦", + "2026-11-20T02:00:21.000Z", + 2, + "cancelled", + "2026-11-20T02:00:27.000Z", + "2026-11-20T02:00:27.000Z" + ], + [ + "", + "HS202611200005", + "direct", + "2026-11-20", + "留档回收客户", + "娜娜", + "assistant", + "", + "[{\"name\":\"Au旧料\",\"incomingMg\":2000,\"meltedMg\":2000,\"purity\":100,\"foldedMg\":2000}]", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"留档回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":[{\"name\":\"Au旧料\",\"incomingMg\":2000,\"meltedMg\":2000,\"purity\":100,\"foldedMg\":2000}],\"oldMg\":2000,\"oldPocket\":\"回收旧料\",\"credit_card_rate_permille\":6,\"newMg\":0,\"matchedMg\":0,\"differenceMg\":0,\"surplusMg\":2000,\"goldRate\":0,\"laborRate\":0,\"laborMode\":\"gram\",\"depreciationRate\":0,\"depreciationMg\":0,\"goldAmount\":0,\"laborAmount\":0,\"depreciationAmount\":0,\"charges\":[],\"chargesAmount\":0,\"discount\":0,\"rounding_mode\":\"cent\",\"rounding_adjustment\":0,\"receivable\":0,\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"materialCost\":0,\"laborCost\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0,\"purchaseMg\":2000,\"buyRate\":90000,\"calculatedPurchaseAmount\":180000,\"purchaseAmount\":180000,\"actualBuyRate\":90000,\"offsetAmount\":0,\"netSettlement\":-180000,\"cashReceipt\":0,\"cashPayment\":180000,\"cardFee\":0,\"paymentMethods\":[\"微信\"]}", + null, + "", + "", + "助理", + "2026-11-20T02:00:30.000Z", + 1, + "active", + "", + "" + ] + ] + }, + "recovery_changes": { + "columns": [ + "id", + "recovery_id", + "recovery_revision", + "revision", + "action", + "status", + "reason", + "before_value", + "after_value", + "summary", + "dependency", + "snapshot", + "requester_id", + "requester_name", + "requester_member", + "member", + "created", + "reviewer_id", + "reviewer_name", + "reviewed", + "note" + ], + "rows": [ + [ + "", + "", + 1, + 2, + "update", + "approved", + "跨天更正旧料克重", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"8.000\",\"melted_weight\":\"8.000\",\"purity\":\"99.9\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"12.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"7.992\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"0.00\",\"rounding_mode\":\"cent\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant2\",\"cost_material_payer\":\"assistant2\",\"cost_labor_payer\":\"assistant2\",\"fee_items\":[]}}", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"customer_type\":\"unknown\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"8.200\",\"melted_weight\":\"8.100\",\"purity\":\"99.9\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant2\",\"payment_account\":\"助理2微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"12.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"7.992\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"0.00\",\"rounding_mode\":\"cent\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant2\",\"cost_material_payer\":\"assistant2\",\"cost_labor_payer\":\"assistant2\",\"fee_items\":[]}}", + "{\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":7992,\"newMg\":12000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":432792,\"cashReceipt\":432792,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":366720,\"directCost\":0,\"profit\":66072},\"after\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":8092,\"newMg\":12000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":422792,\"cashReceipt\":422792,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":357720,\"directCost\":0,\"profit\":65072},\"affectedDates\":[\"2026-11-19\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false}", + "ae86826fff42ec10d1c7d0437ab5ed215a38f3e01af8b640318c99d1ff19c945", + "{\"record\":{\"id\":\"\",\"number\":\"HS202611190001\",\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"salesperson\":\"小昊\",\"member\":\"assistant2\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":8000,\\\"meltedMg\\\":8000,\\\"purity\\\":99.9,\\\"foldedMg\\\":7992}]\",\"data\":\"{\\\"mode\\\":\\\"exchange\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"customer\\\":\\\"对照换货客户\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"小昊\\\",\\\"member\\\":\\\"assistant2\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":8000,\\\"meltedMg\\\":8000,\\\"purity\\\":99.9,\\\"foldedMg\\\":7992}],\\\"oldMg\\\":7992,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":12000,\\\"matchedMg\\\":7992,\\\"differenceMg\\\":4008,\\\"surplusMg\\\":0,\\\"goldRate\\\":100000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":1000,\\\"depreciationMg\\\":7992,\\\"goldAmount\\\":400800,\\\"laborAmount\\\":24000,\\\"depreciationAmount\\\":7992,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":0,\\\"rounding_mode\\\":\\\"cent\\\",\\\"rounding_adjustment\\\":0,\\\"receivable\\\":432792,\\\"payer\\\":\\\"assistant2\\\",\\\"payment_account\\\":\\\"助理2微信\\\",\\\"materialCost\\\":360720,\\\"laborCost\\\":6000,\\\"goodsCost\\\":366720,\\\"directCost\\\":0,\\\"profit\\\":66072,\\\"newProduct\\\":{\\\"name\\\":\\\"足金对照新货\\\",\\\"quantity\\\":12000,\\\"pocket\\\":\\\"现货\\\"},\\\"exchange\\\":{\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\",\\\"rate\\\":90000,\\\"consumptionMg\\\":4008},\\\"costLabor\\\":{\\\"mode\\\":\\\"gram\\\",\\\"rate\\\":500},\\\"costPayer\\\":\\\"assistant2\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"assistant2\\\",\\\"labor\\\":\\\"assistant2\\\"},\\\"fee_items\\\":[]},\\\"purchaseMg\\\":0,\\\"buyRate\\\":0,\\\"calculatedPurchaseAmount\\\":0,\\\"purchaseAmount\\\":0,\\\"actualBuyRate\\\":null,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":432792,\\\"cashReceipt\\\":432792,\\\"cashPayment\\\":0,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":\"\",\"purchase_id\":null,\"inventory_group\":\"\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\",\"revision\":1,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"\"},\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户\",\"salesperson\":\"小昊\",\"note\":\"\",\"paper_number\":\"20261119011\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金对照新货\",\"code\":\"\",\"unit\":\"g\",\"quantity\":12000,\"pocket\":\"现货\",\"payer\":\"assistant2\",\"costPayers\":{\"material\":\"assistant2\",\"labor\":\"assistant2\"},\"cost\":366720,\"costParts\":{\"material\":360720,\"labor\":6000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":4008},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"sale\":432792,\"baseSale\":432792,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"补金 4.008克 × 1000.00元;新货工费 240.00元;折旧 79.92元\",\"recoveryMaterialMg\":4008,\"recovery_id\":\"\"}],\"discount\":0,\"total\":432792,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:32.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理2微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"cent\",\"internal_note\":\"\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant2\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":432792,\"account\":\"助理2微信\",\"reference\":\"置换差额实际收款 · HS202611190001\",\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":432792,\"goods\":366720,\"expense\":0,\"profit\":66072,\"created\":\"2026-11-19T02:01:32.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":7992,\"kind\":\"recovery\",\"note\":\"HS202611190001\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-12000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理2\",\"created\":\"2026-11-19T02:01:32.000Z\"}],\"usages\":[],\"purchase\":null,\"purchaseSource\":null}", + "", + "助理2", + "assistant2", + "assistant2", + "2026-11-20T02:00:06.000Z", + "", + "麦麦", + "2026-11-20T02:00:10.000Z", + "核实" + ], + [ + "", + "", + 1, + 2, + "cancel", + "rejected", + "客户反悔", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"5.000\",\"melted_weight\":\"4.900\",\"purity\":\"99\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"6.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"4.851\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"10.00\",\"rounding_mode\":\"yuan\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant\",\"cost_material_payer\":\"assistant\",\"cost_labor_payer\":\"assistant\",\"fee_items\":[]}}", + null, + "{\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":4851,\"newMg\":6000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":106410,\"directCost\":0,\"profit\":24390},\"after\":null,\"affectedDates\":[\"2026-11-19\",\"2026-11-20\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false}", + "59ace7a4371f472001a38b09e68a34d9f7102eab832cfdac148b496ba02918ab", + "{\"record\":{\"id\":\"\",\"number\":\"HS202611190002\",\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":5000,\\\"meltedMg\\\":4900,\\\"purity\\\":99,\\\"foldedMg\\\":4851}]\",\"data\":\"{\\\"mode\\\":\\\"exchange\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"customer\\\":\\\"对照换货客户二\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"娜娜\\\",\\\"member\\\":\\\"assistant\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":5000,\\\"meltedMg\\\":4900,\\\"purity\\\":99,\\\"foldedMg\\\":4851}],\\\"oldMg\\\":4851,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":6000,\\\"matchedMg\\\":4851,\\\"differenceMg\\\":1149,\\\"surplusMg\\\":0,\\\"goldRate\\\":100000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":1000,\\\"depreciationMg\\\":4851,\\\"goldAmount\\\":114900,\\\"laborAmount\\\":12000,\\\"depreciationAmount\\\":4851,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":1000,\\\"rounding_mode\\\":\\\"yuan\\\",\\\"rounding_adjustment\\\":49,\\\"receivable\\\":130800,\\\"payer\\\":\\\"assistant\\\",\\\"payment_account\\\":\\\"助理微信\\\",\\\"materialCost\\\":103410,\\\"laborCost\\\":3000,\\\"goodsCost\\\":106410,\\\"directCost\\\":0,\\\"profit\\\":24390,\\\"newProduct\\\":{\\\"name\\\":\\\"足金对照新货\\\",\\\"quantity\\\":6000,\\\"pocket\\\":\\\"现货\\\"},\\\"exchange\\\":{\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\",\\\"rate\\\":90000,\\\"consumptionMg\\\":1149},\\\"costLabor\\\":{\\\"mode\\\":\\\"gram\\\",\\\"rate\\\":500},\\\"costPayer\\\":\\\"assistant\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"assistant\\\",\\\"labor\\\":\\\"assistant\\\"},\\\"fee_items\\\":[]},\\\"purchaseMg\\\":0,\\\"buyRate\\\":0,\\\"calculatedPurchaseAmount\\\":0,\\\"purchaseAmount\\\":0,\\\"actualBuyRate\\\":null,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":130800,\\\"cashReceipt\\\":130800,\\\"cashPayment\\\":0,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":\"\",\"purchase_id\":null,\"inventory_group\":\"\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\",\"revision\":1,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"\"},\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119012\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金对照新货\",\"code\":\"\",\"unit\":\"g\",\"quantity\":6000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"cost\":106410,\"costParts\":{\"material\":103410,\"labor\":3000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"sale\":131751,\"baseSale\":131751,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"补金 1.149克 × 1000.00元;新货工费 120.00元;折旧 48.51元\",\"recoveryMaterialMg\":1149,\"recovery_id\":\"\"}],\"discount\":1000,\"total\":130800,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:33.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"yuan\",\"internal_note\":\"\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":130800,\"account\":\"助理微信\",\"reference\":\"置换差额实际收款 · HS202611190002\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":130800,\"goods\":106410,\"expense\":0,\"profit\":24390,\"created\":\"2026-11-19T02:01:33.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":4851,\"kind\":\"recovery\",\"note\":\"HS202611190002\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-6000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"}],\"usages\":[],\"purchase\":null,\"purchaseSource\":null}", + "", + "助理", + "assistant", + "assistant", + "2026-11-20T02:00:12.000Z", + "", + "麦麦", + "2026-11-20T02:00:13.000Z", + "需核实" + ], + [ + "", + "", + 1, + 1, + "cancel", + "approved", + "录错", + "{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"5.000\",\"melted_weight\":\"4.900\",\"purity\":\"99\"}],\"buy_rate\":\"0.00\",\"buy_total\":\"0.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true,\"exchange\":{\"name\":\"足金对照新货\",\"quantity\":\"6.000\",\"pocket\":\"现货\",\"gold_price\":\"1000.00\",\"labor_rate\":\"20.00\",\"labor_mode\":\"gram\",\"depreciation_weight\":\"4.851\",\"depreciation_rate\":\"10.00\",\"charges\":[],\"discount\":\"10.00\",\"rounding_mode\":\"yuan\",\"cost_material\":{\"mode\":\"gram\",\"rate\":\"900.00\"},\"cost_labor\":{\"mode\":\"gram\",\"rate\":\"5.00\"},\"cost_payer\":\"assistant\",\"cost_material_payer\":\"assistant\",\"cost_labor_payer\":\"assistant\",\"fee_items\":[]}}", + null, + "{\"before\":{\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"oldMg\":4851,\"newMg\":6000,\"purchaseMg\":0,\"purchaseAmount\":0,\"receivable\":130800,\"cashReceipt\":130800,\"cashPayment\":0,\"offsetAmount\":0,\"goodsCost\":106410,\"directCost\":0,\"profit\":24390},\"after\":null,\"affectedDates\":[\"2026-11-19\",\"2026-11-20\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false}", + "59ace7a4371f472001a38b09e68a34d9f7102eab832cfdac148b496ba02918ab", + "{\"record\":{\"id\":\"\",\"number\":\"HS202611190002\",\"mode\":\"exchange\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":5000,\\\"meltedMg\\\":4900,\\\"purity\\\":99,\\\"foldedMg\\\":4851}]\",\"data\":\"{\\\"mode\\\":\\\"exchange\\\",\\\"date\\\":\\\"2026-11-19\\\",\\\"customer\\\":\\\"对照换货客户二\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"娜娜\\\",\\\"member\\\":\\\"assistant\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":5000,\\\"meltedMg\\\":4900,\\\"purity\\\":99,\\\"foldedMg\\\":4851}],\\\"oldMg\\\":4851,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":6000,\\\"matchedMg\\\":4851,\\\"differenceMg\\\":1149,\\\"surplusMg\\\":0,\\\"goldRate\\\":100000,\\\"laborRate\\\":2000,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":1000,\\\"depreciationMg\\\":4851,\\\"goldAmount\\\":114900,\\\"laborAmount\\\":12000,\\\"depreciationAmount\\\":4851,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":1000,\\\"rounding_mode\\\":\\\"yuan\\\",\\\"rounding_adjustment\\\":49,\\\"receivable\\\":130800,\\\"payer\\\":\\\"assistant\\\",\\\"payment_account\\\":\\\"助理微信\\\",\\\"materialCost\\\":103410,\\\"laborCost\\\":3000,\\\"goodsCost\\\":106410,\\\"directCost\\\":0,\\\"profit\\\":24390,\\\"newProduct\\\":{\\\"name\\\":\\\"足金对照新货\\\",\\\"quantity\\\":6000,\\\"pocket\\\":\\\"现货\\\"},\\\"exchange\\\":{\\\"costMaterial\\\":{\\\"mode\\\":\\\"total\\\",\\\"rate\\\":90000,\\\"consumptionMg\\\":1149},\\\"costLabor\\\":{\\\"mode\\\":\\\"gram\\\",\\\"rate\\\":500},\\\"costPayer\\\":\\\"assistant\\\",\\\"costPayers\\\":{\\\"material\\\":\\\"assistant\\\",\\\"labor\\\":\\\"assistant\\\"},\\\"fee_items\\\":[]},\\\"purchaseMg\\\":0,\\\"buyRate\\\":0,\\\"calculatedPurchaseAmount\\\":0,\\\"purchaseAmount\\\":0,\\\"actualBuyRate\\\":null,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":130800,\\\"cashReceipt\\\":130800,\\\"cashPayment\\\":0,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":\"\",\"purchase_id\":null,\"inventory_group\":\"\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\",\"revision\":1,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"\"},\"order\":{\"id\":\"\",\"number\":\"MM20261119-\",\"date\":\"2026-11-19\",\"customer\":\"对照换货客户二\",\"salesperson\":\"娜娜\",\"note\":\"\",\"paper_number\":\"20261119012\",\"status\":\"delivered\",\"lines\":[{\"name\":\"足金对照新货\",\"code\":\"\",\"unit\":\"g\",\"quantity\":6000,\"pocket\":\"现货\",\"payer\":\"assistant\",\"costPayers\":{\"material\":\"assistant\",\"labor\":\"assistant\"},\"cost\":106410,\"costParts\":{\"material\":103410,\"labor\":3000,\"accessories\":0,\"other\":0},\"costMaterial\":{\"mode\":\"total\",\"rate\":90000,\"consumptionMg\":1149},\"costLabor\":{\"mode\":\"gram\",\"rate\":500},\"sale\":131751,\"baseSale\":131751,\"charges\":[],\"pricingMode\":\"manual\",\"priceNote\":\"补金 1.149克 × 1000.00元;新货工费 120.00元;折旧 48.51元\",\"recoveryMaterialMg\":1149,\"recovery_id\":\"\"}],\"discount\":1000,\"total\":130800,\"revision\":4,\"reviewed_revision\":0,\"created\":\"2026-11-19T02:01:33.000Z\",\"delivered_date\":\"2026-11-19\",\"returned_date\":null,\"paper_date\":\"2026-11-19\",\"payment_account\":\"助理微信\",\"fee_items\":[],\"fees_date\":\"\",\"rounding_mode\":\"yuan\",\"internal_note\":\"\",\"fee_cost_mode\":\"legacy\",\"customer_type\":\"unknown\",\"member\":\"assistant\"},\"payments\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"amount\":130800,\"account\":\"助理微信\",\"reference\":\"置换差额实际收款 · HS202611190002\",\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"}],\"expenses\":[],\"settlements\":[],\"journal\":[{\"id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"kind\":\"交付\",\"sales\":130800,\"goods\":106410,\"expense\":0,\"profit\":24390,\"created\":\"2026-11-19T02:01:33.000Z\"}],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"回收旧料\",\"mg\":4851,\"kind\":\"recovery\",\"note\":\"HS202611190002\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"},{\"id\":\"\",\"group_id\":\"\",\"order_id\":\"\",\"date\":\"2026-11-19\",\"pocket\":\"现货\",\"mg\":-6000,\"kind\":\"sale\",\"note\":\"MM20261119-\",\"purchase_cost\":null,\"actor\":\"助理\",\"created\":\"2026-11-19T02:01:33.000Z\"}],\"usages\":[],\"purchase\":null,\"purchaseSource\":null}", + "", + "麦麦", + "owner", + "assistant", + "2026-11-20T02:00:15.000Z", + "", + "麦麦", + "2026-11-20T02:00:15.000Z", + "" + ], + [ + "", + "", + 1, + 1, + "update", + "approved", + "当天更正", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"10.000\",\"melted_weight\":\"10.000\",\"purity\":\"100\"}],\"buy_rate\":\"900.00\",\"buy_total\":\"9000.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true}", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"10.000\",\"melted_weight\":\"10.000\",\"purity\":\"100\"}],\"buy_rate\":\"905.00\",\"buy_total\":\"9000.00\",\"payer\":\"assistant\",\"payment_account\":\"助理微信\",\"verified\":true}", + "{\"before\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"oldMg\":10000,\"newMg\":0,\"purchaseMg\":10000,\"purchaseAmount\":900000,\"receivable\":0,\"cashReceipt\":0,\"cashPayment\":900000,\"offsetAmount\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0},\"after\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"oldMg\":10000,\"newMg\":0,\"purchaseMg\":10000,\"purchaseAmount\":900000,\"receivable\":0,\"cashReceipt\":0,\"cashPayment\":900000,\"offsetAmount\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0},\"affectedDates\":[\"2026-11-20\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false}", + "a27279364a33579061b0c429379f4a338c38b9c658b35f0b6a479ec50a3fc55c", + "{\"record\":{\"id\":\"\",\"number\":\"HS202611200003\",\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"salesperson\":\"娜娜\",\"member\":\"assistant\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":10000,\\\"meltedMg\\\":10000,\\\"purity\\\":100,\\\"foldedMg\\\":10000}]\",\"data\":\"{\\\"mode\\\":\\\"direct\\\",\\\"date\\\":\\\"2026-11-20\\\",\\\"customer\\\":\\\"对照回收客户\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"娜娜\\\",\\\"member\\\":\\\"assistant\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":10000,\\\"meltedMg\\\":10000,\\\"purity\\\":100,\\\"foldedMg\\\":10000}],\\\"oldMg\\\":10000,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":0,\\\"matchedMg\\\":0,\\\"differenceMg\\\":0,\\\"surplusMg\\\":10000,\\\"goldRate\\\":0,\\\"laborRate\\\":0,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":0,\\\"depreciationMg\\\":0,\\\"goldAmount\\\":0,\\\"laborAmount\\\":0,\\\"depreciationAmount\\\":0,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":0,\\\"rounding_mode\\\":\\\"cent\\\",\\\"rounding_adjustment\\\":0,\\\"receivable\\\":0,\\\"payer\\\":\\\"assistant\\\",\\\"payment_account\\\":\\\"助理微信\\\",\\\"materialCost\\\":0,\\\"laborCost\\\":0,\\\"goodsCost\\\":0,\\\"directCost\\\":0,\\\"profit\\\":0,\\\"purchaseMg\\\":10000,\\\"buyRate\\\":90000,\\\"calculatedPurchaseAmount\\\":900000,\\\"purchaseAmount\\\":900000,\\\"actualBuyRate\\\":90000,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":-900000,\\\"cashReceipt\\\":0,\\\"cashPayment\\\":900000,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"微信\\\"]}\",\"order_id\":null,\"purchase_id\":\"\",\"inventory_group\":\"\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\",\"revision\":1,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"\"},\"order\":null,\"payments\":[],\"expenses\":[],\"settlements\":[],\"journal\":[],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-20\",\"pocket\":\"回收旧料\",\"mg\":10000,\"kind\":\"recovery\",\"note\":\"HS202611200003\",\"purchase_cost\":900000,\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\"}],\"usages\":[],\"purchase\":{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":10000,\"amount\":900000,\"payer\":\"assistant\",\"note\":\"直接回收 · HS202611200003\",\"actor\":\"助理\",\"created\":\"2026-11-20T02:00:20.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:20.000Z\"},\"purchaseSource\":{\"purchase_id\":\"\",\"recovery_id\":\"\",\"cash_amount\":900000,\"offset_amount\":0,\"allocations\":\"[{\\\"payer\\\":\\\"assistant\\\",\\\"amount\\\":900000,\\\"source\\\":\\\"cash\\\"}]\"}}", + "", + "助理", + "assistant", + "assistant", + "2026-11-20T02:00:25.000Z", + "", + "助理", + "2026-11-20T02:00:25.000Z", + "" + ], + [ + "", + "", + 1, + 1, + "cancel", + "approved", + "录错", + "{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"customer_type\":\"unknown\",\"salesperson\":\"麦麦\",\"member\":\"owner\",\"note\":\"\",\"old_pocket\":\"回收旧料\",\"old_lines\":[{\"name\":\"Au旧料\",\"incoming_weight\":\"3.000\",\"melted_weight\":\"3.000\",\"purity\":\"100\"}],\"buy_rate\":\"900.00\",\"buy_total\":\"2700.00\",\"payer\":\"owner\",\"payment_account\":\"麦麦现金\",\"verified\":true}", + null, + "{\"before\":{\"mode\":\"direct\",\"date\":\"2026-11-20\",\"oldMg\":3000,\"newMg\":0,\"purchaseMg\":3000,\"purchaseAmount\":270000,\"receivable\":0,\"cashReceipt\":0,\"cashPayment\":270000,\"offsetAmount\":0,\"goodsCost\":0,\"directCost\":0,\"profit\":0},\"after\":null,\"affectedDates\":[\"2026-11-20\"],\"blockedUsages\":[],\"requiresLegacyCountVerified\":false,\"legacyCountNotice\":\"\",\"legacyCountVerified\":false}", + "d29538ff81998699ba4632fcf68ef85ec19cfd0abe43a71820042413fe265d37", + "{\"record\":{\"id\":\"\",\"number\":\"HS202611200004\",\"mode\":\"direct\",\"date\":\"2026-11-20\",\"customer\":\"对照回收客户\",\"salesperson\":\"麦麦\",\"member\":\"owner\",\"note\":\"\",\"old_lines\":\"[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":3000,\\\"meltedMg\\\":3000,\\\"purity\\\":100,\\\"foldedMg\\\":3000}]\",\"data\":\"{\\\"mode\\\":\\\"direct\\\",\\\"date\\\":\\\"2026-11-20\\\",\\\"customer\\\":\\\"对照回收客户\\\",\\\"customer_type\\\":\\\"unknown\\\",\\\"salesperson\\\":\\\"麦麦\\\",\\\"member\\\":\\\"owner\\\",\\\"note\\\":\\\"\\\",\\\"old_lines\\\":[{\\\"name\\\":\\\"Au旧料\\\",\\\"incomingMg\\\":3000,\\\"meltedMg\\\":3000,\\\"purity\\\":100,\\\"foldedMg\\\":3000}],\\\"oldMg\\\":3000,\\\"oldPocket\\\":\\\"回收旧料\\\",\\\"credit_card_rate_permille\\\":6,\\\"newMg\\\":0,\\\"matchedMg\\\":0,\\\"differenceMg\\\":0,\\\"surplusMg\\\":3000,\\\"goldRate\\\":0,\\\"laborRate\\\":0,\\\"laborMode\\\":\\\"gram\\\",\\\"depreciationRate\\\":0,\\\"depreciationMg\\\":0,\\\"goldAmount\\\":0,\\\"laborAmount\\\":0,\\\"depreciationAmount\\\":0,\\\"charges\\\":[],\\\"chargesAmount\\\":0,\\\"discount\\\":0,\\\"rounding_mode\\\":\\\"cent\\\",\\\"rounding_adjustment\\\":0,\\\"receivable\\\":0,\\\"payer\\\":\\\"owner\\\",\\\"payment_account\\\":\\\"麦麦现金\\\",\\\"materialCost\\\":0,\\\"laborCost\\\":0,\\\"goodsCost\\\":0,\\\"directCost\\\":0,\\\"profit\\\":0,\\\"purchaseMg\\\":3000,\\\"buyRate\\\":90000,\\\"calculatedPurchaseAmount\\\":270000,\\\"purchaseAmount\\\":270000,\\\"actualBuyRate\\\":90000,\\\"offsetAmount\\\":0,\\\"netSettlement\\\":-270000,\\\"cashReceipt\\\":0,\\\"cashPayment\\\":270000,\\\"cardFee\\\":0,\\\"paymentMethods\\\":[\\\"现金\\\"]}\",\"order_id\":null,\"purchase_id\":\"\",\"inventory_group\":\"\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\",\"revision\":1,\"status\":\"active\",\"cancelled_at\":\"\",\"updated\":\"\"},\"order\":null,\"payments\":[],\"expenses\":[],\"settlements\":[],\"journal\":[],\"movements\":[{\"id\":\"\",\"group_id\":\"\",\"order_id\":null,\"date\":\"2026-11-20\",\"pocket\":\"回收旧料\",\"mg\":3000,\"kind\":\"recovery\",\"note\":\"HS202611200004\",\"purchase_cost\":270000,\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\"}],\"usages\":[],\"purchase\":{\"id\":\"\",\"pool_id\":\"2026-11-20\",\"date\":\"2026-11-20\",\"mg\":3000,\"amount\":270000,\"payer\":\"owner\",\"note\":\"直接回收 · HS202611200004\",\"actor\":\"麦麦\",\"created\":\"2026-11-20T02:00:21.000Z\",\"revision\":1,\"deleted_at\":\"\",\"updated\":\"2026-11-20T02:00:21.000Z\"},\"purchaseSource\":{\"purchase_id\":\"\",\"recovery_id\":\"\",\"cash_amount\":270000,\"offset_amount\":0,\"allocations\":\"[{\\\"payer\\\":\\\"owner\\\",\\\"amount\\\":270000,\\\"source\\\":\\\"cash\\\"}]\"}}", + "", + "麦麦", + "owner", + "owner", + "2026-11-20T02:00:27.000Z", + "", + "麦麦", + "2026-11-20T02:00:27.000Z", + "" + ] + ] + }, + "recovery_material_batches": { + "columns": [ + "purchase_id", + "recovery_id", + "member", + "created" + ], + "rows": [ + [ + "", + "", + "assistant", + "2026-11-20T02:00:20.000Z" + ], + [ + "", + "", + "owner", + "2026-11-20T02:00:21.000Z" + ], + [ + "", + "", + "assistant", + "2026-11-20T02:00:30.000Z" + ] + ] + }, + "recovery_purchase_sources": { + "columns": [ + "purchase_id", + "recovery_id", + "cash_amount", + "offset_amount", + "allocations" + ], + "rows": [ + [ + "", + "", + 900000, + 0, + "[{\"payer\":\"assistant\",\"amount\":900000,\"source\":\"cash\"}]" + ], + [ + "", + "", + 270000, + 0, + "[{\"payer\":\"owner\",\"amount\":270000,\"source\":\"cash\"}]" + ], + [ + "", + "", + 180000, + 0, + "[{\"payer\":\"assistant\",\"amount\":180000,\"source\":\"cash\"}]" + ] + ] + }, + "reimbursements": { + "columns": [ + "id", + "date", + "items", + "total", + "note", + "status", + "revision", + "requester_id", + "requester_name", + "reviewer_id", + "reviewer_name", + "reviewed", + "review_note", + "created", + "updated" + ], + "rows": [ + [ + "", + "2026-11-18", + "[{\"id\":\"\",\"name\":\"对照邮寄\",\"amount\":1500,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"},{\"id\":\"\",\"name\":\"对照包装\",\"amount\":650,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"}]", + 2150, + "补充备注", + "approved", + 3, + "", + "助理", + "", + "麦麦", + "2026-11-18T02:02:24.000Z", + "", + "2026-11-18T02:02:18.000Z", + "2026-11-18T02:02:24.000Z" + ], + [ + "", + "2026-11-18", + "[{\"id\":\"\",\"name\":\"对照快递\",\"amount\":900,\"member\":\"owner\",\"sourceType\":\"independent\",\"sourceKey\":\"\"}]", + 900, + "", + "rejected", + 2, + "", + "助理2", + "", + "麦麦", + "2026-11-18T02:02:26.000Z", + "凭据不全", + "2026-11-18T02:02:25.000Z", + "2026-11-18T02:02:26.000Z" + ] + ] + }, + "returned_stock_lots": { + "columns": [ + "id", + "order_id", + "line_index", + "date", + "pocket", + "name", + "code", + "mg", + "stock_count", + "labor_cost", + "labor_payer", + "created" + ], + "rows": [] + }, + "sessions": { + "columns": [ + "hash", + "user_id", + "expires" + ], + "rows": [ + [ + "", + "", + 1795255201000 + ] + ] + }, + "settlements": { + "columns": [ + "id", + "order_id", + "date", + "bucket", + "amount", + "note", + "actor", + "created" + ], + "rows": [] + }, + "sqlite_sequence": { + "columns": [ + "name", + "seq" + ], + "rows": [ + [ + "material_usage_order", + 2 + ], + [ + "audit", + 230 + ], + [ + "material_rolling_source_order", + 9 + ] + ] + }, + "sync": { + "columns": [ + "entity", + "revision", + "done_revision", + "record_id", + "attempts", + "error", + "updated" + ], + "rows": [ + [ + "inventory", + 1795140030002, + 0, + null, + 0, + null, + "2026-11-20T02:00:30.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-19T02:00:31.000Z" + ], + [ + "order:", + 4, + 0, + null, + 0, + null, + "2026-11-18T02:01:18.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-19T02:00:39.000Z" + ], + [ + "order:", + 6, + 0, + null, + 0, + null, + "2026-11-19T02:02:27.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-18T02:01:23.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-19T02:00:45.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-19T02:01:05.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-19T02:00:49.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-18T02:01:34.000Z" + ], + [ + "order:", + 3, + 0, + null, + 0, + null, + "2026-11-19T02:01:28.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-20T02:00:10.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-20T02:00:15.000Z" + ], + [ + "order:", + 7, + 0, + null, + 0, + null, + "2026-11-19T02:01:56.000Z" + ], + [ + "order:", + 5, + 0, + null, + 0, + null, + "2026-11-19T02:01:59.000Z" + ], + [ + "order:", + 4, + 0, + null, + 0, + null, + "2026-11-19T02:02:40.000Z" + ], + [ + "order:", + 4, + 0, + null, + 0, + null, + "2026-11-19T02:02:51.000Z" + ], + [ + "order:", + 4, + 0, + null, + 0, + null, + "2026-11-20T02:00:29.000Z" + ] + ] + }, + "team_entities": { + "columns": [ + "kind", + "entity_id", + "member", + "created" + ], + "rows": [ + [ + "movement", + "", + "owner", + "2026-11-18T02:01:00.000Z" + ], + [ + "movement", + "", + "owner", + "2026-11-18T02:01:01.000Z" + ], + [ + "movement", + "", + "owner", + "2026-11-18T02:01:02.000Z" + ], + [ + "movement", + "", + "owner", + "2026-11-18T02:01:03.000Z" + ], + [ + "movement", + "", + "owner", + "2026-11-18T02:01:03.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-18T02:01:04.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-18T02:01:05.000Z" + ], + [ + "material_purchase", + "", + "assistant", + "2026-11-18T02:01:09.000Z" + ], + [ + "material_purchase", + "", + "owner", + "2026-11-18T02:01:10.000Z" + ], + [ + "order", + "", + "assistant", + "2026-11-18T02:01:17.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-18T02:01:17.000Z" + ], + [ + "order", + "", + "assistant2", + "2026-11-18T02:01:18.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-18T02:01:18.000Z" + ], + [ + "order", + "", + "assistant", + "2026-11-18T02:01:19.000Z" + ], + [ + "order", + "", + "assistant", + "2026-11-18T02:01:20.000Z" + ], + [ + "order", + "", + "owner", + "2026-11-18T02:01:21.000Z" + ], + [ + "movement", + "", + "owner", + "2026-11-18T02:01:23.000Z" + ], + [ + "order", + "", + "assistant2", + "2026-11-18T02:01:24.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-18T02:01:24.000Z" + ], + [ + "order", + "", + "assistant2", + "2026-11-18T02:01:25.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-18T02:01:25.000Z" + ], + [ + "order", + "", + "assistant2", + "2026-11-18T02:01:26.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-18T02:01:26.000Z" + ], + [ + "order", + "", + "owner", + "2026-11-18T02:01:27.000Z" + ], + [ + "movement", + "", + "owner", + "2026-11-18T02:01:34.000Z" + ], + [ + "price_lock", + "", + "assistant", + "2026-11-18T02:01:53.000Z" + ], + [ + "price_lock", + "", + "assistant", + "2026-11-18T02:01:54.000Z" + ], + [ + "price_lock", + "", + "assistant2", + "2026-11-18T02:01:55.000Z" + ], + [ + "price_lock", + "", + "owner", + "2026-11-18T02:01:56.000Z" + ], + [ + "after_sale", + "", + "assistant", + "2026-11-18T02:02:03.000Z" + ], + [ + "after_sale", + "", + "owner", + "2026-11-18T02:02:06.000Z" + ], + [ + "template", + "", + "assistant", + "2026-11-18T02:02:08.000Z" + ], + [ + "template", + "", + "assistant", + "2026-11-18T02:02:14.000Z" + ], + [ + "reimbursement", + "", + "assistant", + "2026-11-18T02:02:18.000Z" + ], + [ + "reimbursement", + "", + "assistant2", + "2026-11-18T02:02:25.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:00:11.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:00:11.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:00:16.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:00:19.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:00:19.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:00:21.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-19T02:00:45.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-19T02:01:05.000Z" + ], + [ + "order", + "", + "assistant", + "2026-11-19T02:01:28.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:01:28.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:01:28.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:01:28.000Z" + ], + [ + "order", + "", + "assistant2", + "2026-11-19T02:01:32.000Z" + ], + [ + "recovery", + "", + "assistant2", + "2026-11-19T02:01:32.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-19T02:01:32.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-19T02:01:32.000Z" + ], + [ + "order", + "", + "assistant", + "2026-11-19T02:01:33.000Z" + ], + [ + "recovery", + "", + "assistant", + "2026-11-19T02:01:33.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:01:33.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:01:33.000Z" + ], + [ + "order", + "", + "assistant2", + "2026-11-19T02:01:48.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-19T02:01:48.000Z" + ], + [ + "order", + "", + "assistant", + "2026-11-19T02:01:57.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:01:57.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:01:59.000Z" + ], + [ + "material_purchase", + "", + "assistant", + "2026-11-19T02:02:19.000Z" + ], + [ + "material_purchase", + "", + "assistant2", + "2026-11-19T02:02:20.000Z" + ], + [ + "material_purchase", + "", + "owner", + "2026-11-19T02:02:33.000Z" + ], + [ + "order", + "", + "assistant", + "2026-11-19T02:02:40.000Z" + ], + [ + "order", + "", + "assistant", + "2026-11-19T02:02:51.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-19T02:02:51.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-20T02:00:10.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-20T02:00:10.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-20T02:00:10.000Z" + ], + [ + "movement", + "", + "assistant2", + "2026-11-20T02:00:10.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-20T02:00:15.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-20T02:00:15.000Z" + ], + [ + "recovery", + "", + "assistant", + "2026-11-20T02:00:20.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-20T02:00:20.000Z" + ], + [ + "material_purchase", + "", + "assistant", + "2026-11-20T02:00:20.000Z" + ], + [ + "recovery", + "", + "owner", + "2026-11-20T02:00:21.000Z" + ], + [ + "movement", + "", + "owner", + "2026-11-20T02:00:21.000Z" + ], + [ + "material_purchase", + "", + "owner", + "2026-11-20T02:00:21.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-20T02:00:25.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-20T02:00:25.000Z" + ], + [ + "movement", + "", + "owner", + "2026-11-20T02:00:27.000Z" + ], + [ + "order", + "", + "assistant", + "2026-11-20T02:00:29.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-20T02:00:29.000Z" + ], + [ + "recovery", + "", + "assistant", + "2026-11-20T02:00:30.000Z" + ], + [ + "movement", + "", + "assistant", + "2026-11-20T02:00:30.000Z" + ], + [ + "material_purchase", + "", + "assistant", + "2026-11-20T02:00:30.000Z" + ] + ] + }, + "team_fund_cash": { + "columns": [ + "id", + "source_kind", + "source_id", + "source_revision", + "date", + "kind", + "member", + "amount", + "created" + ], + "rows": [ + [ + "", + "material_purchase", + "", + 1, + "2026-11-18", + "outlay", + "assistant", + 900000, + "2026-11-18T02:01:09.000Z" + ], + [ + "", + "material_purchase", + "", + 1, + "2026-11-18", + "outlay", + "owner", + 1820000, + "2026-11-18T02:01:10.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "assistant", + 321100, + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "assistant", + 1200, + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "owner", + 286000, + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "assistant", + 4000, + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "assistant", + 200, + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "assistant2", + 217163, + "2026-11-18T02:01:18.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "assistant2", + 180000, + "2026-11-18T02:01:18.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "assistant2", + 3000, + "2026-11-18T02:01:18.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "owner", + 288500, + "2026-11-18T02:01:19.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "owner", + 1731, + "2026-11-18T02:01:19.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "owner", + 150000, + "2026-11-18T02:01:19.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "assistant", + 330000, + "2026-11-18T02:01:20.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "owner", + 980000, + "2026-11-18T02:01:23.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "owner", + 900000, + "2026-11-18T02:01:23.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "assistant2", + 150000, + "2026-11-18T02:01:24.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "assistant2", + 130000, + "2026-11-18T02:01:24.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "assistant2", + 500000, + "2026-11-18T02:01:25.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "assistant2", + 440000, + "2026-11-18T02:01:25.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "assistant2", + 10000, + "2026-11-18T02:01:25.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "assistant", + 82000, + "2026-11-18T02:01:26.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "outlay", + "assistant", + 70000, + "2026-11-18T02:01:26.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "owner", + 100000, + "2026-11-18T02:01:31.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-18", + "receipt", + "owner", + 300000, + "2026-11-18T02:01:33.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-18", + "outlay", + "owner", + 1800, + "2026-11-18T02:01:33.000Z" + ], + [ + "", + "order", + "", + 3, + "2026-11-18", + "outlay", + "owner", + 350000, + "2026-11-18T02:01:34.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "receipt", + "assistant", + 270000, + "2026-11-18T02:01:53.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "outlay", + "owner", + 255000, + "2026-11-18T02:01:53.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "receipt", + "assistant", + 100000, + "2026-11-18T02:01:54.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "outlay", + "owner", + 255000, + "2026-11-18T02:01:54.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "receipt", + "assistant2", + 50000, + "2026-11-18T02:01:55.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "outlay", + "assistant2", + 258000, + "2026-11-18T02:01:55.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "receipt", + "owner", + 80000, + "2026-11-18T02:01:56.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "outlay", + "owner", + 255000, + "2026-11-18T02:01:56.000Z" + ], + [ + "", + "price_lock", + "", + 2, + "2026-11-18", + "receipt", + "assistant", + -100000, + "2026-11-18T02:02:02.000Z" + ], + [ + "", + "price_lock", + "", + 2, + "2026-11-18", + "receipt", + "assistant", + 120000, + "2026-11-18T02:02:02.000Z" + ], + [ + "", + "after_sale", + "", + 1, + "2026-11-18", + "outlay", + "assistant", + 850, + "2026-11-18T02:02:03.000Z" + ], + [ + "", + "reimbursement", + "", + 1, + "2026-11-18", + "outlay", + "assistant", + 1500, + "2026-11-18T02:02:24.000Z" + ], + [ + "", + "reimbursement", + "", + 1, + "2026-11-18", + "outlay", + "assistant", + 650, + "2026-11-18T02:02:24.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "outlay", + "assistant", + 1000, + "2026-11-19T02:00:37.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-18", + "outlay", + "assistant2", + -130000, + "2026-11-19T02:00:45.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-18", + "receipt", + "assistant2", + -150000, + "2026-11-19T02:00:45.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "refund", + "assistant2", + 90000, + "2026-11-19T02:01:05.000Z" + ], + [ + "", + "after_sale", + "", + 2, + "2026-11-18", + "outlay", + "assistant", + 100, + "2026-11-19T02:01:12.000Z" + ], + [ + "", + "price_lock", + "", + 2, + "2026-11-18", + "receipt", + "owner", + -80000, + "2026-11-19T02:01:26.000Z" + ], + [ + "", + "price_lock", + "", + 2, + "2026-11-18", + "outlay", + "owner", + -255000, + "2026-11-19T02:01:26.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "outlay", + "owner", + 600, + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "outlay", + "assistant", + 3000, + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "price_lock", + "", + 2, + "2026-11-19", + "outlay", + "assistant", + 9000, + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "price_lock", + "", + 2, + "2026-11-19", + "receipt", + "assistant", + 16200, + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "receipt", + "assistant2", + 432792, + "2026-11-19T02:01:32.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "outlay", + "assistant2", + 360720, + "2026-11-19T02:01:32.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "outlay", + "assistant2", + 6000, + "2026-11-19T02:01:32.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "receipt", + "assistant", + 130800, + "2026-11-19T02:01:33.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "outlay", + "assistant", + 103410, + "2026-11-19T02:01:33.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "outlay", + "assistant", + 3000, + "2026-11-19T02:01:33.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "receipt", + "assistant", + 210000, + "2026-11-19T02:01:48.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "outlay", + "assistant", + 180000, + "2026-11-19T02:01:48.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "outlay", + "assistant", + 800, + "2026-11-19T02:01:52.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "receipt", + "assistant", + 210000, + "2026-11-19T02:01:57.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "outlay", + "assistant", + 180000, + "2026-11-19T02:01:57.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "outlay", + "assistant", + -180000, + "2026-11-19T02:01:59.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "receipt", + "assistant", + -210000, + "2026-11-19T02:01:59.000Z" + ], + [ + "", + "material_purchase", + "", + 1, + "2026-11-19", + "outlay", + "assistant", + 460000, + "2026-11-19T02:02:19.000Z" + ], + [ + "", + "material_purchase", + "", + 1, + "2026-11-19", + "outlay", + "assistant2", + 370000, + "2026-11-19T02:02:20.000Z" + ], + [ + "", + "material_purchase", + "", + 2, + "2026-11-18", + "outlay", + "assistant", + 90000, + "2026-11-19T02:02:27.000Z" + ], + [ + "", + "material_purchase", + "", + 1, + "2026-11-19", + "outlay", + "owner", + 90000, + "2026-11-19T02:02:33.000Z" + ], + [ + "", + "material_purchase", + "", + 2, + "2026-11-19", + "outlay", + "owner", + 48000, + "2026-11-19T02:02:35.000Z" + ], + [ + "", + "material_purchase", + "", + 3, + "2026-11-19", + "outlay", + "owner", + -138000, + "2026-11-19T02:02:37.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "receipt", + "assistant", + 220000, + "2026-11-19T02:02:40.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "receipt", + "assistant", + 50000, + "2026-11-19T02:02:51.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "outlay", + "assistant", + 42000, + "2026-11-19T02:02:51.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "outlay", + "assistant2", + -9000, + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "receipt", + "assistant2", + -432792, + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "receipt", + "assistant2", + 422792, + "2026-11-20T02:00:10.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "outlay", + "assistant", + -103410, + "2026-11-20T02:00:15.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "outlay", + "assistant", + -3000, + "2026-11-20T02:00:15.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-19", + "receipt", + "assistant", + -130800, + "2026-11-20T02:00:15.000Z" + ], + [ + "", + "material_purchase", + "", + 1, + "2026-11-20", + "outlay", + "assistant", + 900000, + "2026-11-20T02:00:20.000Z" + ], + [ + "", + "material_purchase", + "", + 1, + "2026-11-20", + "outlay", + "owner", + 270000, + "2026-11-20T02:00:21.000Z" + ], + [ + "", + "material_purchase", + "", + 2, + "2026-11-20", + "outlay", + "owner", + -270000, + "2026-11-20T02:00:27.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-20", + "receipt", + "assistant", + 200000, + "2026-11-20T02:00:29.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-20", + "outlay", + "assistant", + 180000, + "2026-11-20T02:00:29.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-20", + "outlay", + "assistant", + 5000, + "2026-11-20T02:00:29.000Z" + ], + [ + "", + "material_purchase", + "", + 1, + "2026-11-20", + "outlay", + "assistant", + 180000, + "2026-11-20T02:00:30.000Z" + ] + ] + }, + "team_fund_claim_uses": { + "columns": [ + "reimbursement_id", + "item_id", + "source_kind", + "source_id", + "component", + "amount" + ], + "rows": [] + }, + "team_fund_entries": { + "columns": [ + "id", + "source_kind", + "source_id", + "source_revision", + "date", + "kind", + "project", + "from_member", + "to_member", + "amount", + "actor", + "created" + ], + "rows": [ + [ + "", + "order", + "", + 1, + "2026-11-18", + "advance", + "商品实际垫付", + "assistant", + "owner", + 286000, + "助理", + "2026-11-18T02:01:17.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "receipt", + "客户款代收", + "owner", + "assistant", + 288500, + "麦麦", + "2026-11-18T02:01:19.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "advance", + "订单实际费用", + "assistant", + "owner", + 1731, + "麦麦", + "2026-11-18T02:01:19.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-18", + "advance", + "商品实际垫付", + "assistant", + "owner", + 150000, + "麦麦", + "2026-11-18T02:01:19.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "advance", + "锁价实际购料", + "assistant", + "owner", + 255000, + "助理", + "2026-11-18T02:01:53.000Z" + ], + [ + "", + "price_lock", + "", + 1, + "2026-11-18", + "advance", + "锁价实际购料", + "assistant", + "owner", + 255000, + "助理", + "2026-11-18T02:01:54.000Z" + ], + [ + "", + "reimbursement", + "", + 1, + "2026-11-18", + "reimbursement", + "独立支出报销 · 对照邮寄", + "owner", + "assistant", + 1500, + "麦麦", + "2026-11-18T02:02:24.000Z" + ], + [ + "", + "reimbursement", + "", + 1, + "2026-11-18", + "reimbursement", + "独立支出报销 · 对照包装", + "owner", + "assistant", + 650, + "麦麦", + "2026-11-18T02:02:24.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-18", + "receipt", + "客户款代收", + "assistant", + "assistant2", + 82000, + "麦麦", + "2026-11-19T02:00:49.000Z" + ], + [ + "", + "order", + "", + 2, + "2026-11-18", + "advance", + "商品实际垫付", + "assistant2", + "assistant", + 70000, + "麦麦", + "2026-11-19T02:00:49.000Z" + ], + [ + "", + "order", + "", + 1, + "2026-11-19", + "advance", + "订单实际费用", + "assistant", + "owner", + 600, + "助理", + "2026-11-19T02:01:28.000Z" + ], + [ + "", + "order", + "", + 3, + "2026-11-19", + "receipt", + "客户款代收", + "assistant", + "assistant2", + 210000, + "麦麦", + "2026-11-19T02:01:56.000Z" + ], + [ + "", + "order", + "", + 3, + "2026-11-19", + "advance", + "订单实际费用", + "assistant2", + "assistant", + 800, + "麦麦", + "2026-11-19T02:01:56.000Z" + ], + [ + "", + "order", + "", + 3, + "2026-11-19", + "advance", + "商品实际垫付", + "assistant2", + "assistant", + 180000, + "麦麦", + "2026-11-19T02:01:56.000Z" + ] + ] + }, + "team_fund_sources": { + "columns": [ + "kind", + "source_id", + "snapshot", + "revision", + "legacy", + "created", + "updated" + ], + "rows": [ + [ + "material_purchase", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"purchase:\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":990000}],\"pending\":[]}", + 2, + 0, + "2026-11-18T02:01:09.000Z", + "2026-11-19T02:02:27.000Z" + ], + [ + "material_purchase", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"purchase:\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":1820000}],\"pending\":[]}", + 1, + 0, + "2026-11-18T02:01:10.000Z", + "2026-11-18T02:01:10.000Z" + ], + [ + "order", + "", + "{\"obligations\":[{\"key\":\"goods:0:material\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":286000}],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":321100},{\"key\":\"expense:\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":1200},{\"key\":\"goods:0:material\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":286000},{\"key\":\"goods:0:labor\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":4000},{\"key\":\"goods:0:accessories\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":200}],\"pending\":[]}", + 1, + 0, + "2026-11-18T02:01:17.000Z", + "2026-11-18T02:01:17.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant2\",\"amount\":217163},{\"key\":\"goods:0:total\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant2\",\"amount\":180000},{\"key\":\"goods:1:total\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant2\",\"amount\":3000}],\"pending\":[]}", + 1, + 0, + "2026-11-18T02:01:18.000Z", + "2026-11-18T02:01:18.000Z" + ], + [ + "order", + "", + "{\"obligations\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":288500},{\"key\":\"expense:\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":1731},{\"key\":\"goods:0:total\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":150000}],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"owner\",\"amount\":288500},{\"key\":\"expense:\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":1731},{\"key\":\"goods:0:total\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":150000}],\"pending\":[]}", + 1, + 0, + "2026-11-18T02:01:19.000Z", + "2026-11-18T02:01:19.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":330000},{\"key\":\"expense:\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":1000}],\"pending\":[]}", + 2, + 0, + "2026-11-18T02:01:20.000Z", + "2026-11-19T02:00:37.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"owner\",\"amount\":980000},{\"key\":\"goods:0:total\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":900000}],\"pending\":[]}", + 1, + 0, + "2026-11-18T02:01:21.000Z", + "2026-11-18T02:01:23.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant2\",\"amount\":150000},{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant2\",\"amount\":-150000}],\"pending\":[]}", + 2, + 0, + "2026-11-18T02:01:24.000Z", + "2026-11-19T02:00:45.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant2\",\"amount\":500000},{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"refund\",\"member\":\"assistant2\",\"amount\":90000},{\"key\":\"goods:0:material\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant2\",\"amount\":440000},{\"key\":\"goods:0:labor\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant2\",\"amount\":10000}],\"pending\":[]}", + 2, + 0, + "2026-11-18T02:01:25.000Z", + "2026-11-19T02:01:05.000Z" + ], + [ + "order", + "", + "{\"obligations\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"assistant\",\"toMember\":\"assistant2\",\"amount\":82000},{\"key\":\"goods:0:total\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":70000}],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":82000},{\"key\":\"goods:0:total\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":70000}],\"pending\":[]}", + 2, + 0, + "2026-11-18T02:01:26.000Z", + "2026-11-19T02:00:49.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"owner\",\"amount\":100000},{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"owner\",\"amount\":300000},{\"key\":\"expense:\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":1800},{\"key\":\"goods:0:total\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":350000}],\"pending\":[]}", + 3, + 0, + "2026-11-18T02:01:27.000Z", + "2026-11-18T02:01:34.000Z" + ], + [ + "price_lock", + "", + "{\"obligations\":[{\"key\":\"material:\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000}],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":270000},{\"key\":\"material:\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":255000},{\"key\":\"material:\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":9000},{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":16200}],\"pending\":[]}", + 2, + 0, + "2026-11-18T02:01:53.000Z", + "2026-11-19T02:01:28.000Z" + ], + [ + "price_lock", + "", + "{\"obligations\":[{\"key\":\"material:\",\"date\":\"2026-11-18\",\"kind\":\"advance\",\"project\":\"锁价实际购料\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":255000}],\"cash\":[{\"key\":\"material:\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":255000},{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":120000}],\"pending\":[]}", + 2, + 0, + "2026-11-18T02:01:54.000Z", + "2026-11-18T02:02:02.000Z" + ], + [ + "price_lock", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-18\",\"kind\":\"receipt\",\"member\":\"assistant2\",\"amount\":50000},{\"key\":\"material:\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant2\",\"amount\":258000}],\"pending\":[]}", + 1, + 0, + "2026-11-18T02:01:55.000Z", + "2026-11-18T02:01:55.000Z" + ], + [ + "price_lock", + "", + "{\"obligations\":[],\"cash\":[],\"pending\":[]}", + 2, + 0, + "2026-11-18T02:01:56.000Z", + "2026-11-19T02:01:26.000Z" + ], + [ + "after_sale", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"after-sale:\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":950}],\"pending\":[]}", + 2, + 0, + "2026-11-18T02:02:03.000Z", + "2026-11-19T02:01:12.000Z" + ], + [ + "after_sale", + "", + "{\"obligations\":[],\"cash\":[],\"pending\":[]}", + 0, + 0, + "2026-11-18T02:02:06.000Z", + "2026-11-18T02:02:06.000Z" + ], + [ + "reimbursement", + "", + "{\"obligations\":[{\"key\":\"reimbursement::\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照邮寄\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":1500},{\"key\":\"reimbursement::\",\"date\":\"2026-11-18\",\"kind\":\"reimbursement\",\"project\":\"独立支出报销 · 对照包装\",\"fromMember\":\"owner\",\"toMember\":\"assistant\",\"amount\":650}],\"cash\":[{\"key\":\"reimbursement::\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":1500},{\"key\":\"reimbursement::\",\"date\":\"2026-11-18\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":650}],\"pending\":[]}", + 1, + 0, + "2026-11-18T02:02:18.000Z", + "2026-11-18T02:02:24.000Z" + ], + [ + "reimbursement", + "", + "{\"obligations\":[],\"cash\":[],\"pending\":[]}", + 0, + 0, + "2026-11-18T02:02:25.000Z", + "2026-11-18T02:02:25.000Z" + ], + [ + "order", + "", + "{\"obligations\":[{\"key\":\"expense:\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant\",\"toMember\":\"owner\",\"amount\":600}],\"cash\":[{\"key\":\"expense:\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"owner\",\"amount\":600},{\"key\":\"goods:0:labor\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":3000}],\"pending\":[]}", + 1, + 0, + "2026-11-19T02:01:28.000Z", + "2026-11-19T02:01:28.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant2\",\"amount\":432792},{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant2\",\"amount\":-432792},{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant2\",\"amount\":422792},{\"key\":\"goods:0:material\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant2\",\"amount\":351720},{\"key\":\"goods:0:labor\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant2\",\"amount\":6000}],\"pending\":[]}", + 2, + 0, + "2026-11-19T02:01:32.000Z", + "2026-11-20T02:00:10.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":130800},{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":-130800}],\"pending\":[]}", + 2, + 0, + "2026-11-19T02:01:33.000Z", + "2026-11-20T02:00:15.000Z" + ], + [ + "order", + "", + "{\"obligations\":[{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"project\":\"客户款代收\",\"fromMember\":\"assistant\",\"toMember\":\"assistant2\",\"amount\":210000},{\"key\":\"expense:\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"订单实际费用\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":800},{\"key\":\"goods:0:total\",\"date\":\"2026-11-19\",\"kind\":\"advance\",\"project\":\"商品实际垫付\",\"fromMember\":\"assistant2\",\"toMember\":\"assistant\",\"amount\":180000}],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":210000},{\"key\":\"expense:\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":800},{\"key\":\"goods:0:total\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":180000}],\"pending\":[]}", + 3, + 0, + "2026-11-19T02:01:48.000Z", + "2026-11-19T02:01:56.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":210000},{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":-210000}],\"pending\":[]}", + 2, + 0, + "2026-11-19T02:01:57.000Z", + "2026-11-19T02:01:59.000Z" + ], + [ + "material_purchase", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"purchase:\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":460000}],\"pending\":[]}", + 1, + 0, + "2026-11-19T02:02:19.000Z", + "2026-11-19T02:02:19.000Z" + ], + [ + "material_purchase", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"purchase:\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant2\",\"amount\":370000}],\"pending\":[]}", + 1, + 0, + "2026-11-19T02:02:20.000Z", + "2026-11-19T02:02:20.000Z" + ], + [ + "material_purchase", + "", + "{\"obligations\":[],\"cash\":[],\"pending\":[]}", + 3, + 0, + "2026-11-19T02:02:33.000Z", + "2026-11-19T02:02:37.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":220000}],\"pending\":[]}", + 1, + 0, + "2026-11-19T02:02:40.000Z", + "2026-11-19T02:02:40.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-19\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":50000},{\"key\":\"goods:0:total\",\"date\":\"2026-11-19\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":42000}],\"pending\":[]}", + 1, + 0, + "2026-11-19T02:02:51.000Z", + "2026-11-19T02:02:51.000Z" + ], + [ + "material_purchase", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"purchase:\",\"date\":\"2026-11-20\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":900000}],\"pending\":[]}", + 1, + 0, + "2026-11-20T02:00:20.000Z", + "2026-11-20T02:00:20.000Z" + ], + [ + "material_purchase", + "", + "{\"obligations\":[],\"cash\":[],\"pending\":[]}", + 2, + 0, + "2026-11-20T02:00:21.000Z", + "2026-11-20T02:00:27.000Z" + ], + [ + "order", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"payment:\",\"date\":\"2026-11-20\",\"kind\":\"receipt\",\"member\":\"assistant\",\"amount\":200000},{\"key\":\"goods:0:material\",\"date\":\"2026-11-20\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":180000},{\"key\":\"goods:0:labor\",\"date\":\"2026-11-20\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":5000}],\"pending\":[]}", + 1, + 0, + "2026-11-20T02:00:29.000Z", + "2026-11-20T02:00:29.000Z" + ], + [ + "material_purchase", + "", + "{\"obligations\":[],\"cash\":[{\"key\":\"purchase:\",\"date\":\"2026-11-20\",\"kind\":\"outlay\",\"member\":\"assistant\",\"amount\":180000}],\"pending\":[]}", + 1, + 0, + "2026-11-20T02:00:30.000Z", + "2026-11-20T02:00:30.000Z" + ] + ] + }, + "team_fund_transfers": { + "columns": [ + "id", + "date", + "from_member", + "to_member", + "amount", + "note", + "actor_id", + "actor", + "created" + ], + "rows": [ + [ + "", + "2026-11-18", + "assistant", + "owner", + 10000, + "对照转账", + "", + "麦麦", + "2026-11-18T02:02:31.000Z" + ], + [ + "", + "2026-11-19", + "assistant", + "owner", + 10000, + "对照转账二", + "", + "麦麦", + "2026-11-19T02:02:04.000Z" + ] + ] + }, + "team_members": { + "columns": [ + "member", + "label", + "enabled" + ], + "rows": [ + [ + "owner", + "麦麦", + 1 + ], + [ + "assistant", + "娜娜", + 1 + ], + [ + "assistant2", + "小昊", + 1 + ] + ] + }, + "team_reimbursement_details": { + "columns": [ + "reimbursement_id", + "payer" + ], + "rows": [ + [ + "", + "assistant" + ], + [ + "", + "assistant2" + ] + ] + }, + "team_reimbursement_sources": { + "columns": [ + "source_key", + "reimbursement_id", + "item_id" + ], + "rows": [ + [ + "", + "", + "" + ], + [ + "", + "", + "" + ], + [ + "", + "", + "" + ] + ] + }, + "team_user_members": { + "columns": [ + "user_id", + "member", + "password_set" + ], + "rows": [ + [ + "", + "owner", + 1 + ], + [ + "", + "assistant", + 1 + ], + [ + "", + "assistant2", + 1 + ] + ] + }, + "users": { + "columns": [ + "id", + "name", + "role", + "salt", + "hash" + ], + "rows": [ + [ + "", + "麦麦", + "owner", + "", + "" + ], + [ + "", + "助理", + "assistant", + "", + "" + ], + [ + "", + "助理2", + "assistant", + "", + "" + ] + ] + } + } +} diff --git a/新账系统/e2e/baseline/golden/transcript.json b/新账系统/e2e/baseline/golden/transcript.json new file mode 100644 index 0000000..5094c71 --- /dev/null +++ b/新账系统/e2e/baseline/golden/transcript.json @@ -0,0 +1,196910 @@ +[ + { + "seq": 1, + "note": "section", + "name": "setupAndLogin" + }, + { + "seq": 2, + "note": "clock", + "date": "2026-11-18", + "hour": 10 + }, + { + "seq": 3, + "label": "anonymous-session", + "date": "2026-11-18", + "actor": null, + "method": "GET", + "path": "/api/session", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "user": null, + "setup": true, + "mode": "trial", + "today": "2026-11-18", + "brand": { + "storeName": "店铺台账" + }, + "loginOptions": [] + } + }, + { + "seq": 4, + "label": "state-without-login", + "date": "2026-11-18", + "actor": null, + "method": "GET", + "path": "/api/state", + "key": null, + "status": 401, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请先登录" + } + }, + { + "seq": 5, + "label": "setup-short-password", + "date": "2026-11-18", + "actor": null, + "method": "POST", + "path": "/api/setup", + "key": "golden-00001-setup-short-password", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "ownerPassword": "short", + "assistantPassword": "short" + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "两组密码都至少12个字符" + } + }, + { + "seq": 6, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/setup", + "key": "golden-00002-setup", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "ownerPassword": "golden-owner-pass-2026", + "assistantPassword": "golden-assistant-pass-2026", + "assistant2Password": "golden-assistant2-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + } + } + }, + { + "seq": 7, + "label": "setup-closed", + "date": "2026-11-18", + "actor": null, + "method": "POST", + "path": "/api/setup", + "key": "golden-00003-setup-closed", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "ownerPassword": "golden-owner-pass-2026", + "assistantPassword": "golden-assistant-pass-2026" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "初始化入口已关闭" + } + }, + { + "seq": 8, + "label": "owner-session", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/session", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + }, + "setup": false, + "mode": "trial", + "today": "2026-11-18", + "brand": { + "storeName": "麦麦珠宝" + }, + "loginOptions": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ] + } + }, + { + "seq": 9, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/logout", + "key": "golden-00004-logout", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=0", + "body": { + "ok": true + } + }, + { + "seq": 10, + "label": "state-after-logout", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 401, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请先登录" + } + }, + { + "seq": 11, + "label": "login-wrong-password", + "date": "2026-11-18", + "actor": null, + "method": "POST", + "path": "/api/login", + "key": "golden-00005-login-wrong-password", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "麦麦", + "password": "wrong-password-123" + } + }, + "status": 401, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "账号或密码不正确" + } + }, + { + "seq": 12, + "label": "demo-login-closed-in-trial", + "date": "2026-11-18", + "actor": null, + "method": "POST", + "path": "/api/demo-login", + "key": "golden-00006-demo-login-closed-in-trial", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "role": "owner" + } + }, + "status": 401, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请先登录" + } + }, + { + "seq": 13, + "label": "login-owner", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/login", + "key": "golden-00007-login-owner", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "麦麦", + "password": "golden-owner-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + } + } + }, + { + "seq": 14, + "label": "login-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/login", + "key": "golden-00008-login-assistant", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "助理1", + "password": "golden-assistant-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理", + "role": "assistant", + "member": "assistant", + "operatorName": "娜娜", + "label": "娜娜" + } + } + }, + { + "seq": 15, + "label": "login-assistant2", + "date": "2026-11-18", + "actor": "assistant2", + "method": "POST", + "path": "/api/login", + "key": "golden-00009-login-assistant2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "助理2", + "password": "golden-assistant2-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理2", + "role": "assistant", + "member": "assistant2", + "operatorName": "小昊", + "label": "小昊" + } + } + }, + { + "seq": 16, + "label": "login-by-display-name", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/login", + "key": "golden-00010-login-by-display-name", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "娜娜", + "password": "golden-assistant-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理", + "role": "assistant", + "member": "assistant", + "operatorName": "娜娜", + "label": "娜娜" + } + } + }, + { + "seq": 17, + "label": "login-by-member", + "date": "2026-11-18", + "actor": "assistant2", + "method": "POST", + "path": "/api/login", + "key": "golden-00011-login-by-member", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "member": "assistant2", + "password": "golden-assistant2-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理2", + "role": "assistant", + "member": "assistant2", + "operatorName": "小昊", + "label": "小昊" + } + } + }, + { + "seq": 18, + "label": "initial-state-owner", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "today": "2026-11-18", + "mode": "trial", + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + }, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "shopSettings": { + "version": 1, + "revision": 0, + "storeName": "麦麦珠宝", + "receiptSubtitle": "珠宝销售单", + "contact": "", + "members": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2" + } + ], + "creditCardRatePermille": 6, + "profitSharePercent": 30, + "profitShareEffectiveMonth": "2000-01", + "profitShareHistory": [ + { + "month": "2000-01", + "percent": 30 + } + ], + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "6", + "packagingPayer": "owner" + } + }, + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇" + ], + "pocketCatalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + } + ], + "accounts": [ + "助理微信", + "助理支付宝", + "助理现金", + "麦麦微信", + "麦麦支付宝", + "麦麦现金", + "麦麦信用卡", + "助理2微信", + "助理2支付宝", + "助理2现金" + ], + "inventory": [ + { + "pocket": "现货", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + } + ], + "orders": [], + "priceLockCounts": { + "pending": 0, + "delivered": 0, + "cancelled": 0 + }, + "materialPoolSummary": { + "totalMg": 0, + "totalAmount": 0, + "usedMg": 0, + "remainingMg": 0, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 0, + "pendingCount": 0, + "purchaseCount": 0 + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "assistantInventoryCredit": 0, + "knownAssistantInventoryCredit": 0, + "transferred": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "materialPoolAllocation": { + "version": 1, + "targetVersion": 2, + "migrationRequired": true, + "usageCount": 0, + "activeUsageCount": 0 + }, + "sync": { + "enabled": false, + "busy": false, + "error": null, + "pending": 0, + "failed": 0 + }, + "printing": { + "store": "麦麦珠宝", + "subtitle": "珠宝销售单", + "contact": "", + "width": 241, + "height": 140, + "offsetX": 0, + "offsetY": 0, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + }, + "backup": { + "last": null, + "error": null + }, + "movements": [] + } + }, + { + "seq": 19, + "label": "initial-state-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "today": "2026-11-18", + "mode": "trial", + "user": { + "id": "", + "name": "助理", + "role": "assistant", + "member": "assistant", + "operatorName": "娜娜", + "label": "娜娜" + }, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "shopSettings": { + "version": 1, + "revision": 0, + "storeName": "麦麦珠宝", + "receiptSubtitle": "珠宝销售单", + "contact": "", + "members": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ], + "creditCardRatePermille": 6, + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "6", + "packagingPayer": "owner" + } + }, + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇" + ], + "pocketCatalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + } + ], + "accounts": [ + "助理微信", + "助理支付宝", + "助理现金", + "麦麦微信", + "麦麦支付宝", + "麦麦现金", + "麦麦信用卡", + "助理2微信", + "助理2支付宝", + "助理2现金" + ], + "inventory": [ + { + "pocket": "现货", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + } + ], + "orders": [], + "priceLockCounts": { + "pending": 0, + "delivered": 0, + "cancelled": 0 + }, + "materialPoolSummary": { + "totalMg": 0, + "totalAmount": 0, + "usedMg": 0, + "remainingMg": 0, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 0, + "pendingCount": 0, + "purchaseCount": 0 + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": null, + "knownSettlementDue": null, + "pendingCount": 0, + "pools": [] + }, + "materialPoolAllocation": { + "version": 1, + "targetVersion": 2, + "migrationRequired": true, + "usageCount": 0, + "activeUsageCount": 0 + }, + "sync": { + "enabled": false + }, + "printing": { + "store": "麦麦珠宝", + "subtitle": "珠宝销售单", + "contact": "", + "width": 241, + "height": 140, + "offsetX": 0, + "offsetY": 0, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + }, + "backup": null, + "movements": [] + } + }, + { + "seq": 20, + "label": "initial-state-assistant2", + "date": "2026-11-18", + "actor": "assistant2", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "today": "2026-11-18", + "mode": "trial", + "user": { + "id": "", + "name": "助理2", + "role": "assistant", + "member": "assistant2", + "operatorName": "小昊", + "label": "小昊" + }, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "shopSettings": { + "version": 1, + "revision": 0, + "storeName": "麦麦珠宝", + "receiptSubtitle": "珠宝销售单", + "contact": "", + "members": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ], + "creditCardRatePermille": 6, + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "6", + "packagingPayer": "owner" + } + }, + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇" + ], + "pocketCatalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + } + ], + "accounts": [ + "助理微信", + "助理支付宝", + "助理现金", + "麦麦微信", + "麦麦支付宝", + "麦麦现金", + "麦麦信用卡", + "助理2微信", + "助理2支付宝", + "助理2现金" + ], + "inventory": [ + { + "pocket": "现货", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + } + ], + "orders": [], + "priceLockCounts": { + "pending": 0, + "delivered": 0, + "cancelled": 0 + }, + "materialPoolSummary": { + "totalMg": 0, + "totalAmount": 0, + "usedMg": 0, + "remainingMg": 0, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 0, + "pendingCount": 0, + "purchaseCount": 0 + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": null, + "knownSettlementDue": null, + "pendingCount": 0, + "pools": [] + }, + "materialPoolAllocation": { + "version": 1, + "targetVersion": 2, + "migrationRequired": true, + "usageCount": 0, + "activeUsageCount": 0 + }, + "sync": { + "enabled": false + }, + "printing": { + "store": "麦麦珠宝", + "subtitle": "珠宝销售单", + "contact": "", + "width": 241, + "height": 140, + "offsetX": 0, + "offsetY": 0, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + }, + "backup": null, + "movements": [] + } + }, + { + "seq": 21, + "label": "anonymous-session-after-setup", + "date": "2026-11-18", + "actor": null, + "method": "GET", + "path": "/api/session", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "user": null, + "setup": false, + "mode": "trial", + "today": "2026-11-18", + "brand": { + "storeName": "麦麦珠宝" + }, + "loginOptions": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ] + } + }, + { + "seq": 22, + "note": "section", + "name": "shopSettingsAndPrinting" + }, + { + "seq": 23, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/shop-settings", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "version": 1, + "revision": 0, + "storeName": "麦麦珠宝", + "receiptSubtitle": "珠宝销售单", + "contact": "", + "members": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2" + } + ], + "creditCardRatePermille": 6, + "profitSharePercent": 30, + "profitShareEffectiveMonth": "2000-01", + "profitShareHistory": [ + { + "month": "2000-01", + "percent": 30 + } + ], + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "6", + "packagingPayer": "owner" + } + } + }, + { + "seq": 24, + "label": "assistant-shop-settings", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/shop-settings", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "version": 1, + "revision": 0, + "storeName": "麦麦珠宝", + "receiptSubtitle": "珠宝销售单", + "contact": "", + "members": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ], + "creditCardRatePermille": 6, + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "6", + "packagingPayer": "owner" + } + } + }, + { + "seq": 25, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/shop-settings", + "key": "golden-00012-shop-settings", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 0, + "storeName": "越权店名" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 26, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/shop-settings", + "key": "golden-00013-shop-settings", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 0, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "creditCardRatePermille": 6, + "feeDefaults": { + "shipping": "8", + "certificate": "4", + "packaging": "3", + "packagingPayer": "owner" + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "ok": true, + "shopSettings": { + "version": 1, + "revision": 1, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "members": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "" + } + ], + "creditCardRatePermille": 6, + "profitSharePercent": 30, + "profitShareEffectiveMonth": "2000-01", + "profitShareHistory": [ + { + "month": "2000-01", + "percent": 30 + } + ], + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "8", + "packagingPayer": "owner" + } + }, + "printing": { + "store": "黄金对照珠宝", + "subtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "width": 241, + "height": 140, + "offsetX": 0, + "offsetY": 0, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + } + } + }, + { + "seq": 27, + "label": "shop-settings-stale", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/shop-settings", + "key": "golden-00014-shop-settings-stale", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 0, + "storeName": "过期版本" + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "店铺配置已有变动,请刷新后重新核对" + } + }, + { + "seq": 28, + "label": "shop-settings-invalid", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/shop-settings", + "key": "golden-00015-shop-settings-invalid", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "creditCardRatePermille": -1 + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "信用卡手续费率须为0~1000的整数" + } + }, + { + "seq": 29, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/printing", + "key": "golden-00016-printing", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "offsetX": 2, + "offsetY": 3 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "ok": true, + "shopSettings": { + "version": 1, + "revision": 1, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "members": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "" + } + ], + "creditCardRatePermille": 6, + "profitSharePercent": 30, + "profitShareEffectiveMonth": "2000-01", + "profitShareHistory": [ + { + "month": "2000-01", + "percent": 30 + } + ], + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "8", + "packagingPayer": "owner" + } + }, + "printing": { + "store": "黄金对照珠宝", + "subtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "width": 241, + "height": 140, + "offsetX": 2, + "offsetY": 3, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + } + } + }, + { + "seq": 30, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/printing", + "key": "golden-00017-printing", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "offsetX": 9 + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 31, + "label": "shop-settings-after", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/shop-settings", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "version": 1, + "revision": 1, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "members": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "" + } + ], + "creditCardRatePermille": 6, + "profitSharePercent": 30, + "profitShareEffectiveMonth": "2000-01", + "profitShareHistory": [ + { + "month": "2000-01", + "percent": 30 + } + ], + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "8", + "packagingPayer": "owner" + } + } + }, + { + "seq": 32, + "note": "section", + "name": "pockets" + }, + { + "seq": 33, + "label": "pockets-owner", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/pockets", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "catalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + } + ], + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇" + ], + "canManage": true + } + }, + { + "seq": 34, + "label": "pockets-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/pockets", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "catalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + } + ], + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇" + ], + "canManage": false + } + }, + { + "seq": 35, + "label": "pockets-assistant2", + "date": "2026-11-18", + "actor": "assistant2", + "method": "GET", + "path": "/api/pockets", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "catalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + } + ], + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇" + ], + "canManage": false + } + }, + { + "seq": 36, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/pockets", + "key": "golden-00018-pockets", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "展柜A" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "pocket": { + "key": "pocket_", + "name": "展柜A", + "active": true, + "self": true, + "builtin": false, + "revision": 1, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:32.000Z", + "countUnit": null, + "countSince": null + }, + "catalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "pocket_", + "name": "展柜A", + "active": true, + "self": true, + "builtin": false, + "revision": 1, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:32.000Z", + "countUnit": null, + "countSince": null + } + ], + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ] + } + }, + { + "seq": 37, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/pockets", + "key": "golden-00019-pockets", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "越权货盘" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 38, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/pockets/pocket_/update", + "key": "golden-00020-update", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "name": "展柜A(主)" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "pocket": { + "key": "pocket_", + "name": "展柜A(主)", + "active": true, + "self": true, + "builtin": false, + "revision": 2, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:34.000Z", + "countUnit": null, + "countSince": null + }, + "catalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "pocket_", + "name": "展柜A(主)", + "active": true, + "self": true, + "builtin": false, + "revision": 2, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:34.000Z", + "countUnit": null, + "countSince": null + } + ], + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ] + } + }, + { + "seq": 39, + "label": "pocket-stale", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/pockets/pocket_/update", + "key": "golden-00021-pocket-stale", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "name": "过期改名" + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "货盘已被更新,请刷新后重新核对" + } + }, + { + "seq": 40, + "note": "section", + "name": "employeesAndPasswords" + }, + { + "seq": 41, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/employees", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "revision": 1, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + ] + } + }, + { + "seq": 42, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/employees", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 43, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/employees", + "key": "golden-00022-employees", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "label": "临时店员", + "loginName": "temp-clerk", + "password": "golden-staff-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "ok": true, + "revision": 2, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "staff_", + "label": "临时店员", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + ], + "employee": { + "member": "staff_", + "label": "临时店员", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + } + }, + { + "seq": 44, + "label": "login-staff", + "date": "2026-11-18", + "actor": "staff", + "method": "POST", + "path": "/api/login", + "key": "golden-00023-login-staff", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "temp-clerk", + "password": "golden-staff-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "temp-clerk", + "role": "assistant", + "member": "staff_", + "operatorName": "临时店员", + "label": "临时店员" + } + } + }, + { + "seq": 45, + "label": "staff-state", + "date": "2026-11-18", + "actor": "staff", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "today": "2026-11-18", + "mode": "trial", + "user": { + "id": "", + "name": "temp-clerk", + "role": "assistant", + "member": "staff_", + "operatorName": "临时店员", + "label": "临时店员" + }, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + }, + { + "member": "staff_", + "label": "临时店员", + "enabled": true + } + ], + "shopSettings": { + "version": 1, + "revision": 2, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "members": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + }, + { + "member": "staff_", + "label": "临时店员" + } + ], + "creditCardRatePermille": 6, + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "8", + "packagingPayer": "owner" + } + }, + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "pocketCatalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "pocket_", + "name": "展柜A(主)", + "active": true, + "self": true, + "builtin": false, + "revision": 2, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:34.000Z", + "countUnit": null, + "countSince": null + } + ], + "accounts": [ + "助理微信", + "助理支付宝", + "助理现金", + "麦麦微信", + "麦麦支付宝", + "麦麦现金", + "麦麦信用卡", + "助理2微信", + "助理2支付宝", + "助理2现金", + "staff_微信", + "staff_支付宝", + "staff_现金" + ], + "inventory": [ + { + "pocket": "现货", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 0, + "reserved": 0, + "available": 0 + } + ], + "orders": [], + "priceLockCounts": { + "pending": 0, + "delivered": 0, + "cancelled": 0 + }, + "materialPoolSummary": { + "totalMg": 0, + "totalAmount": 0, + "usedMg": 0, + "remainingMg": 0, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 0, + "pendingCount": 0, + "purchaseCount": 0 + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": null, + "knownSettlementDue": null, + "pendingCount": 0, + "pools": [] + }, + "materialPoolAllocation": { + "version": 1, + "targetVersion": 2, + "migrationRequired": true, + "usageCount": 0, + "activeUsageCount": 0 + }, + "sync": { + "enabled": false + }, + "printing": { + "store": "黄金对照珠宝", + "subtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "width": 241, + "height": 140, + "offsetX": 2, + "offsetY": 3, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + }, + "backup": null, + "movements": [] + } + }, + { + "seq": 46, + "label": "employees-after-create", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/employees", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "revision": 2, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "staff_", + "label": "临时店员", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + ] + } + }, + { + "seq": 47, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/employees/staff_/update", + "key": "golden-00024-update", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 2, + "label": "临时店员甲" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "ok": true, + "revision": 3, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "staff_", + "label": "临时店员甲", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + ], + "employee": { + "member": "staff_", + "label": "临时店员甲", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + } + }, + { + "seq": 48, + "label": "employees-after-update", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/employees", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "revision": 3, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "staff_", + "label": "临时店员甲", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + ] + } + }, + { + "seq": 49, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/employees/staff_/deactivate", + "key": "golden-00025-deactivate", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 3, + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "ok": true, + "revision": 4, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "staff_", + "label": "临时店员甲", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": false, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": false, + "canReactivate": true, + "deleteReason": "" + } + ], + "employee": { + "member": "staff_", + "label": "临时店员甲", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": false, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": false, + "canReactivate": true, + "deleteReason": "" + } + } + }, + { + "seq": 50, + "label": "staff-after-deactivate", + "date": "2026-11-18", + "actor": "staff", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 401, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请先登录" + } + }, + { + "seq": 51, + "label": "employees-after-deactivate", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/employees", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "revision": 4, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "staff_", + "label": "临时店员甲", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": false, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": false, + "canReactivate": true, + "deleteReason": "" + } + ] + } + }, + { + "seq": 52, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/employees/staff_/reactivate", + "key": "golden-00026-reactivate", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 4, + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "ok": true, + "revision": 5, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "staff_", + "label": "临时店员甲", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + ], + "employee": { + "member": "staff_", + "label": "临时店员甲", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + } + }, + { + "seq": 53, + "label": "employees-after-reactivate", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/employees", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "revision": 5, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "staff_", + "label": "临时店员甲", + "loginName": "temp-clerk", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + ] + } + }, + { + "seq": 54, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/employees/staff_/delete", + "key": "golden-00027-delete", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 5, + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "ok": true, + "revision": 6, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + ] + } + }, + { + "seq": 55, + "label": "employees-after-delete", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/employees", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "revision": 6, + "employees": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": false, + "canDeactivate": false, + "canReactivate": false, + "deleteReason": "店主账号不能删除或停用" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant", + "hasBusinessData": false, + "businessUsage": [], + "canDelete": true, + "canDeactivate": true, + "canReactivate": false, + "deleteReason": "" + } + ] + } + }, + { + "seq": 56, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/team-members", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "members": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "owner" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "", + "userId": "", + "passwordSet": true, + "enabled": true, + "role": "assistant" + } + ] + } + }, + { + "seq": 57, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/team-members/assistant2/password", + "key": "golden-00028-password", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "password": "golden-assistant2-new-2026", + "verified": true + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 58, + "label": "member-password-short", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/team-members/assistant2/password", + "key": "golden-00029-member-password-short", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "password": "short", + "verified": true + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "密码须为12~500个字符" + } + }, + { + "seq": 59, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/team-members/assistant2/password", + "key": "golden-00030-password", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "password": "golden-assistant2-new-2026", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "ok": true, + "member": "assistant2" + } + }, + { + "seq": 60, + "label": "login-assistant2-new-password", + "date": "2026-11-18", + "actor": "assistant2", + "method": "POST", + "path": "/api/login", + "key": "golden-00031-login-assistant2-new-password", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "小昊", + "password": "golden-assistant2-new-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理2", + "role": "assistant", + "member": "assistant2", + "operatorName": "小昊", + "label": "小昊" + } + } + }, + { + "seq": 61, + "label": "password-wrong-current", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/password", + "key": "golden-00032-password-wrong-current", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "current": "wrong-current-pass", + "password": "golden-assistant-new-pass" + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "原密码不正确" + } + }, + { + "seq": 62, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/password", + "key": "golden-00033-password", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "current": "golden-assistant-pass-2026", + "password": "golden-assistant-new-pass" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "ok": true + } + }, + { + "seq": 63, + "label": "state-after-own-password-change", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 401, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请先登录" + } + }, + { + "seq": 64, + "label": "login-assistant-new-password", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/login", + "key": "golden-00034-login-assistant-new-password", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "娜娜", + "password": "golden-assistant-new-pass" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理", + "role": "assistant", + "member": "assistant", + "operatorName": "娜娜", + "label": "娜娜" + } + } + }, + { + "seq": 65, + "note": "section", + "name": "openingStock" + }, + { + "seq": 66, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/stock", + "key": "golden-00035-stock", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "kind": "opening", + "pocket": "现货", + "grams": "100", + "note": "黄金对照起始库存" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "group": "" + } + }, + { + "seq": 67, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/stock", + "key": "golden-00036-stock", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "kind": "opening", + "pocket": "金料", + "grams": "50", + "note": "黄金对照起始金料" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "group": "" + } + }, + { + "seq": 68, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/stock", + "key": "golden-00037-stock", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "kind": "opening", + "pocket": "pocket_", + "grams": "20", + "note": "展柜起始" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "group": "" + } + }, + { + "seq": 69, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/stock", + "key": "golden-00038-stock", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "kind": "transfer", + "pocket": "现货", + "to": "金料", + "grams": "5", + "note": "调拨" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "group": "" + } + }, + { + "seq": 70, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/stock", + "key": "golden-00039-stock", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "kind": "increase", + "pocket": "现货", + "grams": "2.5", + "note": "娜娜手动入库" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "group": "" + } + }, + { + "seq": 71, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/stock", + "key": "golden-00040-stock", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "kind": "decrease", + "pocket": "现货", + "grams": "0.5", + "note": "娜娜手动出库" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "group": "" + } + }, + { + "seq": 72, + "label": "assistant-opening-denied", + "date": "2026-11-18", + "actor": "assistant2", + "method": "POST", + "path": "/api/stock", + "key": "golden-00041-assistant-opening-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "kind": "opening", + "pocket": "现货", + "grams": "1" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 73, + "label": "inventory-d1", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/inventory", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "yesterdayDate": "2026-11-17", + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "current": [ + { + "pocket": "现货", + "mg": 97000, + "reserved": 0, + "available": 97000 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 20000, + "reserved": 0, + "available": 20000 + } + ], + "yesterday": null, + "todaySnapshot": null, + "revision": "90693bf9d44c02f9fd1db08d68722efe4b5a850cdb12814e2aad224f0779727a", + "legacyInventory": [], + "canReview": true, + "automaticSnapshot": { + "enabled": false, + "time": "23:50", + "timeZone": "Asia/Shanghai", + "date": "2026-11-18", + "status": "stopped", + "lastSuccess": null, + "lastError": null, + "nextAttemptAt": null + } + } + }, + { + "seq": 74, + "label": "movements-d1", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/movements", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "pocket": "", + "pockets": [ + { + "pocket": "现货", + "active": true + }, + { + "pocket": "金料", + "active": true + }, + { + "pocket": "找金", + "active": true + }, + { + "pocket": "回收旧料", + "active": true + }, + { + "pocket": "君宝汇", + "active": true + }, + { + "pocket": "pocket_", + "active": true + } + ], + "kind": "all", + "hideDeleted": false, + "from": "", + "to": "", + "total": 7, + "shown": 7, + "limit": 100, + "pageSize": 100, + "page": 1, + "totalPages": 1, + "hasPrev": false, + "hasNext": false, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "kind": "transfer", + "note": "调拨", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "transfer", + "note": "调拨", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "kind": "opening", + "note": "展柜起始", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "kind": "opening", + "note": "黄金对照起始金料", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "kind": "opening", + "note": "黄金对照起始库存", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 75, + "note": "section", + "name": "materialPurchasesD1" + }, + { + "seq": 76, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/material-purchases", + "key": "golden-00042-material-purchases", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "grams": "10", + "total": "9000", + "payer": "assistant", + "allocations": [ + { + "member": "assistant", + "amount": "9000" + } + ], + "note": "娜娜购料" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "poolId": "2026-11-18", + "pool": { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 10000, + "totalAmount": 900000, + "averageRate": 90000, + "usedMg": 0, + "remainingMg": 10000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 900000, + "status": "unused", + "revision": "0e321cf14889f6a24b63cbba1ec96623b1705edc520a42d559c605f61f9e560b", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z", + "member": "assistant", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + } + ], + "usages": [], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 0, + "consumed": 0, + "remaining": 0 + }, + "assistant": { + "purchased": 900000, + "consumed": 0, + "remaining": 900000 + } + }, + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "legacyReadOnly": true + } + } + }, + { + "seq": 77, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/material-purchases", + "key": "golden-00043-material-purchases", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "grams": "20", + "total": "18200", + "payer": "owner", + "note": "麦麦购料" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "poolId": "2026-11-18", + "pool": { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 30000, + "totalAmount": 2720000, + "averageRate": 90667, + "usedMg": 0, + "remainingMg": 30000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 2720000, + "status": "unused", + "revision": "9655756a9b9e645bb4674d581527be550dda252e21d90d2f298bce50e094c878", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ], + "usages": [], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 900000, + "consumed": 0, + "remaining": 900000 + } + }, + "settlement": { + "assistantInventoryCredit": 900000, + "transferred": 0, + "settlementDue": -900000, + "pending": false + }, + "legacyReadOnly": true + } + } + }, + { + "seq": 78, + "label": "material-pools-d1", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/material-pools", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-18", + "rows": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 30000, + "totalAmount": 2720000, + "averageRate": 90667, + "usedMg": 0, + "remainingMg": 30000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 2720000, + "status": "unused", + "revision": "9655756a9b9e645bb4674d581527be550dda252e21d90d2f298bce50e094c878", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ], + "usages": [], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 900000, + "consumed": 0, + "remaining": 900000 + } + }, + "settlement": { + "assistantInventoryCredit": 900000, + "transferred": 0, + "settlementDue": -900000, + "pending": false + }, + "legacyReadOnly": true + } + ], + "rolling": { + "enabled": false, + "cutover": null, + "canEnable": true, + "reason": "" + }, + "summary": { + "totalMg": 30000, + "totalAmount": 2720000, + "usedMg": 0, + "remainingMg": 30000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 2720000, + "pendingCount": 0, + "purchaseCount": 2 + }, + "settlement": { + "legacyReadOnly": true, + "assistantInventoryCredit": 900000, + "knownAssistantInventoryCredit": 900000, + "transferred": 0, + "settlementDue": -900000, + "knownSettlementDue": -900000, + "pendingCount": 0, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "assistantInventoryCredit": 900000, + "transferred": 0, + "settlementDue": -900000, + "pending": false + } + ] + } + } + }, + { + "seq": 79, + "label": "material-pool-detail-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/material-pools/2026-11-18", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 30000, + "totalAmount": 2720000, + "averageRate": 90667, + "usedMg": 0, + "remainingMg": 30000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 2720000, + "status": "unused", + "revision": "9655756a9b9e645bb4674d581527be550dda252e21d90d2f298bce50e094c878", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z", + "member": "assistant", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "shared": true, + "canEdit": false, + "canRequestChange": false + } + ], + "usages": [], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 900000, + "consumed": 0, + "remaining": 900000 + } + }, + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "eligibleMember": "assistant", + "eligibleRemainingMg": 30000, + "eligibleRemainingAmount": 2720000, + "eligibleAverageRate": 90667, + "eligibleStatus": "ready", + "legacyReadOnly": true + } + }, + { + "seq": 80, + "label": "purchase-detail", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/material-purchases/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "purchase": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z" + }, + "pool": { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 30000, + "totalAmount": 2720000, + "averageRate": 90667, + "usedMg": 0, + "remainingMg": 30000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 2720000, + "status": "unused", + "revision": "9655756a9b9e645bb4674d581527be550dda252e21d90d2f298bce50e094c878", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ], + "usages": [], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 900000, + "consumed": 0, + "remaining": 900000 + } + }, + "settlement": { + "assistantInventoryCredit": 900000, + "transferred": 0, + "settlementDue": -900000, + "pending": false + }, + "legacyReadOnly": true + }, + "history": [ + { + "action": "登记实际购料", + "actor": "助理", + "detail": { + "before": null, + "after": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z" + }, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:09.000Z" + } + ] + } + }, + { + "seq": 81, + "label": "material-pool-quote", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/material-pools/quote", + "key": null, + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "member": "assistant", + "date": "2026-11-18", + "entries": [ + { + "lineIndex": 0, + "poolId": "2026-11-18", + "mg": 3000 + } + ] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "member": "assistant", + "entries": [ + { + "lineIndex": 0, + "poolId": "2026-11-18", + "mg": 3000, + "amount": 272000, + "status": "allocated", + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 3000, + "amount": 272000, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "batches": [ + { + "purchaseId": "", + "mg": 3000 + } + ], + "basisAmount": 2720000, + "basisMg": 30000, + "prefixMg": 0, + "prefixAmount": 0, + "averageRate": 90667, + "poolId": "2026-11-18" + } + ] + } + ], + "pools": [ + { + "poolId": "2026-11-18", + "revision": "9655756a9b9e645bb4674d581527be550dda252e21d90d2f298bce50e094c878", + "publicRemainingMg": 27000, + "publicRemainingAmount": 2448000, + "personalRemainingMg": 0, + "personalRemainingAmount": 0, + "eligibleRemainingMg": 27000, + "before": { + "publicRemainingMg": 30000, + "publicRemainingAmount": 2720000, + "personalRemainingMg": 0, + "personalRemainingAmount": 0, + "eligibleRemainingMg": 30000 + } + } + ] + } + }, + { + "seq": 82, + "note": "section", + "name": "ordersD1" + }, + { + "seq": 83, + "label": "paper-number", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/paper-number", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "number": "20261118001" + } + }, + { + "seq": 84, + "label": "paper-number-date", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/paper-number?date=2026-11-18", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "number": "20261118001" + } + }, + { + "seq": 85, + "label": "issue-per-gram", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00044-issue-per-gram", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照客户甲", + "internal_note": "#复购 内部备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "yuan", + "discount": "0", + "lines": [ + { + "name": "足金999", + "unit": "g", + "quantity": "3.250", + "pocket": "现货", + "payer": "assistant", + "pricingMode": "auto", + "goldPrice": "950", + "laborRate": "30", + "laborMode": "gram", + "pieces": "1", + "charges": [ + { + "name": "刻字", + "amount": "20" + }, + { + "name": "包装", + "amount": "5.5" + } + ], + "costParts": { + "material": "", + "labor": "40", + "accessories": "2", + "other": "0" + }, + "costMaterial": { + "mode": "gram", + "rate": "880" + }, + "costLabor": { + "mode": "total" + }, + "costPayers": { + "material": "owner", + "labor": "assistant" + } + } + ], + "fee_items": [ + { + "key": "shipping", + "note": "快递", + "amount": "12", + "payer": "assistant" + } + ], + "note": "客户单备注" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 86, + "label": "issue-per-piece", + "date": "2026-11-18", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00045-issue-per-piece", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照客户乙", + "internal_note": "按件内部备注", + "salesperson": "小昊", + "payment_account": "助理2支付宝", + "rounding_mode": "cent", + "discount": "15.37", + "lines": [ + { + "name": "足金999", + "unit": "g", + "quantity": "2", + "pocket": "现货", + "payer": "assistant2", + "pricingMode": "auto", + "goldPrice": "955.55", + "laborRate": "88", + "laborMode": "piece", + "pieces": "2", + "cost": "1800" + }, + { + "name": "纯银925", + "unit": "件", + "quantity": "3", + "pocket": "", + "payer": "assistant2", + "sale": "99.9", + "cost": "30" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 87, + "label": "issue-fixed-credit-card", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00046-issue-fixed-credit-card", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "member": "assistant", + "customer": "对照客户丙", + "internal_note": "一口价备注", + "salesperson": "麦麦", + "payment_account": "麦麦信用卡", + "credit_card_fee_payer": "owner", + "rounding_mode": "yuan", + "discount": "3", + "lines": [ + { + "name": "金镶玉吊坠", + "unit": "件", + "quantity": "1", + "pocket": "", + "payer": "owner", + "sale": "2888.4", + "cost": "1500", + "priceNote": "一口价" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 88, + "label": "issue-material-pool", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00047-issue-material-pool", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照客户丁", + "internal_note": "料池单备注", + "salesperson": "娜娜", + "payment_account": "助理现金", + "rounding_mode": "cent", + "discount": "0", + "lines": [ + { + "name": "足金999", + "unit": "g", + "quantity": "3", + "pocket": "", + "payer": "assistant", + "pricingMode": "manual", + "sale": "3300", + "costParts": { + "material": "", + "labor": "0", + "accessories": "0", + "other": "0" + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + } + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 89, + "label": "save-draft", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/orders", + "key": "golden-00048-save-draft", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照草稿客户", + "internal_note": "草稿单备注", + "salesperson": "麦麦", + "payment_account": "麦麦现金", + "lines": [ + { + "name": "足金手镯", + "unit": "g", + "quantity": "10", + "pocket": "pocket_", + "payer": "owner", + "sale": "9800", + "cost": "9000" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 90, + "label": "draft-detail", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118005", + "status": "draft", + "lines": [ + { + "name": "足金手镯", + "code": "", + "unit": "g", + "quantity": 10000, + "pocket": "pocket_", + "payer": "owner", + "cost": 900000, + "sale": 980000, + "baseSale": 980000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 980000, + "revision": 1, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:21.000Z", + "delivered_date": null, + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "草稿单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "owner", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 980000, + "rounding_adjustment": 0, + "goodsCost": 900000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 900000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 80000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:21.000Z" + } + ], + "sync": { + "revision": 1, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:21.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 91, + "label": "issue-from-draft", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00049-issue-from-draft", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照草稿客户", + "internal_note": "草稿单备注", + "salesperson": "麦麦", + "payment_account": "麦麦现金", + "lines": [ + { + "name": "足金手镯", + "unit": "g", + "quantity": "10", + "pocket": "pocket_", + "payer": "owner", + "sale": "9800", + "cost": "9000" + } + ], + "fee_items": [], + "id": "", + "revision": 1 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 92, + "label": "issue-to-cancel", + "date": "2026-11-18", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00050-issue-to-cancel", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照取消客户", + "internal_note": "取消单备注", + "salesperson": "小昊", + "payment_account": "助理2现金", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金戒指", + "unit": "g", + "quantity": "1.5", + "pocket": "现货", + "payer": "assistant2", + "sale": "1500", + "cost": "1300" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 93, + "label": "issue-for-after-sale", + "date": "2026-11-18", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00051-issue-for-after-sale", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照售后订单客户", + "internal_note": "售后单备注", + "salesperson": "小昊", + "payment_account": "助理2微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金手链", + "unit": "g", + "quantity": "5", + "pocket": "现货", + "payer": "assistant2", + "sale": "5000", + "costParts": { + "material": "4400", + "labor": "100", + "accessories": "0", + "other": "0" + } + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 94, + "label": "issue-to-reject", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00052-issue-to-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照驳回客户", + "internal_note": "驳回单备注", + "salesperson": "娜娜", + "payment_account": "助理支付宝", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金耳钉", + "unit": "g", + "quantity": "0.8", + "pocket": "现货", + "payer": "assistant", + "sale": "820", + "cost": "700" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 95, + "label": "save-draft-steps", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/orders", + "key": "golden-00053-save-draft-steps", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照分步客户", + "internal_note": "分步单备注", + "salesperson": "麦麦", + "payment_account": "麦麦支付宝", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金项链", + "unit": "g", + "quantity": "4", + "pocket": "现货", + "payer": "owner", + "sale": "4000", + "cost": "3500" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 96, + "label": "steps-draft", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照分步客户", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118009", + "status": "draft", + "lines": [ + { + "name": "足金项链", + "code": "", + "unit": "g", + "quantity": 4000, + "pocket": "现货", + "payer": "owner", + "cost": 350000, + "sale": 400000, + "baseSale": 400000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 400000, + "revision": 1, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:27.000Z", + "delivered_date": null, + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "分步单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "owner", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 400000, + "rounding_adjustment": 0, + "goodsCost": 350000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 350000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:27.000Z" + } + ], + "sync": { + "revision": 1, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:27.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 97, + "label": "steps-confirm", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/orders//confirm", + "key": "golden-00054-steps-confirm", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 98, + "label": "steps-confirmed", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照分步客户", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118009", + "status": "confirmed", + "lines": [ + { + "name": "足金项链", + "code": "", + "unit": "g", + "quantity": 4000, + "pocket": "现货", + "payer": "owner", + "cost": 350000, + "sale": 400000, + "baseSale": 400000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 400000, + "revision": 2, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:27.000Z", + "delivered_date": null, + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "分步单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "owner", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 400000, + "rounding_adjustment": 0, + "goodsCost": 350000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 350000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "confirm", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:29.000Z" + }, + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:27.000Z" + } + ], + "sync": { + "revision": 2, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:29.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 99, + "label": "steps-receipt-deposit", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/orders//receipt", + "key": "golden-00055-steps-receipt-deposit", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "amount": "1000", + "account": "麦麦支付宝", + "verified": true, + "reference": "定金" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 100, + "label": "steps-receipt-too-much", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/orders//receipt", + "key": "golden-00056-steps-receipt-too-much", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "amount": "99999", + "account": "麦麦支付宝", + "verified": true + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "金额超过本单待收/待退款余额" + } + }, + { + "seq": 101, + "label": "steps-receipt-balance", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/orders//receipt", + "key": "golden-00057-steps-receipt-balance", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "amount": "3000", + "account": "麦麦信用卡", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "尾款" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 102, + "label": "steps-complete", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/orders//complete", + "key": "golden-00058-steps-complete", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 103, + "label": "steps-delivered", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照分步客户", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118009", + "status": "delivered", + "lines": [ + { + "name": "足金项链", + "code": "", + "unit": "g", + "quantity": 4000, + "pocket": "现货", + "payer": "owner", + "cost": 350000, + "sale": 400000, + "baseSale": 400000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 400000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:27.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦支付宝", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1800, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "分步单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "owner", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "麦麦支付宝", + "reference": "定金", + "actor": "麦麦", + "created": "2026-11-18T02:01:31.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 300000, + "account": "麦麦信用卡", + "reference": "尾款", + "actor": "麦麦", + "created": "2026-11-18T02:01:33.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1800, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "actor": "麦麦", + "created": "2026-11-18T02:01:33.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 400000, + "refunded": 0, + "netReceived": 400000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 350000, + "directCost": 1800, + "materialCostPending": false, + "knownGoodsCost": 350000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 48200, + "profit": 48200, + "knownProfit": 48200, + "ownerCost": 351800, + "ownerDirect": 400000, + "ownerCredit": 400000, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "complete", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 5, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:34.000Z" + }, + { + "action": "deliver", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 5, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:34.000Z" + }, + { + "action": "receipt", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "amount": "3000", + "account": "麦麦信用卡", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "尾款", + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:33.000Z" + }, + { + "action": "receipt", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "amount": "1000", + "account": "麦麦支付宝", + "verified": true, + "reference": "定金", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:31.000Z" + }, + { + "action": "confirm", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:29.000Z" + }, + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:27.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:34.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 104, + "label": "issue-invalid-quantity", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00059-issue-invalid-quantity", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照客户甲", + "internal_note": "#复购 内部备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "yuan", + "discount": "0", + "lines": [ + { + "name": "足金999", + "unit": "g", + "quantity": "-1", + "pocket": "现货", + "payer": "assistant", + "pricingMode": "auto", + "goldPrice": "950", + "laborRate": "30", + "laborMode": "gram", + "pieces": "1", + "charges": [ + { + "name": "刻字", + "amount": "20" + }, + { + "name": "包装", + "amount": "5.5" + } + ], + "costParts": { + "material": "", + "labor": "40", + "accessories": "2", + "other": "0" + }, + "costMaterial": { + "mode": "gram", + "rate": "880" + }, + "costLabor": { + "mode": "total" + }, + "costPayers": { + "material": "owner", + "labor": "assistant" + } + } + ], + "fee_items": [ + { + "key": "shipping", + "note": "快递", + "amount": "12", + "payer": "assistant" + } + ], + "note": "客户单备注" + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "第1行克重须为数字,最多3位小数" + } + }, + { + "seq": 105, + "label": "order-detail", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 321100, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "3211.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 106, + "label": "order-detail", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户乙", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118002", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant2", + "cost": 180000, + "sale": 208710, + "baseSale": 208710, + "charges": [], + "pricingMode": "auto", + "goldPrice": 95555, + "laborRate": 8800, + "laborMode": "piece", + "pieces": 2, + "priceNote": "金价 955.55元/克 + 工费 88.00元/件 × 2件" + }, + { + "name": "纯银925", + "code": "", + "unit": "件", + "quantity": 3, + "pocket": "", + "payer": "assistant2", + "cost": 3000, + "sale": 9990, + "baseSale": 9990, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 1537, + "total": 217163, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:18.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "按件内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 217163, + "refunded": 0, + "netReceived": 217163, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 183000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 183000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 34163, + "profit": 34163, + "knownProfit": 34163, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "助理2", + "detail": { + "amount": 217163, + "account": "助理2支付宝", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:18.000Z" + }, + { + "action": "complete", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:18.000Z" + }, + { + "action": "deliver", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:18.000Z" + }, + { + "action": "receipt", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "amount": "2171.63", + "account": "助理2支付宝", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:18.000Z" + }, + { + "action": "confirm", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:18.000Z" + }, + { + "action": "保存草稿", + "actor": "助理2", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:18.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:18.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 107, + "label": "order-detail", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 288500, + "refunded": 0, + "netReceived": 288500, + "balance": 0, + "rounding_adjustment": -40, + "goodsCost": 150000, + "directCost": 1731, + "materialCostPending": false, + "knownGoodsCost": 150000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 136769, + "profit": 136769, + "knownProfit": 136769, + "ownerCost": 151731, + "ownerDirect": 288500, + "ownerCredit": 288500, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "麦麦", + "detail": { + "amount": 288500, + "account": "麦麦信用卡", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "complete", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "deliver", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "receipt", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "amount": "2885.00", + "account": "麦麦信用卡", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "confirm", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:19.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 108, + "label": "order-detail", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 58000, + "profit": 58000, + "knownProfit": 58000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 330000, + "account": "助理现金", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "3300.00", + "account": "助理现金", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:20.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 109, + "label": "order-detail", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118005", + "status": "delivered", + "lines": [ + { + "name": "足金手镯", + "code": "", + "unit": "g", + "quantity": 10000, + "pocket": "pocket_", + "payer": "owner", + "cost": 900000, + "sale": 980000, + "baseSale": 980000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 980000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:21.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "草稿单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "owner", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 980000, + "account": "麦麦现金", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 980000, + "refunded": 0, + "netReceived": 980000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 900000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 900000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 80000, + "profit": 80000, + "knownProfit": 80000, + "ownerCost": 900000, + "ownerDirect": 980000, + "ownerCredit": 980000, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "麦麦", + "detail": { + "amount": 980000, + "account": "麦麦现金", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:23.000Z" + }, + { + "action": "complete", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 5, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:23.000Z" + }, + { + "action": "deliver", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 5, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:23.000Z" + }, + { + "action": "receipt", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "amount": "9800.00", + "account": "麦麦现金", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:23.000Z" + }, + { + "action": "confirm", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:23.000Z" + }, + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 2, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:23.000Z" + }, + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:21.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:23.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 110, + "label": "order-public", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/orders//public", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "member": "assistant", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "total": 321100, + "rounding_mode": "yuan", + "rounding_adjustment": 50, + "discount": 0, + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "paymentMethods": [ + "微信" + ], + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "priceNote": "金价 950.00元/克 + 工费 30.00元/克", + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1 + } + ] + } + }, + { + "seq": 111, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/order-note-tags", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "tags": [ + "#复购" + ] + } + }, + { + "seq": 112, + "label": "order-note-tags-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/order-note-tags", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "tags": [ + "#复购" + ] + } + }, + { + "seq": 113, + "note": "section", + "name": "printing" + }, + { + "seq": 114, + "label": "print-order", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/print/", + "key": null, + "status": 200, + "contentType": "text/html; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "text": "20261118001 · 客户单据
","printed":false,"revision":0,"updated":null,"actor":null,"sourceRevision":4,"user":""}\" role=\"status\">未打印切换预印纸套打模板固定241×140mm横版;打印窗口也选241×140mm,关闭页眉页脚。正在调整为一页…
\n

黄金对照珠宝

黄金对照销售单
\n
客户:对照客户甲日期:2026-11-18纸单号:20261118001
\n
收款方式:微信
\n
序号商品名称商品编号单位数量/克重金价/单价说明销售工费金额(元)
1足金999克3.25950.00元/克30.00元/克3185.00
2附加:刻字项1附加项目—20.00
3附加:包装项1附加项目—5.50
\n
合计人民币大写:叁仟贰佰壹拾壹元整
优惠/抹零:¥0.00
整单金额四舍五入到元
合计金额:¥3211
\n

注意事项

  1. 本店所售商品均经国家法定机构检测合格,品质上乘,请放心选购。特此保证!如有质量争议,以省级以上具有法律效力的质检结果为准;
  2. 本店所售商品,如无质量问题,概不退换!
  3. 请保存好此票据、标签、证书等缺一视为放弃享受服务的权利。

珠宝首饰保养须知

  1. 避免戴贵金属及基镶嵌饰品做家务或粗重的工作。
  2. 避免接触水银、铅等金属。
  3. 避免接触化妆品、香水、醋、果汁、漂白剂、涂改液及含铅、汞等元素的化学品。
  4. 人体的汗液会侵蚀贵金属饰品,所以夏天佩戴贵金属饰品及镶嵌品最好每天清水清洗。

公司承诺:本公司所售珠宝首饰均经过首饰质量监督检验中心鉴定,如所购商品如有质量问题,承诺凭本票无条件退换货。

\n
备注:客户单备注
联系电话:联系电话 000-0000
经办人:娜娜 ________________
\n
" + } + }, + { + "seq": 115, + "label": "print-order-mode", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/print/?mode=customer", + "key": null, + "status": 200, + "contentType": "text/html; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "text": "20261118003 · 客户单据
","printed":false,"revision":0,"updated":null,"actor":null,"sourceRevision":4,"user":""}\" role=\"status\">未打印切换预印纸套打模板固定241×140mm横版;打印窗口也选241×140mm,关闭页眉页脚。正在调整为一页…
\n

黄金对照珠宝

黄金对照销售单
\n
客户:对照客户丙日期:2026-11-18纸单号:20261118003
\n
收款方式:信用卡
\n
序号商品名称商品编号单位数量/克重金价/单价说明销售工费金额(元)
1金镶玉吊坠件1一口价—2888.40
\n
合计人民币大写:贰仟捌佰捌拾伍元整
优惠/抹零:¥3.00
整单金额四舍五入到元
合计金额:¥2885
\n

注意事项

  1. 本店所售商品均经国家法定机构检测合格,品质上乘,请放心选购。特此保证!如有质量争议,以省级以上具有法律效力的质检结果为准;
  2. 本店所售商品,如无质量问题,概不退换!
  3. 请保存好此票据、标签、证书等缺一视为放弃享受服务的权利。

珠宝首饰保养须知

  1. 避免戴贵金属及基镶嵌饰品做家务或粗重的工作。
  2. 避免接触水银、铅等金属。
  3. 避免接触化妆品、香水、醋、果汁、漂白剂、涂改液及含铅、汞等元素的化学品。
  4. 人体的汗液会侵蚀贵金属饰品,所以夏天佩戴贵金属饰品及镶嵌品最好每天清水清洗。

公司承诺:本公司所售珠宝首饰均经过首饰质量监督检验中心鉴定,如所购商品如有质量问题,承诺凭本票无条件退换货。

\n
备注:—
联系电话:联系电话 000-0000
经办人:麦麦 ________________
\n
" + } + }, + { + "seq": 116, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/print-status/order/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null, + "sourceRevision": 4 + } + }, + { + "seq": 117, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/print-status/order/", + "key": "golden-00060-", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "printed": true, + "revision": 0, + "sourceRevision": 4 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "kind": "order", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-18T02:01:48.000Z", + "actor": "助理", + "sourceRevision": 4 + } + }, + { + "seq": 118, + "label": "print-status-after", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/print-status/order/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "kind": "order", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-18T02:01:48.000Z", + "actor": "助理", + "sourceRevision": 4 + } + }, + { + "seq": 119, + "label": "print-status-unset", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/print-status/order/", + "key": "golden-00061-print-status-unset", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "printed": false, + "revision": 1, + "sourceRevision": 4 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理", + "sourceRevision": 4 + } + }, + { + "seq": 120, + "label": "print-status-foreign", + "date": "2026-11-18", + "actor": "assistant2", + "method": "GET", + "path": "/api/print-status/order/", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 121, + "label": "print-foreign", + "date": "2026-11-18", + "actor": "assistant2", + "method": "GET", + "path": "/print/", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 122, + "note": "section", + "name": "priceLocksD1" + }, + { + "seq": 123, + "label": "lock-create", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/price-locks", + "key": "golden-00062-lock-create", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "member": "assistant", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "quantity": "3.000", + "goldPrice": "900", + "laborRate": "20", + "laborMode": "gram", + "pieces": "1", + "charges": [] + }, + "discount": "0", + "payment": { + "amount": "2700", + "account": "助理微信", + "verified": true + }, + "material": { + "rate": "850", + "payer": "owner", + "verified": true + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "price_lock_id": "", + "status": "pending", + "revision": 1 + } + }, + { + "seq": 124, + "label": "lock-create-2", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/price-locks", + "key": "golden-00063-lock-create-2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "member": "assistant", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "quantity": "3.000", + "goldPrice": "900", + "laborRate": "20", + "laborMode": "gram", + "pieces": "1", + "charges": [] + }, + "discount": "0", + "payment": { + "amount": "1000", + "account": "助理支付宝", + "verified": true + }, + "material": { + "rate": "850", + "payer": "owner", + "verified": true + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "price_lock_id": "", + "status": "pending", + "revision": 1 + } + }, + { + "seq": 125, + "label": "lock-create-3", + "date": "2026-11-18", + "actor": "assistant2", + "method": "POST", + "path": "/api/price-locks", + "key": "golden-00064-lock-create-3", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "member": "assistant2", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "quantity": "3.000", + "goldPrice": "900", + "laborRate": "20", + "laborMode": "gram", + "pieces": "1", + "charges": [] + }, + "discount": "0", + "payment": { + "amount": "500", + "account": "助理2微信", + "verified": true + }, + "material": { + "rate": "860", + "payer": "assistant2", + "verified": true + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "price_lock_id": "", + "status": "pending", + "revision": 1 + } + }, + { + "seq": 126, + "label": "lock-create-owner", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/price-locks", + "key": "golden-00065-lock-create-owner", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "member": "owner", + "customer": "对照锁价客户四", + "salesperson": "麦麦", + "note": "锁价备注", + "line": { + "name": "足金999", + "quantity": "3.000", + "goldPrice": "900", + "laborRate": "20", + "laborMode": "gram", + "pieces": "1", + "charges": [] + }, + "discount": "0", + "payment": { + "amount": "800", + "account": "麦麦微信", + "verified": true + }, + "material": { + "rate": "850", + "payer": "owner", + "verified": true + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "price_lock_id": "", + "status": "pending", + "revision": 1 + } + }, + { + "seq": 127, + "label": "price-locks-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/price-locks", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-18", + "rows": [ + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "updated": "2026-11-18T02:01:54.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 100000, + "refunded": 0, + "netReceived": 100000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + ], + "counts": { + "pending": 2, + "delivered": 0, + "cancelled": 0 + } + } + }, + { + "seq": 128, + "label": "price-locks-owner-all", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/price-locks?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-18", + "rows": [ + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "updated": "2026-11-18T02:01:54.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 100000, + "refunded": 0, + "netReceived": 100000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-18T02:01:55.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户四", + "salesperson": "麦麦", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "updated": "2026-11-18T02:01:56.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "owner", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 80000, + "account": "麦麦微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 80000, + "refunded": 0, + "netReceived": 80000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + ], + "counts": { + "pending": 4, + "delivered": 0, + "cancelled": 0 + } + } + }, + { + "seq": 129, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/price-locks/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + }, + { + "seq": 130, + "label": "lock-foreign", + "date": "2026-11-18", + "actor": "assistant2", + "method": "GET", + "path": "/api/price-locks//edit-context", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 131, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/price-locks//edit-context", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "revision": 1, + "requiresApproval": false, + "reason": "", + "inputs": { + "date": "2026-11-18", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "1000.00", + "account": "助理支付宝", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ] + }, + "lock": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "updated": "2026-11-18T02:01:54.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 100000, + "refunded": 0, + "netReceived": 100000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changePending": null + } + }, + { + "seq": 132, + "label": "lock-edit-same-day", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/price-locks//edit", + "key": "golden-00066-lock-edit-same-day", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "1200", + "account": "助理支付宝", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ], + "revision": 1, + "reason": "当天更正收款", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "price_lock_id": "", + "status": "pending", + "revision": 2, + "lock": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "updated": "2026-11-18T02:02:02.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": null, + "voided": 1, + "void_reason": "当天更正收款", + "voided_at": "2026-11-18T02:02:02.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 120000, + "refunded": 0, + "netReceived": 120000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + } + }, + { + "seq": 133, + "note": "section", + "name": "afterSalesStandalone" + }, + { + "seq": 134, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/after-sales", + "key": "golden-00067-after-sales", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": "8.50", + "payer": "assistant" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "after_sale_id": "", + "kind": "afterSale" + } + }, + { + "seq": 135, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/after-sales/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 1, + "record": { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z", + "member": "assistant", + "revision": 1 + }, + "values": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": "8.50", + "payer": "assistant" + }, + "permissions": { + "canEdit": true, + "canDirectEdit": true, + "requiresApproval": false, + "canRequest": true, + "reason": "只有原日期和修改后日期都为北京时间今天时可直接保存;其他日期须由麦麦审批" + }, + "pending": null, + "history": [] + } + }, + { + "seq": 136, + "label": "after-sale-foreign", + "date": "2026-11-18", + "actor": "assistant2", + "method": "GET", + "path": "/api/after-sales/", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "售后记录不存在或无权访问" + } + }, + { + "seq": 137, + "label": "after-sale-owner-zero", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/after-sales", + "key": "golden-00068-after-sale-owner-zero", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "project": "对照清洗", + "customer": "对照售后客户二", + "amount": "0", + "payer": "owner" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "after_sale_id": "", + "kind": "afterSale" + } + }, + { + "seq": 138, + "label": "after-sale-invalid", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/after-sales", + "key": "golden-00069-after-sale-invalid", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": "-1", + "payer": "assistant" + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "售后金额须为数字,最多2位小数" + } + }, + { + "seq": 139, + "note": "section", + "name": "templates" + }, + { + "seq": 140, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/order-templates", + "key": "golden-00070-order-templates", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "对照常用模板", + "member": "assistant", + "preset": { + "customer": "", + "salesperson": "娜娜", + "payment_account": "助理微信", + "discount": "0", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金999", + "unit": "g", + "quantity": "1", + "pocket": "现货", + "payer": "assistant", + "pricingMode": "auto", + "goldPrice": "950", + "laborMode": "gram", + "laborRate": "30", + "pieces": "1", + "charges": [], + "costParts": { + "material": "880", + "labor": "20", + "accessories": "0", + "other": "0" + } + } + ], + "fee_items": [] + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "name": "对照常用模板", + "revision": 1, + "updated": "2026-11-18T02:02:08.000Z" + } + }, + { + "seq": 141, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/order-templates", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "name": "对照常用模板", + "revision": 1, + "updated": "2026-11-18T02:02:08.000Z", + "member": "assistant" + } + ] + } + }, + { + "seq": 142, + "label": "order-templates-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/order-templates", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "name": "对照常用模板", + "revision": 1, + "updated": "2026-11-18T02:02:08.000Z", + "member": "assistant" + } + ] + } + }, + { + "seq": 143, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/order-templates/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "name": "对照常用模板", + "preset": { + "salesperson": "娜娜", + "payment_account": "助理微信", + "credit_card_fee_payer": "owner", + "discount": "0", + "note": "", + "fee_auto_initialized": true, + "lines": [ + { + "nameType": "足金999", + "customName": "", + "unit": "g", + "quantity": "1", + "pocket": "现货", + "payer": "assistant", + "pricingMode": "auto", + "goldPrice": "950", + "laborMode": "gram", + "laborRate": "30", + "pieces": "1", + "priceNote": "", + "sale": "", + "baseSale": "", + "name": "足金999", + "charges": [], + "costParts": { + "material": "880", + "labor": "20", + "accessories": "0", + "other": "0" + }, + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total", + "rate": "" + } + } + ], + "fee_items": [] + }, + "revision": 1, + "created": "2026-11-18T02:02:08.000Z", + "updated": "2026-11-18T02:02:08.000Z", + "member": "assistant" + } + }, + { + "seq": 144, + "label": "template-before-update", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/order-templates/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "name": "对照常用模板", + "preset": { + "salesperson": "娜娜", + "payment_account": "助理微信", + "credit_card_fee_payer": "owner", + "discount": "0", + "note": "", + "fee_auto_initialized": true, + "lines": [ + { + "nameType": "足金999", + "customName": "", + "unit": "g", + "quantity": "1", + "pocket": "现货", + "payer": "assistant", + "pricingMode": "auto", + "goldPrice": "950", + "laborMode": "gram", + "laborRate": "30", + "pieces": "1", + "priceNote": "", + "sale": "", + "baseSale": "", + "name": "足金999", + "charges": [], + "costParts": { + "material": "880", + "labor": "20", + "accessories": "0", + "other": "0" + }, + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total", + "rate": "" + } + } + ], + "fee_items": [] + }, + "revision": 1, + "created": "2026-11-18T02:02:08.000Z", + "updated": "2026-11-18T02:02:08.000Z", + "member": "assistant" + } + }, + { + "seq": 145, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/order-templates//update", + "key": "golden-00071-update", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "对照常用模板(改)", + "member": "assistant", + "preset": { + "customer": "", + "salesperson": "娜娜", + "payment_account": "助理微信", + "discount": "0", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金999", + "unit": "g", + "quantity": "1", + "pocket": "现货", + "payer": "assistant", + "pricingMode": "auto", + "goldPrice": "950", + "laborMode": "gram", + "laborRate": "30", + "pieces": "1", + "charges": [], + "costParts": { + "material": "880", + "labor": "20", + "accessories": "0", + "other": "0" + } + } + ], + "fee_items": [] + }, + "revision": 1 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "name": "对照常用模板(改)", + "revision": 2, + "updated": "2026-11-18T02:02:13.000Z" + } + }, + { + "seq": 146, + "label": "template-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/order-templates", + "key": "golden-00072-template-assistant", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "娜娜自建模板", + "member": "assistant", + "preset": { + "customer": "", + "salesperson": "娜娜", + "payment_account": "助理微信", + "discount": "0", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金999", + "unit": "g", + "quantity": "1", + "pocket": "现货", + "payer": "assistant", + "pricingMode": "auto", + "goldPrice": "950", + "laborMode": "gram", + "laborRate": "30", + "pieces": "1", + "charges": [], + "costParts": { + "material": "880", + "labor": "20", + "accessories": "0", + "other": "0" + } + } + ], + "fee_items": [] + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "name": "娜娜自建模板", + "revision": 1, + "updated": "2026-11-18T02:02:14.000Z" + } + }, + { + "seq": 147, + "label": "template2", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/order-templates/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "name": "娜娜自建模板", + "preset": { + "salesperson": "娜娜", + "payment_account": "助理微信", + "credit_card_fee_payer": "owner", + "discount": "0", + "note": "", + "fee_auto_initialized": true, + "lines": [ + { + "nameType": "足金999", + "customName": "", + "unit": "g", + "quantity": "1", + "pocket": "现货", + "payer": "assistant", + "pricingMode": "auto", + "goldPrice": "950", + "laborMode": "gram", + "laborRate": "30", + "pieces": "1", + "priceNote": "", + "sale": "", + "baseSale": "", + "name": "足金999", + "charges": [], + "costParts": { + "material": "880", + "labor": "20", + "accessories": "0", + "other": "0" + }, + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total", + "rate": "" + } + } + ], + "fee_items": [] + }, + "revision": 1, + "created": "2026-11-18T02:02:14.000Z", + "updated": "2026-11-18T02:02:14.000Z", + "member": "assistant" + } + }, + { + "seq": 148, + "label": "template-delete", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/order-templates//delete", + "key": "golden-00073-template-delete", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "deleted": true + } + }, + { + "seq": 149, + "label": "order-templates-final", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/order-templates", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "name": "对照常用模板(改)", + "revision": 2, + "updated": "2026-11-18T02:02:13.000Z", + "member": "assistant" + } + ] + } + }, + { + "seq": 150, + "note": "section", + "name": "fundsD1" + }, + { + "seq": 151, + "label": null, + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/reimbursements", + "key": "golden-00074-reimbursements", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "items": [ + { + "name": "对照邮寄", + "amount": "15", + "member": "owner", + "sourceType": "independent" + }, + { + "name": "对照包装", + "amount": "6.5", + "member": "owner", + "sourceType": "independent" + } + ], + "note": "对照报销" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "reimbursement": { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "对照报销", + "status": "pending", + "revision": 1, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:18.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": true, + "canApprove": false + } + } + }, + { + "seq": 152, + "label": "reimbursements-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/reimbursements", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "对照报销", + "status": "pending", + "revision": 1, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:18.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": true, + "canApprove": false + } + ], + "counts": { + "pending": 1, + "approved": 0, + "rejected": 0 + }, + "total": 1, + "limit": 50, + "offset": 0, + "hasMore": false + } + }, + { + "seq": 153, + "label": "reimbursements-pending", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/reimbursements?status=pending", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "对照报销", + "status": "pending", + "revision": 1, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:18.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": true, + "canApprove": true + } + ], + "counts": { + "pending": 1, + "approved": 0, + "rejected": 0 + }, + "total": 1, + "limit": 50, + "offset": 0, + "hasMore": false + } + }, + { + "seq": 154, + "label": "reimbursement-options", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/reimbursement-funding-options?date=2026-11-18", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "member": "assistant", + "items": [] + } + }, + { + "seq": 155, + "label": "reimbursement-update", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/reimbursements//update", + "key": "golden-00075-reimbursement-update", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "items": [ + { + "name": "对照邮寄", + "amount": "15", + "member": "owner", + "sourceType": "independent" + }, + { + "name": "对照包装", + "amount": "6.5", + "member": "owner", + "sourceType": "independent" + } + ], + "note": "补充备注", + "revision": 1 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "reimbursement": { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "补充备注", + "status": "pending", + "revision": 2, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:22.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": true, + "canApprove": false + } + } + }, + { + "seq": 156, + "label": "reimbursement-self-approve", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/reimbursements//approve", + "key": "golden-00076-reimbursement-self-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 2, + "verified": true + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "报销复核与完整对外支出确认由麦麦账号完成" + } + }, + { + "seq": 157, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/reimbursements//approve", + "key": "golden-00077-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 2, + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "reimbursement": { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "补充备注", + "status": "approved", + "revision": 3, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:24.000Z", + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:24.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": false, + "canApprove": false + } + } + }, + { + "seq": 158, + "label": "reimbursement-2", + "date": "2026-11-18", + "actor": "assistant2", + "method": "POST", + "path": "/api/reimbursements", + "key": "golden-00078-reimbursement-2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "items": [ + { + "name": "对照快递", + "amount": "9", + "member": "owner", + "sourceType": "independent" + } + ] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "reimbursement": { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照快递", + "amount": 900, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 900 + } + ], + "total": 900, + "note": "", + "status": "pending", + "revision": 1, + "requester_id": "", + "requester_name": "助理2", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "review_note": "", + "created": "2026-11-18T02:02:25.000Z", + "updated": "2026-11-18T02:02:25.000Z", + "payer": "assistant2", + "member": "assistant2", + "fundingMode": "independent", + "canEdit": true, + "canApprove": false + } + } + }, + { + "seq": 159, + "label": "reimbursement-reject", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/reimbursements//reject", + "key": "golden-00079-reimbursement-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "note": "凭据不全" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "reimbursement": { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照快递", + "amount": 900, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 900 + } + ], + "total": 900, + "note": "", + "status": "rejected", + "revision": 2, + "requester_id": "", + "requester_name": "助理2", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:26.000Z", + "review_note": "凭据不全", + "created": "2026-11-18T02:02:25.000Z", + "updated": "2026-11-18T02:02:26.000Z", + "payer": "assistant2", + "member": "assistant2", + "fundingMode": "independent", + "canEdit": true, + "canApprove": false + } + } + }, + { + "seq": 160, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/daily-funds?date=2026-11-18", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "from": "2026-11-18", + "team": { + "from": "2026-11-18", + "to": "2026-11-18", + "date": "2026-11-18", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 1748500, + "refunds": 0, + "outlays": 4274531, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": -2526031, + "cumulativeChange": -2526031, + "cashBalance": -2526031, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 1123100, + "refunds": 0, + "outlays": 978400, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": 144700, + "cumulativeChange": 144700, + "cashBalance": 144700, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 917163, + "refunds": 0, + "outlays": 1021000, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": -103837, + "cumulativeChange": -103837, + "cashBalance": -103837, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -657081, + "obligationNet": -657081, + "transferred": 0, + "receivedForNet": 288500, + "advancedNet": -945581, + "offset": 290650, + "due": 657081, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -657081, + "transferred": 0, + "receivedForNet": 288500, + "advancedNet": -945581 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ], + "transfers": [], + "revision": "6a6a54a9d40e5cce6d7e2bc7b749624618a7e3f1ea7835f0c3cfc7af3b3b5508", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [ + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "补充备注", + "status": "approved", + "revision": 3, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:24.000Z", + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:24.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": false, + "canApprove": false + }, + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照快递", + "amount": 900, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 900 + } + ], + "total": 900, + "note": "", + "status": "rejected", + "revision": 2, + "requester_id": "", + "requester_name": "助理2", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:26.000Z", + "review_note": "凭据不全", + "created": "2026-11-18T02:02:25.000Z", + "updated": "2026-11-18T02:02:26.000Z", + "payer": "assistant2", + "member": "assistant2", + "fundingMode": "independent", + "canEdit": true, + "canApprove": false + } + ], + "approvedReimbursements": 2150, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "6a6a54a9d40e5cce6d7e2bc7b749624618a7e3f1ea7835f0c3cfc7af3b3b5508", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + } + }, + { + "seq": 161, + "label": "daily-funds-assistant", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/daily-funds?date=2026-11-18", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "from": "2026-11-18", + "team": { + "from": "2026-11-18", + "to": "2026-11-18", + "date": "2026-11-18", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "assistant", + "receipts": 1123100, + "refunds": 0, + "outlays": 978400, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": 144700, + "cumulativeChange": 144700, + "cashBalance": 144700, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -657081, + "obligationNet": -657081, + "transferred": 0, + "receivedForNet": 288500, + "advancedNet": -945581, + "offset": 290650, + "due": 657081, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -657081, + "transferred": 0, + "receivedForNet": 288500, + "advancedNet": -945581 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1 + } + ] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1 + } + ], + "transfers": [], + "revision": "6a6a54a9d40e5cce6d7e2bc7b749624618a7e3f1ea7835f0c3cfc7af3b3b5508", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [ + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "补充备注", + "status": "approved", + "revision": 3, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:24.000Z", + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:24.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": false, + "canApprove": false + } + ], + "approvedReimbursements": 2150, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "6a6a54a9d40e5cce6d7e2bc7b749624618a7e3f1ea7835f0c3cfc7af3b3b5508", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + } + }, + { + "seq": 162, + "label": "daily-outlay-confirm", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/daily-funds/confirm", + "key": "golden-00080-daily-outlay-confirm", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "amount": "0", + "revision": 0, + "sourceRevision": "6a6a54a9d40e5cce6d7e2bc7b749624618a7e3f1ea7835f0c3cfc7af3b3b5508", + "verified": true + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "三人经营款按成员往来核对,请登记实际付款来源与双方转账" + } + }, + { + "seq": 163, + "label": "team-funds-before-transfer", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/team-funds?date=2026-11-18", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "to": "2026-11-18", + "date": "2026-11-18", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 1748500, + "refunds": 0, + "outlays": 4274531, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": -2526031, + "cumulativeChange": -2526031, + "cashBalance": -2526031, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 1123100, + "refunds": 0, + "outlays": 978400, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": 144700, + "cumulativeChange": 144700, + "cashBalance": 144700, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 917163, + "refunds": 0, + "outlays": 1021000, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": -103837, + "cumulativeChange": -103837, + "cashBalance": -103837, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -657081, + "obligationNet": -657081, + "transferred": 0, + "receivedForNet": 288500, + "advancedNet": -945581, + "offset": 290650, + "due": 657081, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -657081, + "transferred": 0, + "receivedForNet": 288500, + "advancedNet": -945581 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ], + "transfers": [], + "revision": "6a6a54a9d40e5cce6d7e2bc7b749624618a7e3f1ea7835f0c3cfc7af3b3b5508", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + } + }, + { + "seq": 164, + "label": "transfer", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/team-funds/transfers", + "key": "golden-00081-transfer", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "fromMember": "assistant", + "toMember": "owner", + "amount": "100.00", + "revision": "6a6a54a9d40e5cce6d7e2bc7b749624618a7e3f1ea7835f0c3cfc7af3b3b5508", + "verified": true, + "note": "对照转账" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "team": { + "from": "2026-11-18", + "to": "2026-11-18", + "date": "2026-11-18", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 1748500, + "refunds": 0, + "outlays": 4274531, + "transferIn": 10000, + "transferOut": 0, + "openingChange": 0, + "periodChange": -2516031, + "cumulativeChange": -2516031, + "cashBalance": -2516031, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 1123100, + "refunds": 0, + "outlays": 978400, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 0, + "periodChange": 134700, + "cumulativeChange": 134700, + "cashBalance": 134700, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 917163, + "refunds": 0, + "outlays": 1021000, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": -103837, + "cumulativeChange": -103837, + "cashBalance": -103837, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -647081, + "obligationNet": -657081, + "transferred": -10000, + "receivedForNet": 288500, + "advancedNet": -945581, + "offset": 290650, + "due": 647081, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -657081, + "transferred": -10000, + "receivedForNet": 288500, + "advancedNet": -945581 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-18", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账", + "actor": "麦麦" + } + ], + "revision": "70efa07e17ce0a2addce8e0bd7b8a0453efd7f3a18845ff4958679e7c7e5ec8e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + } + } + }, + { + "seq": 165, + "label": "transfer-stale-revision", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/team-funds/transfers", + "key": "golden-00082-transfer-stale-revision", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "fromMember": "assistant", + "toMember": "owner", + "amount": "100.00", + "revision": "6a6a54a9d40e5cce6d7e2bc7b749624618a7e3f1ea7835f0c3cfc7af3b3b5508", + "verified": true, + "note": "对照转账" + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "双方待结余额已有变动,请刷新核对后登记" + } + }, + { + "seq": 166, + "label": "transfer-assistant-denied", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/team-funds/transfers", + "key": "golden-00083-transfer-assistant-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "fromMember": "assistant", + "toMember": "owner", + "amount": "1", + "verified": true + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 167, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/team-funds?date=2026-11-18", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "to": "2026-11-18", + "date": "2026-11-18", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 1748500, + "refunds": 0, + "outlays": 4274531, + "transferIn": 10000, + "transferOut": 0, + "openingChange": 0, + "periodChange": -2516031, + "cumulativeChange": -2516031, + "cashBalance": -2516031, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 1123100, + "refunds": 0, + "outlays": 978400, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 0, + "periodChange": 134700, + "cumulativeChange": 134700, + "cashBalance": 134700, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 917163, + "refunds": 0, + "outlays": 1021000, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": -103837, + "cumulativeChange": -103837, + "cashBalance": -103837, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -647081, + "obligationNet": -657081, + "transferred": -10000, + "receivedForNet": 288500, + "advancedNet": -945581, + "offset": 290650, + "due": 647081, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -657081, + "transferred": -10000, + "receivedForNet": 288500, + "advancedNet": -945581 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-18", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账", + "actor": "麦麦" + } + ], + "revision": "70efa07e17ce0a2addce8e0bd7b8a0453efd7f3a18845ff4958679e7c7e5ec8e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + } + }, + { + "seq": 168, + "label": "team-funds-assistant-denied", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/team-funds?date=2026-11-18", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 169, + "note": "section", + "name": "peopleAndPrivate" + }, + { + "seq": 170, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/people-count?date=2026-11-18", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "previousDate": "2026-11-17", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both", + "revision": 0 + } + }, + { + "seq": 171, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/people-count", + "key": "golden-00084-people-count", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "count": 12, + "assistant1Count": 5, + "assistant2Count": 3, + "revision": 0 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "revision": 1, + "previousDate": "2026-11-17", + "mode": "daily-total", + "assistant1Count": 5, + "assistant1Change": null, + "assistant1ChangeReason": "missing-previous", + "assistant2Count": 3, + "assistant2Change": null, + "assistant2ChangeReason": "missing-previous", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + } + } + }, + { + "seq": 172, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/people-count-history", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-01", + "date": "2026-11-18", + "today": "2026-11-18", + "baselineDate": "2026-10-31", + "mode": "daily-total", + "rows": [ + { + "date": "2026-11-01", + "previousDate": "2026-10-31", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-02", + "previousDate": "2026-11-01", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-03", + "previousDate": "2026-11-02", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-04", + "previousDate": "2026-11-03", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-05", + "previousDate": "2026-11-04", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-06", + "previousDate": "2026-11-05", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-07", + "previousDate": "2026-11-06", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-08", + "previousDate": "2026-11-07", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-09", + "previousDate": "2026-11-08", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-10", + "previousDate": "2026-11-09", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-11", + "previousDate": "2026-11-10", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-12", + "previousDate": "2026-11-11", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-13", + "previousDate": "2026-11-12", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-14", + "previousDate": "2026-11-13", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-15", + "previousDate": "2026-11-14", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-16", + "previousDate": "2026-11-15", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-17", + "previousDate": "2026-11-16", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-both", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-both" + }, + { + "date": "2026-11-18", + "previousDate": "2026-11-17", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": 5, + "assistant1Change": null, + "assistant1ChangeReason": "missing-previous", + "assistant2Count": 3, + "assistant2Change": null, + "assistant2ChangeReason": "missing-previous" + } + ], + "summary": { + "assistant1": { + "total": 5, + "endTotal": 5, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 1 + }, + "assistant2": { + "total": 3, + "endTotal": 3, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 1 + } + } + } + }, + { + "seq": 173, + "label": "people-count-assistant-denied", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/people-count?date=2026-11-18", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 174, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/private-operations/people", + "key": "golden-00085-people", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "member": "assistant", + "total_count": 100, + "new_count": 10, + "revision": 0 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "member": "assistant", + "total_count": 100, + "new_count": null, + "revision": 1, + "legacy": false, + "previous": null + } + }, + { + "seq": 175, + "label": "private-ops", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/private-operations", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-18", + "days": 1, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "summaries": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true, + "days": 1, + "recordedDays": 0, + "total": null, + "totalDate": null, + "newPeople": null, + "orders": 2, + "newOrders": 0, + "returningOrders": 0, + "unknownOrders": 2, + "refundOrders": 0, + "conversion": null + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true, + "days": 1, + "recordedDays": 0, + "total": 100, + "totalDate": "2026-11-18", + "newPeople": null, + "orders": 4, + "newOrders": 0, + "returningOrders": 0, + "unknownOrders": 4, + "refundOrders": 0, + "conversion": null + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true, + "days": 1, + "recordedDays": 0, + "total": 3, + "totalDate": "2026-11-18", + "newPeople": null, + "orders": 3, + "newOrders": 0, + "returningOrders": 0, + "unknownOrders": 3, + "refundOrders": 0, + "conversion": null + } + ], + "rows": [ + { + "date": "2026-11-18", + "member": "assistant", + "total": 100, + "netChange": null, + "previousDate": null, + "newPeople": null, + "orders": 4, + "newOrders": 0, + "returningOrders": 0, + "unknownOrders": 4, + "refundOrders": 0, + "conversion": null + }, + { + "date": "2026-11-18", + "member": "assistant2", + "total": 3, + "netChange": null, + "previousDate": null, + "newPeople": null, + "orders": 3, + "newOrders": 0, + "returningOrders": 0, + "unknownOrders": 3, + "refundOrders": 0, + "conversion": null + }, + { + "date": "2026-11-18", + "member": "owner", + "total": null, + "netChange": null, + "previousDate": null, + "newPeople": null, + "orders": 2, + "newOrders": 0, + "returningOrders": 0, + "unknownOrders": 2, + "refundOrders": 0, + "conversion": null + } + ] + } + }, + { + "seq": 176, + "label": "private-ops-entry", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/private-operations/people?date=2026-11-18&member=assistant", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "member": "assistant", + "total_count": 100, + "new_count": null, + "revision": 1, + "legacy": false, + "previous": null + } + }, + { + "seq": 177, + "label": "private-ops-history", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/private-operations/people-history?member=assistant", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "member": "assistant", + "rows": [ + { + "date": "2026-11-18", + "total": 100, + "newPeople": null, + "previousDate": null + } + ] + } + }, + { + "seq": 178, + "label": "private-ops-assistant-denied", + "date": "2026-11-18", + "actor": "assistant", + "method": "GET", + "path": "/api/private-operations", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 179, + "note": "section", + "name": "inventoryReviewAndCloseD1" + }, + { + "seq": 180, + "label": "inventory-before-review", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/inventory", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "yesterdayDate": "2026-11-17", + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "current": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "yesterday": null, + "todaySnapshot": null, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "legacyInventory": [], + "canReview": true, + "automaticSnapshot": { + "enabled": false, + "time": "23:50", + "timeZone": "Asia/Shanghai", + "date": "2026-11-18", + "status": "stopped", + "lastSuccess": null, + "lastError": null, + "nextAttemptAt": null + } + } + }, + { + "seq": 181, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/inventory/review", + "key": "golden-00086-review", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "verified": true, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "snapshot": { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:46.000Z", + "stale": false, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + } + } + }, + { + "seq": 182, + "label": null, + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/snapshots", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-18", + "snapshots": [ + { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:46.000Z", + "stale": false, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + } + ] + } + }, + { + "seq": 183, + "label": "close-assistant-denied", + "date": "2026-11-18", + "actor": "assistant", + "method": "POST", + "path": "/api/close", + "key": "golden-00087-close-assistant-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "basis": "orderDate" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 184, + "label": "close-invalid-basis", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/close", + "key": "golden-00088-close-invalid-basis", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "basis": "wrong" + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "对账日期口径无效" + } + }, + { + "seq": 185, + "label": "close-d1", + "date": "2026-11-18", + "actor": "owner", + "method": "POST", + "path": "/api/close", + "key": "golden-00089-close-d1", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "basis": "orderDate" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "snapshot": { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:50.000Z", + "stale": false, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + }, + "basis": "orderDate", + "reportRevision": "a135c4ad78c72f87ac985349eae3e0fbc880983c86af81708b22bedc856ff5bc" + } + }, + { + "seq": 186, + "label": "report-d1-owner", + "date": "2026-11-18", + "actor": "owner", + "method": "GET", + "path": "/api/report?date=2026-11-18&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-18", + "from": "2026-11-18", + "sales": 3268763, + "goods": 2795200, + "knownGoods": 2795200, + "expense": 5581, + "profit": 467982, + "knownProfit": 467982, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-18", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 900000, + "goods": 900000, + "paidFees": 0, + "total": 900000, + "purchaseCount": 1 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + } + }, + "summary": { + "purchaseCount": 2, + "poolCount": 1, + "mg": 30000, + "materialOutlay": 2720000, + "purchaseValue": 2720000, + "ownerOutlay": 1820000, + "assistantOutlay": 900000, + "assistant2Outlay": 0, + "totalOutlay": 2720000, + "eventCount": 2 + } + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "assistantInventoryCredit": 628000, + "knownAssistantInventoryCredit": 628000, + "transferred": 0, + "settlementDue": -628000, + "knownSettlementDue": -628000, + "pendingCount": 0, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "assistantInventoryCredit": 628000, + "transferred": 0, + "settlementDue": -628000, + "pending": false + } + ] + }, + "delivered": 9, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 591100, + "refund": 0, + "net": 591100 + }, + { + "account": "助理支付宝", + "receipt": 202000, + "refund": 0, + "net": 202000 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 80000, + "refund": 0, + "net": 80000 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 550000, + "refund": 0, + "net": 550000 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 0, + "net": 217163 + }, + { + "account": "助理2现金", + "receipt": 150000, + "refund": 0, + "net": 150000 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-", + "paper_number": "20261118001", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-", + "paper_number": "20261118002", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-", + "paper_number": "20261118003", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 980000, + "account": "麦麦现金", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "number": "MM20261118-", + "paper_number": "20261118005", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-", + "paper_number": "20261118008", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "麦麦支付宝", + "reference": "定金", + "actor": "麦麦", + "created": "2026-11-18T02:01:31.000Z", + "number": "MM20261118-", + "paper_number": "20261118009", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 300000, + "account": "麦麦信用卡", + "reference": "尾款", + "actor": "麦麦", + "created": "2026-11-18T02:01:33.000Z", + "number": "MM20261118-", + "paper_number": "20261118009", + "order_date": "2026-11-18" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 80000, + "account": "麦麦微信", + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 321100, + "goods": 290200, + "expense": 1200, + "profit": 29700, + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-", + "paper_number": "20261118001", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 217163, + "goods": 183000, + "expense": 0, + "profit": 34163, + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-", + "paper_number": "20261118002", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-", + "paper_number": "20261118003", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 330000, + "goods": 272000, + "expense": 0, + "profit": 58000, + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 980000, + "goods": 900000, + "expense": 0, + "profit": 80000, + "created": "2026-11-18T02:01:23.000Z", + "number": "MM20261118-", + "paper_number": "20261118005", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 150000, + "goods": 130000, + "expense": 0, + "profit": 20000, + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000, + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 82000, + "goods": 70000, + "expense": 0, + "profit": 12000, + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-", + "paper_number": "20261118008", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 400000, + "goods": 350000, + "expense": 1800, + "profit": 48200, + "created": "2026-11-18T02:01:34.000Z", + "number": "MM20261118-", + "paper_number": "20261118009", + "order_date": "2026-11-18" + } + ], + "afterSales": [ + { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "project": "对照清洗", + "customer": "对照售后客户二", + "amount": 0, + "payer": "owner", + "actor": "麦麦", + "created": "2026-11-18T02:02:06.000Z" + } + ], + "afterSaleCount": 2, + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": -628000, + "knownSettlementDue": -628000, + "customerBalance": 0, + "close": { + "date": "2026-11-18", + "actor": "麦麦", + "created": "2026-11-18T02:02:50.000Z", + "stale": false, + "basis": "orderDate", + "reportRevision": "a135c4ad78c72f87ac985349eae3e0fbc880983c86af81708b22bedc856ff5bc", + "staleReason": null + }, + "basis": "orderDate", + "summary": { + "orderCount": 9, + "completedCount": 9, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 6, + "sale": 3268763, + "material": 998000, + "laborAndFees": 19781, + "unallocated": 1783000, + "totalCost": 2800781, + "profit": 467982, + "ownerCost": 1689531, + "assistantCost": 348250, + "assistant2Cost": 763000, + "mg": 29550, + "pieces": 4, + "knownCounts": { + "sale": 9, + "material": 3, + "laborAndFees": 3, + "unallocated": 9, + "totalCost": 9, + "profit": 9, + "ownerCost": 9, + "assistantCost": 9, + "assistant2Cost": 9 + }, + "unknownCounts": { + "sale": 0, + "material": 6, + "laborAndFees": 6, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 2, + "recordCount": 11 + }, + "orderRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 272000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 272000, + "profit": 58000, + "ownerCost": 0, + "assistantCost": 272000, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 272000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 272000, + "profit": 58000, + "ownerCost": 0, + "assistantCost": 272000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 272000, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55", + "calculation": { + "rate": 90667, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 150000, + "material": null, + "laborAndFees": null, + "unallocated": 130000, + "totalCost": 130000, + "profit": 20000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 130000, + "known": { + "sale": 150000, + "material": 0, + "laborAndFees": 0, + "unallocated": 130000, + "totalCost": 130000, + "profit": 20000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 130000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金戒指", + "amount": 130000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 850, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 850, + "unallocated": 0, + "totalCost": 850, + "profit": -850, + "ownerCost": 0, + "assistantCost": 850, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 850, + "unallocated": 0, + "totalCost": 850, + "profit": -850, + "ownerCost": 0, + "assistantCost": 850 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 850, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 850, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + } + ], + "payerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 974200, + "paidFees": 2050, + "total": 976250, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded" + }, + { + "kind": "paid", + "name": "快递", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "customer": "对照驳回客户", + "status": "recorded" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 850, + "payer": "assistant", + "component": "fee", + "calculation": null, + "project": "对照改圈", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户", + "status": "recorded" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z", + "purchaseAmount": 900000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-18", + "name": "日料池采购", + "source": "日料池 2026-11-18 · 实付 2026-11-18", + "paidDate": "2026-11-18", + "quantity": 10000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 4271000, + "paidFees": 3531, + "total": 4274531, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "customer": "对照草稿客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "customer": "对照分步客户", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "customer": "对照分步客户", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null, + "project": "对照清洗", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户二", + "status": "recorded" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 255000, + "payer": "owner", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 255000, + "payer": "owner", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 255000, + "payer": "owner", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "purchaseAmount": 1820000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-18", + "name": "日料池采购", + "source": "日料池 2026-11-18 · 实付 2026-11-18", + "paidDate": "2026-11-18", + "quantity": 20000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 1021000, + "paidFees": 0, + "total": 1021000, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金戒指", + "amount": 130000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "customer": "对照取消客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 258000, + "payer": "assistant2", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 86000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + } + ] + } + }, + "orderPayerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 346200, + "paidFees": 2050, + "total": 348250, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded" + }, + { + "kind": "paid", + "name": "快递", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 272000, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55", + "calculation": { + "rate": 90667, + "quantity": 3000, + "weighted": true + }, + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "customer": "对照驳回客户", + "status": "recorded" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 850, + "payer": "assistant", + "component": "fee", + "calculation": null, + "project": "对照改圈", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户", + "status": "recorded" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 1686000, + "paidFees": 3531, + "total": 1689531, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "customer": "对照草稿客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "customer": "对照分步客户", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "customer": "对照分步客户", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null, + "project": "对照清洗", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户二", + "status": "recorded" + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 763000, + "paidFees": 0, + "total": 763000, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金戒指", + "amount": 130000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "customer": "对照取消客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + } + ] + } + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-18", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 5, + "endTotal": 5, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 1 + }, + "assistant2": { + "total": 3, + "endTotal": 3, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 1 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-18", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 80000, + "account": "麦麦微信", + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [], + "deliveryGoodsOutlays": [], + "receipts": { + "receipt": 520000, + "refund": 0, + "net": 520000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 400000, + "refund": 0, + "net": 400000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 120000, + "refund": 0, + "net": 120000 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 120000, + "refund": 0, + "net": 120000 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 80000, + "refund": 0, + "net": 80000 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 4 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 765000, + "goods": 765000, + "paidFees": 0, + "total": 765000 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 520000, + "refund": 0, + "net": 520000, + "materialOutlay": 1023000, + "goodsOutlay": 1023000, + "feeOutlay": 0, + "ownerOutlay": 765000, + "assistantOutlay": 0, + "assistant2Outlay": 258000, + "totalOutlay": 1023000, + "eventCount": 8, + "lockCount": 4 + } + }, + "outlayGoods": 6266200, + "outlayExpense": 5581, + "outlayTotal": 6271781, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-18", + "receipt": 3788763, + "refund": 0, + "net": 3788763, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1221100, + "refund": 0, + "net": 1221100 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 519163, + "refund": 0, + "net": 519163 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1460000, + "refund": 0, + "net": 1460000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 591100, + "refund": 0, + "net": 591100 + }, + { + "account": "助理支付宝", + "receipt": 202000, + "refund": 0, + "net": 202000 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 80000, + "refund": 0, + "net": 80000 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 550000, + "refund": 0, + "net": 550000 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 0, + "net": 217163 + }, + { + "account": "助理2现金", + "receipt": 150000, + "refund": 0, + "net": 150000 + } + ], + "paymentCount": 14, + "orderCount": 13 + }, + "totalCost": 2800781, + "recipientReceipts": { + "assistant": { + "recipient": "assistant", + "name": "娜娜", + "receipt": 1123100, + "refund": 0, + "net": 1123100, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118001", + "customer": "对照客户甲", + "reference": "开单时已全额收款", + "note": "客户单备注", + "created": "2026-11-18T02:01:17.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118004", + "customer": "对照客户丁", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118008", + "customer": "对照驳回客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:26.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:53.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户二", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:02:02.000Z" + } + ] + }, + "owner": { + "recipient": "owner", + "name": "麦麦", + "receipt": 1748500, + "refund": 0, + "net": 1748500, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118003", + "customer": "对照客户丙", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:19.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 980000, + "account": "麦麦现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118005", + "customer": "对照草稿客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:23.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "麦麦支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118009", + "customer": "对照分步客户", + "reference": "定金", + "note": "", + "created": "2026-11-18T02:01:31.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 300000, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118009", + "customer": "对照分步客户", + "reference": "尾款", + "note": "", + "created": "2026-11-18T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 80000, + "account": "麦麦微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户四", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:56.000Z" + } + ] + }, + "assistant2": { + "recipient": "assistant2", + "name": "小昊", + "receipt": 917163, + "refund": 0, + "net": 917163, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118002", + "customer": "对照客户乙", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:18.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:24.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户三", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:55.000Z" + } + ] + } + }, + "ownershipReceipts": { + "owner": { + "member": "owner", + "name": "麦麦", + "receipt": 1460000, + "refund": 0, + "net": 1460000, + "accounts": [ + { + "account": "麦麦现金", + "recipient": "owner", + "channel": "cash", + "receipt": 980000, + "refund": 0, + "net": 980000, + "entryCount": 1 + }, + { + "account": "麦麦支付宝", + "recipient": "owner", + "channel": "alipay", + "receipt": 100000, + "refund": 0, + "net": 100000, + "entryCount": 1 + }, + { + "account": "麦麦信用卡", + "recipient": "owner", + "channel": "credit_card", + "receipt": 300000, + "refund": 0, + "net": 300000, + "entryCount": 1 + }, + { + "account": "麦麦微信", + "recipient": "owner", + "channel": "wechat", + "receipt": 80000, + "refund": 0, + "net": 80000, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 980000, + "account": "麦麦现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118005", + "customer": "对照草稿客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:23.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "麦麦支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118009", + "customer": "对照分步客户", + "reference": "定金", + "note": "", + "created": "2026-11-18T02:01:31.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 300000, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118009", + "customer": "对照分步客户", + "reference": "尾款", + "note": "", + "created": "2026-11-18T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 80000, + "account": "麦麦微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户四", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:56.000Z" + } + ] + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "receipt": 1411600, + "refund": 0, + "net": 1411600, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 591100, + "refund": 0, + "net": 591100, + "entryCount": 2 + }, + { + "account": "助理现金", + "recipient": "assistant", + "channel": "cash", + "receipt": 330000, + "refund": 0, + "net": 330000, + "entryCount": 1 + }, + { + "account": "助理支付宝", + "recipient": "assistant", + "channel": "alipay", + "receipt": 202000, + "refund": 0, + "net": 202000, + "entryCount": 2 + }, + { + "account": "麦麦信用卡", + "recipient": "owner", + "channel": "credit_card", + "receipt": 288500, + "refund": 0, + "net": 288500, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118001", + "customer": "对照客户甲", + "reference": "开单时已全额收款", + "note": "客户单备注", + "created": "2026-11-18T02:01:17.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118004", + "customer": "对照客户丁", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118008", + "customer": "对照驳回客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:26.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:53.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户二", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:02:02.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118003", + "customer": "对照客户丙", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:19.000Z" + } + ] + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "receipt": 917163, + "refund": 0, + "net": 917163, + "accounts": [ + { + "account": "助理2支付宝", + "recipient": "assistant2", + "channel": "alipay", + "receipt": 217163, + "refund": 0, + "net": 217163, + "entryCount": 1 + }, + { + "account": "助理2现金", + "recipient": "assistant2", + "channel": "cash", + "receipt": 150000, + "refund": 0, + "net": 150000, + "entryCount": 1 + }, + { + "account": "助理2微信", + "recipient": "assistant2", + "channel": "wechat", + "receipt": 550000, + "refund": 0, + "net": 550000, + "entryCount": 2 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118002", + "customer": "对照客户乙", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:18.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:24.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户三", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:55.000Z" + } + ] + } + }, + "ownershipBusiness": { + "owner": { + "member": "owner", + "name": "麦麦", + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1380000, + "netReceipts": 1460000, + "totalCost": 1251800, + "knownTotalCost": 1251800, + "selfCost": 1251800, + "knownSelfCost": 1251800, + "otherCost": 0, + "knownOtherCost": 0, + "profit": 128200, + "knownProfit": 128200, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 1251800, + "knownTotalCost": 1251800, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 1251800, + "amount": 1251800 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "days": [ + { + "date": "2026-11-18", + "items": [ + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118005", + "customer": "对照草稿客户", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "component": "unallocated", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 900000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118009", + "customer": "对照分步客户", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "component": "unallocated", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 350000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118009", + "customer": "对照分步客户", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 1800, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 1251800, + "amount": 1251800, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 1251800, + "knownOtherAmount": 1251800 + } + ] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "days": [ + { + "date": "2026-11-18", + "recordCount": 3, + "knownMaterialCost": 0, + "knownOtherCost": 1251800, + "knownProfit": 128200, + "ownerNetReceipts": 1460000, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 1251800, + "profit": 128200, + "knownAmount": -80000, + "amount": -80000 + } + ] + }, + "difference": { + "amount": 80000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 1380000, + "totalCost": 1251800, + "profit": 128200, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-18", + "date": "2026-11-18", + "dueOut": 0, + "dueIn": 647081, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 647081, + "openingDue": 0, + "periodNew": -657081, + "periodTransferred": -10000, + "closingDue": -647081, + "offset": 290650, + "period": { + "obligationNet": -657081, + "transferred": -10000, + "receivedForNet": 288500, + "advancedNet": -945581 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + } + ] + }, + "hasActivity": true + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "recordCount": 5, + "orderCount": 4, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1021600, + "netReceipts": 1411600, + "totalCost": 785981, + "knownTotalCost": 785981, + "selfCost": 348250, + "knownSelfCost": 348250, + "otherCost": 437731, + "knownOtherCost": 437731, + "profit": 235619, + "knownProfit": 235619, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 437731, + "knownTotalCost": 437731, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 348250, + "knownTotalCost": 348250, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 3000, + "amount": 272000, + "knownAmount": 272000, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 272000, + "knownAmount": 272000 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [ + { + "mg": 3000, + "amount": 272000, + "knownAmount": 272000, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 272000, + "knownAmount": 272000 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "poolId": "2026-11-18", + "date": "2026-11-18", + "averageRate": 90667, + "sources": [ + { + "kind": "public", + "member": null, + "priceLocked": false, + "mg": 3000, + "averageRate": 90667, + "amount": 272000, + "knownAmount": 272000, + "missingCount": 0 + } + ] + } + ], + "otherCosts": { + "knownAmount": 513981, + "amount": 513981 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "days": [ + { + "date": "2026-11-18", + "items": [ + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118001", + "customer": "对照客户甲", + "name": "料费成本", + "source": "商品 1 · 足金999", + "component": "material", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 286000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118003", + "customer": "对照客户丙", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "component": "unallocated", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 150000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118003", + "customer": "对照客户丙", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 1731, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 437731, + "amount": 437731, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 437731, + "knownOtherAmount": 437731 + } + ] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "days": [ + { + "date": "2026-11-18", + "recordCount": 5, + "knownMaterialCost": 286000, + "knownOtherCost": 151731, + "knownProfit": 235619, + "ownerNetReceipts": 288500, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 286000, + "otherCost": 151731, + "profit": 235619, + "knownAmount": 384850, + "amount": 384850 + } + ] + }, + "difference": { + "amount": 390000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 1021600, + "totalCost": 785981, + "profit": 235619, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-18", + "date": "2026-11-18", + "dueOut": 647081, + "dueIn": 0, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 647081, + "dueIn": 0, + "openingDue": 0, + "periodNew": 657081, + "periodTransferred": 10000, + "closingDue": 647081, + "offset": 290650, + "period": { + "obligationNet": 657081, + "transferred": 10000, + "receivedForNet": -288500, + "advancedNet": 945581 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + } + ] + }, + "hasActivity": true + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "recordCount": 3, + "orderCount": 3, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 867163, + "netReceipts": 917163, + "totalCost": 763000, + "knownTotalCost": 763000, + "selfCost": 763000, + "knownSelfCost": 763000, + "otherCost": 0, + "knownOtherCost": 0, + "profit": 104163, + "knownProfit": 104163, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 763000, + "knownTotalCost": 763000, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 763000, + "amount": 763000 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "days": [] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "days": [ + { + "date": "2026-11-18", + "recordCount": 3, + "knownMaterialCost": 0, + "knownOtherCost": 0, + "knownProfit": 104163, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 0, + "profit": 104163, + "knownAmount": 104163, + "amount": 104163 + } + ] + }, + "difference": { + "amount": 50000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 867163, + "totalCost": 763000, + "profit": 104163, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-18", + "date": "2026-11-18", + "dueOut": 0, + "dueIn": 0, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + }, + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + } + ] + }, + "hasActivity": true + } + }, + "dailyProfits": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-18", + "rows": [ + { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1380000, + "knownTotalCost": 1251800, + "knownProfit": 128200, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-18", + "member": "owner", + "name": "麦麦", + "totalCost": 1251800, + "profit": 128200 + }, + { + "recordCount": 5, + "orderCount": 4, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1021600, + "knownTotalCost": 785981, + "knownProfit": 235619, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-18", + "member": "assistant", + "name": "娜娜", + "totalCost": 785981, + "profit": 235619 + }, + { + "recordCount": 3, + "orderCount": 3, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 867163, + "knownTotalCost": 763000, + "knownProfit": 104163, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-18", + "member": "assistant2", + "name": "小昊", + "totalCost": 763000, + "profit": 104163 + } + ], + "summary": { + "recordCount": 11, + "orderCount": 9, + "afterSaleCount": 2, + "draftCount": 0, + "sales": 3268763, + "knownTotalCost": 2800781, + "knownProfit": 467982, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 2800781, + "profit": 467982 + } + }, + "dailyFunds": { + "date": "2026-11-18", + "from": "2026-11-18", + "team": { + "from": "2026-11-18", + "to": "2026-11-18", + "date": "2026-11-18", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 1748500, + "refunds": 0, + "outlays": 4274531, + "transferIn": 10000, + "transferOut": 0, + "openingChange": 0, + "periodChange": -2516031, + "cumulativeChange": -2516031, + "cashBalance": -2516031, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 1123100, + "refunds": 0, + "outlays": 978400, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 0, + "periodChange": 134700, + "cumulativeChange": 134700, + "cashBalance": 134700, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 917163, + "refunds": 0, + "outlays": 1021000, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": -103837, + "cumulativeChange": -103837, + "cashBalance": -103837, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -647081, + "obligationNet": -657081, + "transferred": -10000, + "receivedForNet": 288500, + "advancedNet": -945581, + "offset": 290650, + "due": 647081, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -657081, + "transferred": -10000, + "receivedForNet": 288500, + "advancedNet": -945581 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-18", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账", + "actor": "麦麦" + } + ], + "revision": "70efa07e17ce0a2addce8e0bd7b8a0453efd7f3a18845ff4958679e7c7e5ec8e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [ + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "补充备注", + "status": "approved", + "revision": 3, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:24.000Z", + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:24.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": false, + "canApprove": false + }, + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照快递", + "amount": 900, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 900 + } + ], + "total": 900, + "note": "", + "status": "rejected", + "revision": 2, + "requester_id": "", + "requester_name": "助理2", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:26.000Z", + "review_note": "凭据不全", + "created": "2026-11-18T02:02:25.000Z", + "updated": "2026-11-18T02:02:26.000Z", + "payer": "assistant2", + "member": "assistant2", + "fundingMode": "independent", + "canEdit": true, + "canApprove": false + } + ], + "approvedReimbursements": 2150, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "70efa07e17ce0a2addce8e0bd7b8a0453efd7f3a18845ff4958679e7c7e5ec8e", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + }, + "reportRevision": "a135c4ad78c72f87ac985349eae3e0fbc880983c86af81708b22bedc856ff5bc" + } + }, + { + "seq": 187, + "note": "section", + "name": "dayTwoLogin" + }, + { + "seq": 188, + "note": "clock", + "date": "2026-11-19", + "hour": 10 + }, + { + "seq": 189, + "label": "session-expired-next-day", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 401, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请先登录" + } + }, + { + "seq": 190, + "label": "login-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/login", + "key": "golden-00090-login-owner", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "麦麦", + "password": "golden-owner-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + } + } + }, + { + "seq": 191, + "label": "login-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/login", + "key": "golden-00091-login-assistant", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "助理1", + "password": "golden-assistant-new-pass" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理", + "role": "assistant", + "member": "assistant", + "operatorName": "娜娜", + "label": "娜娜" + } + } + }, + { + "seq": 192, + "label": "login-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/login", + "key": "golden-00092-login-assistant2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "助理2", + "password": "golden-assistant2-new-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理2", + "role": "assistant", + "member": "assistant2", + "operatorName": "小昊", + "label": "小昊" + } + } + }, + { + "seq": 193, + "note": "section", + "name": "inventoryApprovals" + }, + { + "seq": 194, + "label": null, + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/inventory/movements/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "revision": 1, + "status": "active", + "manual": true, + "canEdit": true, + "canDelete": true, + "requiresApproval": true, + "deleteRequiresApproval": true, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "2.500", + "note": "娜娜手动入库", + "cost": "" + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z" + } + ], + "pending": null + } + }, + { + "seq": 195, + "label": "movement-foreign", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/inventory/movements/", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "库存记录不存在或无权访问" + } + }, + { + "seq": 196, + "label": "movement-update-request", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/inventory/movements//update", + "key": "golden-00093-movement-update-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "3", + "note": "娜娜手动入库", + "cost": "", + "revision": 1, + "reason": "跨天更正克重" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "applied": false, + "pending": true, + "requestId": "", + "request": { + "id": "", + "groupId": "", + "action": "update", + "revision": 1, + "groupRevision": 1, + "status": "pending", + "reason": "跨天更正克重", + "before": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "2.500", + "note": "娜娜手动入库", + "cost": "" + }, + "after": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "3.000", + "note": "娜娜手动入库", + "cost": "" + }, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:07.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": false, + "inventoryRevision": "f9ba1a518632dfdce2281e0ed60f59765fbd918986839f55170f1ad4376c5d93", + "canApprove": false + }, + "group": { + "groupId": "", + "revision": 1, + "status": "active", + "manual": true, + "canEdit": false, + "canDelete": false, + "requiresApproval": true, + "deleteRequiresApproval": true, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "2.500", + "note": "娜娜手动入库", + "cost": "" + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z" + } + ], + "pending": { + "id": "", + "groupId": "", + "action": "update", + "revision": 1, + "groupRevision": 1, + "status": "pending", + "reason": "跨天更正克重", + "before": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "2.500", + "note": "娜娜手动入库", + "cost": "" + }, + "after": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "3.000", + "note": "娜娜手动入库", + "cost": "" + }, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:07.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": false, + "inventoryRevision": "f9ba1a518632dfdce2281e0ed60f59765fbd918986839f55170f1ad4376c5d93", + "canApprove": false + } + } + } + }, + { + "seq": 197, + "label": "inventory-changes-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/inventory/changes", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "groupId": "", + "action": "update", + "revision": 1, + "groupRevision": 1, + "status": "pending", + "reason": "跨天更正克重", + "before": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "2.500", + "note": "娜娜手动入库", + "cost": "" + }, + "after": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "3.000", + "note": "娜娜手动入库", + "cost": "" + }, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:07.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": false, + "inventoryRevision": "f9ba1a518632dfdce2281e0ed60f59765fbd918986839f55170f1ad4376c5d93", + "canApprove": false + } + ], + "counts": { + "pending": 1, + "approved": 0, + "rejected": 0 + } + } + }, + { + "seq": 198, + "label": null, + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "groupId": "", + "action": "update", + "revision": 1, + "groupRevision": 1, + "status": "pending", + "reason": "跨天更正克重", + "before": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "2.500", + "note": "娜娜手动入库", + "cost": "" + }, + "after": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "3.000", + "note": "娜娜手动入库", + "cost": "" + }, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:07.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": false, + "inventoryRevision": "f9ba1a518632dfdce2281e0ed60f59765fbd918986839f55170f1ad4376c5d93", + "canApprove": true + } + }, + { + "seq": 199, + "label": "inventory-self-approve", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/inventory/changes//approve", + "key": "golden-00094-inventory-self-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "inventoryRevision": "f9ba1a518632dfdce2281e0ed60f59765fbd918986839f55170f1ad4376c5d93", + "verified": true + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "库存修改和删除申请必须由麦麦审批" + } + }, + { + "seq": 200, + "label": "inventory-approve", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/inventory/changes//approve", + "key": "golden-00095-inventory-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "inventoryRevision": "f9ba1a518632dfdce2281e0ed60f59765fbd918986839f55170f1ad4376c5d93", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "applied": true, + "pending": false, + "requestId": "", + "request": { + "id": "", + "groupId": "", + "action": "update", + "revision": 2, + "groupRevision": 1, + "status": "approved", + "reason": "跨天更正克重", + "before": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "2.500", + "note": "娜娜手动入库", + "cost": "" + }, + "after": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "3.000", + "note": "娜娜手动入库", + "cost": "" + }, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:07.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:00:11.000Z", + "note": "", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": true, + "inventoryRevision": "35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5", + "canApprove": false + }, + "group": { + "groupId": "", + "revision": 2, + "status": "modified", + "manual": true, + "canEdit": true, + "canDelete": true, + "requiresApproval": false, + "deleteRequiresApproval": false, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "3.000", + "note": "娜娜手动入库", + "cost": "" + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z" + } + ], + "pending": null + } + } + }, + { + "seq": 201, + "label": "movement2", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/inventory/movements/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "revision": 1, + "status": "active", + "manual": true, + "canEdit": true, + "canDelete": true, + "requiresApproval": true, + "deleteRequiresApproval": true, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "decrease", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "0.500", + "note": "娜娜手动出库", + "cost": "" + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z" + } + ], + "pending": null + } + }, + { + "seq": 202, + "label": "movement-delete-request", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/inventory/movements//delete", + "key": "golden-00096-movement-delete-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "reason": "跨天删除申请", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "applied": false, + "pending": true, + "requestId": "", + "request": { + "id": "", + "groupId": "", + "action": "delete", + "revision": 1, + "groupRevision": 1, + "status": "pending", + "reason": "跨天删除申请", + "before": { + "kind": "decrease", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "0.500", + "note": "娜娜手动出库", + "cost": "" + }, + "after": null, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:13.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": false, + "inventoryRevision": "35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5", + "canApprove": false + }, + "group": { + "groupId": "", + "revision": 1, + "status": "active", + "manual": true, + "canEdit": false, + "canDelete": false, + "requiresApproval": true, + "deleteRequiresApproval": true, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "decrease", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "0.500", + "note": "娜娜手动出库", + "cost": "" + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z" + } + ], + "pending": { + "id": "", + "groupId": "", + "action": "delete", + "revision": 1, + "groupRevision": 1, + "status": "pending", + "reason": "跨天删除申请", + "before": { + "kind": "decrease", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "0.500", + "note": "娜娜手动出库", + "cost": "" + }, + "after": null, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:13.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": false, + "inventoryRevision": "35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5", + "canApprove": false + } + } + } + }, + { + "seq": 203, + "label": "inventory-delete-request", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "groupId": "", + "action": "delete", + "revision": 1, + "groupRevision": 1, + "status": "pending", + "reason": "跨天删除申请", + "before": { + "kind": "decrease", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "0.500", + "note": "娜娜手动出库", + "cost": "" + }, + "after": null, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:13.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": false, + "inventoryRevision": "35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5", + "canApprove": true + } + }, + { + "seq": 204, + "label": "inventory-reject", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/inventory/changes//reject", + "key": "golden-00097-inventory-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "note": "保留原记录" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "applied": false, + "pending": false, + "requestId": "", + "request": { + "id": "", + "groupId": "", + "action": "delete", + "revision": 2, + "groupRevision": 1, + "status": "rejected", + "reason": "跨天删除申请", + "before": { + "kind": "decrease", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "0.500", + "note": "娜娜手动出库", + "cost": "" + }, + "after": null, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:13.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:00:15.000Z", + "note": "保留原记录", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": false, + "inventoryRevision": "35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5", + "canApprove": false + }, + "group": { + "groupId": "", + "revision": 1, + "status": "active", + "manual": true, + "canEdit": true, + "canDelete": true, + "requiresApproval": false, + "deleteRequiresApproval": false, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "decrease", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "0.500", + "note": "娜娜手动出库", + "cost": "" + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z" + } + ], + "pending": null + } + } + }, + { + "seq": 205, + "label": "stock-same-day", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/stock", + "key": "golden-00098-stock-same-day", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "kind": "increase", + "pocket": "金料", + "grams": "1", + "note": "当天手动入库" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "group": "" + } + }, + { + "seq": 206, + "label": "movements-assistant-d2", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/inventory/movements", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "pocket": "", + "pockets": [ + { + "pocket": "现货", + "active": true + }, + { + "pocket": "金料", + "active": true + }, + { + "pocket": "找金", + "active": true + }, + { + "pocket": "回收旧料", + "active": true + }, + { + "pocket": "君宝汇", + "active": true + }, + { + "pocket": "pocket_", + "active": true + } + ], + "kind": "all", + "hideDeleted": false, + "from": "", + "to": "", + "total": 17, + "shown": 17, + "limit": 100, + "pageSize": 100, + "page": 1, + "totalPages": 1, + "hasPrev": false, + "hasNext": false, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": -10000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "展柜起始", + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始金料", + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始库存", + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 207, + "label": "movement-same-day", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/inventory/movements/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "revision": 1, + "status": "active", + "manual": true, + "canEdit": true, + "canDelete": true, + "requiresApproval": false, + "deleteRequiresApproval": true, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "increase", + "date": "2026-11-19", + "pocket": "金料", + "to": "", + "grams": "1.000", + "note": "当天手动入库", + "cost": "" + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z" + } + ], + "pending": null + } + }, + { + "seq": 208, + "label": "movement-update-direct", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/inventory/movements//update", + "key": "golden-00099-movement-update-direct", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "kind": "increase", + "date": "2026-11-19", + "pocket": "金料", + "to": "", + "grams": "1.2", + "note": "当天手动入库", + "cost": "", + "revision": 1, + "reason": "当天更正" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "applied": true, + "pending": false, + "group": { + "groupId": "", + "revision": 2, + "status": "modified", + "manual": true, + "canEdit": true, + "canDelete": true, + "requiresApproval": false, + "deleteRequiresApproval": true, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "increase", + "date": "2026-11-19", + "pocket": "金料", + "to": "", + "grams": "1.200", + "note": "当天手动入库", + "cost": "" + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z" + } + ], + "pending": null + } + } + }, + { + "seq": 209, + "label": "movement-owner-view", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/movements/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "revision": 2, + "status": "modified", + "manual": true, + "canEdit": true, + "canDelete": true, + "requiresApproval": false, + "deleteRequiresApproval": false, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "increase", + "date": "2026-11-19", + "pocket": "金料", + "to": "", + "grams": "1.200", + "note": "当天手动入库", + "cost": "" + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z" + } + ], + "pending": null + } + }, + { + "seq": 210, + "label": "movement-delete-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/inventory/movements//delete", + "key": "golden-00100-movement-delete-owner", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 2, + "reason": "老板删除", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "groupId": "", + "applied": true, + "pending": false, + "group": { + "groupId": "", + "revision": 3, + "status": "deleted", + "manual": true, + "canEdit": false, + "canDelete": false, + "requiresApproval": false, + "deleteRequiresApproval": false, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "values": { + "kind": "increase", + "date": "2026-11-19", + "pocket": "金料", + "to": "", + "grams": "1.200", + "note": "当天手动入库", + "cost": "" + }, + "movements": [], + "pending": null + } + } + }, + { + "seq": 211, + "label": "inventory-changes-all", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "groupId": "", + "action": "delete", + "revision": 2, + "groupRevision": 1, + "status": "rejected", + "reason": "跨天删除申请", + "before": { + "kind": "decrease", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "0.500", + "note": "娜娜手动出库", + "cost": "" + }, + "after": null, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:13.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:00:15.000Z", + "note": "保留原记录", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": false, + "inventoryRevision": "35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5", + "canApprove": false + }, + { + "id": "", + "groupId": "", + "action": "update", + "revision": 2, + "groupRevision": 1, + "status": "approved", + "reason": "跨天更正克重", + "before": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "2.500", + "note": "娜娜手动入库", + "cost": "" + }, + "after": { + "kind": "increase", + "date": "2026-11-18", + "pocket": "现货", + "to": "", + "grams": "3.000", + "note": "娜娜手动入库", + "cost": "" + }, + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:00:07.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:00:11.000Z", + "note": "", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "staleReason": "", + "inventoryChanged": true, + "inventoryRevision": "35ff0079df5382b6e27b0c2cb1c2e2c4710f39bc52ccee9de1c74f2057e17ee5", + "canApprove": false + } + ], + "counts": { + "pending": 0, + "approved": 1, + "rejected": 1 + } + } + }, + { + "seq": 212, + "note": "section", + "name": "orderChangesAndApprovals" + }, + { + "seq": 213, + "label": "order-edit-context", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders//edit", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "financialEditable": true, + "reason": "", + "revision": 4, + "inputs": { + "id": "", + "date": "2026-11-18", + "customer": "对照客户甲", + "customer_type": "unknown", + "salesperson": "娜娜", + "note": "客户单备注", + "internal_note": "#复购 内部备注", + "discount": "0.00", + "rounding_mode": "yuan", + "fee_cost_mode": "legacy", + "fees_date": "2026-11-18", + "payment_account": "助理微信", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.250", + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": "2902.00", + "costParts": { + "material": "2860.00", + "labor": "40.00", + "accessories": "2.00", + "other": "0.00" + }, + "costMaterial": { + "mode": "gram", + "rate": "880.00" + }, + "costLabor": { + "mode": "total", + "rate": "" + }, + "sale": "3210.50", + "baseSale": "3185.00", + "charges": [ + { + "name": "刻字", + "amount": "20.00" + }, + { + "name": "包装", + "amount": "5.50" + } + ], + "pricingMode": "auto", + "goldPrice": "950.00", + "laborRate": "30.00", + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "fee_items": [ + { + "key": "shipping", + "amount": "12.00", + "payer": "assistant", + "note": "快递", + "status": "estimated", + "edited": true, + "expense_id": "", + "date": "2026-11-18" + } + ] + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "改为未打印", + "actor": "助理", + "detail": { + "printed": false, + "notice": "记录打印操作状态,不改变订单账目", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:50.000Z" + }, + { + "action": "记录打印操作", + "actor": "助理", + "detail": { + "printed": true, + "notice": "记录打印操作状态,不改变订单账目", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:48.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 321100, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "3211.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "directEditDate": "2026-11-19", + "requiresApproval": true, + "changePending": null + } + }, + { + "seq": 214, + "label": "order-edit-cross-day-denied", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//edit", + "key": "golden-00101-order-edit-cross-day-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "id": "", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "customer_type": "unknown", + "salesperson": "娜娜", + "note": "客户单备注", + "internal_note": "#复购 内部备注", + "discount": "0.00", + "rounding_mode": "yuan", + "fee_cost_mode": "legacy", + "fees_date": "2026-11-18", + "payment_account": "助理微信", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.250", + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": "2902.00", + "costParts": { + "material": "2860.00", + "labor": "40.00", + "accessories": "2.00", + "other": "0.00" + }, + "costMaterial": { + "mode": "gram", + "rate": "880.00" + }, + "costLabor": { + "mode": "total", + "rate": "" + }, + "sale": "3210.50", + "baseSale": "3185.00", + "charges": [ + { + "name": "刻字", + "amount": "20.00" + }, + { + "name": "包装", + "amount": "5.50" + } + ], + "pricingMode": "auto", + "goldPrice": "950.00", + "laborRate": "30.00", + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "fee_items": [ + { + "key": "shipping", + "amount": "12.00", + "payer": "assistant", + "note": "快递", + "status": "estimated", + "edited": true, + "expense_id": "", + "date": "2026-11-18" + } + ], + "revision": 4, + "reason": "跨天修改客户名", + "verified": true + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "助理仅可直接保存原单日期和保存日期都为今天的修改;其他日期请提交修改申请,由麦麦复核后生效" + } + }, + { + "seq": 215, + "label": "order-change-request", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//change", + "key": "golden-00102-order-change-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "id": "", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "customer_type": "unknown", + "salesperson": "娜娜", + "note": "客户单备注", + "internal_note": "#复购 内部备注", + "discount": "0.00", + "rounding_mode": "yuan", + "fee_cost_mode": "legacy", + "fees_date": "2026-11-18", + "payment_account": "助理微信", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.250", + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": "2902.00", + "costParts": { + "material": "2860.00", + "labor": "40.00", + "accessories": "2.00", + "other": "0.00" + }, + "costMaterial": { + "mode": "gram", + "rate": "880.00" + }, + "costLabor": { + "mode": "total", + "rate": "" + }, + "sale": "3210.50", + "baseSale": "3185.00", + "charges": [ + { + "name": "刻字", + "amount": "20.00" + }, + { + "name": "包装", + "amount": "5.50" + } + ], + "pricingMode": "auto", + "goldPrice": "950.00", + "laborRate": "30.00", + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "fee_items": [ + { + "key": "shipping", + "amount": "12.00", + "payer": "assistant", + "note": "快递", + "status": "estimated", + "edited": true, + "expense_id": "", + "date": "2026-11-18" + } + ], + "revision": 4, + "reason": "跨天修改客户名", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "跨天修改客户名", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "relatedOrders": [] + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": { + "id": "", + "status": "pending", + "action": "edit", + "action_label": "修改订单", + "order_revision": 4, + "reason": "跨天修改客户名", + "requester_name": "助理", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false + }, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "edit", + "reason": "跨天修改客户名", + "revision": 4, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:25.000Z" + }, + { + "action": "改为未打印", + "actor": "助理", + "detail": { + "printed": false, + "notice": "记录打印操作状态,不改变订单账目", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:50.000Z" + }, + { + "action": "记录打印操作", + "actor": "助理", + "detail": { + "printed": true, + "notice": "记录打印操作状态,不改变订单账目", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:48.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 321100, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "3211.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 216, + "label": "order-change-context", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders//change", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": false, + "reason": "本单有待审批修改申请,请先由麦麦同意或驳回后再改动", + "actions": { + "edit": { + "eligible": false, + "reason": "本单有待审批修改申请,请先由麦麦同意或驳回后再改动", + "directToday": false + }, + "expense": { + "eligible": false, + "reason": "本单有待审批修改申请,请先由麦麦同意或驳回后再改动", + "directToday": false + }, + "fees": { + "eligible": false, + "reason": "本单有待审批修改申请,请先由麦麦同意或驳回后再改动", + "directToday": false + }, + "refund": { + "eligible": false, + "reason": "本单有待审批修改申请,请先由麦麦同意或驳回后再改动", + "directToday": false + }, + "return": { + "eligible": false, + "reason": "本单有待审批修改申请,请先由麦麦同意或驳回后再改动", + "directToday": false + }, + "cost": { + "eligible": false, + "reason": "本单有待审批修改申请,请先由麦麦同意或驳回后再改动", + "directToday": false + } + }, + "directActionDate": "2026-11-19", + "revision": 4, + "pending": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "跨天修改客户名", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "relatedOrders": [] + }, + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "跨天修改客户名", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "relatedOrders": [] + } + ], + "canApprove": false + } + }, + { + "seq": 217, + "label": "order-changes-list", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-changes", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "跨天修改客户名", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": true, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "relatedOrders": [] + } + ], + "counts": { + "pending": 1, + "approved": 0, + "rejected": 0 + }, + "canApprove": true + } + }, + { + "seq": 218, + "label": "order-change-detail", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "跨天修改客户名", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": true, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "relatedOrders": [] + } + }, + { + "seq": 219, + "label": "order-change-self-approve", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/order-changes//approve", + "key": "golden-00103-order-change-self-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 4, + "verified": true, + "note": "自批" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "修改申请必须由麦麦账号审批" + } + }, + { + "seq": 220, + "label": "order-change-stale", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/order-changes//approve", + "key": "golden-00104-order-change-stale", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 0, + "verified": true, + "note": "旧版本" + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "订单、付款、物料或库存已有新变动,这份修改申请已过期,请驳回后重新申请" + } + }, + { + "seq": 221, + "label": "order-change-approve", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/order-changes//approve", + "key": "golden-00105-order-change-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 4, + "verified": true, + "note": "凭据已核对" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "跨天修改客户名", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:31.000Z", + "note": "凭据已核对", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "relatedOrders": [] + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "edit", + "action_label": "修改订单", + "order_revision": 4, + "reason": "跨天修改客户名", + "requester_name": "助理", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:31.000Z", + "note": "凭据已核对" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "同意修改订单", + "actor": "麦麦", + "detail": { + "requestId": "", + "action": "edit", + "reason": "跨天修改客户名", + "note": "凭据已核对", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:00:25.000Z", + "reviewed": "2026-11-19T02:00:31.000Z", + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "notice": "按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:31.000Z" + }, + { + "action": "整单账务修改", + "actor": "麦麦", + "detail": { + "reason": "跨天修改客户名", + "before": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 321100, + "goods": 290200, + "expense": 1200, + "profit": 29700, + "created": "2026-11-18T02:01:17.000Z" + } + ], + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ] + }, + "after": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "revision": 5, + "received": 321100, + "goods": 290200, + "expense": 1200, + "profit": 29700, + "settlementDue": 0 + }, + "notice": "原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:31.000Z" + }, + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "edit", + "reason": "跨天修改客户名", + "revision": 4, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:25.000Z" + }, + { + "action": "改为未打印", + "actor": "助理", + "detail": { + "printed": false, + "notice": "记录打印操作状态,不改变订单账目", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:50.000Z" + }, + { + "action": "记录打印操作", + "actor": "助理", + "detail": { + "printed": true, + "notice": "记录打印操作状态,不改变订单账目", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:48.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 321100, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "3211.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:17.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:31.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 222, + "label": "order-edit-context-2", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders//edit", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "financialEditable": true, + "reason": "", + "revision": 4, + "inputs": { + "id": "", + "date": "2026-11-18", + "customer": "对照驳回客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "note": "", + "internal_note": "驳回单备注", + "discount": "0.00", + "rounding_mode": "cent", + "fee_cost_mode": "legacy", + "fees_date": "2026-11-18", + "payment_account": "助理支付宝", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": "0.800", + "pocket": "现货", + "payer": "assistant", + "cost": "700.00", + "costMaterial": { + "mode": "gram" + }, + "costLabor": { + "mode": "total", + "rate": "" + }, + "sale": "820.00", + "baseSale": "820.00", + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "fee_items": [] + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 82000, + "account": "助理支付宝", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "820.00", + "account": "助理支付宝", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:26.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "directEditDate": "2026-11-19", + "requiresApproval": true, + "changePending": null + } + }, + { + "seq": 223, + "label": "order-change-request-2", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//change", + "key": "golden-00106-order-change-request-2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "id": "", + "date": "2026-11-18", + "customer": "对照驳回客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "note": "", + "internal_note": "驳回单备注", + "discount": "0.00", + "rounding_mode": "cent", + "fee_cost_mode": "legacy", + "fees_date": "2026-11-18", + "payment_account": "助理支付宝", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": "0.800", + "pocket": "现货", + "payer": "assistant", + "cost": "700.00", + "costMaterial": { + "mode": "gram" + }, + "costLabor": { + "mode": "total", + "rate": "" + }, + "sale": "800", + "baseSale": "820.00", + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "fee_items": [], + "revision": 4, + "reason": "想改售价", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "想改售价", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:33.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:26.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "2026-11-18", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:33.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "fees_date", + "label": "费用日期", + "before": "", + "after": "2026-11-18" + } + ], + "relatedOrders": [] + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": { + "id": "", + "status": "pending", + "action": "edit", + "action_label": "修改订单", + "order_revision": 4, + "reason": "想改售价", + "requester_name": "助理", + "created": "2026-11-19T02:00:33.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false + }, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "edit", + "reason": "想改售价", + "revision": 4, + "changes": [ + { + "field": "fees_date", + "label": "费用日期", + "before": "", + "after": "2026-11-18" + } + ], + "summary": { + "before": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:33.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 82000, + "account": "助理支付宝", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "820.00", + "account": "助理支付宝", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:26.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 224, + "label": "order-change-reject", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/order-changes//reject", + "key": "golden-00107-order-change-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "note": "售价无误" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "想改售价", + "status": "rejected", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:33.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:34.000Z", + "note": "售价无误", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:26.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "2026-11-18", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:33.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "fees_date", + "label": "费用日期", + "before": "", + "after": "2026-11-18" + } + ], + "relatedOrders": [] + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "驳回修改申请", + "actor": "麦麦", + "detail": { + "requestId": "", + "action": "edit", + "reason": "想改售价", + "note": "售价无误", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:00:33.000Z", + "reviewed": "2026-11-19T02:00:34.000Z", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:34.000Z" + }, + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "edit", + "reason": "想改售价", + "revision": 4, + "changes": [ + { + "field": "fees_date", + "label": "费用日期", + "before": "", + "after": "2026-11-18" + } + ], + "summary": { + "before": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:33.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 82000, + "account": "助理支付宝", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "820.00", + "account": "助理支付宝", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:26.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 225, + "label": "order-change-actions", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders//change", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "reason": "", + "actions": { + "edit": { + "eligible": true, + "reason": "", + "directToday": false + }, + "expense": { + "eligible": true, + "reason": "", + "directToday": false + }, + "fees": { + "eligible": false, + "reason": "本单没有待核实的附加成本", + "directToday": false + }, + "refund": { + "eligible": false, + "reason": "先登记退货并复核,仍有待退客户款时才能申请退款", + "directToday": false + }, + "return": { + "eligible": true, + "reason": "", + "directToday": false + }, + "cost": { + "eligible": false, + "reason": "只有待交付订单可以申请补录成本", + "directToday": false + } + }, + "directActionDate": "2026-11-19", + "revision": 4, + "pending": null, + "requests": [], + "canApprove": false + } + }, + { + "seq": 226, + "label": "order-expense-request", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//change", + "key": "golden-00108-order-expense-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "action": "expense", + "date": "2026-11-19", + "revision": 4, + "reason": "补记快递", + "verified": true, + "amount": "10", + "payer": "assistant", + "note": "补寄快递" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "expense", + "reason": "补记快递", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "action_label": "费用补记", + "action_input": { + "date": "2026-11-19", + "amount": "10", + "payer": "assistant", + "note": "补寄快递" + }, + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 58000, + "profit": 58000, + "knownProfit": 58000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:20.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57000, + "profit": 57000, + "knownProfit": 57000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:36.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "changes": [ + { + "field": "expenses", + "label": "实际费用流水", + "before": [], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ] + }, + { + "field": "directCost", + "label": "直接费用", + "before": 0, + "after": 1000 + }, + { + "field": "profit", + "label": "利润", + "before": 58000, + "after": 57000 + } + ], + "relatedOrders": [] + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": { + "id": "", + "status": "pending", + "action": "expense", + "action_label": "费用补记", + "order_revision": 4, + "reason": "补记快递", + "requester_name": "助理", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false + }, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 58000, + "profit": 58000, + "knownProfit": 58000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "expense", + "reason": "补记快递", + "revision": 4, + "changes": [ + { + "field": "expenses", + "label": "实际费用流水", + "before": [], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ] + }, + { + "field": "directCost", + "label": "直接费用", + "before": 0, + "after": 1000 + }, + { + "field": "profit", + "label": "利润", + "before": 58000, + "after": 57000 + } + ], + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:36.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 330000, + "account": "助理现金", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "3300.00", + "account": "助理现金", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:20.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 227, + "label": "order-expense-approve", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/order-changes//approve", + "key": "golden-00109-order-expense-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 4, + "verified": true, + "note": "核实" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "expense", + "reason": "补记快递", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实", + "action_label": "费用补记", + "action_input": { + "date": "2026-11-19", + "amount": "10", + "payer": "assistant", + "note": "补寄快递" + }, + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 58000, + "profit": 58000, + "knownProfit": 58000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:20.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57000, + "profit": 57000, + "knownProfit": 57000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:36.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "changes": [ + { + "field": "expenses", + "label": "实际费用流水", + "before": [], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ] + }, + { + "field": "directCost", + "label": "直接费用", + "before": 0, + "after": 1000 + }, + { + "field": "profit", + "label": "利润", + "before": 58000, + "after": 57000 + } + ], + "relatedOrders": [] + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "expense", + "action_label": "费用补记", + "order_revision": 4, + "reason": "补记快递", + "requester_name": "助理", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "麦麦", + "created": "2026-11-19T02:00:37.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57000, + "profit": 57000, + "knownProfit": 57000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "同意修改订单", + "actor": "麦麦", + "detail": { + "requestId": "", + "action": "expense", + "reason": "补记快递", + "note": "核实", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:00:36.000Z", + "reviewed": "2026-11-19T02:00:37.000Z", + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "notice": "按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:37.000Z" + }, + { + "action": "expense", + "actor": "麦麦", + "detail": { + "date": "2026-11-19", + "amount": "10", + "payer": "assistant", + "note": "补寄快递", + "revision": 5, + "reason": "补记快递", + "verified": true, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:37.000Z" + }, + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "expense", + "reason": "补记快递", + "revision": 4, + "changes": [ + { + "field": "expenses", + "label": "实际费用流水", + "before": [], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ] + }, + { + "field": "directCost", + "label": "直接费用", + "before": 0, + "after": 1000 + }, + { + "field": "profit", + "label": "利润", + "before": 58000, + "after": 57000 + } + ], + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:36.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 330000, + "account": "助理现金", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "3300.00", + "account": "助理现金", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:37.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 228, + "label": "owner-edit-context", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/orders//edit", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "financialEditable": true, + "reason": "", + "revision": 4, + "inputs": { + "id": "", + "date": "2026-11-18", + "customer": "对照客户丙", + "customer_type": "unknown", + "salesperson": "麦麦", + "note": "", + "internal_note": "一口价备注", + "discount": "3.00", + "rounding_mode": "yuan", + "fee_cost_mode": "legacy", + "fees_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": "1500.00", + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total", + "rate": "" + }, + "sale": "2888.40", + "baseSale": "2888.40", + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": "17.31", + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "estimated", + "expense_id": "", + "edited": true + } + ] + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 288500, + "refunded": 0, + "netReceived": 288500, + "balance": 0, + "rounding_adjustment": -40, + "goodsCost": 150000, + "directCost": 1731, + "materialCostPending": false, + "knownGoodsCost": 150000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 136769, + "profit": 136769, + "knownProfit": 136769, + "ownerCost": 151731, + "ownerDirect": 288500, + "ownerCredit": 288500, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "麦麦", + "detail": { + "amount": 288500, + "account": "麦麦信用卡", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "complete", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "deliver", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "receipt", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "amount": "2885.00", + "account": "麦麦信用卡", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "confirm", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:19.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "directEditDate": "2026-11-19", + "requiresApproval": false, + "changePending": null + } + }, + { + "seq": 229, + "label": "owner-edit-order", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/orders//edit", + "key": "golden-00110-owner-edit-order", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "id": "", + "date": "2026-11-18", + "customer": "对照客户丙", + "customer_type": "unknown", + "salesperson": "麦麦", + "note": "老板改备注", + "internal_note": "一口价备注", + "discount": "3.00", + "rounding_mode": "yuan", + "fee_cost_mode": "legacy", + "fees_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": "1500.00", + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total", + "rate": "" + }, + "sale": "2888.40", + "baseSale": "2888.40", + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": "17.31", + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "estimated", + "expense_id": "", + "edited": true + } + ], + "revision": 4, + "reason": "老板更正备注", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 5, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 288500, + "refunded": 0, + "netReceived": 288500, + "balance": 0, + "rounding_adjustment": -40, + "goodsCost": 150000, + "directCost": 1731, + "materialCostPending": false, + "knownGoodsCost": 150000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 136769, + "profit": 136769, + "knownProfit": 136769, + "ownerCost": 151731, + "ownerDirect": 288500, + "ownerCredit": 288500, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "整单账务修改", + "actor": "麦麦", + "detail": { + "reason": "老板更正备注", + "before": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "created": "2026-11-18T02:01:19.000Z" + } + ], + "movements": [] + }, + "after": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "revision": 5, + "received": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "settlementDue": 0 + }, + "notice": "原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:39.000Z" + }, + { + "action": "生成已交付单据", + "actor": "麦麦", + "detail": { + "amount": 288500, + "account": "麦麦信用卡", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "complete", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "deliver", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "receipt", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "amount": "2885.00", + "account": "麦麦信用卡", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "confirm", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:39.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 230, + "label": "cancellation-context", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders//cancellation", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "reason": "", + "revision": 4, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "directActionDate": "2026-11-19", + "directToday": false, + "pending": null, + "requests": [], + "canApprove": false + } + }, + { + "seq": 231, + "label": "cancellation-request", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders//cancellation", + "key": "golden-00111-cancellation-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 4, + "reason": "重复录入" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "reason": "重复录入", + "status": "pending", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 150000, + "netReceived": 150000, + "goodsCost": 130000, + "directCost": 0, + "profit": 20000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ] + } + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照取消客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118006", + "status": "delivered", + "lines": [ + { + "name": "足金戒指", + "code": "", + "unit": "g", + "quantity": 1500, + "pocket": "现货", + "payer": "assistant2", + "cost": 130000, + "sale": 150000, + "baseSale": 150000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 150000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:24.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "取消单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": { + "id": "", + "status": "pending", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false + }, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 150000, + "refunded": 0, + "netReceived": 150000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 130000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 130000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 20000, + "profit": 20000, + "knownProfit": 20000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "申请取消订单", + "actor": "助理2", + "detail": { + "requestId": "", + "reason": "重复录入", + "revision": 4, + "summary": { + "total": 150000, + "netReceived": 150000, + "goodsCost": 130000, + "directCost": 0, + "profit": 20000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ] + }, + "notice": "申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-19T02:00:41.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理2", + "detail": { + "amount": 150000, + "account": "助理2现金", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "complete", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "deliver", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "receipt", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "amount": "1500.00", + "account": "助理2现金", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "confirm", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "保存草稿", + "actor": "助理2", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:24.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 232, + "label": "cancellations-list", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-cancellations", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 4, + "reason": "重复录入", + "status": "pending", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": true, + "summary": { + "total": 150000, + "netReceived": 150000, + "goodsCost": 130000, + "directCost": 0, + "profit": 20000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ] + } + } + ], + "counts": { + "pending": 1, + "approved": 0, + "rejected": 0 + }, + "canApprove": true + } + }, + { + "seq": 233, + "label": "cancellation-detail", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-cancellations/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "order_id": "", + "order_revision": 4, + "reason": "重复录入", + "status": "pending", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": true, + "summary": { + "total": 150000, + "netReceived": 150000, + "goodsCost": 130000, + "directCost": 0, + "profit": 20000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ] + } + } + }, + { + "seq": 234, + "label": "cancellation-self-approve", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/order-cancellations//approve", + "key": "golden-00112-cancellation-self-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 4, + "verified": true, + "note": "自批" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "取消申请必须由麦麦账号审批" + } + }, + { + "seq": 235, + "label": "cancellation-approve", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/order-cancellations//approve", + "key": "golden-00113-cancellation-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 4, + "verified": true, + "note": "核对原单后确认" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "reason": "重复录入", + "status": "approved", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 150000, + "netReceived": 150000, + "goodsCost": 130000, + "directCost": 0, + "profit": 20000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ] + } + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照取消客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118006", + "status": "cancelled", + "lines": [ + { + "name": "足金戒指", + "code": "", + "unit": "g", + "quantity": 1500, + "pocket": "现货", + "payer": "assistant2", + "cost": 130000, + "sale": 150000, + "baseSale": 150000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 150000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:24.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "取消单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "reference": "更正冲回:取消审批作废;重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 130000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 130000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 20000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "同意取消订单(录错作废)", + "actor": "麦麦", + "detail": { + "requestId": "", + "reason": "重复录入", + "note": "核对原单后确认", + "requestedBy": "助理2", + "requestedAt": "2026-11-19T02:00:41.000Z", + "reviewed": "2026-11-19T02:00:45.000Z", + "before": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照取消客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118006", + "status": "delivered", + "lines": [ + { + "name": "足金戒指", + "code": "", + "unit": "g", + "quantity": 1500, + "pocket": "现货", + "payer": "assistant2", + "cost": 130000, + "sale": 150000, + "baseSale": 150000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 150000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:24.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "取消单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z" + } + ], + "expenses": [], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 150000, + "goods": 130000, + "expense": 0, + "profit": 20000, + "created": "2026-11-18T02:01:24.000Z" + } + ], + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z" + } + ], + "corrections": [], + "materialUsages": [], + "priceLock": null + }, + "after": { + "revision": 5, + "status": "cancelled", + "netReceived": 0, + "directCost": 0, + "profit": 0, + "settlementDue": 0 + }, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ], + "notice": "原订单、作废记录、收支与库存流水保留;不是客户退货退款;原采购和双方实际交款不变,原已交款按作废后的应结余额处理", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:45.000Z" + }, + { + "action": "申请取消订单", + "actor": "助理2", + "detail": { + "requestId": "", + "reason": "重复录入", + "revision": 4, + "summary": { + "total": 150000, + "netReceived": 150000, + "goodsCost": 130000, + "directCost": 0, + "profit": 20000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ] + }, + "notice": "申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-19T02:00:41.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理2", + "detail": { + "amount": 150000, + "account": "助理2现金", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "complete", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "deliver", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "receipt", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "amount": "1500.00", + "account": "助理2现金", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "confirm", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "保存草稿", + "actor": "助理2", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:45.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 236, + "label": "cancelled-order", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照取消客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118006", + "status": "cancelled", + "lines": [ + { + "name": "足金戒指", + "code": "", + "unit": "g", + "quantity": 1500, + "pocket": "现货", + "payer": "assistant2", + "cost": 130000, + "sale": 150000, + "baseSale": 150000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 150000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:24.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "取消单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "reference": "更正冲回:取消审批作废;重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 130000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 130000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 20000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "同意取消订单(录错作废)", + "actor": "麦麦", + "detail": { + "requestId": "", + "reason": "重复录入", + "note": "核对原单后确认", + "requestedBy": "助理2", + "requestedAt": "2026-11-19T02:00:41.000Z", + "reviewed": "2026-11-19T02:00:45.000Z", + "before": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照取消客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118006", + "status": "delivered", + "lines": [ + { + "name": "足金戒指", + "code": "", + "unit": "g", + "quantity": 1500, + "pocket": "现货", + "payer": "assistant2", + "cost": 130000, + "sale": 150000, + "baseSale": 150000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 150000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:24.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "取消单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z" + } + ], + "expenses": [], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 150000, + "goods": 130000, + "expense": 0, + "profit": 20000, + "created": "2026-11-18T02:01:24.000Z" + } + ], + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z" + } + ], + "corrections": [], + "materialUsages": [], + "priceLock": null + }, + "after": { + "revision": 5, + "status": "cancelled", + "netReceived": 0, + "directCost": 0, + "profit": 0, + "settlementDue": 0 + }, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ], + "notice": "原订单、作废记录、收支与库存流水保留;不是客户退货退款;原采购和双方实际交款不变,原已交款按作废后的应结余额处理", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:45.000Z" + }, + { + "action": "申请取消订单", + "actor": "助理2", + "detail": { + "requestId": "", + "reason": "重复录入", + "revision": 4, + "summary": { + "total": 150000, + "netReceived": 150000, + "goodsCost": 130000, + "directCost": 0, + "profit": 20000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ] + }, + "notice": "申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-19T02:00:41.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理2", + "detail": { + "amount": 150000, + "account": "助理2现金", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "complete", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "deliver", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "receipt", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "amount": "1500.00", + "account": "助理2现金", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "confirm", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + }, + { + "action": "保存草稿", + "actor": "助理2", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:24.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:45.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 237, + "label": "refund-cancelled-voided", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/orders//refund", + "key": "golden-00114-refund-cancelled-voided", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "amount": "0.00", + "account": "助理2现金", + "verified": true, + "reference": "退回客户" + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "本单已作废,不能新增收退款、费用、材料或交付;真实双方交款余额可继续处理" + } + }, + { + "seq": 238, + "label": "ownership-context", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/orders//ownership", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "reason": "", + "revision": 4, + "member": "assistant", + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "requiresApproval": false, + "canDirect": true, + "canApprove": true, + "pending": null, + "requests": [] + } + }, + { + "seq": 239, + "label": "ownership-direct", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/orders//ownership", + "key": "golden-00115-ownership-direct", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "member": "assistant2", + "revision": 4, + "reason": "核实业务归属", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "核实业务归属", + "status": "approved", + "direct": true, + "requester_id": "", + "requester_name": "麦麦", + "requester_role": "owner", + "created": "2026-11-19T02:00:49.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:49.000Z", + "note": "", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261118-", + "order_customer": "对照驳回客户", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false + }, + "applied": true, + "revision": 5, + "member": "assistant2", + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "核实业务归属", + "requester_name": "麦麦", + "created": "2026-11-19T02:00:49.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:49.000Z", + "note": "", + "direct": true + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "直接修改订单归属", + "actor": "麦麦", + "detail": { + "requestId": "", + "reason": "核实业务归属", + "note": "", + "requestedBy": "麦麦", + "requestedAt": "2026-11-19T02:00:49.000Z", + "before": { + "member": "assistant", + "label": "娜娜", + "revision": 4 + }, + "after": { + "member": "assistant2", + "label": "小昊", + "revision": 5 + }, + "related": [ + { + "kind": "order", + "id": "" + }, + { + "kind": "movement", + "id": "" + } + ], + "notice": "业绩、成本和利润随订单归属;实际收付款账户、付款人、金额、库存与成本利润数值保持不变,成员往来仅追加归属差额,真实转账保留", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:49.000Z" + }, + { + "action": "驳回修改申请", + "actor": "麦麦", + "detail": { + "requestId": "", + "action": "edit", + "reason": "想改售价", + "note": "售价无误", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:00:33.000Z", + "reviewed": "2026-11-19T02:00:34.000Z", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:34.000Z" + }, + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "edit", + "reason": "想改售价", + "revision": 4, + "changes": [ + { + "field": "fees_date", + "label": "费用日期", + "before": "", + "after": "2026-11-18" + } + ], + "summary": { + "before": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:33.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 82000, + "account": "助理支付宝", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "820.00", + "account": "助理支付宝", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:49.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 240, + "label": "order-after-ownership-old-owner", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 241, + "label": "order-after-ownership-new-owner", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "核实业务归属", + "requester_name": "麦麦", + "created": "2026-11-19T02:00:49.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:49.000Z", + "note": "", + "direct": true + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "直接修改订单归属", + "actor": "麦麦", + "detail": { + "requestId": "", + "reason": "核实业务归属", + "note": "", + "requestedBy": "麦麦", + "requestedAt": "2026-11-19T02:00:49.000Z", + "before": { + "member": "assistant", + "label": "娜娜", + "revision": 4 + }, + "after": { + "member": "assistant2", + "label": "小昊", + "revision": 5 + }, + "related": [ + { + "kind": "order", + "id": "" + }, + { + "kind": "movement", + "id": "" + } + ], + "notice": "业绩、成本和利润随订单归属;实际收付款账户、付款人、金额、库存与成本利润数值保持不变,成员往来仅追加归属差额,真实转账保留", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:49.000Z" + }, + { + "action": "驳回修改申请", + "actor": "麦麦", + "detail": { + "requestId": "", + "action": "edit", + "reason": "想改售价", + "note": "售价无误", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:00:33.000Z", + "reviewed": "2026-11-19T02:00:34.000Z", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:34.000Z" + }, + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "edit", + "reason": "想改售价", + "revision": 4, + "changes": [ + { + "field": "fees_date", + "label": "费用日期", + "before": "", + "after": "2026-11-18" + } + ], + "summary": { + "before": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:33.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 82000, + "account": "助理支付宝", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "820.00", + "account": "助理支付宝", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:26.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:49.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 242, + "label": "ownership-context-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders//ownership", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "reason": "", + "revision": 5, + "member": "assistant", + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "requiresApproval": true, + "canDirect": false, + "canApprove": false, + "pending": null, + "requests": [] + } + }, + { + "seq": 243, + "label": "ownership-request", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//ownership", + "key": "golden-00116-ownership-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "member": "assistant2", + "revision": 5, + "reason": "申请转给小昊", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 5, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "申请转给小昊", + "status": "pending", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:53.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261118-", + "order_customer": "对照客户丙", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false + }, + "applied": false, + "revision": 5, + "member": "assistant", + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": { + "id": "", + "status": "pending", + "order_revision": 5, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "申请转给小昊", + "requester_name": "助理", + "created": "2026-11-19T02:00:53.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": false, + "stale": false + }, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 288500, + "refunded": 0, + "netReceived": 288500, + "balance": 0, + "rounding_adjustment": -40, + "goodsCost": 150000, + "directCost": 1731, + "materialCostPending": false, + "knownGoodsCost": 150000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 136769, + "profit": 136769, + "knownProfit": 136769, + "ownerCost": 151731, + "ownerDirect": 288500, + "ownerCredit": 288500, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "申请修改订单归属", + "actor": "助理", + "detail": { + "requestId": "", + "reason": "申请转给小昊", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "revision": 5, + "notice": "申请不改变订单、财务、库存或可见范围,由麦麦审批后生效", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:53.000Z" + }, + { + "action": "整单账务修改", + "actor": "麦麦", + "detail": { + "reason": "老板更正备注", + "before": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "created": "2026-11-18T02:01:19.000Z" + } + ], + "movements": [] + }, + "after": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "revision": 5, + "received": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "settlementDue": 0 + }, + "notice": "原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:39.000Z" + }, + { + "action": "生成已交付单据", + "actor": "麦麦", + "detail": { + "amount": 288500, + "account": "麦麦信用卡", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "complete", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "deliver", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "receipt", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "amount": "2885.00", + "account": "麦麦信用卡", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "confirm", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:39.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 244, + "label": "ownership-changes-list", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-ownership-changes", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 5, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "申请转给小昊", + "status": "pending", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:53.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261118-", + "order_customer": "对照客户丙", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": true + } + ], + "counts": { + "pending": 1, + "approved": 1, + "rejected": 0 + }, + "canApprove": true + } + }, + { + "seq": 245, + "label": "ownership-change-detail", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-ownership-changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "order_id": "", + "order_revision": 5, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "申请转给小昊", + "status": "pending", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:53.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261118-", + "order_customer": "对照客户丙", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": true + } + }, + { + "seq": 246, + "label": "ownership-reject", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/order-ownership-changes//reject", + "key": "golden-00117-ownership-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "note": "不转" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 5, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "申请转给小昊", + "status": "rejected", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:53.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:56.000Z", + "note": "不转", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261118-", + "order_customer": "对照客户丙", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false + }, + "applied": false, + "revision": 5, + "member": "assistant", + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 288500, + "refunded": 0, + "netReceived": 288500, + "balance": 0, + "rounding_adjustment": -40, + "goodsCost": 150000, + "directCost": 1731, + "materialCostPending": false, + "knownGoodsCost": 150000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 136769, + "profit": 136769, + "knownProfit": 136769, + "ownerCost": 151731, + "ownerDirect": 288500, + "ownerCredit": 288500, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "驳回订单归属申请", + "actor": "麦麦", + "detail": { + "requestId": "", + "reason": "申请转给小昊", + "note": "不转", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:00:53.000Z", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:56.000Z" + }, + { + "action": "申请修改订单归属", + "actor": "助理", + "detail": { + "requestId": "", + "reason": "申请转给小昊", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "revision": 5, + "notice": "申请不改变订单、财务、库存或可见范围,由麦麦审批后生效", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:53.000Z" + }, + { + "action": "整单账务修改", + "actor": "麦麦", + "detail": { + "reason": "老板更正备注", + "before": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "created": "2026-11-18T02:01:19.000Z" + } + ], + "movements": [] + }, + "after": { + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "revision": 5, + "received": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "settlementDue": 0 + }, + "notice": "原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:39.000Z" + }, + { + "action": "生成已交付单据", + "actor": "麦麦", + "detail": { + "amount": 288500, + "account": "麦麦信用卡", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "complete", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "deliver", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "receipt", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "amount": "2885.00", + "account": "麦麦信用卡", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "confirm", + "actor": "麦麦", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + }, + { + "action": "保存草稿", + "actor": "麦麦", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:19.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:39.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 247, + "label": "cancellation-context-2", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders//cancellation", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "reason": "", + "revision": 5, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "directActionDate": "2026-11-19", + "directToday": false, + "pending": null, + "requests": [], + "canApprove": false + } + }, + { + "seq": 248, + "label": "cancellation-request-2", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//cancellation", + "key": "golden-00118-cancellation-request-2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 5, + "reason": "客户想退" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 5, + "reason": "客户想退", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:58.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "inventory": [] + } + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": { + "id": "", + "status": "pending", + "order_revision": 5, + "reason": "客户想退", + "requester_name": "助理", + "created": "2026-11-19T02:00:58.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false + }, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "expense", + "action_label": "费用补记", + "order_revision": 4, + "reason": "补记快递", + "requester_name": "助理", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "麦麦", + "created": "2026-11-19T02:00:37.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57000, + "profit": 57000, + "knownProfit": 57000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "申请取消订单", + "actor": "助理", + "detail": { + "requestId": "", + "reason": "客户想退", + "revision": 5, + "summary": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "inventory": [] + }, + "notice": "申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:58.000Z" + }, + { + "action": "同意修改订单", + "actor": "麦麦", + "detail": { + "requestId": "", + "action": "expense", + "reason": "补记快递", + "note": "核实", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:00:36.000Z", + "reviewed": "2026-11-19T02:00:37.000Z", + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "notice": "按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:37.000Z" + }, + { + "action": "expense", + "actor": "麦麦", + "detail": { + "date": "2026-11-19", + "amount": "10", + "payer": "assistant", + "note": "补寄快递", + "revision": 5, + "reason": "补记快递", + "verified": true, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:37.000Z" + }, + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "expense", + "reason": "补记快递", + "revision": 4, + "changes": [ + { + "field": "expenses", + "label": "实际费用流水", + "before": [], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ] + }, + { + "field": "directCost", + "label": "直接费用", + "before": 0, + "after": 1000 + }, + { + "field": "profit", + "label": "利润", + "before": 58000, + "after": 57000 + } + ], + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:36.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 330000, + "account": "助理现金", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "3300.00", + "account": "助理现金", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:37.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 249, + "label": "cancellation-reject", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/order-cancellations//reject", + "key": "golden-00119-cancellation-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "note": "已交付不取消" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 5, + "reason": "客户想退", + "status": "rejected", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:58.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:59.000Z", + "note": "已交付不取消", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "inventory": [] + } + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "expense", + "action_label": "费用补记", + "order_revision": 4, + "reason": "补记快递", + "requester_name": "助理", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "麦麦", + "created": "2026-11-19T02:00:37.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57000, + "profit": 57000, + "knownProfit": 57000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "驳回取消申请", + "actor": "麦麦", + "detail": { + "requestId": "", + "reason": "客户想退", + "note": "已交付不取消", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:00:58.000Z", + "reviewed": "2026-11-19T02:00:59.000Z", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:59.000Z" + }, + { + "action": "申请取消订单", + "actor": "助理", + "detail": { + "requestId": "", + "reason": "客户想退", + "revision": 5, + "summary": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "inventory": [] + }, + "notice": "申请不改变原订单状态、财务与库存;按录错作废提交麦麦审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:58.000Z" + }, + { + "action": "同意修改订单", + "actor": "麦麦", + "detail": { + "requestId": "", + "action": "expense", + "reason": "补记快递", + "note": "核实", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:00:36.000Z", + "reviewed": "2026-11-19T02:00:37.000Z", + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "notice": "按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:37.000Z" + }, + { + "action": "expense", + "actor": "麦麦", + "detail": { + "date": "2026-11-19", + "amount": "10", + "payer": "assistant", + "note": "补寄快递", + "revision": 5, + "reason": "补记快递", + "verified": true, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:00:37.000Z" + }, + { + "action": "申请修改订单", + "actor": "助理", + "detail": { + "requestId": "", + "action": "expense", + "reason": "补记快递", + "revision": 4, + "changes": [ + { + "field": "expenses", + "label": "实际费用流水", + "before": [], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ] + }, + { + "field": "directCost", + "label": "直接费用", + "before": 0, + "after": 1000 + }, + { + "field": "profit", + "label": "利润", + "before": 58000, + "after": 57000 + } + ], + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:00:36.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 330000, + "account": "助理现金", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "amount": "3300.00", + "account": "助理现金", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:20.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:37.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 250, + "note": "section", + "name": "orderAfterSale" + }, + { + "seq": 251, + "label": "order-after-sale-context", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders//after-sale", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "orderId": "", + "revision": 4, + "eligible": true, + "blockedReason": "", + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 5000, + "pocket": "现货", + "stockCount": null, + "materialCost": 440000, + "laborCost": 10000 + } + ], + "record": null, + "directToday": false, + "inputs": { + "date": "2026-11-19", + "revision": 4, + "reason": "", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "5.000", + "pocket": "现货", + "disposition": "stock" + } + ], + "refund": { + "amount": "5000.00", + "account": "助理2微信", + "payer": "assistant2", + "reference": "" + }, + "deductionReason": "", + "expenses": [] + } + } + } + }, + { + "seq": 252, + "label": "order-before-after-sale", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "助理2", + "detail": { + "amount": 500000, + "account": "助理2微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "complete", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "deliver", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "receipt", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "amount": "5000.00", + "account": "助理2微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "confirm", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "保存草稿", + "actor": "助理2", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 253, + "label": "after-sale-preview", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders//after-sale-preview", + "key": null, + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 4, + "verified": true, + "reason": "客户退回一件", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "1.000", + "pocket": "金料", + "disposition": "scrap" + } + ], + "refund": { + "amount": "900", + "account": "助理2支付宝", + "payer": "assistant2" + }, + "deductionReason": "客户确认扣费", + "expenses": [] + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:02.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:02.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 500000, + "netReceived": 500000, + "goodsCost": 450000, + "directCost": 0, + "profit": 50000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 500000, + "netReceived": 410000, + "goodsCost": 450000, + "directCost": 0, + "profit": 48000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + }, + { + "date": "2026-11-19", + "pocket": "金料", + "kind": "return", + "mg": 1000 + } + ], + "changes": [ + { + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000 + } + ] + } + }, + "changes": [ + { + "field": "status", + "label": "订单状态", + "before": "delivered", + "after": "returned" + }, + { + "field": "returned_date", + "label": "退货日期", + "before": null, + "after": "2026-11-19" + }, + { + "field": "refunded", + "label": "累计退款", + "before": 0, + "after": 90000 + }, + { + "field": "payments", + "label": "收退款流水", + "before": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:02.000Z" + } + ] + }, + { + "field": "netReceived", + "label": "已收净额", + "before": 500000, + "after": 410000 + }, + { + "field": "profit", + "label": "利润", + "before": 50000, + "after": 48000 + } + ], + "relatedOrders": [], + "afterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + } + }, + { + "seq": 254, + "label": "after-sale-request", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders//change", + "key": "golden-00120-after-sale-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 4, + "verified": true, + "reason": "客户退回一件", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "1.000", + "pocket": "金料", + "disposition": "scrap" + } + ], + "refund": { + "amount": "900", + "account": "助理2支付宝", + "payer": "assistant2" + }, + "deductionReason": "客户确认扣费", + "expenses": [] + }, + "action": "return" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "return", + "reason": "客户退回一件", + "status": "pending", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "action_label": "订单售后", + "action_input": { + "date": "2026-11-19", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "1.000", + "pocket": "金料", + "disposition": "scrap" + } + ], + "refund": { + "amount": "900", + "account": "助理2支付宝", + "payer": "assistant2" + }, + "deductionReason": "客户确认扣费", + "expenses": [] + } + }, + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:03.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 500000, + "netReceived": 500000, + "goodsCost": 450000, + "directCost": 0, + "profit": 50000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 500000, + "netReceived": 410000, + "goodsCost": 450000, + "directCost": 0, + "profit": 48000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + }, + { + "date": "2026-11-19", + "pocket": "金料", + "kind": "return", + "mg": 1000 + } + ], + "changes": [ + { + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000 + } + ] + } + }, + "changes": [ + { + "field": "status", + "label": "订单状态", + "before": "delivered", + "after": "returned" + }, + { + "field": "returned_date", + "label": "退货日期", + "before": null, + "after": "2026-11-19" + }, + { + "field": "refunded", + "label": "累计退款", + "before": 0, + "after": 90000 + }, + { + "field": "payments", + "label": "收退款流水", + "before": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ] + }, + { + "field": "netReceived", + "label": "已收净额", + "before": 500000, + "after": 410000 + }, + { + "field": "profit", + "label": "利润", + "before": 50000, + "after": 48000 + } + ], + "relatedOrders": [], + "afterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": { + "id": "", + "status": "pending", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false + }, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "申请修改订单", + "actor": "助理2", + "detail": { + "requestId": "", + "action": "return", + "reason": "客户退回一件", + "revision": 4, + "changes": [ + { + "field": "status", + "label": "订单状态", + "before": "delivered", + "after": "returned" + }, + { + "field": "returned_date", + "label": "退货日期", + "before": null, + "after": "2026-11-19" + }, + { + "field": "refunded", + "label": "累计退款", + "before": 0, + "after": 90000 + }, + { + "field": "payments", + "label": "收退款流水", + "before": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ] + }, + { + "field": "netReceived", + "label": "已收净额", + "before": 500000, + "after": 410000 + }, + { + "field": "profit", + "label": "利润", + "before": 50000, + "after": 48000 + } + ], + "summary": { + "before": { + "total": 500000, + "netReceived": 500000, + "goodsCost": 450000, + "directCost": 0, + "profit": 50000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 500000, + "netReceived": 410000, + "goodsCost": 450000, + "directCost": 0, + "profit": 48000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + }, + { + "date": "2026-11-19", + "pocket": "金料", + "kind": "return", + "mg": 1000 + } + ], + "changes": [ + { + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000 + } + ] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-19T02:01:03.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理2", + "detail": { + "amount": 500000, + "account": "助理2微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "complete", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "deliver", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "receipt", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "amount": "5000.00", + "account": "助理2微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "confirm", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "保存草稿", + "actor": "助理2", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 255, + "label": "after-sale-request-detail", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "return", + "reason": "客户退回一件", + "status": "pending", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "action_label": "订单售后", + "action_input": { + "date": "2026-11-19", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "1.000", + "pocket": "金料", + "disposition": "scrap" + } + ], + "refund": { + "amount": "900", + "account": "助理2支付宝", + "payer": "assistant2" + }, + "deductionReason": "客户确认扣费", + "expenses": [] + } + }, + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": true, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:03.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 500000, + "netReceived": 500000, + "goodsCost": 450000, + "directCost": 0, + "profit": 50000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 500000, + "netReceived": 410000, + "goodsCost": 450000, + "directCost": 0, + "profit": 48000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + }, + { + "date": "2026-11-19", + "pocket": "金料", + "kind": "return", + "mg": 1000 + } + ], + "changes": [ + { + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000 + } + ] + } + }, + "changes": [ + { + "field": "status", + "label": "订单状态", + "before": "delivered", + "after": "returned" + }, + { + "field": "returned_date", + "label": "退货日期", + "before": null, + "after": "2026-11-19" + }, + { + "field": "refunded", + "label": "累计退款", + "before": 0, + "after": 90000 + }, + { + "field": "payments", + "label": "收退款流水", + "before": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ] + }, + { + "field": "netReceived", + "label": "已收净额", + "before": 500000, + "after": 410000 + }, + { + "field": "profit", + "label": "利润", + "before": 50000, + "after": 48000 + } + ], + "relatedOrders": [], + "afterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + } + }, + { + "seq": 256, + "label": "after-sale-approve", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/order-changes//approve", + "key": "golden-00121-after-sale-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 4, + "verified": true, + "note": "实物已收回" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "return", + "reason": "客户退回一件", + "status": "approved", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回", + "action_label": "订单售后", + "action_input": { + "date": "2026-11-19", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "1.000", + "pocket": "金料", + "disposition": "scrap" + } + ], + "refund": { + "amount": "900", + "account": "助理2支付宝", + "payer": "assistant2" + }, + "deductionReason": "客户确认扣费", + "expenses": [] + } + }, + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:03.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 500000, + "netReceived": 500000, + "goodsCost": 450000, + "directCost": 0, + "profit": 50000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 500000, + "netReceived": 410000, + "goodsCost": 450000, + "directCost": 0, + "profit": 48000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + }, + { + "date": "2026-11-19", + "pocket": "金料", + "kind": "return", + "mg": 1000 + } + ], + "changes": [ + { + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000 + } + ] + } + }, + "changes": [ + { + "field": "status", + "label": "订单状态", + "before": "delivered", + "after": "returned" + }, + { + "field": "returned_date", + "label": "退货日期", + "before": null, + "after": "2026-11-19" + }, + { + "field": "refunded", + "label": "累计退款", + "before": 0, + "after": 90000 + }, + { + "field": "payments", + "label": "收退款流水", + "before": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ] + }, + { + "field": "netReceived", + "label": "已收净额", + "before": 500000, + "after": 410000 + }, + { + "field": "profit", + "label": "利润", + "before": 50000, + "after": 48000 + } + ], + "relatedOrders": [], + "afterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + "order": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "同意修改订单", + "actor": "麦麦", + "detail": { + "requestId": "", + "action": "return", + "reason": "客户退回一件", + "note": "实物已收回", + "requestedBy": "助理2", + "requestedAt": "2026-11-19T02:01:03.000Z", + "reviewed": "2026-11-19T02:01:05.000Z", + "summary": { + "before": { + "total": 500000, + "netReceived": 500000, + "goodsCost": 450000, + "directCost": 0, + "profit": 50000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 500000, + "netReceived": 410000, + "goodsCost": 450000, + "directCost": 0, + "profit": 48000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + }, + { + "date": "2026-11-19", + "pocket": "金料", + "kind": "return", + "mg": 1000 + } + ], + "changes": [ + { + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000 + } + ] + } + }, + "notice": "按已核验的原申请更正同一订单;原订单身份、历史流水和真实双方转款保留", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:01:05.000Z" + }, + { + "action": "订单退货退款售后", + "actor": "麦麦", + "detail": { + "date": "2026-11-19", + "revision": 5, + "reason": "客户退回一件", + "verified": true, + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "1.000", + "pocket": "金料", + "disposition": "scrap" + } + ], + "refund": { + "amount": "900", + "account": "助理2支付宝", + "payer": "assistant2" + }, + "deductionReason": "客户确认扣费", + "expenses": [] + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:01:05.000Z" + }, + { + "action": "申请修改订单", + "actor": "助理2", + "detail": { + "requestId": "", + "action": "return", + "reason": "客户退回一件", + "revision": 4, + "changes": [ + { + "field": "status", + "label": "订单状态", + "before": "delivered", + "after": "returned" + }, + { + "field": "returned_date", + "label": "退货日期", + "before": null, + "after": "2026-11-19" + }, + { + "field": "refunded", + "label": "累计退款", + "before": 0, + "after": 90000 + }, + { + "field": "payments", + "label": "收退款流水", + "before": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ] + }, + { + "field": "netReceived", + "label": "已收净额", + "before": 500000, + "after": 410000 + }, + { + "field": "profit", + "label": "利润", + "before": 50000, + "after": 48000 + } + ], + "summary": { + "before": { + "total": 500000, + "netReceived": 500000, + "goodsCost": 450000, + "directCost": 0, + "profit": 50000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 500000, + "netReceived": 410000, + "goodsCost": 450000, + "directCost": 0, + "profit": 48000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + }, + { + "date": "2026-11-19", + "pocket": "金料", + "kind": "return", + "mg": 1000 + } + ], + "changes": [ + { + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000 + } + ] + } + }, + "notice": "申请不改变订单、财务、库存或日报;由麦麦核对修改前后再审批", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-19T02:01:03.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理2", + "detail": { + "amount": 500000, + "account": "助理2微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "complete", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "deliver", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "receipt", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "amount": "5000.00", + "account": "助理2微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "confirm", + "actor": "助理2", + "detail": { + "date": "2026-11-18", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + }, + { + "action": "保存草稿", + "actor": "助理2", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant2" + } + }, + "created": "2026-11-18T02:01:25.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:05.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 257, + "label": "returned-stock-lots", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/returned-stock-lots?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "lots": [] + } + }, + { + "seq": 258, + "label": "order-after-sale-after", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders//after-sale", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "orderId": "", + "revision": 5, + "eligible": false, + "blockedReason": "本单已完成整单退货售后,不能重复退货或继续退款", + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 5000, + "pocket": "现货", + "stockCount": null, + "materialCost": 440000, + "laborCost": 10000 + } + ], + "record": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "directToday": false, + "inputs": { + "date": "2026-11-19", + "revision": 5, + "reason": "", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "5.000", + "pocket": "现货", + "disposition": "stock" + } + ], + "refund": { + "amount": "4100.00", + "account": "助理2微信", + "payer": "assistant2", + "reference": "" + }, + "deductionReason": "", + "expenses": [] + } + } + } + }, + { + "seq": 259, + "label": "after-sale-detail-d2", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/after-sales/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 1, + "record": { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z", + "member": "assistant", + "revision": 1 + }, + "values": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": "8.50", + "payer": "assistant" + }, + "permissions": { + "canEdit": true, + "canDirectEdit": false, + "requiresApproval": true, + "canRequest": true, + "reason": "只有原日期和修改后日期都为北京时间今天时可直接保存;其他日期须由麦麦审批" + }, + "pending": null, + "history": [] + } + }, + { + "seq": 260, + "label": "after-sale-update-request", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/after-sales//update", + "key": "golden-00122-after-sale-update-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": "9.50", + "payer": "assistant", + "revision": 1, + "reason": "金额录错" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "after_sale_id": "", + "applied": false, + "pending": true, + "requestId": "", + "request": { + "id": "", + "afterSaleId": "", + "revision": 1, + "recordRevision": 1, + "status": "pending", + "reason": "金额录错", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:09.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "staleReason": "", + "canApprove": false + }, + "record": { + "id": "", + "revision": 1, + "record": { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z", + "member": "assistant", + "revision": 1 + }, + "values": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": "8.50", + "payer": "assistant" + }, + "permissions": { + "canEdit": false, + "canDirectEdit": false, + "requiresApproval": true, + "canRequest": false, + "reason": "已有待审批修改,请先由麦麦处理" + }, + "pending": { + "id": "", + "afterSaleId": "", + "revision": 1, + "recordRevision": 1, + "status": "pending", + "reason": "金额录错", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:09.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "staleReason": "", + "canApprove": false + }, + "history": [] + } + } + }, + { + "seq": 261, + "label": "after-sale-changes", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/after-sales/changes", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "afterSaleId": "", + "revision": 1, + "recordRevision": 1, + "status": "pending", + "reason": "金额录错", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:09.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "staleReason": "", + "canApprove": true + } + ], + "counts": { + "pending": 1, + "approved": 0, + "rejected": 0 + } + } + }, + { + "seq": 262, + "label": "after-sale-change-detail", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/after-sales/changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "afterSaleId": "", + "revision": 1, + "recordRevision": 1, + "status": "pending", + "reason": "金额录错", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:09.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "staleReason": "", + "canApprove": true + } + }, + { + "seq": 263, + "label": "after-sale-change-approve", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/after-sales/changes//approve", + "key": "golden-00123-after-sale-change-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "note": "核实", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "afterSaleId": "", + "revision": 2, + "recordRevision": 1, + "status": "approved", + "reason": "金额录错", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:09.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:01:12.000Z", + "note": "核实", + "stale": false, + "staleReason": "", + "canApprove": false + } + }, + { + "seq": 264, + "label": "after-sale-detail-after-approve", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/after-sales/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 2, + "record": { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z", + "member": "assistant", + "revision": 2 + }, + "values": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": "9.50", + "payer": "assistant" + }, + "permissions": { + "canEdit": true, + "canDirectEdit": false, + "requiresApproval": true, + "canRequest": true, + "reason": "只有原日期和修改后日期都为北京时间今天时可直接保存;其他日期须由麦麦审批" + }, + "pending": null, + "history": [ + { + "id": "", + "afterSaleId": "", + "revision": 2, + "recordRevision": 1, + "status": "approved", + "reason": "金额录错", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:09.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:01:12.000Z", + "note": "核实", + "stale": false, + "staleReason": "", + "canApprove": false + } + ] + } + }, + { + "seq": 265, + "label": "after-sale-update-request-2", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/after-sales//update", + "key": "golden-00124-after-sale-update-request-2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": "12", + "payer": "assistant", + "revision": 2, + "reason": "再次调整" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "after_sale_id": "", + "applied": false, + "pending": true, + "requestId": "", + "request": { + "id": "", + "afterSaleId": "", + "revision": 1, + "recordRevision": 2, + "status": "pending", + "reason": "再次调整", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 1200, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:14.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "staleReason": "", + "canApprove": false + }, + "record": { + "id": "", + "revision": 2, + "record": { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z", + "member": "assistant", + "revision": 2 + }, + "values": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": "9.50", + "payer": "assistant" + }, + "permissions": { + "canEdit": false, + "canDirectEdit": false, + "requiresApproval": true, + "canRequest": false, + "reason": "已有待审批修改,请先由麦麦处理" + }, + "pending": { + "id": "", + "afterSaleId": "", + "revision": 1, + "recordRevision": 2, + "status": "pending", + "reason": "再次调整", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 1200, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:14.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "staleReason": "", + "canApprove": false + }, + "history": [ + { + "id": "", + "afterSaleId": "", + "revision": 2, + "recordRevision": 1, + "status": "approved", + "reason": "金额录错", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:09.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:01:12.000Z", + "note": "核实", + "stale": false, + "staleReason": "", + "canApprove": false + } + ] + } + } + }, + { + "seq": 266, + "label": "after-sale-change-reject", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/after-sales/changes//reject", + "key": "golden-00125-after-sale-change-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "note": "金额无误" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "afterSaleId": "", + "revision": 2, + "recordRevision": 2, + "status": "rejected", + "reason": "再次调整", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 1200, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:14.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:01:15.000Z", + "note": "金额无误", + "stale": false, + "staleReason": "", + "canApprove": false + } + }, + { + "seq": 267, + "note": "section", + "name": "priceLocksD2" + }, + { + "seq": 268, + "label": "lock-edit-context-d2", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/price-locks//edit-context", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "revision": 1, + "requiresApproval": true, + "reason": "", + "inputs": { + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "2700.00", + "account": "助理微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ] + }, + "lock": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changePending": null + } + }, + { + "seq": 269, + "label": "lock-edit-cross-day-denied", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/price-locks//edit", + "key": "golden-00126-lock-edit-cross-day-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "2700.00", + "account": "助理微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ], + "revision": 1, + "reason": "改客户名", + "verified": true + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "历史锁价单修改或取消须提交申请,由麦麦复核" + } + }, + { + "seq": 270, + "label": "lock-change-request", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/price-locks//change-requests", + "key": "golden-00127-lock-change-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "2700.00", + "account": "助理微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ], + "action": "edit", + "revision": 1, + "reason": "改客户名", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "price_lock_id": "", + "request": { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "edit", + "reason": "改客户名", + "payload": { + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "2700.00", + "account": "助理微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ], + "action": "edit", + "revision": 1, + "reason": "改客户名", + "verified": true + }, + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:18.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:18.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changes": [ + { + "field": "customer", + "before": "对照锁价客户", + "after": "对照锁价客户(改)" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + } + } + }, + { + "seq": 271, + "label": "lock-changes-list", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/price-lock-changes", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "edit", + "reason": "改客户名", + "payload": { + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "2700.00", + "account": "助理微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ], + "action": "edit", + "revision": 1, + "reason": "改客户名", + "verified": true + }, + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:18.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:18.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changes": [ + { + "field": "customer", + "before": "对照锁价客户", + "after": "对照锁价客户(改)" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + } + ] + } + }, + { + "seq": 272, + "label": "lock-change-detail", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/price-lock-changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "edit", + "reason": "改客户名", + "payload": { + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "2700.00", + "account": "助理微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ], + "action": "edit", + "revision": 1, + "reason": "改客户名", + "verified": true + }, + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:18.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:18.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changes": [ + { + "field": "customer", + "before": "对照锁价客户", + "after": "对照锁价客户(改)" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + } + }, + { + "seq": 273, + "label": "lock-change-approve", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/price-lock-changes//approve", + "key": "golden-00128-lock-change-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "verified": true, + "note": "核实" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "price_lock_id": "", + "request": { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "edit", + "reason": "改客户名", + "payload": { + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "2700.00", + "account": "助理微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ], + "action": "edit", + "revision": 1, + "reason": "改客户名", + "verified": true + }, + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:18.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:21.000Z", + "note": "核实", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:18.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changes": [ + { + "field": "customer", + "before": "对照锁价客户", + "after": "对照锁价客户(改)" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + }, + "lock": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:21.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + } + }, + { + "seq": 274, + "label": "lock-c-context", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/price-locks//edit-context", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "revision": 1, + "requiresApproval": true, + "reason": "", + "inputs": { + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant2", + "payment": { + "amount": "500.00", + "account": "助理2微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "860.00", + "payer": "assistant2", + "verified": true + } + } + ] + }, + "lock": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-18T02:01:55.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changePending": null + } + }, + { + "seq": 275, + "label": "lock-cancel-request", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/price-locks//change-requests", + "key": "golden-00129-lock-cancel-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "action": "cancel", + "revision": 1, + "reason": "客户不要了", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "price_lock_id": "", + "request": { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "cancel", + "reason": "客户不要了", + "payload": { + "action": "cancel", + "revision": 1, + "reason": "客户不要了", + "verified": true + }, + "status": "pending", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:01:23.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-18T02:01:55.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "cancelled", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-19T02:01:23.000Z", + "cancelled_at": "2026-11-19T02:01:23.000Z", + "cancelled_reason": "客户不要了", + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [], + "material_events": [], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 1, + "void_reason": "客户不要了", + "voided_at": "2026-11-19T02:01:23.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 1, + "void_reason": "客户不要了", + "voided_at": "2026-11-19T02:01:23.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "materialReturnDate": "2026-11-19", + "changes": [ + { + "field": "netReceived", + "before": 50000, + "after": 0 + }, + { + "field": "status", + "before": "pending", + "after": "cancelled" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + } + } + }, + { + "seq": 276, + "label": "lock-cancel-reject", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/price-lock-changes//reject", + "key": "golden-00130-lock-cancel-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "note": "客户仍要" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "cancel", + "reason": "客户不要了", + "payload": { + "action": "cancel", + "revision": 1, + "reason": "客户不要了", + "verified": true + }, + "status": "rejected", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:01:23.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:24.000Z", + "note": "客户仍要", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-18T02:01:55.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "cancelled", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-19T02:01:23.000Z", + "cancelled_at": "2026-11-19T02:01:23.000Z", + "cancelled_reason": "客户不要了", + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [], + "material_events": [], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 1, + "void_reason": "客户不要了", + "voided_at": "2026-11-19T02:01:23.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 1, + "void_reason": "客户不要了", + "voided_at": "2026-11-19T02:01:23.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "materialReturnDate": "2026-11-19", + "changes": [ + { + "field": "netReceived", + "before": 50000, + "after": 0 + }, + { + "field": "status", + "before": "pending", + "after": "cancelled" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + } + } + }, + { + "seq": 277, + "label": "lock-d-context", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/price-locks//edit-context", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "revision": 1, + "requiresApproval": false, + "reason": "", + "inputs": { + "date": "2026-11-18", + "customer": "对照锁价客户四", + "salesperson": "麦麦", + "note": "锁价备注", + "discount": "0.00", + "member": "owner", + "payment": { + "amount": "800.00", + "account": "麦麦微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ] + }, + "lock": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户四", + "salesperson": "麦麦", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "updated": "2026-11-18T02:01:56.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "owner", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 80000, + "account": "麦麦微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 80000, + "refunded": 0, + "netReceived": 80000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changePending": null + } + }, + { + "seq": 278, + "label": "lock-cancel-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/price-locks//cancel", + "key": "golden-00131-lock-cancel-owner", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "reason": "录错作废", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "price_lock_id": "", + "status": "cancelled", + "revision": 2, + "lock": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户四", + "salesperson": "麦麦", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "cancelled", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "updated": "2026-11-19T02:01:26.000Z", + "cancelled_at": "2026-11-19T02:01:26.000Z", + "cancelled_reason": "录错作废", + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "owner", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [], + "material_events": [], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 80000, + "account": "麦麦微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": null, + "voided": 1, + "void_reason": "录错作废", + "voided_at": "2026-11-19T02:01:26.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": 0, + "voided": 1, + "void_reason": "录错作废", + "voided_at": "2026-11-19T02:01:26.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + } + }, + { + "seq": 279, + "label": "lock-before-deliver", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/price-locks/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:21.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + }, + { + "seq": 280, + "label": "lock-deliver", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/price-locks//deliver", + "key": "golden-00132-lock-deliver", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 2, + "verified": true, + "line": { + "quantity": "3.100", + "laborRate": "20", + "laborMode": "gram", + "pieces": "1", + "charges": [ + { + "name": "服务", + "amount": "10" + } + ], + "payer": "assistant", + "costParts": { + "labor": "30", + "accessories": "0", + "other": "0" + }, + "costPayers": { + "material": "owner", + "labor": "assistant" + } + }, + "discount": "0", + "extraMaterial": { + "rate": "900", + "payer": "assistant", + "verified": true + }, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + }, + "settlement": { + "amount": "162", + "account": "助理支付宝", + "verified": true + }, + "fee_items": [ + { + "key": "shipping", + "note": "实际快递", + "amount": "6", + "payer": "owner" + } + ] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "order_id": "", + "price_lock_id": "", + "status": "delivered", + "revision": 3 + } + }, + { + "seq": 281, + "label": "price-locks-after", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/price-locks?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "rows": [ + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "delivered", + "revision": 3, + "final_order_id": "", + "delivery": { + "date": "2026-11-19", + "total": 286200, + "difference": 16200, + "lines": [ + { + "lineId": "", + "date": "2026-11-19", + "quantity": 3100, + "original_used_mg": 3000, + "extra_mg": 100, + "leftover_mg": 0, + "leftover_cost": 0, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + } + } + ], + "quantity": 3100, + "original_used_mg": 3000, + "extra_mg": 100, + "leftover_mg": 0, + "leftover_cost": 0, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + } + }, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:28.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": { + "lineId": "", + "date": "2026-11-19", + "quantity": 3100, + "original_used_mg": 3000, + "extra_mg": 100, + "leftover_mg": 0, + "leftover_cost": 0, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + } + } + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "account": null, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 286200, + "refunded": 0, + "netReceived": 286200, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "updated": "2026-11-18T02:02:02.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": null, + "voided": 1, + "void_reason": "当天更正收款", + "voided_at": "2026-11-18T02:02:02.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 120000, + "refunded": 0, + "netReceived": 120000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-18T02:01:55.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户四", + "salesperson": "麦麦", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "cancelled", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "updated": "2026-11-19T02:01:26.000Z", + "cancelled_at": "2026-11-19T02:01:26.000Z", + "cancelled_reason": "录错作废", + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "owner", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [], + "material_events": [], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 80000, + "account": "麦麦微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": null, + "voided": 1, + "void_reason": "录错作废", + "voided_at": "2026-11-19T02:01:26.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": 0, + "voided": 1, + "void_reason": "录错作废", + "voided_at": "2026-11-19T02:01:26.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + ], + "counts": { + "pending": 2, + "delivered": 1, + "cancelled": 1 + } + } + }, + { + "seq": 282, + "label": "state-after-lock-deliver", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "today": "2026-11-19", + "mode": "trial", + "user": { + "id": "", + "name": "助理", + "role": "assistant", + "member": "assistant", + "operatorName": "娜娜", + "label": "娜娜" + }, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "shopSettings": { + "version": 1, + "revision": 7, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "members": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ], + "creditCardRatePermille": 6, + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "8", + "packagingPayer": "owner" + } + }, + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "pocketCatalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "pocket_", + "name": "展柜A(主)", + "active": true, + "self": true, + "builtin": false, + "revision": 2, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:34.000Z", + "countUnit": null, + "countSince": null + } + ], + "accounts": [ + "助理微信", + "助理支付宝", + "助理现金", + "麦麦微信", + "麦麦支付宝", + "麦麦现金", + "麦麦信用卡", + "助理2微信", + "助理2支付宝", + "助理2现金" + ], + "inventory": [ + { + "pocket": "现货", + "mg": 82450, + "reserved": 0, + "available": 82450 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "orders": [ + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "paper_number": "20261119010", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3100, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 267000, + "costParts": { + "material": 264000, + "labor": 3000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 286200, + "baseSale": 285200, + "charges": [ + { + "name": "服务", + "amount": 1000 + } + ], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克", + "lineId": "", + "materialAllocations": [ + { + "source": "original", + "quantity": 3000, + "rate": 85000, + "amount": 255000, + "payer": "owner" + }, + { + "source": "extra", + "quantity": 100, + "rate": 90000, + "amount": 9000, + "payer": "assistant" + } + ] + } + ], + "discount": 0, + "total": 286200, + "revision": 3, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:28.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理支付宝", + "fee_items": [ + { + "key": "shipping", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-19", + "rounding_mode": "yuan", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "price_lock_id": "", + "corrections": [], + "received": 286200, + "refunded": 0, + "netReceived": 286200, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 267000, + "directCost": 600, + "materialCostPending": false, + "knownGoodsCost": 267000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 18600, + "profit": 18600, + "knownProfit": 18600, + "ownerCost": 255600, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 3, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:28.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "expense", + "action_label": "费用补记", + "order_revision": 4, + "reason": "补记快递", + "requester_name": "助理", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57000, + "profit": 57000, + "knownProfit": 57000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:37.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 288500, + "refunded": 0, + "netReceived": 288500, + "balance": 0, + "rounding_adjustment": -40, + "goodsCost": 150000, + "directCost": 1731, + "materialCostPending": false, + "knownGoodsCost": 150000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 136769, + "profit": 136769, + "knownProfit": 136769, + "ownerCost": 151731, + "ownerDirect": 288500, + "ownerCredit": 288500, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:39.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "edit", + "action_label": "修改订单", + "order_revision": 4, + "reason": "跨天修改客户名", + "requester_name": "助理", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:31.000Z", + "note": "凭据已核对" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:31.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + ], + "priceLockCounts": { + "pending": 1, + "delivered": 1, + "cancelled": 0 + }, + "materialPoolSummary": { + "totalMg": 31000, + "totalAmount": 2808000, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 272000, + "remainingCost": 2536000, + "pendingCount": 0, + "purchaseCount": 3 + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": null, + "knownSettlementDue": null, + "pendingCount": 0, + "pools": [] + }, + "materialPoolAllocation": { + "version": 1, + "targetVersion": 2, + "migrationRequired": true, + "usageCount": 1, + "activeUsageCount": 1 + }, + "sync": { + "enabled": false + }, + "printing": { + "store": "黄金对照珠宝", + "subtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "width": 241, + "height": 140, + "offsetX": 2, + "offsetY": 3, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + }, + "backup": null, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -3100, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 100, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 补重黄金入库", + "purchase_cost": 9000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 3000, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 原锁定黄金入库", + "purchase_cost": 255000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "after-sale:", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "return", + "note": "MM20261118- · 售后回收旧料", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "groupId": "after-sale:", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "order_cancel_reverse", + "note": "MM20261118-;审批作废:重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1200, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:21.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1000, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": -10000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "展柜起始", + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始金料", + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始库存", + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 283, + "note": "section", + "name": "exchangesD2" + }, + { + "seq": 284, + "label": "exchange-quote", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/recoveries/quote", + "key": null, + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "salesperson": "小昊", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8", + "melted_weight": "8", + "purity": "99.9" + } + ], + "buy_rate": "900", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12", + "pocket": "现货", + "gold_price": "1000", + "labor_rate": "20", + "labor_mode": "gram", + "depreciation_rate": "10", + "cost_material": { + "mode": "gram", + "rate": "900" + }, + "cost_labor": { + "mode": "gram", + "rate": "5" + }, + "cost_payer": "assistant2", + "discount": "0", + "rounding_mode": "cent" + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ] + } + }, + { + "seq": 285, + "label": "recovery-exchange", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/recoveries", + "key": "golden-00133-recovery-exchange", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "salesperson": "小昊", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8", + "melted_weight": "8", + "purity": "99.9" + } + ], + "buy_rate": "900", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12", + "pocket": "现货", + "gold_price": "1000", + "labor_rate": "20", + "labor_mode": "gram", + "depreciation_rate": "10", + "cost_material": { + "mode": "gram", + "rate": "900" + }, + "cost_labor": { + "mode": "gram", + "rate": "5" + }, + "cost_payer": "assistant2", + "discount": "0", + "rounding_mode": "cent" + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190001", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:32.000Z", + "actor": "助理2", + "revision": 1, + "paper_number": "20261119011", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + }, + { + "seq": 286, + "label": "recovery-exchange-2", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/recoveries", + "key": "golden-00134-recovery-exchange-2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "5", + "melted_weight": "4.9", + "purity": "99" + } + ], + "buy_rate": "900", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "6", + "pocket": "现货", + "gold_price": "1000", + "labor_rate": "20", + "labor_mode": "gram", + "depreciation_rate": "10", + "cost_material": { + "mode": "gram", + "rate": "900" + }, + "cost_labor": { + "mode": "gram", + "rate": "5" + }, + "cost_payer": "assistant", + "discount": "10", + "rounding_mode": "yuan" + } + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 5000, + "meltedMg": 4900, + "purity": 99, + "foldedMg": 4851 + } + ], + "oldMg": 4851, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 6000, + "matchedMg": 4851, + "differenceMg": 1149, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 4851, + "goldAmount": 114900, + "laborAmount": 12000, + "depreciationAmount": 4851, + "charges": [], + "chargesAmount": 0, + "discount": 1000, + "rounding_mode": "yuan", + "rounding_adjustment": 49, + "receivable": 130800, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 103410, + "laborCost": 3000, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390, + "newProduct": { + "name": "足金对照新货", + "quantity": 6000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190002", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:33.000Z", + "actor": "助理", + "revision": 1, + "paper_number": "20261119012", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + }, + { + "seq": 287, + "label": "recoveries-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/recoveries", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190001", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:32.000Z", + "actor": "助理2", + "revision": 1, + "paper_number": "20261119011", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "summary": { + "count": 1, + "cancelledCount": 0, + "directCount": 0, + "exchangeCount": 1, + "oldMg": 7992, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 432792, + "offsetAmount": 0, + "cashReceipt": 432792, + "cashPayment": 0 + } + } + }, + { + "seq": 288, + "label": "recoveries-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/recoveries", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 5000, + "meltedMg": 4900, + "purity": 99, + "foldedMg": 4851 + } + ], + "oldMg": 4851, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 6000, + "matchedMg": 4851, + "differenceMg": 1149, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 4851, + "goldAmount": 114900, + "laborAmount": 12000, + "depreciationAmount": 4851, + "charges": [], + "chargesAmount": 0, + "discount": 1000, + "rounding_mode": "yuan", + "rounding_adjustment": 49, + "receivable": 130800, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 103410, + "laborCost": 3000, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390, + "newProduct": { + "name": "足金对照新货", + "quantity": 6000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190002", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:33.000Z", + "actor": "助理", + "revision": 1, + "paper_number": "20261119012", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190001", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:32.000Z", + "actor": "助理2", + "revision": 1, + "paper_number": "20261119011", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "summary": { + "count": 2, + "cancelledCount": 0, + "directCount": 0, + "exchangeCount": 2, + "oldMg": 12843, + "newMg": 18000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 563592, + "offsetAmount": 0, + "cashReceipt": 563592, + "cashPayment": 0 + } + } + }, + { + "seq": 289, + "label": "recovery-exchange-detail", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/recoveries/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190001", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:32.000Z", + "actor": "助理2", + "revision": 1, + "paper_number": "20261119011", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 290, + "label": "recovery-foreign", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/recoveries/", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 291, + "label": "print-exchange", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/print/recoveries/", + "key": null, + "status": 200, + "contentType": "text/html; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "text": "HS202611190001 · 黄金置换单
","printed":false,"revision":0,"updated":null,"actor":null,"sourceRevision":1,"user":""}\" role=\"status\">未打印固定241×140mm横版;打印窗口也选241×140mm,关闭页眉页脚。正在调整为一页…

黄金对照珠宝

黄金置换单
客户:对照换货客户日期:2026-11-19单号:HS202611190001
开单人:小昊收款方式:微信

旧料(Au 黄金)

序号旧料名称来料克重(克)熔后克重(克)成色折后克重(克)
1Au 黄金 · Au旧料8.008.0099.9%7.99
旧料折后合计:7.99 克

换走新货

序号新货名称全克重(克)
1足金对照新货12.00
换走新货全克重合计:12.00 克

置换结算明细

项目计价说明金额(元)
补金差价4.01 克 × ¥1000.00/克+¥4008.00
新货工费12.00 克 × ¥20.00/克+¥240.00
折旧费7.99 克 × ¥10.00/克+¥79.92
附加项目+¥0.00
优惠−¥0.00
余料回收款0.00 克 × ¥0.00/克−¥0.00
结算人民币大写:肆仟叁佰贰拾柒元玖角贰分
客户补款:¥4327.92
备注:—
联系电话:联系电话 000-0000
经办人:小昊 ________________
" + } + }, + { + "seq": 292, + "label": "print-status-recovery", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/print-status/recovery/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null, + "sourceRevision": 1 + } + }, + { + "seq": 293, + "label": "print-status-recovery-set", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/print-status/recovery/", + "key": "golden-00135-print-status-recovery-set", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "printed": true, + "revision": 0, + "sourceRevision": 1 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2", + "sourceRevision": 1 + } + }, + { + "seq": 294, + "label": "recovery-exchange-detail-after-print", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/recoveries/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190001", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:32.000Z", + "actor": "助理2", + "revision": 1, + "paper_number": "20261119011", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + } + }, + { + "seq": 295, + "label": "print-exchange-order", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/print/", + "key": null, + "status": 200, + "contentType": "text/html; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "text": "HS202611190001 · 黄金置换单
","printed":true,"revision":1,"updated":"2026-11-19T02:01:40.000Z","actor":"助理2","sourceRevision":4,"user":""}\" role=\"status\">✓ 已打印固定241×140mm横版;打印窗口也选241×140mm,关闭页眉页脚。正在调整为一页…

黄金对照珠宝

黄金置换单
客户:对照换货客户日期:2026-11-19单号:HS202611190001
开单人:小昊收款方式:微信

旧料(Au 黄金)

序号旧料名称来料克重(克)熔后克重(克)成色折后克重(克)
1Au 黄金 · Au旧料8.008.0099.9%7.99
旧料折后合计:7.99 克

换走新货

序号新货名称全克重(克)
1足金对照新货12.00
换走新货全克重合计:12.00 克

置换结算明细

项目计价说明金额(元)
补金差价4.01 克 × ¥1000.00/克+¥4008.00
新货工费12.00 克 × ¥20.00/克+¥240.00
折旧费7.99 克 × ¥10.00/克+¥79.92
附加项目+¥0.00
优惠−¥0.00
余料回收款0.00 克 × ¥0.00/克−¥0.00
结算人民币大写:肆仟叁佰贰拾柒元玖角贰分
客户补款:¥4327.92
备注:—
联系电话:联系电话 000-0000
经办人:小昊 ________________
" + } + }, + { + "seq": 296, + "label": null, + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/customer-materials", + "key": "golden-00136-customer-materials", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "grams": "1.5", + "memo": "对照寄存袋", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "JC202611190001", + "date": "2026-11-19", + "mg": 1500, + "remainingMg": 1500, + "usedMg": 0, + "memo": "对照寄存袋", + "actor": "助理", + "created": "2026-11-19T02:01:43.000Z", + "events": [] + } + }, + { + "seq": 297, + "label": "customer-material-unverified", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/customer-materials", + "key": "golden-00137-customer-material-unverified", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "grams": "1.5", + "memo": "对照寄存袋", + "verified": false + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请确认寄存克重和备忘" + } + }, + { + "seq": 298, + "label": "customer-materials-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/customer-materials", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "number": "JC202611190001", + "date": "2026-11-19", + "mg": 1500, + "remainingMg": 1500, + "usedMg": 0, + "memo": "对照寄存袋", + "actor": "助理", + "created": "2026-11-19T02:01:43.000Z", + "events": [] + } + ], + "totalMg": 1500, + "remainingMg": 1500, + "usedMg": 0 + } + }, + { + "seq": 299, + "label": "customer-materials-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/customer-materials", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "number": "JC202611190001", + "date": "2026-11-19", + "mg": 1500, + "remainingMg": 1500, + "usedMg": 0, + "memo": "对照寄存袋", + "actor": "助理", + "created": "2026-11-19T02:01:43.000Z", + "events": [] + } + ], + "totalMg": 1500, + "remainingMg": 1500, + "usedMg": 0 + } + }, + { + "seq": 300, + "label": "customer-materials-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/customer-materials", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "number": "JC202611190001", + "date": "2026-11-19", + "mg": 1500, + "remainingMg": 1500, + "usedMg": 0, + "memo": "对照寄存袋", + "actor": "助理", + "created": "2026-11-19T02:01:43.000Z", + "events": [] + } + ], + "totalMg": 1500, + "remainingMg": 1500, + "usedMg": 0 + } + }, + { + "seq": 301, + "note": "section", + "name": "sameDayD2" + }, + { + "seq": 302, + "label": "issue-d2", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00138-issue-d2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "当天客户", + "internal_note": "当天单备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金吊坠", + "unit": "g", + "quantity": "2", + "pocket": "现货", + "payer": "assistant", + "sale": "2100", + "cost": "1800" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 303, + "label": "same-day-edit-context", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders//edit", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "financialEditable": true, + "reason": "", + "revision": 4, + "inputs": { + "id": "", + "date": "2026-11-19", + "customer": "当天客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "note": "", + "internal_note": "当天单备注", + "discount": "0.00", + "rounding_mode": "cent", + "fee_cost_mode": "legacy", + "fees_date": "2026-11-19", + "payment_account": "助理微信", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": "2.000", + "pocket": "现货", + "payer": "assistant", + "cost": "1800.00", + "costMaterial": { + "mode": "gram" + }, + "costLabor": { + "mode": "total", + "rate": "" + }, + "sale": "2100.00", + "baseSale": "2100.00", + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "fee_items": [] + }, + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 210000, + "refunded": 0, + "netReceived": 210000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 30000, + "profit": 30000, + "knownProfit": 30000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 210000, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "amount": "2100.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:48.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "directEditDate": "2026-11-19", + "requiresApproval": false, + "changePending": null + } + }, + { + "seq": 304, + "label": "same-day-edit-direct", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//edit", + "key": "golden-00139-same-day-edit-direct", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "id": "", + "date": "2026-11-19", + "customer": "当天客户(改)", + "customer_type": "unknown", + "salesperson": "娜娜", + "note": "", + "internal_note": "当天单备注", + "discount": "0.00", + "rounding_mode": "cent", + "fee_cost_mode": "legacy", + "fees_date": "2026-11-19", + "payment_account": "助理微信", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": "2.000", + "pocket": "现货", + "payer": "assistant", + "cost": "1800.00", + "costMaterial": { + "mode": "gram" + }, + "costLabor": { + "mode": "total", + "rate": "" + }, + "sale": "2100.00", + "baseSale": "2100.00", + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "fee_items": [], + "revision": 4, + "reason": "当天改客户", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 5, + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 210000, + "refunded": 0, + "netReceived": 210000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 30000, + "profit": 30000, + "knownProfit": 30000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "整单账务修改", + "actor": "助理", + "detail": { + "reason": "当天改客户", + "before": { + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ], + "expenses": [], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z" + } + ], + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ] + }, + "after": { + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "revision": 5, + "received": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "settlementDue": 0 + }, + "notice": "原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:50.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 210000, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "amount": "2100.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:50.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 305, + "label": "order-d2-detail", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 210000, + "refunded": 0, + "netReceived": 210000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 30000, + "profit": 30000, + "knownProfit": 30000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "整单账务修改", + "actor": "助理", + "detail": { + "reason": "当天改客户", + "before": { + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ], + "expenses": [], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z" + } + ], + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ] + }, + "after": { + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "revision": 5, + "received": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "settlementDue": 0 + }, + "notice": "原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:50.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 210000, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "amount": "2100.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:50.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 306, + "label": "same-day-expense", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//expense", + "key": "golden-00140-same-day-expense", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 5, + "reason": "当天快递", + "verified": true, + "amount": "8", + "payer": "assistant", + "note": "当天快递" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 307, + "label": "ownership-context-same-day", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders//ownership", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "eligible": true, + "reason": "", + "revision": 6, + "member": "assistant", + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "requiresApproval": true, + "canDirect": false, + "canApprove": false, + "pending": null, + "requests": [] + } + }, + { + "seq": 308, + "label": "ownership-request-same-day", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//ownership", + "key": "golden-00141-ownership-request-same-day", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "member": "assistant2", + "revision": 6, + "reason": "实际由小昊接待", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 6, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "实际由小昊接待", + "status": "pending", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261119-", + "order_customer": "当天客户(改)", + "order_date": "2026-11-19", + "order_status": "delivered", + "stale": false, + "canApprove": false + }, + "applied": false, + "revision": 6, + "member": "assistant", + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 6, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": { + "id": "", + "status": "pending", + "order_revision": 6, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "实际由小昊接待", + "requester_name": "助理", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": false, + "stale": false + }, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 800, + "payer": "assistant", + "note": "当天快递", + "actor": "助理", + "created": "2026-11-19T02:01:52.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 210000, + "refunded": 0, + "netReceived": 210000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 800, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29200, + "profit": 29200, + "knownProfit": 29200, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "申请修改订单归属", + "actor": "助理", + "detail": { + "requestId": "", + "reason": "实际由小昊接待", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "revision": 6, + "notice": "申请不改变订单、财务、库存或可见范围,由麦麦审批后生效", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:54.000Z" + }, + { + "action": "expense", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "revision": 6, + "reason": "当天快递", + "verified": true, + "amount": "8", + "payer": "assistant", + "note": "当天快递", + "direct": true, + "directDate": "2026-11-19", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:52.000Z" + }, + { + "action": "整单账务修改", + "actor": "助理", + "detail": { + "reason": "当天改客户", + "before": { + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ], + "expenses": [], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z" + } + ], + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ] + }, + "after": { + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "revision": 5, + "received": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "settlementDue": 0 + }, + "notice": "原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:50.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 210000, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "amount": "2100.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + } + ], + "sync": { + "revision": 6, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:52.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 309, + "label": "ownership-request-detail", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-ownership-changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "order_id": "", + "order_revision": 6, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "实际由小昊接待", + "status": "pending", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261119-", + "order_customer": "当天客户(改)", + "order_date": "2026-11-19", + "order_status": "delivered", + "stale": false, + "canApprove": true + } + }, + { + "seq": 310, + "label": "ownership-approve", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/order-ownership-changes//approve", + "key": "golden-00142-ownership-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 6, + "verified": true, + "note": "核实" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 6, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "实际由小昊接待", + "status": "approved", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:56.000Z", + "note": "核实", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261119-", + "order_customer": "当天客户(改)", + "order_date": "2026-11-19", + "order_status": "delivered", + "stale": false, + "canApprove": false + }, + "applied": true, + "revision": 7, + "member": "assistant2", + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 7, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": { + "id": "", + "status": "approved", + "order_revision": 6, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "实际由小昊接待", + "requester_name": "助理", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:56.000Z", + "note": "核实", + "direct": false + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 800, + "payer": "assistant", + "note": "当天快递", + "actor": "助理", + "created": "2026-11-19T02:01:52.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 210000, + "refunded": 0, + "netReceived": 210000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 800, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29200, + "profit": 29200, + "knownProfit": 29200, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "同意修改订单归属", + "actor": "麦麦", + "detail": { + "requestId": "", + "reason": "实际由小昊接待", + "note": "核实", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:01:54.000Z", + "before": { + "member": "assistant", + "label": "娜娜", + "revision": 6 + }, + "after": { + "member": "assistant2", + "label": "小昊", + "revision": 7 + }, + "related": [ + { + "kind": "order", + "id": "" + }, + { + "kind": "movement", + "id": "" + } + ], + "notice": "业绩、成本和利润随订单归属;实际收付款账户、付款人、金额、库存与成本利润数值保持不变,成员往来仅追加归属差额,真实转账保留", + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:01:56.000Z" + }, + { + "action": "申请修改订单归属", + "actor": "助理", + "detail": { + "requestId": "", + "reason": "实际由小昊接待", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "revision": 6, + "notice": "申请不改变订单、财务、库存或可见范围,由麦麦审批后生效", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:54.000Z" + }, + { + "action": "expense", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "revision": 6, + "reason": "当天快递", + "verified": true, + "amount": "8", + "payer": "assistant", + "note": "当天快递", + "direct": true, + "directDate": "2026-11-19", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:52.000Z" + }, + { + "action": "整单账务修改", + "actor": "助理", + "detail": { + "reason": "当天改客户", + "before": { + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ], + "expenses": [], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z" + } + ], + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z" + } + ] + }, + "after": { + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "revision": 5, + "received": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "settlementDue": 0 + }, + "notice": "原收支、库存和利润流水保留;实际双方交款原样保留,按更正后应结金额计算差额", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:50.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 210000, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "amount": "2100.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:48.000Z" + } + ], + "sync": { + "revision": 7, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:56.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 311, + "label": "issue-d2-cancel", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00143-issue-d2-cancel", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "当天取消客户", + "internal_note": "当天单备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金吊坠", + "unit": "g", + "quantity": "2", + "pocket": "现货", + "payer": "assistant", + "sale": "2100", + "cost": "1800" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 312, + "label": "order-d2-cancel-detail", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天取消客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119014", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:57.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 210000, + "refunded": 0, + "netReceived": 210000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 30000, + "profit": 30000, + "knownProfit": 30000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 210000, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "amount": "2100.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:57.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 313, + "label": "cancel-today", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//canceltoday", + "key": "golden-00144-cancel-today", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 4, + "reason": "当天录错", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "requestId": "", + "request": { + "id": "", + "order_id": "", + "order_revision": 4, + "reason": "当天录错", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z", + "order_number": "MM20261119-", + "order_date": "2026-11-19", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 210000, + "netReceived": 210000, + "goodsCost": 180000, + "directCost": 0, + "profit": 30000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000 + } + ] + } + }, + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天取消客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119014", + "status": "cancelled", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:57.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 30000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "当天直接取消订单(录错作废)", + "actor": "助理", + "detail": { + "requestId": "", + "reason": "当天录错", + "note": "", + "requestedBy": "助理", + "requestedAt": "2026-11-19T02:01:59.000Z", + "reviewed": null, + "direct": true, + "operator": "助理", + "operationDate": "2026-11-19", + "before": { + "order": { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天取消客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119014", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:57.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant" + }, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z" + } + ], + "expenses": [], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z" + } + ], + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z" + } + ], + "corrections": [], + "materialUsages": [], + "priceLock": null + }, + "after": { + "revision": 5, + "status": "cancelled", + "netReceived": 0, + "directCost": 0, + "profit": 0, + "settlementDue": 0 + }, + "inventory": [ + { + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000 + } + ], + "notice": "原订单、作废记录、收支与库存流水保留;不是客户退货退款;原采购和双方实际交款不变,原已交款按作废后的应结余额处理", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:59.000Z" + }, + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 210000, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "amount": "2100.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-19", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-19T02:01:57.000Z" + } + ], + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:59.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "seq": 314, + "label": "cancel-today-old-denied", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//canceltoday", + "key": "golden-00145-cancel-today-old-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 1, + "reason": "跨天不可", + "verified": true + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "仅原单日期和操作日期都为今天时可直接取消;其他日期请提交取消申请,由麦麦复核" + } + }, + { + "seq": 315, + "label": "settlement-team-mode-denied", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/orders//settlement", + "key": "golden-00146-settlement-team-mode-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "amount": "1", + "direction": "toOwner", + "verified": true + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "三人新单请在成员间转款中登记实际付款,旧双方交款入口仅保留历史单据" + } + }, + { + "seq": 316, + "label": "receipt-denied", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//receipt", + "key": "golden-00147-receipt-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "amount": "1", + "account": "助理微信", + "verified": true + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "仅待交付订单可以补收款" + } + }, + { + "seq": 317, + "note": "section", + "name": "fundsD2" + }, + { + "seq": 318, + "label": "team-funds-before-transfer", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/team-funds?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 0, + "refunds": 0, + "outlays": 600, + "transferIn": 0, + "transferOut": 0, + "openingChange": -2341031, + "periodChange": -600, + "cumulativeChange": -2341631, + "cashBalance": -600, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 357000, + "refunds": 0, + "outlays": 300210, + "transferIn": 0, + "transferOut": 0, + "openingChange": 134600, + "periodChange": 56790, + "cumulativeChange": 191390, + "cashBalance": 56790, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 366720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -23928, + "cumulativeChange": -147765, + "cashBalance": -23928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -647681, + "obligationNet": -657681, + "transferred": -10000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 647681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ], + "transfers": [], + "revision": "8725ea15b8ac58f5e0f3e56d679f35fce85273eb72a86899e755c194b7851f70", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + } + }, + { + "seq": 319, + "label": "transfer", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/team-funds/transfer", + "key": "golden-00148-transfer", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": "100.00", + "revision": "8725ea15b8ac58f5e0f3e56d679f35fce85273eb72a86899e755c194b7851f70", + "verified": true, + "note": "对照转账二" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "team": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 0, + "refunds": 0, + "outlays": 600, + "transferIn": 10000, + "transferOut": 0, + "openingChange": -2341031, + "periodChange": 9400, + "cumulativeChange": -2331631, + "cashBalance": 9400, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 357000, + "refunds": 0, + "outlays": 300210, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 134600, + "periodChange": 46790, + "cumulativeChange": 181390, + "cashBalance": 46790, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 366720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -23928, + "cumulativeChange": -147765, + "cashBalance": -23928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账二", + "actor": "麦麦" + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + } + } + }, + { + "seq": 320, + "label": "transfer-stale-revision", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/team-funds/transfer", + "key": "golden-00149-transfer-stale-revision", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": "100.00", + "revision": "8725ea15b8ac58f5e0f3e56d679f35fce85273eb72a86899e755c194b7851f70", + "verified": true, + "note": "对照转账二" + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "双方待结余额已有变动,请刷新核对后登记" + } + }, + { + "seq": 321, + "label": "team-funds-d2", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/team-funds?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 0, + "refunds": 0, + "outlays": 600, + "transferIn": 10000, + "transferOut": 0, + "openingChange": -2341031, + "periodChange": 9400, + "cumulativeChange": -2331631, + "cashBalance": 9400, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 357000, + "refunds": 0, + "outlays": 300210, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 134600, + "periodChange": 46790, + "cumulativeChange": 181390, + "cashBalance": 46790, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 366720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -23928, + "cumulativeChange": -147765, + "cashBalance": -23928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账二", + "actor": "麦麦" + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + } + }, + { + "seq": 322, + "label": "team-profits", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/team-profits?month=2026-11", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "basis": "orderDate", + "month": "2026-11", + "from": "2026-11-01", + "date": "2026-11-19", + "rows": [ + { + "member": "assistant", + "name": "娜娜", + "recordCount": 7, + "orderCount": 6, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1356600, + "knownTotalCost": 1091091, + "knownProfit": 265509, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 1091091, + "profit": 265509, + "shareRate": 30, + "estimatedShare": 79653 + }, + { + "member": "assistant2", + "name": "小昊", + "recordCount": 7, + "orderCount": 6, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1351955, + "knownTotalCost": 1162520, + "knownProfit": 189435, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 1162520, + "profit": 189435, + "shareRate": 30, + "estimatedShare": 56831 + } + ] + } + }, + { + "seq": 323, + "label": "team-profits-default", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/team-profits", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "basis": "orderDate", + "month": "2026-11", + "from": "2026-11-01", + "date": "2026-11-19", + "rows": [ + { + "member": "assistant", + "name": "娜娜", + "recordCount": 7, + "orderCount": 6, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1356600, + "knownTotalCost": 1091091, + "knownProfit": 265509, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 1091091, + "profit": 265509, + "shareRate": 30, + "estimatedShare": 79653 + }, + { + "member": "assistant2", + "name": "小昊", + "recordCount": 7, + "orderCount": 6, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1351955, + "knownTotalCost": 1162520, + "knownProfit": 189435, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 1162520, + "profit": 189435, + "shareRate": 30, + "estimatedShare": 56831 + } + ] + } + }, + { + "seq": 324, + "label": "team-profits-denied", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/team-profits", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 325, + "label": "daily-funds-d2-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/daily-funds?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "team": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 0, + "refunds": 0, + "outlays": 600, + "transferIn": 10000, + "transferOut": 0, + "openingChange": -2341031, + "periodChange": 9400, + "cumulativeChange": -2331631, + "cashBalance": 9400, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 357000, + "refunds": 0, + "outlays": 300210, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 134600, + "periodChange": 46790, + "cumulativeChange": 181390, + "cashBalance": 46790, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 366720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -23928, + "cumulativeChange": -147765, + "cashBalance": -23928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账二", + "actor": "麦麦" + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + } + }, + { + "seq": 326, + "label": "daily-funds-d2-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/daily-funds?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "team": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "assistant", + "receipts": 357000, + "refunds": 0, + "outlays": 300210, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 134600, + "periodChange": 46790, + "cumulativeChange": 181390, + "cashBalance": 46790, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1 + } + ] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000 + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + } + }, + { + "seq": 327, + "label": "daily-funds-d2-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/daily-funds?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "team": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 366720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -23928, + "cumulativeChange": -147765, + "cashBalance": -23928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ], + "transfers": [], + "revision": "dc9272ede872920e05008ef8c8e2a290e766de64cae986a7eb1b705d4e306dda", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "dc9272ede872920e05008ef8c8e2a290e766de64cae986a7eb1b705d4e306dda", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + } + }, + { + "seq": 328, + "label": "people-count-d2", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/people-count?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "previousDate": "2026-11-18", + "previous": { + "assistant1Count": 5, + "assistant2Count": 3 + }, + "previousDates": { + "assistant1": "2026-11-18", + "assistant2": "2026-11-18" + }, + "mode": "daily-total", + "assistant1Count": null, + "assistant1Change": null, + "assistant1ChangeReason": "missing-current", + "assistant2Count": null, + "assistant2Change": null, + "assistant2ChangeReason": "missing-current", + "revision": 0 + } + }, + { + "seq": 329, + "label": "people-count-d2-save", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/people-count", + "key": "golden-00150-people-count-d2-save", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "assistant1Count": 7, + "assistant2Count": 4, + "revision": 0 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "revision": 1, + "previousDate": "2026-11-18", + "mode": "daily-total", + "assistant1Count": 7, + "assistant1Change": 2, + "assistant1ChangeReason": null, + "assistant2Count": 4, + "assistant2Change": 1, + "assistant2ChangeReason": null, + "previous": { + "assistant1Count": 5, + "assistant2Count": 3 + }, + "previousDates": { + "assistant1": "2026-11-18", + "assistant2": "2026-11-18" + } + } + }, + { + "seq": 330, + "label": "people-count-history-range", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/people-count-history?from=2026-11-18&date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "rows": [ + { + "date": "2026-11-18", + "previousDate": "2026-11-17", + "previous": { + "assistant1Count": null, + "assistant2Count": null + }, + "previousDates": { + "assistant1": null, + "assistant2": null + }, + "mode": "daily-total", + "assistant1Count": 5, + "assistant1Change": null, + "assistant1ChangeReason": "missing-previous", + "assistant2Count": 3, + "assistant2Change": null, + "assistant2ChangeReason": "missing-previous" + }, + { + "date": "2026-11-19", + "previousDate": "2026-11-18", + "previous": { + "assistant1Count": 5, + "assistant2Count": 3 + }, + "previousDates": { + "assistant1": "2026-11-18", + "assistant2": "2026-11-18" + }, + "mode": "daily-total", + "assistant1Count": 7, + "assistant1Change": 2, + "assistant1ChangeReason": null, + "assistant2Count": 4, + "assistant2Change": 1, + "assistant2ChangeReason": null + } + ], + "summary": { + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + } + } + }, + { + "seq": 331, + "note": "section", + "name": "materialChanges" + }, + { + "seq": 332, + "label": "rolling-preview-before-enable", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-pools/rolling-preview", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "revision": "43f4bb53265d6960e55a5870506e366d94a3921fc8613a13012a4cfa99ac7f39", + "canEnable": true, + "reason": "", + "opening": { + "mg": 27000, + "amount": 2448000, + "allocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ] + }, + "affectedOrderCount": 0, + "relatedOrders": [], + "affectedDates": [], + "summary": { + "affectedOrderCount": 0, + "goodsDelta": 0, + "profitDelta": 0 + } + } + }, + { + "seq": 333, + "label": "rolling-enable-denied", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/material-pools/rolling-enable", + "key": "golden-00151-rolling-enable-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": "43f4bb53265d6960e55a5870506e366d94a3921fc8613a13012a4cfa99ac7f39", + "verified": true + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "滚动料池须由麦麦核实后启用" + } + }, + { + "seq": 334, + "label": "rolling-enable", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/material-pools/rolling-enable", + "key": "golden-00152-rolling-enable", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": "43f4bb53265d6960e55a5870506e366d94a3921fc8613a13012a4cfa99ac7f39", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rolling": { + "enabled": true, + "cutover": "2026-11-19", + "canEnable": false, + "reason": "" + }, + "current": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 28000, + "totalAmount": 2536000, + "usedMg": 0, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 2536000, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 628000, + "consumed": 0, + "remaining": 628000 + }, + "assistant2": { + "purchased": 88000, + "consumed": 0, + "remaining": 88000 + } + }, + "averageRate": 90571, + "status": "unused", + "revision": "ff814cc4c01584def21570bc60f0854b715c6ea408a557d8938b7070af0d103d", + "opening": { + "mg": 27000, + "amount": 2448000, + "allocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ] + }, + "todayPurchases": { + "mg": 0, + "amount": 0, + "count": 0, + "items": [] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 27000, + "amount": 2448000, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + } + } + } + }, + { + "seq": 335, + "label": "purchase-d2", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/material-purchases", + "key": "golden-00153-purchase-d2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "grams": "5", + "total": "4600", + "payer": "assistant", + "allocations": [ + { + "member": "assistant", + "amount": "4600" + } + ], + "note": "第二天购料" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "poolId": "2026-11-19", + "pool": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 33000, + "totalAmount": 2996000, + "usedMg": 0, + "remainingMg": 33000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 2996000, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1088000, + "consumed": 0, + "remaining": 1088000 + }, + "assistant2": { + "purchased": 88000, + "consumed": 0, + "remaining": 88000 + } + }, + "averageRate": 90788, + "status": "unused", + "revision": "d957c8c11a47cb6cd1c7a6ef6deed7d7713ae16b9a71f6b2785951a75cd2dadd", + "todayPurchases": { + "mg": 5000, + "amount": 460000, + "count": 1, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "member": "assistant", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 27000, + "amount": 2448000, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "carry", + "cashAmount": 0 + }, + { + "id": "return::material:0", + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "payer": "assistant2", + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "return", + "cashAmount": 0 + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "member": "assistant", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "opening": { + "mg": 27000, + "amount": 2448000, + "allocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ] + }, + "returns": [ + { + "id": "", + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "sameDay": false, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "anonymous": true + } + ], + "legacyReadOnly": true + } + } + }, + { + "seq": 336, + "label": "purchase-d2-xiaohao", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/material-purchases", + "key": "golden-00154-purchase-d2-xiaohao", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "grams": "4", + "total": "3700", + "payer": "assistant2", + "allocations": [ + { + "member": "assistant2", + "amount": "3700" + } + ] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "poolId": "2026-11-19", + "pool": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 37000, + "totalAmount": 3366000, + "usedMg": 0, + "remainingMg": 37000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 3366000, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1088000, + "consumed": 0, + "remaining": 1088000 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90973, + "status": "unused", + "revision": "9e003dda2a0f5a651e44e6fd5de9e538d583d5c58dfd96aaa75b35b062e227af", + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "member": "assistant2", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 27000, + "amount": 2448000, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "carry", + "cashAmount": 0 + }, + { + "id": "return::material:0", + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "payer": "assistant2", + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "return", + "cashAmount": 0 + }, + { + "id": "", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "member": "assistant2", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "opening": { + "mg": 27000, + "amount": 2448000, + "allocations": [ + { + "payer": "assistant", + "amount": 628000, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ] + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "legacyReadOnly": true + } + } + }, + { + "seq": 337, + "label": "purchase-detail-d2", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/material-purchases/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "purchase": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z", + "ownerReviewRequired": true, + "canRequestChange": true + }, + "pool": { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 30000, + "totalAmount": 2720000, + "averageRate": 90667, + "usedMg": 3000, + "remainingMg": 27000, + "shortageMg": 0, + "consumedCost": 272000, + "remainingCost": 2448000, + "status": "using", + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z", + "member": "assistant", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true + }, + { + "id": "", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "shared": true, + "canEdit": false, + "canRequestChange": false + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 272000, + "owner_amount": 0, + "assistant_amount": 272000, + "revision": 2, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-18T02:01:20.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 900000, + "consumed": 272000, + "remaining": 628000 + } + }, + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "legacyReadOnly": true + }, + "history": [ + { + "action": "登记实际购料", + "actor": "助理", + "detail": { + "before": null, + "after": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z" + }, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:09.000Z" + } + ] + } + }, + { + "seq": 338, + "label": "purchase-edit-cross-day-denied", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/material-purchases//edit", + "key": "golden-00155-purchase-edit-cross-day-denied", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "grams": "11", + "total": "9900", + "payer": "assistant", + "note": "直接改", + "revision": 1 + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "已结转日期的料池已冻结,历史更正须提交麦麦复核" + } + }, + { + "seq": 339, + "label": "purchase-change-request", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/material-purchases//change", + "key": "golden-00156-purchase-change-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "grams": "11", + "total": "9900", + "payer": "assistant", + "allocations": [ + { + "member": "assistant", + "amount": "9900" + } + ], + "note": "核对凭据", + "revision": 1, + "action": "edit", + "reason": "核对原始购料凭据后申请", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "purchase_id": "", + "purchase_revision": 1, + "action": "edit", + "reason": "核对原始购料凭据后申请", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:23.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false, + "canApprove": false, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "revision": 1 + }, + "after": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 272000, + "profit": 57000, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1 + } + } + } + }, + { + "seq": 340, + "label": "purchase-changes-list", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-purchase-changes", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "purchase_id": "", + "purchase_revision": 1, + "action": "edit", + "reason": "核对原始购料凭据后申请", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:23.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false, + "canApprove": true, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "revision": 1 + }, + "after": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 272000, + "profit": 57000, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1, + "goodsDelta": -65, + "profitDelta": 65 + } + } + } + ], + "counts": { + "pending": 1, + "approved": 0, + "rejected": 0 + } + } + }, + { + "seq": 341, + "label": "purchase-change-detail", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/material-purchase-changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "purchase_id": "", + "purchase_revision": 1, + "action": "edit", + "reason": "核对原始购料凭据后申请", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:23.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false, + "canApprove": false, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "revision": 1 + }, + "after": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 272000, + "profit": 57000, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1 + } + } + } + }, + { + "seq": 342, + "label": "purchase-change-self-approve", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/material-purchase-changes//approve", + "key": "golden-00157-purchase-change-self-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "verified": true, + "note": "自批" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "历史购料更正须由麦麦批准" + } + }, + { + "seq": 343, + "label": "purchase-change-approve", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/material-purchase-changes//approve", + "key": "golden-00158-purchase-change-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "verified": true, + "note": "已核对付款凭据" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "purchase_id": "", + "purchase_revision": 1, + "action": "edit", + "reason": "核对原始购料凭据后申请", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:23.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:02:27.000Z", + "note": "已核对付款凭据", + "stale": false, + "canApprove": false, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "revision": 1 + }, + "after": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 272000, + "profit": 57000, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1, + "goodsDelta": -65, + "profitDelta": 65 + } + } + } + }, + { + "seq": 344, + "label": "purchase-detail-after-approve", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/material-purchases/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "purchase": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "ownerReviewRequired": true, + "canRequestChange": true + }, + "pool": { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "member": "assistant", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true + }, + { + "id": "", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "shared": true, + "canEdit": false, + "canRequestChange": false + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "legacyReadOnly": true + }, + "history": [ + { + "action": "修改实际购料", + "actor": "麦麦", + "detail": { + "before": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z" + }, + "after": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:02:27.000Z" + }, + { + "action": "登记实际购料", + "actor": "助理", + "detail": { + "before": null, + "after": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:09.000Z" + }, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-18T02:01:09.000Z" + } + ] + } + }, + { + "seq": 345, + "label": "purchase-delete-request", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/material-purchases//change", + "key": "golden-00159-purchase-delete-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 2, + "action": "delete", + "reason": "申请删除历史购料", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "purchase_id": "", + "purchase_revision": 2, + "action": "delete", + "reason": "申请删除历史购料", + "status": "pending", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:29.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "stale": false, + "canApprove": false, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "after": null, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 273000, + "profit": 56000, + "settlementDue": 0, + "ownerCost": 273000, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1 + } + } + } + }, + { + "seq": 346, + "label": "purchase-change-reject", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/material-purchase-changes//reject", + "key": "golden-00160-purchase-change-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "note": "购料真实存在" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "purchase_id": "", + "purchase_revision": 2, + "action": "delete", + "reason": "申请删除历史购料", + "status": "rejected", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:29.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:02:30.000Z", + "note": "购料真实存在", + "stale": false, + "canApprove": false, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "after": null, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 273000, + "profit": 56000, + "settlementDue": 0, + "ownerCost": 273000, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1, + "goodsDelta": 1065, + "profitDelta": -1065 + } + } + } + }, + { + "seq": 347, + "label": "purchase-owner-detail", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-purchases/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "purchase": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "ownerReviewRequired": true, + "canRequestChange": true + }, + "pool": { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "owner" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + }, + "legacyReadOnly": true + }, + "history": [ + { + "action": "登记实际购料", + "actor": "麦麦", + "detail": { + "before": null, + "after": { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-18T02:01:10.000Z" + } + ] + } + }, + { + "seq": 348, + "label": "purchase-edit-owner-frozen", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/material-purchases//edit", + "key": "golden-00161-purchase-edit-owner-frozen", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-18", + "grams": "20", + "total": "18400", + "payer": "owner", + "note": "老板改价", + "revision": 1 + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "已结转日期的料池已冻结,历史更正须提交麦麦复核" + } + }, + { + "seq": 349, + "label": "purchase-to-delete", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/material-purchases", + "key": "golden-00162-purchase-to-delete", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "grams": "1", + "total": "900", + "payer": "owner", + "note": "待删除" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "poolId": "2026-11-19", + "pool": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 39000, + "totalAmount": 3546065, + "usedMg": 0, + "remainingMg": 39000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 3546065, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + }, + { + "payer": "owner", + "amount": 90000, + "source_id": "", + "created": "2026-11-19T02:02:33.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1910000, + "consumed": 0, + "remaining": 1910000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 0, + "remaining": 1178065 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90925, + "status": "unused", + "revision": "88796bce0013dc02ca8ca610e43f143452f0f65c48352b8a31129d713ebf12bd", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 10000, + "amount": 920000, + "count": 3, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1000, + "amount": 90000, + "payer": "owner", + "note": "待删除", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:33.000Z", + "source_sequence": 6, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1000, + "amount": 90000, + "payer": "owner", + "note": "待删除", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:33.000Z", + "source_sequence": 6, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + } + } + }, + { + "seq": 350, + "label": "purchase-to-delete-detail", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-purchases/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "purchase": { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1000, + "amount": 90000, + "payer": "owner", + "note": "待删除", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:33.000Z" + }, + "pool": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 39000, + "totalAmount": 3546065, + "usedMg": 0, + "remainingMg": 39000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 3546065, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + }, + { + "payer": "owner", + "amount": 90000, + "source_id": "", + "created": "2026-11-19T02:02:33.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1910000, + "consumed": 0, + "remaining": 1910000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 0, + "remaining": 1178065 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90925, + "status": "unused", + "revision": "88796bce0013dc02ca8ca610e43f143452f0f65c48352b8a31129d713ebf12bd", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 10000, + "amount": 920000, + "count": 3, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1000, + "amount": 90000, + "payer": "owner", + "note": "待删除", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:33.000Z", + "source_sequence": 6, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1000, + "amount": 90000, + "payer": "owner", + "note": "待删除", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:33.000Z", + "source_sequence": 6, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + }, + "history": [ + { + "action": "登记实际购料", + "actor": "麦麦", + "detail": { + "before": null, + "after": { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1000, + "amount": 90000, + "payer": "owner", + "note": "待删除", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:33.000Z" + }, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:02:33.000Z" + } + ] + } + }, + { + "seq": 351, + "label": "purchase-edit-same-day", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/material-purchases//edit", + "key": "golden-00163-purchase-edit-same-day", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "grams": "1.5", + "total": "1380", + "payer": "owner", + "note": "当天改价", + "revision": 1 + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "poolId": "2026-11-19", + "previousPoolId": "2026-11-19", + "pool": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 39500, + "totalAmount": 3594065, + "usedMg": 0, + "remainingMg": 39500, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 3594065, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + }, + { + "payer": "owner", + "amount": 138000, + "source_id": "", + "created": "2026-11-19T02:02:33.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1958000, + "consumed": 0, + "remaining": 1958000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 0, + "remaining": 1178065 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90989, + "status": "unused", + "revision": "16ac04efab7be0ef91ae5b56186cfdb6a60326e325808a5c54051a85fa3943d1", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 10500, + "amount": 968000, + "count": 3, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1500, + "amount": 138000, + "payer": "owner", + "note": "当天改价", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:35.000Z", + "source_sequence": 6, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1500, + "amount": 138000, + "payer": "owner", + "note": "当天改价", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:35.000Z", + "source_sequence": 6, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + } + } + }, + { + "seq": 352, + "label": "purchase-after-edit", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-purchases/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "purchase": { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1500, + "amount": 138000, + "payer": "owner", + "note": "当天改价", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:35.000Z" + }, + "pool": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 39500, + "totalAmount": 3594065, + "usedMg": 0, + "remainingMg": 39500, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 3594065, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + }, + { + "payer": "owner", + "amount": 138000, + "source_id": "", + "created": "2026-11-19T02:02:33.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1958000, + "consumed": 0, + "remaining": 1958000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 0, + "remaining": 1178065 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90989, + "status": "unused", + "revision": "16ac04efab7be0ef91ae5b56186cfdb6a60326e325808a5c54051a85fa3943d1", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 10500, + "amount": 968000, + "count": 3, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1500, + "amount": 138000, + "payer": "owner", + "note": "当天改价", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:35.000Z", + "source_sequence": 6, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1500, + "amount": 138000, + "payer": "owner", + "note": "当天改价", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:35.000Z", + "source_sequence": 6, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "owner" + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + }, + "history": [ + { + "action": "修改实际购料", + "actor": "麦麦", + "detail": { + "before": { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1000, + "amount": 90000, + "payer": "owner", + "note": "待删除", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:33.000Z" + }, + "after": { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1500, + "amount": 138000, + "payer": "owner", + "note": "当天改价", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:35.000Z" + }, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:02:35.000Z" + }, + { + "action": "登记实际购料", + "actor": "麦麦", + "detail": { + "before": null, + "after": { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 1000, + "amount": 90000, + "payer": "owner", + "note": "待删除", + "actor": "麦麦", + "created": "2026-11-19T02:02:33.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:33.000Z" + }, + "actorIdentity": { + "id": "", + "role": "owner", + "member": "owner" + } + }, + "created": "2026-11-19T02:02:33.000Z" + } + ] + } + }, + { + "seq": 353, + "label": "purchase-delete", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/material-purchases//delete", + "key": "golden-00164-purchase-delete", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 2, + "reason": "录错", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "poolId": "2026-11-19", + "previousPoolId": "2026-11-19", + "pool": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 0, + "remainingMg": 38000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 3456065, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 0, + "remaining": 1178065 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "unused", + "revision": "9486762293324e10f1a52858598f622e173f4469097a1cca00e6032f7d2cc15a", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + }, + "deleted": true + } + }, + { + "seq": 354, + "label": "material-pool-quote-rolling-old-pool", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/material-pools/quote", + "key": null, + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "member": "assistant", + "date": "2026-11-19", + "entries": [ + { + "lineIndex": 0, + "poolId": "2026-11-19", + "mg": 2000 + }, + { + "lineIndex": 1, + "poolId": "2026-11-18", + "mg": 1000 + } + ] + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "滚动日料池须使用订单当天日期" + } + }, + { + "seq": 355, + "label": "known-issue-material-pool-quote-d2", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/material-pools/quote", + "key": null, + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "member": "assistant", + "date": "2026-11-19", + "entries": [ + { + "lineIndex": 0, + "poolId": "2026-11-19", + "mg": 2000 + }, + { + "lineIndex": 1, + "poolId": "2026-11-19", + "mg": 1000 + } + ] + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "料池实际批次克重不足" + } + }, + { + "seq": 356, + "label": "issue-rolling-pool", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00165-issue-rolling-pool", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "滚动料池客户", + "internal_note": "滚动料池备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金999", + "unit": "g", + "quantity": "2", + "pocket": "", + "payer": "assistant", + "sale": "2200", + "costParts": { + "material": "", + "labor": "0", + "accessories": "0", + "other": "0" + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-19" + } + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 357, + "label": "material-pools-rolling", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-pools", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "rows": [ + { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 181898, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 181898, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "using", + "revision": "c2b7cf97dc5037020f6b38451266013f370e11bed92c022656cc69db8dab9cf4", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": 181898, + "owner_amount": 0, + "assistant_amount": 181898, + "revision": 1, + "created": "2026-11-19T02:02:40.000Z", + "updated": "2026-11-19T02:02:40.000Z", + "fifo_sequence": 2, + "number": "MM20261119-", + "customer": "滚动料池客户", + "order_status": "delivered", + "assistant2_amount": 0, + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + }, + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "owner" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + }, + "legacyReadOnly": true + } + ], + "current": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 181898, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 181898, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "using", + "revision": "c2b7cf97dc5037020f6b38451266013f370e11bed92c022656cc69db8dab9cf4", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": 181898, + "owner_amount": 0, + "assistant_amount": 181898, + "revision": 1, + "created": "2026-11-19T02:02:40.000Z", + "updated": "2026-11-19T02:02:40.000Z", + "fifo_sequence": 2, + "number": "MM20261119-", + "customer": "滚动料池客户", + "order_status": "delivered", + "assistant2_amount": 0, + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + }, + "rolling": { + "enabled": true, + "cutover": "2026-11-19", + "canEnable": false, + "reason": "" + }, + "summary": { + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "remainingCost": 3274167, + "shortageMg": 0, + "pendingCount": 0, + "purchaseCount": 2 + }, + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + } + } + }, + { + "seq": 358, + "label": "material-pool-detail-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-pools/2026-11-18", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "owner" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + }, + "legacyReadOnly": true + } + }, + { + "seq": 359, + "label": "material-pool-settlement-team", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/material-pools/2026-11-18/settlement", + "key": "golden-00166-material-pool-settlement-team", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "amount": "1", + "direction": "toOwner", + "verified": true, + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75" + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "三人购料请到成员往来登记双方实际转账" + } + }, + { + "seq": 360, + "label": "rolling-preview", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-pools/rolling-preview", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "revision": "8993c4d7982a2a06187bd31c29ecbcd55b57e69eae80278303d5c955059aaebf", + "canEnable": false, + "reason": "滚动料池已经启用", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ] + }, + "affectedOrderCount": 1 + } + }, + { + "seq": 361, + "label": "rolling-preview-denied", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/material-pools/rolling-preview", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 362, + "note": "section", + "name": "securityChecks" + }, + { + "seq": 363, + "label": "csrf-missing-origin", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00167-csrf-missing-origin", + "request": { + "headers": { + "origin": null, + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "安全测试", + "internal_note": "安全测试备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金转运珠", + "unit": "g", + "quantity": "0.5", + "pocket": "现货", + "payer": "assistant", + "sale": "500", + "cost": "420" + } + ], + "fee_items": [] + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请从系统页面提交操作" + } + }, + { + "seq": 364, + "label": "csrf-wrong-origin", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00168-csrf-wrong-origin", + "request": { + "headers": { + "origin": "https://evil.example", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "安全测试", + "internal_note": "安全测试备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金转运珠", + "unit": "g", + "quantity": "0.5", + "pocket": "现货", + "payer": "assistant", + "sale": "500", + "cost": "420" + } + ], + "fee_items": [] + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请从系统页面提交操作" + } + }, + { + "seq": 365, + "label": "csrf-missing-header", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00169-csrf-missing-header", + "request": { + "headers": { + "origin": "http://", + "xrw": null, + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "安全测试", + "internal_note": "安全测试备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金转运珠", + "unit": "g", + "quantity": "0.5", + "pocket": "现货", + "payer": "assistant", + "sale": "500", + "cost": "420" + } + ], + "fee_items": [] + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请从系统页面提交操作" + } + }, + { + "seq": 366, + "label": "csrf-wrong-content-type", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00170-csrf-wrong-content-type", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "text/plain" + }, + "body": { + "date": "2026-11-19", + "customer": "安全测试", + "internal_note": "安全测试备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金转运珠", + "unit": "g", + "quantity": "0.5", + "pocket": "现货", + "payer": "assistant", + "sale": "500", + "cost": "420" + } + ], + "fee_items": [] + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请从系统页面提交操作" + } + }, + { + "seq": 367, + "label": "invalid-json", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00171-invalid-json", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": "{not json" + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请求内容不是有效JSON" + } + }, + { + "seq": 368, + "label": "idempotent-first", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-idempotency-replay-0001", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "安全测试", + "internal_note": "安全测试备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金转运珠", + "unit": "g", + "quantity": "0.5", + "pocket": "现货", + "payer": "assistant", + "sale": "500", + "cost": "420" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 369, + "label": "idempotent-replay", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-idempotency-replay-0001", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "安全测试", + "internal_note": "安全测试备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金转运珠", + "unit": "g", + "quantity": "0.5", + "pocket": "现货", + "payer": "assistant", + "sale": "500", + "cost": "420" + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 370, + "label": "idempotent-conflict", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-idempotency-replay-0001", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "不同内容", + "internal_note": "安全测试备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金转运珠", + "unit": "g", + "quantity": "0.5", + "pocket": "现货", + "payer": "assistant", + "sale": "500", + "cost": "420" + } + ], + "fee_items": [] + } + }, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这个操作号已用于其他内容,请重新操作" + } + }, + { + "seq": 371, + "label": "idempotency-key-invalid", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "short", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "安全测试", + "internal_note": "安全测试备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金转运珠", + "unit": "g", + "quantity": "0.5", + "pocket": "现货", + "payer": "assistant", + "sale": "500", + "cost": "420" + } + ], + "fee_items": [] + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "缺少有效操作号,请刷新后重试" + } + }, + { + "seq": 372, + "label": "idempotency-key-missing", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": null, + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "customer": "安全测试", + "internal_note": "安全测试备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金转运珠", + "unit": "g", + "quantity": "0.5", + "pocket": "现货", + "payer": "assistant", + "sale": "500", + "cost": "420" + } + ], + "fee_items": [] + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "缺少有效操作号,请刷新后重试" + } + }, + { + "seq": 373, + "label": "foreign-order", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 374, + "label": "foreign-order-public", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders//public", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 375, + "label": "foreign-order-edit", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders//edit", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 376, + "label": "foreign-order-change", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders//change", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 377, + "label": "foreign-order-cancellation", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders//cancellation", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 378, + "label": "foreign-order-ownership", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders//ownership", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 379, + "label": "foreign-order-after-sale", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/orders//after-sale", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 380, + "label": "foreign-order-post-edit", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders//edit", + "key": "golden-00172-foreign-order-post-edit", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 1, + "reason": "越权", + "verified": true + } + }, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 381, + "label": "foreign-order-post-change", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders//change", + "key": "golden-00173-foreign-order-post-change", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 1, + "reason": "越权", + "verified": true + } + }, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 382, + "label": "foreign-order-post-cancellation", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders//cancellation", + "key": "golden-00174-foreign-order-post-cancellation", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 1, + "reason": "越权", + "verified": true + } + }, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 383, + "label": "foreign-order-post-canceltoday", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders//canceltoday", + "key": "golden-00175-foreign-order-post-canceltoday", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 1, + "reason": "越权", + "verified": true + } + }, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 384, + "label": "foreign-order-post-receipt", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders//receipt", + "key": "golden-00176-foreign-order-post-receipt", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 1, + "reason": "越权", + "verified": true + } + }, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 385, + "label": "foreign-order-post-expense", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/orders//expense", + "key": "golden-00177-foreign-order-post-expense", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 1, + "reason": "越权", + "verified": true + } + }, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "记录不存在或无权访问" + } + }, + { + "seq": 386, + "label": "order-book-foreign-member", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/order-book?member=assistant2", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "只能查看本人的业务" + } + }, + { + "seq": 387, + "label": "report-foreign-member", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/report?member=assistant2", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "只能查看本人的业务" + } + }, + { + "seq": 388, + "label": "owner-only-get", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/export/inventory", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 389, + "label": "owner-only-get", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/team-funds?date=2026-11-19", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 390, + "label": "owner-only-get", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/employees", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 391, + "label": "owner-only-get", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/material-pools/rolling-preview", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 392, + "label": "owner-only-get", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/private-operations", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 393, + "label": "owner-only-get", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/people-count", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 394, + "label": "owner-only-get", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/people-count-history", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 395, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/backup", + "key": "golden-00178-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 396, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/sync", + "key": "golden-00179-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 397, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/shop-settings", + "key": "golden-00180-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 0 + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 398, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/printing", + "key": "golden-00181-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "offsetX": 1 + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 399, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/pockets", + "key": "golden-00182-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "x" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 400, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/employees", + "key": "golden-00183-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "label": "x" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 401, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/team-funds/transfers", + "key": "golden-00184-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 402, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/people-count", + "key": "golden-00185-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "revision": 0 + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 403, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/private-operations/people", + "key": "golden-00186-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "member": "assistant", + "total_count": 1, + "new_count": 0, + "revision": 0 + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "只能登记和查看自己的人数" + } + }, + { + "seq": 404, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/close", + "key": "golden-00187-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "basis": "orderDate" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 405, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/inventory/review", + "key": "golden-00188-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "verified": true, + "revision": "x" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 406, + "label": "owner-only-post", + "date": "2026-11-19", + "actor": "assistant2", + "method": "POST", + "path": "/api/team-members/assistant/password", + "key": "golden-00189-owner-only-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "password": "x", + "verified": true + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "这项操作由店主账号完成" + } + }, + { + "seq": 407, + "label": "unknown-get", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/unknown-route", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "地址不存在" + } + }, + { + "seq": 408, + "label": "unknown-post", + "date": "2026-11-19", + "actor": "assistant", + "method": "POST", + "path": "/api/unknown-route", + "key": "golden-00190-unknown-post", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "地址不存在" + } + }, + { + "seq": 409, + "label": "method-not-allowed", + "date": "2026-11-19", + "actor": "assistant", + "method": "PUT", + "path": "/api/state", + "key": null, + "status": 405, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "不支持的请求方式" + } + }, + { + "seq": 410, + "label": "anonymous-order", + "date": "2026-11-19", + "actor": null, + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 401, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请先登录" + } + }, + { + "seq": 411, + "label": "account-changed-header", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 409, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "登录账号已在其他页面切换,请刷新后继续;原操作已暂停。", + "code": "ACCOUNT_CHANGED" + } + }, + { + "seq": 412, + "note": "section", + "name": "reports" + }, + { + "seq": 413, + "label": "report-d2-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/report?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "sales": 1239792, + "goods": 1056028, + "knownGoods": 1056028, + "expense": 2400, + "profit": 181364, + "knownProfit": 181364, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "from": "2026-11-19", + "to": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "settlements": [], + "events": [ + { + "id": "", + "pool_id": "2026-11-19", + "usage_id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付占用", + "before_value": null, + "after_value": { + "poolId": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": null, + "ownerAmount": null, + "assistantAmount": null, + "revision": 1 + }, + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z" + } + ] + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 6, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 610800, + "refund": 0 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2信用卡", + "receipt": 0, + "refund": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "reference": "置换差额实际收款 · HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 1000, + "profit": -1000, + "created": "2026-11-19T02:00:37.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 286200, + "goods": 267000, + "expense": 600, + "profit": 18600, + "created": "2026-11-19T02:01:28.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 130800, + "goods": 106410, + "expense": 0, + "profit": 24390, + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单录错作废冲回", + "sales": -210000, + "goods": -180000, + "expense": 0, + "profit": -30000, + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 220000, + "goods": 181898, + "expense": 0, + "profit": 38102, + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 50000, + "goods": 42000, + "expense": 0, + "profit": 8000, + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null + } + }, + { + "seq": 414, + "label": "report-d2-orderdate-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/report?date=2026-11-19&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "sales": 1239792, + "goods": 1056028, + "knownGoods": 1056028, + "expense": 1400, + "profit": 182364, + "knownProfit": 182364, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-19", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 460000, + "goods": 460000, + "paidFees": 0, + "total": 460000, + "purchaseCount": 1 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 2, + "poolCount": 1, + "mg": 9000, + "materialOutlay": 830000, + "purchaseValue": 830000, + "ownerOutlay": 0, + "assistantOutlay": 460000, + "assistant2Outlay": 370000, + "totalOutlay": 830000, + "eventCount": 2 + } + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 6, + "returns": 1, + "accounts": [ + { + "account": "助理微信", + "receipt": 610800, + "refund": 0, + "net": 610800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "reference": "置换差额实际收款 · HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "order_date": "2026-11-18", + "order_after_sale": true + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 286200, + "goods": 267000, + "expense": 600, + "profit": 18600, + "created": "2026-11-19T02:01:28.000Z", + "number": "MM20261119-", + "paper_number": "20261119010", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 130800, + "goods": 106410, + "expense": 0, + "profit": 24390, + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单录错作废冲回", + "sales": -210000, + "goods": -180000, + "expense": 0, + "profit": -30000, + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 220000, + "goods": 181898, + "expense": 0, + "profit": 38102, + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 50000, + "goods": 42000, + "expense": 0, + "profit": 8000, + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "basis": "orderDate", + "summary": { + "orderCount": 7, + "completedCount": 6, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1239792, + "material": 822028, + "laborAndFees": 13400, + "unallocated": 222000, + "totalCost": 1057428, + "profit": 182364, + "ownerCost": 255600, + "assistantCost": 523108, + "assistant2Cost": 278720, + "mg": 27600, + "pieces": 0, + "knownCounts": { + "sale": 7, + "material": 5, + "laborAndFees": 5, + "unallocated": 7, + "totalCost": 7, + "profit": 7, + "ownerCost": 7, + "assistantCost": 7, + "assistant2Cost": 7 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 8 + }, + "orderRows": [ + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "payerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 800410, + "paidFees": 800, + "total": 801210, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other", + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "goods", + "amount": 9000, + "payer": "assistant", + "source": "锁价采购 · 实付 2026-11-19", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "补购料费", + "materialSource": "extra", + "paidDate": "2026-11-19", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "purchaseAmount": 460000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 5000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 0, + "paidFees": 600, + "total": 600, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "paid", + "component": "fee", + "product": "足金999", + "name": "实际快递", + "source": "锁价费用 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "status": "recorded", + "calculation": null, + "actualOutlay": true + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 736720, + "paidFees": 0, + "total": 736720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "purchaseAmount": 370000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 4000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + } + }, + "orderPayerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 522308, + "paidFees": 800, + "total": 523108, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 255000, + "paidFees": 600, + "total": 255600, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 278720, + "paidFees": 0, + "total": 278720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null, + "order_id": "", + "orderAfterSale": true, + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + } + ] + } + }, + "peopleCount": { + "from": "2026-11-19", + "date": "2026-11-19", + "baselineDate": "2026-11-18", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": 5, + "baselineDate": "2026-11-18", + "netChange": 2, + "netChangeReason": null, + "recordedDays": 1 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": 3, + "baselineDate": "2026-11-18", + "netChange": 1, + "netChangeReason": null, + "recordedDays": 1 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-19", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 600, + "total": 600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "materialOutlay": 9000, + "goodsOutlay": 12000, + "feeOutlay": 600, + "ownerOutlay": 600, + "assistantOutlay": 12000, + "assistant2Outlay": 0, + "totalOutlay": 12600, + "eventCount": 6, + "lockCount": 1 + } + }, + "outlayGoods": 1537130, + "outlayExpense": 1400, + "outlayTotal": 1538530, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 1059792, + "refund": 90000, + "net": 969792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1043592, + "refund": 0, + "net": 1043592 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 90000, + "net": -73800 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 610800, + "refund": 0, + "net": 610800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 8 + }, + "totalCost": 1057428, + "recipientReceipts": { + "assistant": { + "recipient": "assistant", + "name": "娜娜", + "receipt": 627000, + "refund": 0, + "net": 627000, + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + } + ] + }, + "owner": { + "recipient": "owner", + "name": "麦麦", + "receipt": 0, + "refund": 0, + "net": 0, + "items": [] + }, + "assistant2": { + "recipient": "assistant2", + "name": "小昊", + "receipt": 432792, + "refund": 90000, + "net": 342792, + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipReceipts": { + "owner": { + "member": "owner", + "name": "麦麦", + "receipt": 0, + "refund": 0, + "net": 0, + "accounts": [], + "items": [] + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "receipt": 417000, + "refund": 0, + "net": 417000, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 400800, + "refund": 0, + "net": 400800, + "entryCount": 5 + }, + { + "account": "助理支付宝", + "recipient": "assistant", + "channel": "alipay", + "receipt": 16200, + "refund": 0, + "net": 16200, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + } + ] + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "receipt": 642792, + "refund": 90000, + "net": 552792, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 210000, + "refund": 0, + "net": 210000, + "entryCount": 1 + }, + { + "account": "助理2微信", + "recipient": "assistant2", + "channel": "wechat", + "receipt": 432792, + "refund": 0, + "net": 432792, + "entryCount": 1 + }, + { + "account": "助理2支付宝", + "recipient": "assistant2", + "channel": "alipay", + "receipt": 0, + "refund": 90000, + "net": -90000, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipBusiness": { + "owner": { + "member": "owner", + "name": "麦麦", + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "recordCount": 0, + "orderCount": 0, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 0, + "netReceipts": 0, + "totalCost": 0, + "knownTotalCost": 0, + "selfCost": 0, + "knownSelfCost": 0, + "otherCost": 0, + "knownOtherCost": 0, + "profit": 0, + "knownProfit": 0, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 0, + "amount": 0 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [] + }, + "difference": { + "amount": 0, + "reconciled": true, + "reasons": [] + }, + "equation": { + "basis": "netReceipts", + "revenue": 0, + "totalCost": 0, + "profit": 0, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-19", + "date": "2026-11-19", + "dueOut": 0, + "dueIn": 637681, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 637681, + "openingDue": -647081, + "periodNew": -600, + "periodTransferred": -10000, + "closingDue": -637681, + "offset": 290650, + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + } + ] + }, + "hasActivity": true + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "recordCount": 5, + "orderCount": 5, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 687000, + "netReceipts": 417000, + "totalCost": 597908, + "knownTotalCost": 597908, + "selfCost": 342308, + "knownSelfCost": 342308, + "otherCost": 255600, + "knownOtherCost": 255600, + "profit": 89092, + "knownProfit": 89092, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 255600, + "knownTotalCost": 255600, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 342308, + "knownTotalCost": 342308, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 2000, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 181898, + "knownAmount": 181898 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [ + { + "mg": 2000, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 181898, + "knownAmount": 181898 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "poolId": "2026-11-19", + "date": "2026-11-19", + "averageRate": 90949, + "sources": [ + { + "kind": "public", + "member": null, + "priceLocked": false, + "mg": 2000, + "averageRate": 90949, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0 + } + ] + } + ], + "otherCosts": { + "knownAmount": 416010, + "amount": 416010 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "items": [ + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "component": "material", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 255000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "实际快递", + "source": "2026-11-19", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 600, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 255600, + "amount": 255600, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 255600, + "knownOtherAmount": 255600 + } + ] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "recordCount": 5, + "knownMaterialCost": 255000, + "knownOtherCost": 600, + "knownProfit": 89092, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 255000, + "otherCost": 600, + "profit": 89092, + "knownAmount": 344692, + "amount": 344692 + } + ] + }, + "difference": { + "amount": -270000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + }, + { + "code": "refund_or_cancellation", + "text": "退货或作废已按原账冲回销售;尚未退清的客户款或不同日期的退款不作为销售利润。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 687000, + "totalCost": 597908, + "profit": 89092, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-19", + "date": "2026-11-19", + "dueOut": 678881, + "dueIn": 0, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 637681, + "dueIn": 0, + "openingDue": 647081, + "periodNew": 600, + "periodTransferred": 10000, + "closingDue": 637681, + "offset": 290650, + "period": { + "obligationNet": 600, + "transferred": 10000, + "receivedForNet": 0, + "advancedNet": 600 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 41200, + "dueIn": 0, + "openingDue": 12000, + "periodNew": 29200, + "periodTransferred": 0, + "closingDue": 41200, + "offset": 250800, + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + } + } + ] + }, + "hasActivity": true + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "netReceipts": 552792, + "totalCost": 459520, + "knownTotalCost": 459520, + "selfCost": 278720, + "knownSelfCost": 278720, + "otherCost": 180800, + "knownOtherCost": 180800, + "profit": 93272, + "knownProfit": 93272, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 180800, + "knownTotalCost": 180800, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 278720, + "knownTotalCost": 278720, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 459520, + "amount": 459520 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "recordCount": 3, + "knownMaterialCost": 0, + "knownOtherCost": 0, + "knownProfit": 93272, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 0, + "profit": 93272, + "knownAmount": 93272, + "amount": 93272 + } + ] + }, + "difference": { + "amount": 0, + "reconciled": true, + "reasons": [] + }, + "equation": { + "basis": "netReceipts", + "revenue": 552792, + "totalCost": 459520, + "profit": 93272, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-19", + "date": "2026-11-19", + "dueOut": 0, + "dueIn": 41200, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + }, + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 41200, + "openingDue": -12000, + "periodNew": -29200, + "periodTransferred": 0, + "closingDue": -41200, + "offset": 250800, + "period": { + "obligationNet": -29200, + "transferred": 0, + "receivedForNet": -210000, + "advancedNet": 180800 + } + } + ] + }, + "hasActivity": true + } + }, + "dailyProfits": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "recordCount": 5, + "orderCount": 5, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 687000, + "knownTotalCost": 597908, + "knownProfit": 89092, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant", + "name": "娜娜", + "totalCost": 597908, + "profit": 89092 + }, + { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "knownTotalCost": 459520, + "knownProfit": 93272, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant2", + "name": "小昊", + "totalCost": 459520, + "profit": 93272 + } + ], + "summary": { + "recordCount": 8, + "orderCount": 7, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1239792, + "knownTotalCost": 1057428, + "knownProfit": 182364, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 1057428, + "profit": 182364 + } + }, + "dailyFunds": { + "date": "2026-11-19", + "from": "2026-11-19", + "team": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 0, + "refunds": 0, + "outlays": 600, + "transferIn": 10000, + "transferOut": 0, + "openingChange": -2341031, + "periodChange": 9400, + "cumulativeChange": -2331631, + "cashBalance": 9400, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 627000, + "refunds": 0, + "outlays": 802210, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 44600, + "periodChange": -185210, + "cumulativeChange": -140610, + "cashBalance": -185210, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 736720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -393928, + "cumulativeChange": -517765, + "cashBalance": -393928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账二", + "actor": "麦麦" + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + }, + "reportRevision": "fa73de27deceb492d63cf1d58c3eba7bf0d1089f22a851135fe95a461efa7504" + } + }, + { + "seq": 415, + "label": "report-range-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/report?from=2026-11-18&date=2026-11-19&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-18", + "sales": 4358555, + "goods": 3721163, + "knownGoods": 3721163, + "expense": 8081, + "profit": 629311, + "knownProfit": 629311, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 14, + "returns": 1, + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-", + "paper_number": "20261118001", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-", + "paper_number": "20261118002", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-", + "paper_number": "20261118003", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 980000, + "account": "麦麦现金", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "number": "MM20261118-", + "paper_number": "20261118005", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-", + "paper_number": "20261118008", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "麦麦支付宝", + "reference": "定金", + "actor": "麦麦", + "created": "2026-11-18T02:01:31.000Z", + "number": "MM20261118-", + "paper_number": "20261118009", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 300000, + "account": "麦麦信用卡", + "reference": "尾款", + "actor": "麦麦", + "created": "2026-11-18T02:01:33.000Z", + "number": "MM20261118-", + "paper_number": "20261118009", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "reference": "更正冲回:取消审批作废;重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "reference": "置换差额实际收款 · HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "order_date": "2026-11-18", + "order_after_sale": true + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 321100, + "goods": 290200, + "expense": 1200, + "profit": 29700, + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-", + "paper_number": "20261118001", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 217163, + "goods": 183000, + "expense": 0, + "profit": 34163, + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-", + "paper_number": "20261118002", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-", + "paper_number": "20261118003", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 330000, + "goods": 272000, + "expense": 0, + "profit": 58000, + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 980000, + "goods": 900000, + "expense": 0, + "profit": 80000, + "created": "2026-11-18T02:01:23.000Z", + "number": "MM20261118-", + "paper_number": "20261118005", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 150000, + "goods": 130000, + "expense": 0, + "profit": 20000, + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000, + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 82000, + "goods": 70000, + "expense": 0, + "profit": 12000, + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-", + "paper_number": "20261118008", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 400000, + "goods": 350000, + "expense": 1800, + "profit": 48200, + "created": "2026-11-18T02:01:34.000Z", + "number": "MM20261118-", + "paper_number": "20261118009", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "订单录错作废冲回", + "sales": -150000, + "goods": -130000, + "expense": 0, + "profit": -20000, + "created": "2026-11-19T02:00:45.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "日购料成本调整", + "sales": 0, + "goods": -65, + "expense": 0, + "profit": 65, + "created": "2026-11-19T02:02:27.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 1000, + "profit": -1000, + "created": "2026-11-19T02:00:37.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 286200, + "goods": 267000, + "expense": 600, + "profit": 18600, + "created": "2026-11-19T02:01:28.000Z", + "number": "MM20261119-", + "paper_number": "20261119010", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 130800, + "goods": 106410, + "expense": 0, + "profit": 24390, + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单录错作废冲回", + "sales": -210000, + "goods": -180000, + "expense": 0, + "profit": -30000, + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 220000, + "goods": 181898, + "expense": 0, + "profit": 38102, + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 50000, + "goods": 42000, + "expense": 0, + "profit": 8000, + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + } + ], + "afterSales": [ + { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "project": "对照清洗", + "customer": "对照售后客户二", + "amount": 0, + "payer": "owner", + "actor": "麦麦", + "created": "2026-11-18T02:02:06.000Z" + } + ], + "afterSaleCount": 2, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "basis": "orderDate", + "summary": { + "orderCount": 16, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 2, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4358555, + "material": 1819963, + "laborAndFees": 34281, + "unallocated": 1875000, + "totalCost": 3729244, + "profit": 629311, + "ownerCost": 1945131, + "assistantCost": 872393, + "assistant2Cost": 911720, + "mg": 57150, + "pieces": 4, + "knownCounts": { + "sale": 16, + "material": 9, + "laborAndFees": 9, + "unallocated": 16, + "totalCost": 16, + "profit": 16, + "ownerCost": 16, + "assistantCost": 16, + "assistant2Cost": 16 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 19 + }, + "orderRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "payerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 1864610, + "paidFees": 3950, + "total": 1868560, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "快递", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "customer": "对照驳回客户", + "status": "recorded" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null, + "project": "对照改圈", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other", + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "goods", + "amount": 9000, + "payer": "assistant", + "source": "锁价采购 · 实付 2026-11-19", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "补购料费", + "materialSource": "extra", + "paidDate": "2026-11-19", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "purchaseAmount": 990000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-18", + "name": "日料池采购", + "source": "日料池 2026-11-18 · 实付 2026-11-18", + "paidDate": "2026-11-18", + "quantity": 11000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "purchaseAmount": 460000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 5000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 4016000, + "paidFees": 4131, + "total": 4020131, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "customer": "对照草稿客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "customer": "对照分步客户", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "customer": "对照分步客户", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null, + "project": "对照清洗", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户二", + "status": "recorded" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 255000, + "payer": "owner", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 255000, + "payer": "owner", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "paid", + "component": "fee", + "product": "足金999", + "name": "实际快递", + "source": "锁价费用 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "status": "recorded", + "calculation": null, + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "purchaseAmount": 1820000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-18", + "name": "日料池采购", + "source": "日料池 2026-11-18 · 实付 2026-11-18", + "paidDate": "2026-11-18", + "quantity": 20000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 1627720, + "paidFees": 0, + "total": 1627720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 258000, + "payer": "assistant2", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 86000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "purchaseAmount": 370000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 4000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + } + }, + "orderPayerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 868443, + "paidFees": 3950, + "total": 872393, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "快递", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + }, + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "customer": "对照驳回客户", + "status": "recorded" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null, + "project": "对照改圈", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户", + "status": "recorded" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 1941000, + "paidFees": 4131, + "total": 1945131, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "customer": "对照草稿客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "customer": "对照分步客户", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "customer": "对照分步客户", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null, + "project": "对照清洗", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户二", + "status": "recorded" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 911720, + "paidFees": 0, + "total": 911720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null, + "order_id": "", + "orderAfterSale": true, + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + } + ] + } + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "outlayGoods": 7508330, + "outlayExpense": 8081, + "outlayTotal": 7516411, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "totalCost": 3729244, + "recipientReceipts": { + "assistant": { + "recipient": "assistant", + "name": "娜娜", + "receipt": 1750100, + "refund": 0, + "net": 1750100, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118001", + "customer": "对照客户甲(改)", + "reference": "开单时已全额收款", + "note": "客户单备注", + "created": "2026-11-18T02:01:17.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118004", + "customer": "对照客户丁", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118008", + "customer": "对照驳回客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:26.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:53.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户二", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:02:02.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + } + ] + }, + "owner": { + "recipient": "owner", + "name": "麦麦", + "receipt": 1668500, + "refund": 0, + "net": 1668500, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118003", + "customer": "对照客户丙", + "reference": "开单时已全额收款", + "note": "老板改备注", + "created": "2026-11-18T02:01:19.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 980000, + "account": "麦麦现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118005", + "customer": "对照草稿客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:23.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "麦麦支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118009", + "customer": "对照分步客户", + "reference": "定金", + "note": "", + "created": "2026-11-18T02:01:31.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 300000, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118009", + "customer": "对照分步客户", + "reference": "尾款", + "note": "", + "created": "2026-11-18T02:01:33.000Z" + } + ] + }, + "assistant2": { + "recipient": "assistant2", + "name": "小昊", + "receipt": 1199955, + "refund": 90000, + "net": 1109955, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118002", + "customer": "对照客户乙", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:18.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:24.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "更正冲回:取消审批作废;重复录入", + "note": "", + "created": "2026-11-19T02:00:45.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户三", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:55.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipReceipts": { + "owner": { + "member": "owner", + "name": "麦麦", + "receipt": 1380000, + "refund": 0, + "net": 1380000, + "accounts": [ + { + "account": "麦麦现金", + "recipient": "owner", + "channel": "cash", + "receipt": 980000, + "refund": 0, + "net": 980000, + "entryCount": 1 + }, + { + "account": "麦麦支付宝", + "recipient": "owner", + "channel": "alipay", + "receipt": 100000, + "refund": 0, + "net": 100000, + "entryCount": 1 + }, + { + "account": "麦麦信用卡", + "recipient": "owner", + "channel": "credit_card", + "receipt": 300000, + "refund": 0, + "net": 300000, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 980000, + "account": "麦麦现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118005", + "customer": "对照草稿客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:23.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "麦麦支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118009", + "customer": "对照分步客户", + "reference": "定金", + "note": "", + "created": "2026-11-18T02:01:31.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 300000, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118009", + "customer": "对照分步客户", + "reference": "尾款", + "note": "", + "created": "2026-11-18T02:01:33.000Z" + } + ] + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "receipt": 1746600, + "refund": 0, + "net": 1746600, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 991900, + "refund": 0, + "net": 991900, + "entryCount": 7 + }, + { + "account": "助理现金", + "recipient": "assistant", + "channel": "cash", + "receipt": 330000, + "refund": 0, + "net": 330000, + "entryCount": 1 + }, + { + "account": "助理支付宝", + "recipient": "assistant", + "channel": "alipay", + "receipt": 136200, + "refund": 0, + "net": 136200, + "entryCount": 2 + }, + { + "account": "麦麦信用卡", + "recipient": "owner", + "channel": "credit_card", + "receipt": 288500, + "refund": 0, + "net": 288500, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118001", + "customer": "对照客户甲(改)", + "reference": "开单时已全额收款", + "note": "客户单备注", + "created": "2026-11-18T02:01:17.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118004", + "customer": "对照客户丁", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:53.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户二", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:02:02.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118003", + "customer": "对照客户丙", + "reference": "开单时已全额收款", + "note": "老板改备注", + "created": "2026-11-18T02:01:19.000Z" + } + ] + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "receipt": 1491955, + "refund": 90000, + "net": 1401955, + "accounts": [ + { + "account": "助理支付宝", + "recipient": "assistant", + "channel": "alipay", + "receipt": 82000, + "refund": 0, + "net": 82000, + "entryCount": 1 + }, + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 210000, + "refund": 0, + "net": 210000, + "entryCount": 1 + }, + { + "account": "助理2支付宝", + "recipient": "assistant2", + "channel": "alipay", + "receipt": 217163, + "refund": 90000, + "net": 127163, + "entryCount": 2 + }, + { + "account": "助理2现金", + "recipient": "assistant2", + "channel": "cash", + "receipt": 0, + "refund": 0, + "net": 0, + "entryCount": 2 + }, + { + "account": "助理2微信", + "recipient": "assistant2", + "channel": "wechat", + "receipt": 982792, + "refund": 0, + "net": 982792, + "entryCount": 3 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118008", + "customer": "对照驳回客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:26.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118002", + "customer": "对照客户乙", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:18.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:24.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "更正冲回:取消审批作废;重复录入", + "note": "", + "created": "2026-11-19T02:00:45.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户三", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:55.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipBusiness": { + "owner": { + "member": "owner", + "name": "麦麦", + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1380000, + "netReceipts": 1380000, + "totalCost": 1251800, + "knownTotalCost": 1251800, + "selfCost": 1251800, + "knownSelfCost": 1251800, + "otherCost": 0, + "knownOtherCost": 0, + "profit": 128200, + "knownProfit": 128200, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 1251800, + "knownTotalCost": 1251800, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 1251800, + "amount": 1251800 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-18", + "items": [ + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118005", + "customer": "对照草稿客户", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "component": "unallocated", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 900000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118009", + "customer": "对照分步客户", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "component": "unallocated", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 350000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118009", + "customer": "对照分步客户", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 1800, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 1251800, + "amount": 1251800, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 1251800, + "knownOtherAmount": 1251800 + } + ] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-18", + "recordCount": 3, + "knownMaterialCost": 0, + "knownOtherCost": 1251800, + "knownProfit": 128200, + "ownerNetReceipts": 1380000, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 1251800, + "profit": 128200, + "knownAmount": 0, + "amount": 0 + } + ] + }, + "difference": { + "amount": 0, + "reconciled": true, + "reasons": [] + }, + "equation": { + "basis": "netReceipts", + "revenue": 1380000, + "totalCost": 1251800, + "profit": 128200, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-18", + "date": "2026-11-19", + "dueOut": 0, + "dueIn": 637681, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 637681, + "openingDue": 0, + "periodNew": -657681, + "periodTransferred": -20000, + "closingDue": -637681, + "offset": 290650, + "period": { + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + } + ] + }, + "hasActivity": true + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "recordCount": 9, + "orderCount": 8, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1626600, + "netReceipts": 1746600, + "totalCost": 1314924, + "knownTotalCost": 1314924, + "selfCost": 621593, + "knownSelfCost": 621593, + "otherCost": 693331, + "knownOtherCost": 693331, + "profit": 311676, + "knownProfit": 311676, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 693331, + "knownTotalCost": 693331, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 621593, + "knownTotalCost": 621593, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 5000, + "amount": 453833, + "knownAmount": 453833, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 453833, + "knownAmount": 453833 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [ + { + "mg": 3000, + "amount": 271935, + "knownAmount": 271935, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 271935, + "knownAmount": 271935 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "poolId": "2026-11-18", + "date": "2026-11-18", + "averageRate": 90645, + "sources": [ + { + "kind": "public", + "member": null, + "priceLocked": false, + "mg": 3000, + "averageRate": 90645, + "amount": 271935, + "knownAmount": 271935, + "missingCount": 0 + } + ] + }, + { + "mg": 2000, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 181898, + "knownAmount": 181898 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "poolId": "2026-11-19", + "date": "2026-11-19", + "averageRate": 90949, + "sources": [ + { + "kind": "public", + "member": null, + "priceLocked": false, + "mg": 2000, + "averageRate": 90949, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0 + } + ] + } + ], + "otherCosts": { + "knownAmount": 861091, + "amount": 861091 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-18", + "items": [ + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118001", + "customer": "对照客户甲(改)", + "name": "料费成本", + "source": "商品 1 · 足金999", + "component": "material", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 286000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118003", + "customer": "对照客户丙", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "component": "unallocated", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 150000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118003", + "customer": "对照客户丙", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 1731, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 437731, + "amount": 437731, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 437731, + "knownOtherAmount": 437731 + }, + { + "date": "2026-11-19", + "items": [ + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "component": "material", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 255000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "实际快递", + "source": "2026-11-19", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 600, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 255600, + "amount": 255600, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 255600, + "knownOtherAmount": 255600 + } + ] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-18", + "recordCount": 4, + "knownMaterialCost": 286000, + "knownOtherCost": 151731, + "knownProfit": 222584, + "ownerNetReceipts": 288500, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 286000, + "otherCost": 151731, + "profit": 222584, + "knownAmount": 371815, + "amount": 371815 + }, + { + "date": "2026-11-19", + "recordCount": 5, + "knownMaterialCost": 255000, + "knownOtherCost": 600, + "knownProfit": 89092, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 255000, + "otherCost": 600, + "profit": 89092, + "knownAmount": 344692, + "amount": 344692 + } + ] + }, + "difference": { + "amount": 120000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + }, + { + "code": "refund_or_cancellation", + "text": "退货或作废已按原账冲回销售;尚未退清的客户款或不同日期的退款不作为销售利润。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 1626600, + "totalCost": 1314924, + "profit": 311676, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-18", + "date": "2026-11-19", + "dueOut": 678881, + "dueIn": 0, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 637681, + "dueIn": 0, + "openingDue": 0, + "periodNew": 657681, + "periodTransferred": 20000, + "closingDue": 637681, + "offset": 290650, + "period": { + "obligationNet": 657681, + "transferred": 20000, + "receivedForNet": -288500, + "advancedNet": 946181 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 41200, + "dueIn": 0, + "openingDue": 0, + "periodNew": 41200, + "periodTransferred": 0, + "closingDue": 41200, + "offset": 250800, + "period": { + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800 + } + } + ] + }, + "hasActivity": true + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "recordCount": 7, + "orderCount": 6, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1351955, + "netReceipts": 1401955, + "totalCost": 1162520, + "knownTotalCost": 1162520, + "selfCost": 911720, + "knownSelfCost": 911720, + "otherCost": 250800, + "knownOtherCost": 250800, + "profit": 189435, + "knownProfit": 189435, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 250800, + "knownTotalCost": 250800, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 911720, + "knownTotalCost": 911720, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 1162520, + "amount": 1162520 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-18", + "recordCount": 4, + "knownMaterialCost": 0, + "knownOtherCost": 0, + "knownProfit": 96163, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 0, + "profit": 96163, + "knownAmount": 96163, + "amount": 96163 + }, + { + "date": "2026-11-19", + "recordCount": 3, + "knownMaterialCost": 0, + "knownOtherCost": 0, + "knownProfit": 93272, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 0, + "profit": 93272, + "knownAmount": 93272, + "amount": 93272 + } + ] + }, + "difference": { + "amount": 50000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + }, + { + "code": "order_after_sale", + "text": "订单售后按实际发生日确认退款和利润调整,原开单日结果保留;扣留客户款已计入最终结果。" + }, + { + "code": "refund_or_cancellation", + "text": "退货或作废已按原账冲回销售;尚未退清的客户款或不同日期的退款不作为销售利润。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 1351955, + "totalCost": 1162520, + "profit": 189435, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-18", + "date": "2026-11-19", + "dueOut": 0, + "dueIn": 41200, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + }, + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 41200, + "openingDue": 0, + "periodNew": -41200, + "periodTransferred": 0, + "closingDue": -41200, + "offset": 250800, + "period": { + "obligationNet": -41200, + "transferred": 0, + "receivedForNet": -292000, + "advancedNet": 250800 + } + } + ] + }, + "hasActivity": true + } + }, + "dailyProfits": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "rows": [ + { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1380000, + "knownTotalCost": 1251800, + "knownProfit": 128200, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-18", + "member": "owner", + "name": "麦麦", + "totalCost": 1251800, + "profit": 128200 + }, + { + "recordCount": 4, + "orderCount": 3, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 939600, + "knownTotalCost": 717016, + "knownProfit": 222584, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-18", + "member": "assistant", + "name": "娜娜", + "totalCost": 717016, + "profit": 222584 + }, + { + "recordCount": 4, + "orderCount": 4, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 799163, + "knownTotalCost": 703000, + "knownProfit": 96163, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-18", + "member": "assistant2", + "name": "小昊", + "totalCost": 703000, + "profit": 96163 + }, + { + "recordCount": 5, + "orderCount": 5, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 687000, + "knownTotalCost": 597908, + "knownProfit": 89092, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant", + "name": "娜娜", + "totalCost": 597908, + "profit": 89092 + }, + { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "knownTotalCost": 459520, + "knownProfit": 93272, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant2", + "name": "小昊", + "totalCost": 459520, + "profit": 93272 + } + ], + "summary": { + "recordCount": 19, + "orderCount": 16, + "afterSaleCount": 3, + "draftCount": 0, + "sales": 4358555, + "knownTotalCost": 3729244, + "knownProfit": 629311, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 3729244, + "profit": 629311 + } + }, + "dailyFunds": { + "date": "2026-11-19", + "from": "2026-11-18", + "team": { + "from": "2026-11-18", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 1668500, + "refunds": 0, + "outlays": 4020131, + "transferIn": 20000, + "transferOut": 0, + "openingChange": 0, + "periodChange": -2331631, + "cumulativeChange": -2331631, + "cashBalance": -2331631, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 1750100, + "refunds": 0, + "outlays": 1870710, + "transferIn": 0, + "transferOut": 20000, + "openingChange": 0, + "periodChange": -140610, + "cumulativeChange": -140610, + "cashBalance": -140610, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 1199955, + "refunds": 90000, + "outlays": 1627720, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": -517765, + "cumulativeChange": -517765, + "cashBalance": -517765, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 82000, + "revision": 2, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 70000, + "revision": 2, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1, + "sourceKind": "price_lock", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1, + "sourceKind": "reimbursement", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 82000, + "revision": 2, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 70000, + "revision": 2, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-18", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账", + "actor": "麦麦" + }, + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账二", + "actor": "麦麦" + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": true, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [ + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "补充备注", + "status": "approved", + "revision": 3, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:24.000Z", + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:24.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": false, + "canApprove": false + }, + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照快递", + "amount": 900, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 900 + } + ], + "total": 900, + "note": "", + "status": "rejected", + "revision": 2, + "requester_id": "", + "requester_name": "助理2", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:26.000Z", + "review_note": "凭据不全", + "created": "2026-11-18T02:02:25.000Z", + "updated": "2026-11-18T02:02:26.000Z", + "payer": "assistant2", + "member": "assistant2", + "fundingMode": "independent", + "canEdit": true, + "canApprove": false + } + ], + "approvedReimbursements": 2150, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + }, + "reportRevision": "e259cf4fefb773e09806e8c91493ab7899228d30c74eeb144d3e4a08ecf59c09" + } + }, + { + "seq": 416, + "label": "order-book-d2-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 7, + "completedCount": 6, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1239792, + "material": 822028, + "laborAndFees": 13400, + "unallocated": 222000, + "totalCost": 1057428, + "profit": 182364, + "ownerCost": 255600, + "assistantCost": 523108, + "assistant2Cost": 278720, + "mg": 27600, + "pieces": 0, + "knownCounts": { + "sale": 7, + "material": 5, + "laborAndFees": 5, + "unallocated": 7, + "totalCost": 7, + "profit": 7, + "ownerCost": 7, + "assistantCost": 7, + "assistant2Cost": 7 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 8 + }, + "peopleCount": { + "from": "2026-11-19", + "date": "2026-11-19", + "baselineDate": "2026-11-18", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": 5, + "baselineDate": "2026-11-18", + "netChange": 2, + "netChangeReason": null, + "recordedDays": 1 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": 3, + "baselineDate": "2026-11-18", + "netChange": 1, + "netChangeReason": null, + "recordedDays": 1 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-19", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 600, + "total": 600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "materialOutlay": 9000, + "goodsOutlay": 12000, + "feeOutlay": 600, + "ownerOutlay": 600, + "assistantOutlay": 12000, + "assistant2Outlay": 0, + "totalOutlay": 12600, + "eventCount": 6, + "lockCount": 1 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-19", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 460000, + "goods": 460000, + "paidFees": 0, + "total": 460000, + "purchaseCount": 1 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 2, + "poolCount": 1, + "mg": 9000, + "materialOutlay": 830000, + "purchaseValue": 830000, + "ownerOutlay": 0, + "assistantOutlay": 460000, + "assistant2Outlay": 370000, + "totalOutlay": 830000, + "eventCount": 2 + } + }, + "summaryWithoutCancelled": { + "orderCount": 6, + "completedCount": 6, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1239792, + "material": 822028, + "laborAndFees": 13400, + "unallocated": 222000, + "totalCost": 1057428, + "profit": 182364, + "ownerCost": 255600, + "assistantCost": 523108, + "assistant2Cost": 278720, + "mg": 25600, + "pieces": 0, + "knownCounts": { + "sale": 6, + "material": 4, + "laborAndFees": 4, + "unallocated": 6, + "totalCost": 6, + "profit": 6, + "ownerCost": 6, + "assistantCost": 6, + "assistant2Cost": 6 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 7 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 1059792, + "refund": 90000, + "net": 969792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1043592, + "refund": 0, + "net": 1043592 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 90000, + "net": -73800 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 610800, + "refund": 0, + "net": 610800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 7, + "orderCount": 7 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 1059792, + "refund": 90000, + "net": 969792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1043592, + "refund": 0, + "net": 1043592 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 90000, + "net": -73800 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 610800, + "refund": 0, + "net": 610800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 8 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 1059792, + "refund": 90000, + "net": 969792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1043592, + "refund": 0, + "net": 1043592 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 90000, + "net": -73800 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 610800, + "refund": 0, + "net": 610800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 8 + } + } + }, + { + "seq": 417, + "label": "order-book-range-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "returned", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 16, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 2, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4358555, + "material": 1819963, + "laborAndFees": 34281, + "unallocated": 1875000, + "totalCost": 3729244, + "profit": 629311, + "ownerCost": 1945131, + "assistantCost": 872393, + "assistant2Cost": 911720, + "mg": 57150, + "pieces": 4, + "knownCounts": { + "sale": 16, + "material": 9, + "laborAndFees": 9, + "unallocated": 16, + "totalCost": 16, + "profit": 16, + "ownerCost": 16, + "assistantCost": 16, + "assistant2Cost": 16 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 19 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 14, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4358555, + "material": 1819963, + "laborAndFees": 34281, + "unallocated": 1875000, + "totalCost": 3729244, + "profit": 629311, + "ownerCost": 1945131, + "assistantCost": 872393, + "assistant2Cost": 911720, + "mg": 53650, + "pieces": 4, + "knownCounts": { + "sale": 14, + "material": 7, + "laborAndFees": 7, + "unallocated": 14, + "totalCost": 14, + "profit": 14, + "ownerCost": 14, + "assistantCost": 14, + "assistant2Cost": 14 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 17 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 19, + "orderCount": 16 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + } + } + }, + { + "seq": 418, + "label": "inventory-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "yesterdayDate": "2026-11-18", + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "current": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "yesterday": { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:50.000Z", + "stale": true, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + }, + "todaySnapshot": null, + "revision": "26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace", + "legacyInventory": [], + "canReview": true, + "automaticSnapshot": { + "enabled": false, + "time": "23:50", + "timeZone": "Asia/Shanghai", + "date": "2026-11-19", + "status": "stopped", + "lastSuccess": null, + "lastError": null, + "nextAttemptAt": null + } + } + }, + { + "seq": 419, + "label": "movements-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/movements", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "pocket": "", + "pockets": [ + { + "pocket": "现货", + "active": true + }, + { + "pocket": "金料", + "active": true + }, + { + "pocket": "找金", + "active": true + }, + { + "pocket": "回收旧料", + "active": true + }, + { + "pocket": "君宝汇", + "active": true + }, + { + "pocket": "pocket_", + "active": true + } + ], + "kind": "all", + "hideDeleted": false, + "from": "", + "to": "", + "total": 33, + "shown": 33, + "limit": 100, + "pageSize": 100, + "page": 1, + "totalPages": 1, + "hasPrev": false, + "hasNext": false, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -500, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000, + "kind": "order_cancel_reverse", + "note": "MM20261119-;当天直接作废:当天录错", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -6000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 4851, + "kind": "recovery", + "note": "HS202611190002", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 7992, + "kind": "recovery", + "note": "HS202611190001", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -3100, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 100, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 补重黄金入库", + "purchase_cost": 9000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 3000, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 原锁定黄金入库", + "purchase_cost": 255000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "after-sale:", + "order_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "return", + "note": "MM20261118- · 售后回收旧料", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "groupId": "after-sale:", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500, + "kind": "order_cancel_reverse", + "note": "MM20261118-;审批作废:重复录入", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1200, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:21.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1000, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": -10000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "kind": "transfer", + "note": "调拨", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "transfer", + "note": "调拨", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "kind": "opening", + "note": "展柜起始", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "kind": "opening", + "note": "黄金对照起始金料", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "kind": "opening", + "note": "黄金对照起始库存", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 420, + "label": "snapshots-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/snapshots", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "snapshots": [ + { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:50.000Z", + "stale": true, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + } + ] + } + }, + { + "seq": 421, + "label": "material-pools-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-pools", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "rows": [ + { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 181898, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 181898, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "using", + "revision": "c2b7cf97dc5037020f6b38451266013f370e11bed92c022656cc69db8dab9cf4", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": 181898, + "owner_amount": 0, + "assistant_amount": 181898, + "revision": 1, + "created": "2026-11-19T02:02:40.000Z", + "updated": "2026-11-19T02:02:40.000Z", + "fifo_sequence": 2, + "number": "MM20261119-", + "customer": "滚动料池客户", + "order_status": "delivered", + "assistant2_amount": 0, + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + }, + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "owner" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + }, + "legacyReadOnly": true + } + ], + "current": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 181898, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 181898, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "using", + "revision": "c2b7cf97dc5037020f6b38451266013f370e11bed92c022656cc69db8dab9cf4", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false, + "member": "assistant2" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": 181898, + "owner_amount": 0, + "assistant_amount": 181898, + "revision": 1, + "created": "2026-11-19T02:02:40.000Z", + "updated": "2026-11-19T02:02:40.000Z", + "fifo_sequence": 2, + "number": "MM20261119-", + "customer": "滚动料池客户", + "order_status": "delivered", + "assistant2_amount": 0, + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + }, + "rolling": { + "enabled": true, + "cutover": "2026-11-19", + "canEnable": false, + "reason": "" + }, + "summary": { + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "remainingCost": 3274167, + "shortageMg": 0, + "pendingCount": 0, + "purchaseCount": 2 + }, + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + } + } + }, + { + "seq": 422, + "label": "price-locks-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/price-locks?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "rows": [ + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "delivered", + "revision": 3, + "final_order_id": "", + "delivery": { + "date": "2026-11-19", + "total": 286200, + "difference": 16200, + "lines": [ + { + "lineId": "", + "date": "2026-11-19", + "quantity": 3100, + "original_used_mg": 3000, + "extra_mg": 100, + "leftover_mg": 0, + "leftover_cost": 0, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + } + } + ], + "quantity": 3100, + "original_used_mg": 3000, + "extra_mg": 100, + "leftover_mg": 0, + "leftover_cost": 0, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + } + }, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:28.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": { + "lineId": "", + "date": "2026-11-19", + "quantity": 3100, + "original_used_mg": 3000, + "extra_mg": 100, + "leftover_mg": 0, + "leftover_cost": 0, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + } + } + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "account": null, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 286200, + "refunded": 0, + "netReceived": 286200, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "updated": "2026-11-18T02:02:02.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": null, + "voided": 1, + "void_reason": "当天更正收款", + "voided_at": "2026-11-18T02:02:02.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 120000, + "refunded": 0, + "netReceived": 120000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-18T02:01:55.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户四", + "salesperson": "麦麦", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "cancelled", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "updated": "2026-11-19T02:01:26.000Z", + "cancelled_at": "2026-11-19T02:01:26.000Z", + "cancelled_reason": "录错作废", + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "owner", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [], + "material_events": [], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 80000, + "account": "麦麦微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": null, + "voided": 1, + "void_reason": "录错作废", + "voided_at": "2026-11-19T02:01:26.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户四", + "product": "足金999", + "actor": "麦麦", + "created": "2026-11-18T02:01:56.000Z", + "line_index": 0, + "voided": 1, + "void_reason": "录错作废", + "voided_at": "2026-11-19T02:01:26.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + ], + "counts": { + "pending": 2, + "delivered": 1, + "cancelled": 1 + } + } + }, + { + "seq": 423, + "label": "recoveries-list-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/recoveries", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 5000, + "meltedMg": 4900, + "purity": 99, + "foldedMg": 4851 + } + ], + "oldMg": 4851, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 6000, + "matchedMg": 4851, + "differenceMg": 1149, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 4851, + "goldAmount": 114900, + "laborAmount": 12000, + "depreciationAmount": 4851, + "charges": [], + "chargesAmount": 0, + "discount": 1000, + "rounding_mode": "yuan", + "rounding_adjustment": 49, + "receivable": 130800, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 103410, + "laborCost": 3000, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390, + "newProduct": { + "name": "足金对照新货", + "quantity": 6000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190002", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:33.000Z", + "actor": "助理", + "revision": 1, + "paper_number": "20261119012", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190001", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:32.000Z", + "actor": "助理2", + "revision": 1, + "paper_number": "20261119011", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + } + ], + "summary": { + "count": 2, + "cancelledCount": 0, + "directCount": 0, + "exchangeCount": 2, + "oldMg": 12843, + "newMg": 18000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 563592, + "offsetAmount": 0, + "cashReceipt": 563592, + "cashPayment": 0 + } + } + }, + { + "seq": 424, + "label": "order-changes-all-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "return", + "reason": "客户退回一件", + "status": "approved", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回", + "action_label": "订单售后", + "action_input": { + "date": "2026-11-19", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "1.000", + "pocket": "金料", + "disposition": "scrap" + } + ], + "refund": { + "amount": "900", + "account": "助理2支付宝", + "payer": "assistant2" + }, + "deductionReason": "客户确认扣费", + "expenses": [] + } + }, + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:03.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 500000, + "netReceived": 500000, + "goodsCost": 450000, + "directCost": 0, + "profit": 50000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 500000, + "netReceived": 410000, + "goodsCost": 450000, + "directCost": 0, + "profit": 48000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + }, + { + "date": "2026-11-19", + "pocket": "金料", + "kind": "return", + "mg": 1000 + } + ], + "changes": [ + { + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000 + } + ] + } + }, + "changes": [ + { + "field": "status", + "label": "订单状态", + "before": "delivered", + "after": "returned" + }, + { + "field": "returned_date", + "label": "退货日期", + "before": null, + "after": "2026-11-19" + }, + { + "field": "refunded", + "label": "累计退款", + "before": 0, + "after": 90000 + }, + { + "field": "payments", + "label": "收退款流水", + "before": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ] + }, + { + "field": "netReceived", + "label": "已收净额", + "before": 500000, + "after": 410000 + }, + { + "field": "profit", + "label": "利润", + "before": 50000, + "after": 48000 + } + ], + "relatedOrders": [], + "afterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "expense", + "reason": "补记快递", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实", + "action_label": "费用补记", + "action_input": { + "date": "2026-11-19", + "amount": "10", + "payer": "assistant", + "note": "补寄快递" + }, + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 58000, + "profit": 58000, + "knownProfit": 58000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:20.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57000, + "profit": 57000, + "knownProfit": 57000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:36.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "changes": [ + { + "field": "expenses", + "label": "实际费用流水", + "before": [], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ] + }, + { + "field": "directCost", + "label": "直接费用", + "before": 0, + "after": 1000 + }, + { + "field": "profit", + "label": "利润", + "before": 58000, + "after": 57000 + } + ], + "relatedOrders": [] + }, + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "想改售价", + "status": "rejected", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:33.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:34.000Z", + "note": "售价无误", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:26.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "2026-11-18", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:33.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "fees_date", + "label": "费用日期", + "before": "", + "after": "2026-11-18" + } + ], + "relatedOrders": [] + }, + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "跨天修改客户名", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:31.000Z", + "note": "凭据已核对", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "relatedOrders": [] + } + ], + "counts": { + "pending": 0, + "approved": 3, + "rejected": 1 + }, + "canApprove": true + } + }, + { + "seq": 425, + "label": "cancellations-all-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-cancellations?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 4, + "reason": "当天录错", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z", + "order_number": "MM20261119-", + "order_date": "2026-11-19", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 210000, + "netReceived": 210000, + "goodsCost": 180000, + "directCost": 0, + "profit": 30000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000 + } + ] + } + }, + { + "id": "", + "order_id": "", + "order_revision": 5, + "reason": "客户想退", + "status": "rejected", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:58.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:59.000Z", + "note": "已交付不取消", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "inventory": [] + } + }, + { + "id": "", + "order_id": "", + "order_revision": 4, + "reason": "重复录入", + "status": "approved", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 150000, + "netReceived": 150000, + "goodsCost": 130000, + "directCost": 0, + "profit": 20000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ] + } + } + ], + "counts": { + "pending": 0, + "approved": 2, + "rejected": 1 + }, + "canApprove": true + } + }, + { + "seq": 426, + "label": "ownership-all-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-ownership-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 6, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "实际由小昊接待", + "status": "approved", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:56.000Z", + "note": "核实", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261119-", + "order_customer": "当天客户(改)", + "order_date": "2026-11-19", + "order_status": "delivered", + "stale": false, + "canApprove": false + }, + { + "id": "", + "order_id": "", + "order_revision": 5, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "申请转给小昊", + "status": "rejected", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:53.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:56.000Z", + "note": "不转", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261118-", + "order_customer": "对照客户丙", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false + }, + { + "id": "", + "order_id": "", + "order_revision": 4, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "核实业务归属", + "status": "approved", + "direct": true, + "requester_id": "", + "requester_name": "麦麦", + "requester_role": "owner", + "created": "2026-11-19T02:00:49.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:49.000Z", + "note": "", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261118-", + "order_customer": "对照驳回客户", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false + } + ], + "counts": { + "pending": 0, + "approved": 2, + "rejected": 1 + }, + "canApprove": true + } + }, + { + "seq": 427, + "label": "lock-changes-all-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/price-lock-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "cancel", + "reason": "客户不要了", + "payload": { + "action": "cancel", + "revision": 1, + "reason": "客户不要了", + "verified": true + }, + "status": "rejected", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:01:23.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:24.000Z", + "note": "客户仍要", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-18T02:01:55.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "cancelled", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-19T02:01:23.000Z", + "cancelled_at": "2026-11-19T02:01:23.000Z", + "cancelled_reason": "客户不要了", + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [], + "material_events": [], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 1, + "void_reason": "客户不要了", + "voided_at": "2026-11-19T02:01:23.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 1, + "void_reason": "客户不要了", + "voided_at": "2026-11-19T02:01:23.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "materialReturnDate": "2026-11-19", + "changes": [ + { + "field": "netReceived", + "before": 50000, + "after": 0 + }, + { + "field": "status", + "before": "pending", + "after": "cancelled" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + }, + { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "edit", + "reason": "改客户名", + "payload": { + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "2700.00", + "account": "助理微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ], + "action": "edit", + "revision": 1, + "reason": "改客户名", + "verified": true + }, + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:18.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:21.000Z", + "note": "核实", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:18.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changes": [ + { + "field": "customer", + "before": "对照锁价客户", + "after": "对照锁价客户(改)" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + } + ] + } + }, + { + "seq": 428, + "label": "recovery-changes-all-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/recovery-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [], + "counts": { + "pending": 0, + "approved": 0, + "rejected": 0 + } + } + }, + { + "seq": 429, + "label": "purchase-changes-all-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/material-purchase-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "purchase_id": "", + "purchase_revision": 2, + "action": "delete", + "reason": "申请删除历史购料", + "status": "rejected", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:29.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:02:30.000Z", + "note": "购料真实存在", + "stale": false, + "canApprove": false, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "after": null, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 273000, + "profit": 56000, + "settlementDue": 0, + "ownerCost": 273000, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1, + "goodsDelta": 1065, + "profitDelta": -1065 + } + } + }, + { + "id": "", + "purchase_id": "", + "purchase_revision": 1, + "action": "edit", + "reason": "核对原始购料凭据后申请", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:23.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:02:27.000Z", + "note": "已核对付款凭据", + "stale": false, + "canApprove": false, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "revision": 1 + }, + "after": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 272000, + "profit": 57000, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1, + "goodsDelta": -65, + "profitDelta": 65 + } + } + } + ], + "counts": { + "pending": 0, + "approved": 1, + "rejected": 1 + } + } + }, + { + "seq": 430, + "label": "after-sale-changes-all-owner", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/after-sales/changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "afterSaleId": "", + "revision": 2, + "recordRevision": 2, + "status": "rejected", + "reason": "再次调整", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 1200, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:14.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:01:15.000Z", + "note": "金额无误", + "stale": false, + "staleReason": "", + "canApprove": false + }, + { + "id": "", + "afterSaleId": "", + "revision": 2, + "recordRevision": 1, + "status": "approved", + "reason": "金额录错", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:09.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:01:12.000Z", + "note": "核实", + "stale": false, + "staleReason": "", + "canApprove": false + } + ], + "counts": { + "pending": 0, + "approved": 1, + "rejected": 1 + } + } + }, + { + "seq": 431, + "label": "report-d2-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/report?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "sales": 687000, + "goods": 597308, + "knownGoods": 597308, + "expense": 1600, + "profit": 88092, + "knownProfit": 88092, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "from": "2026-11-19", + "to": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + } + ], + "settlements": [], + "events": [ + { + "id": "", + "pool_id": "2026-11-19", + "usage_id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付占用", + "before_value": null, + "after_value": { + "poolId": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": null, + "ownerAmount": null, + "assistantAmount": null, + "revision": 1 + }, + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z" + } + ] + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 4, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 400800, + "refund": 0 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2信用卡", + "receipt": 0, + "refund": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "reference": "置换差额实际收款 · HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 1000, + "profit": -1000, + "created": "2026-11-19T02:00:37.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 286200, + "goods": 267000, + "expense": 600, + "profit": 18600, + "created": "2026-11-19T02:01:28.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 130800, + "goods": 106410, + "expense": 0, + "profit": 24390, + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单录错作废冲回", + "sales": -210000, + "goods": -180000, + "expense": 0, + "profit": -30000, + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 220000, + "goods": 181898, + "expense": 0, + "profit": 38102, + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 50000, + "goods": 42000, + "expense": 0, + "profit": 8000, + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "peopleCount": null + } + }, + { + "seq": 432, + "label": "report-d2-orderdate-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/report?date=2026-11-19&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "sales": 687000, + "goods": 597308, + "knownGoods": 597308, + "expense": 600, + "profit": 89092, + "knownProfit": 89092, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-19", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 460000, + "goods": 460000, + "paidFees": 0, + "total": 460000, + "purchaseCount": 1 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + } + }, + "summary": { + "purchaseCount": 1, + "poolCount": 1, + "mg": 5000, + "materialOutlay": 460000, + "purchaseValue": 460000, + "ownerOutlay": 0, + "assistantOutlay": 460000, + "assistant2Outlay": 0, + "totalOutlay": 460000, + "eventCount": 1 + } + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 4, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 400800, + "refund": 0, + "net": 400800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "reference": "置换差额实际收款 · HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 286200, + "goods": 267000, + "expense": 600, + "profit": 18600, + "created": "2026-11-19T02:01:28.000Z", + "number": "MM20261119-", + "paper_number": "20261119010", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 130800, + "goods": 106410, + "expense": 0, + "profit": 24390, + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单录错作废冲回", + "sales": -210000, + "goods": -180000, + "expense": 0, + "profit": -30000, + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 220000, + "goods": 181898, + "expense": 0, + "profit": 38102, + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 50000, + "goods": 42000, + "expense": 0, + "profit": 8000, + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "basis": "orderDate", + "summary": { + "orderCount": 5, + "completedCount": 4, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 1, + "sale": 687000, + "material": 549308, + "laborAndFees": 6600, + "unallocated": 42000, + "totalCost": 597908, + "profit": 89092, + "ownerCost": 255600, + "assistantCost": 342308, + "assistant2Cost": 0, + "mg": 13600, + "pieces": 0, + "knownCounts": { + "sale": 5, + "material": 4, + "laborAndFees": 4, + "unallocated": 5, + "totalCost": 5, + "profit": 5, + "ownerCost": 5, + "assistantCost": 5, + "assistant2Cost": 5 + }, + "unknownCounts": { + "sale": 0, + "material": 1, + "laborAndFees": 1, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 0, + "recordCount": 5 + }, + "orderRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "payerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 620410, + "paidFees": 0, + "total": 620410, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other", + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "goods", + "amount": 9000, + "payer": "assistant", + "source": "锁价采购 · 实付 2026-11-19", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "补购料费", + "materialSource": "extra", + "paidDate": "2026-11-19", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "purchaseAmount": 460000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 5000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 0, + "paidFees": 600, + "total": 600, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "paid", + "component": "fee", + "product": "足金999", + "name": "实际快递", + "source": "锁价费用 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "status": "recorded", + "calculation": null, + "actualOutlay": true + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + } + }, + "orderPayerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 342308, + "paidFees": 0, + "total": 342308, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 255000, + "paidFees": 600, + "total": 255600, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + } + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-19", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 600, + "total": 600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "materialOutlay": 9000, + "goodsOutlay": 12000, + "feeOutlay": 600, + "ownerOutlay": 600, + "assistantOutlay": 12000, + "assistant2Outlay": 0, + "totalOutlay": 12600, + "eventCount": 6, + "lockCount": 1 + } + }, + "outlayGoods": 620410, + "outlayExpense": 600, + "outlayTotal": 621010, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 417000, + "refund": 0, + "net": 417000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 400800, + "refund": 0, + "net": 400800 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 400800, + "refund": 0, + "net": 400800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 6, + "orderCount": 5 + }, + "totalCost": 597908, + "recipientReceipts": { + "assistant": { + "recipient": "assistant", + "name": "娜娜", + "receipt": 417000, + "refund": 0, + "net": 417000, + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + } + ] + }, + "owner": { + "recipient": "owner", + "name": "麦麦", + "receipt": 0, + "refund": 0, + "net": 0, + "items": [] + }, + "assistant2": { + "recipient": "assistant2", + "name": "小昊", + "receipt": 0, + "refund": 0, + "net": 0, + "items": [] + } + }, + "ownershipReceipts": { + "assistant": { + "member": "assistant", + "name": "娜娜", + "receipt": 417000, + "refund": 0, + "net": 417000, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 400800, + "refund": 0, + "net": 400800, + "entryCount": 5 + }, + { + "account": "助理支付宝", + "recipient": "assistant", + "channel": "alipay", + "receipt": 16200, + "refund": 0, + "net": 16200, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + } + ] + } + }, + "ownershipBusiness": { + "assistant": { + "member": "assistant", + "name": "娜娜", + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "recordCount": 5, + "orderCount": 5, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 687000, + "netReceipts": 417000, + "totalCost": 597908, + "knownTotalCost": 597908, + "selfCost": 342308, + "knownSelfCost": 342308, + "otherCost": 255600, + "knownOtherCost": 255600, + "profit": 89092, + "knownProfit": 89092, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 255600, + "knownTotalCost": 255600, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 342308, + "knownTotalCost": 342308, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 2000, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 181898, + "knownAmount": 181898 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [ + { + "mg": 2000, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 181898, + "knownAmount": 181898 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "poolId": "2026-11-19", + "date": "2026-11-19", + "averageRate": 90949, + "sources": [ + { + "kind": "public", + "member": null, + "priceLocked": false, + "mg": 2000, + "averageRate": 90949, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0 + } + ] + } + ], + "otherCosts": { + "knownAmount": 416010, + "amount": 416010 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "items": [ + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "component": "material", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 255000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "实际快递", + "source": "2026-11-19", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 600, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 255600, + "amount": 255600, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 255600, + "knownOtherAmount": 255600 + } + ] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "recordCount": 5, + "knownMaterialCost": 255000, + "knownOtherCost": 600, + "knownProfit": 89092, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 255000, + "otherCost": 600, + "profit": 89092, + "knownAmount": 344692, + "amount": 344692 + } + ] + }, + "difference": { + "amount": -270000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + }, + { + "code": "refund_or_cancellation", + "text": "退货或作废已按原账冲回销售;尚未退清的客户款或不同日期的退款不作为销售利润。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 687000, + "totalCost": 597908, + "profit": 89092, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-19", + "date": "2026-11-19", + "dueOut": 678881, + "dueIn": 0, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 637681, + "dueIn": 0, + "openingDue": 647081, + "periodNew": 600, + "periodTransferred": 10000, + "closingDue": 637681, + "offset": 290650, + "period": { + "obligationNet": 600, + "transferred": 10000, + "receivedForNet": 0, + "advancedNet": 600 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 41200, + "dueIn": 0, + "openingDue": 12000, + "periodNew": 29200, + "periodTransferred": 0, + "closingDue": 41200, + "offset": 250800, + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + } + } + ] + }, + "hasActivity": true + } + }, + "dailyProfits": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "recordCount": 5, + "orderCount": 5, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 687000, + "knownTotalCost": 597908, + "knownProfit": 89092, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant", + "name": "娜娜", + "totalCost": 597908, + "profit": 89092 + } + ], + "summary": { + "recordCount": 5, + "orderCount": 5, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 687000, + "knownTotalCost": 597908, + "knownProfit": 89092, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 597908, + "profit": 89092 + } + }, + "dailyFunds": { + "date": "2026-11-19", + "from": "2026-11-19", + "team": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "assistant", + "receipts": 627000, + "refunds": 0, + "outlays": 802210, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 44600, + "periodChange": -185210, + "cumulativeChange": -140610, + "cashBalance": -185210, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1 + } + ] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000 + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + }, + "reportRevision": "a54c80f68416a46787b2962c3112a803e48ce0837681ccecc68f29e080a55845" + } + }, + { + "seq": 433, + "label": "report-range-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/report?from=2026-11-18&date=2026-11-19&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-18", + "sales": 1626600, + "goods": 1309443, + "knownGoods": 1309443, + "expense": 5481, + "profit": 311676, + "knownProfit": 311676, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + } + }, + "summary": { + "purchaseCount": 2, + "poolCount": 2, + "mg": 16000, + "materialOutlay": 1450000, + "purchaseValue": 1450000, + "ownerOutlay": 0, + "assistantOutlay": 1450000, + "assistant2Outlay": 0, + "totalOutlay": 1450000, + "eventCount": 2 + } + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 7, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-", + "paper_number": "20261118001", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-", + "paper_number": "20261118003", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "reference": "置换差额实际收款 · HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 321100, + "goods": 290200, + "expense": 1200, + "profit": 29700, + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-", + "paper_number": "20261118001", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-", + "paper_number": "20261118003", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 330000, + "goods": 272000, + "expense": 0, + "profit": 58000, + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "日购料成本调整", + "sales": 0, + "goods": -65, + "expense": 0, + "profit": 65, + "created": "2026-11-19T02:02:27.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 1000, + "profit": -1000, + "created": "2026-11-19T02:00:37.000Z", + "number": "MM20261118-", + "paper_number": "20261118004", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 286200, + "goods": 267000, + "expense": 600, + "profit": 18600, + "created": "2026-11-19T02:01:28.000Z", + "number": "MM20261119-", + "paper_number": "20261119010", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 130800, + "goods": 106410, + "expense": 0, + "profit": 24390, + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单录错作废冲回", + "sales": -210000, + "goods": -180000, + "expense": 0, + "profit": -30000, + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 220000, + "goods": 181898, + "expense": 0, + "profit": 38102, + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 50000, + "goods": 42000, + "expense": 0, + "profit": 8000, + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + } + ], + "afterSales": [ + { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z" + } + ], + "afterSaleCount": 1, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "basis": "orderDate", + "summary": { + "orderCount": 8, + "completedCount": 7, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1626600, + "material": 1107243, + "laborAndFees": 15681, + "unallocated": 192000, + "totalCost": 1314924, + "profit": 311676, + "ownerCost": 693331, + "assistantCost": 621593, + "assistant2Cost": 0, + "mg": 19850, + "pieces": 1, + "knownCounts": { + "sale": 8, + "material": 6, + "laborAndFees": 6, + "unallocated": 8, + "totalCost": 8, + "profit": 8, + "ownerCost": 8, + "assistantCost": 8, + "assistant2Cost": 8 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 9 + }, + "orderRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "payerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 1614610, + "paidFees": 3150, + "total": 1617760, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "快递", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null, + "project": "对照改圈", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other", + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "goods", + "amount": 9000, + "payer": "assistant", + "source": "锁价采购 · 实付 2026-11-19", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "补购料费", + "materialSource": "extra", + "paidDate": "2026-11-19", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "purchaseAmount": 990000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-18", + "name": "日料池采购", + "source": "日料池 2026-11-18 · 实付 2026-11-18", + "paidDate": "2026-11-18", + "quantity": 11000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "purchaseAmount": 460000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 5000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 946000, + "paidFees": 2331, + "total": 948331, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 255000, + "payer": "owner", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 255000, + "payer": "owner", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "paid", + "component": "fee", + "product": "足金999", + "name": "实际快递", + "source": "锁价费用 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "status": "recorded", + "calculation": null, + "actualOutlay": true + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + } + }, + "orderPayerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 618443, + "paidFees": 3150, + "total": 621593, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "快递", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + }, + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "customer": "对照客户丁", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null, + "project": "对照改圈", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "customer": "对照售后客户", + "status": "recorded" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 691000, + "paidFees": 2331, + "total": 693331, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "整单费用 · 实付 2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "customer": "对照客户丙", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-18" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + } + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 406200, + "refund": 0, + "net": 406200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 3, + "orderCount": 2 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 406200, + "refund": 0, + "net": 406200, + "materialOutlay": 519000, + "goodsOutlay": 522000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 0, + "totalOutlay": 522600, + "eventCount": 10, + "lockCount": 2 + } + }, + "outlayGoods": 2560610, + "outlayExpense": 5481, + "outlayTotal": 2566091, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1746600, + "refund": 0, + "net": 1746600, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 11, + "orderCount": 9 + }, + "totalCost": 1314924, + "recipientReceipts": { + "assistant": { + "recipient": "assistant", + "name": "娜娜", + "receipt": 1458100, + "refund": 0, + "net": 1458100, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118001", + "customer": "对照客户甲(改)", + "reference": "开单时已全额收款", + "note": "客户单备注", + "created": "2026-11-18T02:01:17.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118004", + "customer": "对照客户丁", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:53.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户二", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:02:02.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + } + ] + }, + "owner": { + "recipient": "owner", + "name": "麦麦", + "receipt": 288500, + "refund": 0, + "net": 288500, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118003", + "customer": "对照客户丙", + "reference": "开单时已全额收款", + "note": "老板改备注", + "created": "2026-11-18T02:01:19.000Z" + } + ] + }, + "assistant2": { + "recipient": "assistant2", + "name": "小昊", + "receipt": 0, + "refund": 0, + "net": 0, + "items": [] + } + }, + "ownershipReceipts": { + "assistant": { + "member": "assistant", + "name": "娜娜", + "receipt": 1746600, + "refund": 0, + "net": 1746600, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 991900, + "refund": 0, + "net": 991900, + "entryCount": 7 + }, + { + "account": "助理现金", + "recipient": "assistant", + "channel": "cash", + "receipt": 330000, + "refund": 0, + "net": 330000, + "entryCount": 1 + }, + { + "account": "助理支付宝", + "recipient": "assistant", + "channel": "alipay", + "receipt": 136200, + "refund": 0, + "net": 136200, + "entryCount": 2 + }, + { + "account": "麦麦信用卡", + "recipient": "owner", + "channel": "credit_card", + "receipt": 288500, + "refund": 0, + "net": 288500, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118001", + "customer": "对照客户甲(改)", + "reference": "开单时已全额收款", + "note": "客户单备注", + "created": "2026-11-18T02:01:17.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118004", + "customer": "对照客户丁", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:53.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户二", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:02:02.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118003", + "customer": "对照客户丙", + "reference": "开单时已全额收款", + "note": "老板改备注", + "created": "2026-11-18T02:01:19.000Z" + } + ] + } + }, + "ownershipBusiness": { + "assistant": { + "member": "assistant", + "name": "娜娜", + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "recordCount": 9, + "orderCount": 8, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1626600, + "netReceipts": 1746600, + "totalCost": 1314924, + "knownTotalCost": 1314924, + "selfCost": 621593, + "knownSelfCost": 621593, + "otherCost": 693331, + "knownOtherCost": 693331, + "profit": 311676, + "knownProfit": 311676, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 693331, + "knownTotalCost": 693331, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 621593, + "knownTotalCost": 621593, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 5000, + "amount": 453833, + "knownAmount": 453833, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 453833, + "knownAmount": 453833 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [ + { + "mg": 3000, + "amount": 271935, + "knownAmount": 271935, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 271935, + "knownAmount": 271935 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "poolId": "2026-11-18", + "date": "2026-11-18", + "averageRate": 90645, + "sources": [ + { + "kind": "public", + "member": null, + "priceLocked": false, + "mg": 3000, + "averageRate": 90645, + "amount": 271935, + "knownAmount": 271935, + "missingCount": 0 + } + ] + }, + { + "mg": 2000, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 181898, + "knownAmount": 181898 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "poolId": "2026-11-19", + "date": "2026-11-19", + "averageRate": 90949, + "sources": [ + { + "kind": "public", + "member": null, + "priceLocked": false, + "mg": 2000, + "averageRate": 90949, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0 + } + ] + } + ], + "otherCosts": { + "knownAmount": 861091, + "amount": 861091 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-18", + "items": [ + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118001", + "customer": "对照客户甲(改)", + "name": "料费成本", + "source": "商品 1 · 足金999", + "component": "material", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 286000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118003", + "customer": "对照客户丙", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "component": "unallocated", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 150000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-18", + "kind": "order", + "id": "", + "number": "MM20261118-", + "paperNumber": "20261118003", + "customer": "对照客户丙", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 1731, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 437731, + "amount": 437731, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 437731, + "knownOtherAmount": 437731 + }, + { + "date": "2026-11-19", + "items": [ + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "component": "material", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 255000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "实际快递", + "source": "2026-11-19", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 600, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 255600, + "amount": 255600, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 255600, + "knownOtherAmount": 255600 + } + ] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-18", + "recordCount": 4, + "knownMaterialCost": 286000, + "knownOtherCost": 151731, + "knownProfit": 222584, + "ownerNetReceipts": 288500, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 286000, + "otherCost": 151731, + "profit": 222584, + "knownAmount": 371815, + "amount": 371815 + }, + { + "date": "2026-11-19", + "recordCount": 5, + "knownMaterialCost": 255000, + "knownOtherCost": 600, + "knownProfit": 89092, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 255000, + "otherCost": 600, + "profit": 89092, + "knownAmount": 344692, + "amount": 344692 + } + ] + }, + "difference": { + "amount": 120000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + }, + { + "code": "refund_or_cancellation", + "text": "退货或作废已按原账冲回销售;尚未退清的客户款或不同日期的退款不作为销售利润。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 1626600, + "totalCost": 1314924, + "profit": 311676, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-18", + "date": "2026-11-19", + "dueOut": 678881, + "dueIn": 0, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 637681, + "dueIn": 0, + "openingDue": 0, + "periodNew": 657681, + "periodTransferred": 20000, + "closingDue": 637681, + "offset": 290650, + "period": { + "obligationNet": 657681, + "transferred": 20000, + "receivedForNet": -288500, + "advancedNet": 946181 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 41200, + "dueIn": 0, + "openingDue": 0, + "periodNew": 41200, + "periodTransferred": 0, + "closingDue": 41200, + "offset": 250800, + "period": { + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800 + } + } + ] + }, + "hasActivity": true + } + }, + "dailyProfits": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "rows": [ + { + "recordCount": 4, + "orderCount": 3, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 939600, + "knownTotalCost": 717016, + "knownProfit": 222584, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-18", + "member": "assistant", + "name": "娜娜", + "totalCost": 717016, + "profit": 222584 + }, + { + "recordCount": 5, + "orderCount": 5, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 687000, + "knownTotalCost": 597908, + "knownProfit": 89092, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant", + "name": "娜娜", + "totalCost": 597908, + "profit": 89092 + } + ], + "summary": { + "recordCount": 9, + "orderCount": 8, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1626600, + "knownTotalCost": 1314924, + "knownProfit": 311676, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 1314924, + "profit": 311676 + } + }, + "dailyFunds": { + "date": "2026-11-19", + "from": "2026-11-18", + "team": { + "from": "2026-11-18", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "assistant", + "receipts": 1750100, + "refunds": 0, + "outlays": 1870710, + "transferIn": 0, + "transferOut": 20000, + "openingChange": 0, + "periodChange": -140610, + "cumulativeChange": -140610, + "cashBalance": -140610, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1 + } + ] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 82000, + "revision": 2 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 70000, + "revision": 2 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 286000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "owner", + "toMember": "assistant", + "amount": 288500, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 1731, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant", + "toMember": "owner", + "amount": 150000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "锁价实际购料", + "fromMember": "assistant", + "toMember": "owner", + "amount": 255000, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照邮寄", + "fromMember": "owner", + "toMember": "assistant", + "amount": 1500, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "reimbursement", + "project": "独立支出报销 · 对照包装", + "fromMember": "owner", + "toMember": "assistant", + "amount": 650, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 82000, + "revision": 2 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 70000, + "revision": 2 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-18", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000 + }, + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000 + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": true, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [ + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照邮寄", + "amount": 1500, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 1500 + }, + { + "id": "", + "name": "对照包装", + "amount": 650, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 650 + } + ], + "total": 2150, + "note": "补充备注", + "status": "approved", + "revision": 3, + "requester_id": "", + "requester_name": "助理", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:24.000Z", + "review_note": "", + "created": "2026-11-18T02:02:18.000Z", + "updated": "2026-11-18T02:02:24.000Z", + "payer": "assistant", + "member": "assistant", + "fundingMode": "independent", + "canEdit": false, + "canApprove": false + } + ], + "approvedReimbursements": 2150, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + }, + "reportRevision": "39ec8784fe0f690e6320901f31d56bd0999885b6d8c8334d47b38088e6bc1311" + } + }, + { + "seq": 434, + "label": "order-book-d2-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/order-book?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 5, + "completedCount": 4, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 1, + "sale": 687000, + "material": 549308, + "laborAndFees": 6600, + "unallocated": 42000, + "totalCost": 597908, + "profit": 89092, + "ownerCost": 255600, + "assistantCost": 342308, + "assistant2Cost": 0, + "mg": 13600, + "pieces": 0, + "knownCounts": { + "sale": 5, + "material": 4, + "laborAndFees": 4, + "unallocated": 5, + "totalCost": 5, + "profit": 5, + "ownerCost": 5, + "assistantCost": 5, + "assistant2Cost": 5 + }, + "unknownCounts": { + "sale": 0, + "material": 1, + "laborAndFees": 1, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 0, + "recordCount": 5 + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-19", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 600, + "total": 600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "materialOutlay": 9000, + "goodsOutlay": 12000, + "feeOutlay": 600, + "ownerOutlay": 600, + "assistantOutlay": 12000, + "assistant2Outlay": 0, + "totalOutlay": 12600, + "eventCount": 6, + "lockCount": 1 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-19", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 460000, + "goods": 460000, + "paidFees": 0, + "total": 460000, + "purchaseCount": 1 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + } + }, + "summary": { + "purchaseCount": 1, + "poolCount": 1, + "mg": 5000, + "materialOutlay": 460000, + "purchaseValue": 460000, + "ownerOutlay": 0, + "assistantOutlay": 460000, + "assistant2Outlay": 0, + "totalOutlay": 460000, + "eventCount": 1 + } + }, + "summaryWithoutCancelled": { + "orderCount": 4, + "completedCount": 4, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 1, + "sale": 687000, + "material": 549308, + "laborAndFees": 6600, + "unallocated": 42000, + "totalCost": 597908, + "profit": 89092, + "ownerCost": 255600, + "assistantCost": 342308, + "assistant2Cost": 0, + "mg": 11600, + "pieces": 0, + "knownCounts": { + "sale": 4, + "material": 3, + "laborAndFees": 3, + "unallocated": 4, + "totalCost": 4, + "profit": 4, + "ownerCost": 4, + "assistantCost": 4, + "assistant2Cost": 4 + }, + "unknownCounts": { + "sale": 0, + "material": 1, + "laborAndFees": 1, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 0, + "recordCount": 4 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 417000, + "refund": 0, + "net": 417000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 400800, + "refund": 0, + "net": 400800 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 400800, + "refund": 0, + "net": 400800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 4 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 417000, + "refund": 0, + "net": 417000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 400800, + "refund": 0, + "net": 400800 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 400800, + "refund": 0, + "net": 400800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 6, + "orderCount": 5 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 417000, + "refund": 0, + "net": 417000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 400800, + "refund": 0, + "net": 400800 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 400800, + "refund": 0, + "net": 400800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 6, + "orderCount": 5 + } + } + }, + { + "seq": 435, + "label": "order-book-range-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 8, + "completedCount": 7, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1626600, + "material": 1107243, + "laborAndFees": 15681, + "unallocated": 192000, + "totalCost": 1314924, + "profit": 311676, + "ownerCost": 693331, + "assistantCost": 621593, + "assistant2Cost": 0, + "mg": 19850, + "pieces": 1, + "knownCounts": { + "sale": 8, + "material": 6, + "laborAndFees": 6, + "unallocated": 8, + "totalCost": 8, + "profit": 8, + "ownerCost": 8, + "assistantCost": 8, + "assistant2Cost": 8 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 9 + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 406200, + "refund": 0, + "net": 406200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 3, + "orderCount": 2 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 406200, + "refund": 0, + "net": 406200, + "materialOutlay": 519000, + "goodsOutlay": 522000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 0, + "totalOutlay": 522600, + "eventCount": 10, + "lockCount": 2 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + } + }, + "summary": { + "purchaseCount": 2, + "poolCount": 2, + "mg": 16000, + "materialOutlay": 1450000, + "purchaseValue": 1450000, + "ownerOutlay": 0, + "assistantOutlay": 1450000, + "assistant2Outlay": 0, + "totalOutlay": 1450000, + "eventCount": 2 + } + }, + "summaryWithoutCancelled": { + "orderCount": 7, + "completedCount": 7, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1626600, + "material": 1107243, + "laborAndFees": 15681, + "unallocated": 192000, + "totalCost": 1314924, + "profit": 311676, + "ownerCost": 693331, + "assistantCost": 621593, + "assistant2Cost": 0, + "mg": 17850, + "pieces": 1, + "knownCounts": { + "sale": 7, + "material": 5, + "laborAndFees": 5, + "unallocated": 7, + "totalCost": 7, + "profit": 7, + "ownerCost": 7, + "assistantCost": 7, + "assistant2Cost": 7 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 8 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1746600, + "refund": 0, + "net": 1746600, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 8 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1746600, + "refund": 0, + "net": 1746600, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 11, + "orderCount": 9 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1746600, + "refund": 0, + "net": 1746600, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 11, + "orderCount": 9 + } + } + }, + { + "seq": 436, + "label": "inventory-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/inventory", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "yesterdayDate": "2026-11-18", + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "current": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "yesterday": { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:50.000Z", + "stale": true, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + }, + "todaySnapshot": null, + "revision": "26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace", + "legacyInventory": [], + "canReview": false, + "automaticSnapshot": { + "enabled": false, + "time": "23:50", + "timeZone": "Asia/Shanghai", + "date": "2026-11-19", + "status": "stopped", + "lastSuccess": null, + "lastError": null, + "nextAttemptAt": null + } + } + }, + { + "seq": 437, + "label": "movements-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/inventory/movements", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "pocket": "", + "pockets": [ + { + "pocket": "现货", + "active": true + }, + { + "pocket": "金料", + "active": true + }, + { + "pocket": "找金", + "active": true + }, + { + "pocket": "回收旧料", + "active": true + }, + { + "pocket": "君宝汇", + "active": true + }, + { + "pocket": "pocket_", + "active": true + } + ], + "kind": "all", + "hideDeleted": false, + "from": "", + "to": "", + "total": 33, + "shown": 33, + "limit": 100, + "pageSize": 100, + "page": 1, + "totalPages": 1, + "hasPrev": false, + "hasNext": false, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -500, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000, + "kind": "order_cancel_reverse", + "note": "MM20261119-;当天直接作废:当天录错", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -6000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 4851, + "kind": "recovery", + "note": "HS202611190002", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 7992, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery", + "note": "HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -3100, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 100, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 补重黄金入库", + "purchase_cost": 9000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 3000, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 原锁定黄金入库", + "purchase_cost": 255000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "after-sale:", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "return", + "note": "MM20261118- · 售后回收旧料", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "groupId": "after-sale:", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "order_cancel_reverse", + "note": "MM20261118-;审批作废:重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1200, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:21.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1000, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": -10000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "展柜起始", + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始金料", + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始库存", + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 438, + "label": "snapshots-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/inventory/snapshots", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "snapshots": [ + { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:50.000Z", + "stale": true, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + } + ] + } + }, + { + "seq": 439, + "label": "material-pools-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/material-pools", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "rows": [ + { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 181898, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 181898, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "using", + "revision": "c2b7cf97dc5037020f6b38451266013f370e11bed92c022656cc69db8dab9cf4", + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "member": "assistant", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "carry", + "cashAmount": 0 + }, + { + "id": "return::material:0", + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "payer": "assistant2", + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "return", + "cashAmount": 0 + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "member": "assistant", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": 181898, + "owner_amount": 0, + "assistant_amount": 181898, + "revision": 1, + "created": "2026-11-19T02:02:40.000Z", + "updated": "2026-11-19T02:02:40.000Z", + "fifo_sequence": 2, + "number": "MM20261119-", + "customer": "滚动料池客户", + "order_status": "delivered", + "assistant2_amount": 0, + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ] + }, + "returns": [ + { + "id": "", + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "sameDay": false, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "anonymous": true + } + ], + "legacyReadOnly": true + }, + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "member": "assistant", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true + }, + { + "id": "", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "shared": true, + "canEdit": false, + "canRequestChange": false + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "legacyReadOnly": true + } + ], + "current": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 181898, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 181898, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "using", + "revision": "c2b7cf97dc5037020f6b38451266013f370e11bed92c022656cc69db8dab9cf4", + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "member": "assistant", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "carry", + "cashAmount": 0 + }, + { + "id": "return::material:0", + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "payer": "assistant2", + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "return", + "cashAmount": 0 + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "member": "assistant", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + }, + { + "id": "", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": 181898, + "owner_amount": 0, + "assistant_amount": 181898, + "revision": 1, + "created": "2026-11-19T02:02:40.000Z", + "updated": "2026-11-19T02:02:40.000Z", + "fifo_sequence": 2, + "number": "MM20261119-", + "customer": "滚动料池客户", + "order_status": "delivered", + "assistant2_amount": 0, + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ] + }, + "returns": [ + { + "id": "", + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "sameDay": false, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "anonymous": true + } + ], + "legacyReadOnly": true + }, + "rolling": { + "enabled": true, + "cutover": "2026-11-19", + "canEnable": false, + "reason": "" + }, + "summary": { + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "remainingCost": 3274167, + "shortageMg": 0, + "pendingCount": 0, + "purchaseCount": 2 + }, + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + } + } + }, + { + "seq": 440, + "label": "price-locks-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/price-locks?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "rows": [ + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "delivered", + "revision": 3, + "final_order_id": "", + "delivery": { + "date": "2026-11-19", + "total": 286200, + "difference": 16200, + "lines": [ + { + "lineId": "", + "date": "2026-11-19", + "quantity": 3100, + "original_used_mg": 3000, + "extra_mg": 100, + "leftover_mg": 0, + "leftover_cost": 0, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + } + } + ], + "quantity": 3100, + "original_used_mg": 3000, + "extra_mg": 100, + "leftover_mg": 0, + "leftover_cost": 0, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + } + }, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:28.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": { + "lineId": "", + "date": "2026-11-19", + "quantity": 3100, + "original_used_mg": 3000, + "extra_mg": 100, + "leftover_mg": 0, + "leftover_cost": 0, + "inventory": { + "pocket": "现货", + "original": "receive", + "extra": "receive" + } + } + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "account": null, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 286200, + "refunded": 0, + "netReceived": 286200, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户二", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "updated": "2026-11-18T02:02:02.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "助理支付宝", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": null, + "voided": 1, + "void_reason": "当天更正收款", + "voided_at": "2026-11-18T02:02:02.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 120000, + "refunded": 0, + "netReceived": 120000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + ], + "counts": { + "pending": 1, + "delivered": 1, + "cancelled": 0 + } + } + }, + { + "seq": 441, + "label": "recoveries-list-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/recoveries", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 5000, + "meltedMg": 4900, + "purity": 99, + "foldedMg": 4851 + } + ], + "oldMg": 4851, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 6000, + "matchedMg": 4851, + "differenceMg": 1149, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 4851, + "goldAmount": 114900, + "laborAmount": 12000, + "depreciationAmount": 4851, + "charges": [], + "chargesAmount": 0, + "discount": 1000, + "rounding_mode": "yuan", + "rounding_adjustment": 49, + "receivable": 130800, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 103410, + "laborCost": 3000, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390, + "newProduct": { + "name": "足金对照新货", + "quantity": 6000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190002", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:33.000Z", + "actor": "助理", + "revision": 1, + "paper_number": "20261119012", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "summary": { + "count": 1, + "cancelledCount": 0, + "directCount": 0, + "exchangeCount": 1, + "oldMg": 4851, + "newMg": 6000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 130800, + "offsetAmount": 0, + "cashReceipt": 130800, + "cashPayment": 0 + } + } + }, + { + "seq": 442, + "label": "order-changes-all-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/order-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "expense", + "reason": "补记快递", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实", + "action_label": "费用补记", + "action_input": { + "date": "2026-11-19", + "amount": "10", + "payer": "assistant", + "note": "补寄快递" + }, + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 58000, + "profit": 58000, + "knownProfit": 58000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:20.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 272000, + "costParts": { + "material": 272000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 272000, + "quantity": 3000, + "averageRate": 90667, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ], + "revision": "e3072e81dd7b585b863bbbe6f312844a32ece32c2856aea4df479b9ceab74c55" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 272000, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 272000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57000, + "profit": 57000, + "knownProfit": 57000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:36.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 0, + "profit": 58000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [], + "after": [], + "changes": [] + } + }, + "changes": [ + { + "field": "expenses", + "label": "实际费用流水", + "before": [], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "note": "补寄快递", + "actor": "助理", + "created": "2026-11-19T02:00:36.000Z" + } + ] + }, + { + "field": "directCost", + "label": "直接费用", + "before": 0, + "after": 1000 + }, + { + "field": "profit", + "label": "利润", + "before": 58000, + "after": 57000 + } + ], + "relatedOrders": [] + }, + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "跨天修改客户名", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:31.000Z", + "note": "凭据已核对", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:17.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "expenses": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z" + } + ], + "settlements": [], + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 321100, + "netReceived": 321100, + "goodsCost": 290200, + "directCost": 1200, + "profit": 29700, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -3250 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "customer", + "label": "客户称呼", + "before": "对照客户甲", + "after": "对照客户甲(改)" + }, + { + "field": "fee_items", + "label": "实际费用", + "before": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": false + } + ], + "after": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ] + } + ], + "relatedOrders": [] + } + ], + "counts": { + "pending": 0, + "approved": 2, + "rejected": 0 + }, + "canApprove": false + } + }, + { + "seq": 443, + "label": "cancellations-all-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/order-cancellations?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 4, + "reason": "当天录错", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_id": null, + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z", + "order_number": "MM20261119-", + "order_date": "2026-11-19", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 210000, + "netReceived": 210000, + "goodsCost": 180000, + "directCost": 0, + "profit": 30000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000 + } + ] + } + }, + { + "id": "", + "order_id": "", + "order_revision": 5, + "reason": "客户想退", + "status": "rejected", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:58.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:59.000Z", + "note": "已交付不取消", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 330000, + "netReceived": 330000, + "goodsCost": 272000, + "directCost": 1000, + "profit": 57000, + "settlementDue": 0, + "inventory": [] + } + } + ], + "counts": { + "pending": 0, + "approved": 1, + "rejected": 1 + }, + "canApprove": false + } + }, + { + "seq": 444, + "label": "ownership-all-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/order-ownership-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 5, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "申请转给小昊", + "status": "rejected", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:53.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:56.000Z", + "note": "不转", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261118-", + "order_customer": "对照客户丙", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false + } + ], + "counts": { + "pending": 0, + "approved": 0, + "rejected": 1 + }, + "canApprove": false + } + }, + { + "seq": 445, + "label": "lock-changes-all-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/price-lock-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "edit", + "reason": "改客户名", + "payload": { + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "discount": "0.00", + "member": "assistant", + "payment": { + "amount": "2700.00", + "account": "助理微信", + "verified": true + }, + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": "3.000", + "goldPrice": "900.00", + "laborRate": "20.00", + "laborMode": "gram", + "pieces": 1, + "charges": [], + "lineId": "", + "material": { + "source": "manual", + "rate": "850.00", + "payer": "owner", + "verified": true + } + } + ], + "action": "edit", + "revision": 1, + "reason": "改客户名", + "verified": true + }, + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:18.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:21.000Z", + "note": "核实", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-18T02:01:53.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "updated": "2026-11-19T02:01:18.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "owner", + "costPayers": { + "material": "owner", + "labor": "owner" + }, + "cost": 255000, + "costParts": { + "material": 255000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 85000, + "buy_payer": "owner", + "material_amount": 255000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "account": null, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 270000, + "refunded": 0, + "netReceived": 270000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "changes": [ + { + "field": "customer", + "before": "对照锁价客户", + "after": "对照锁价客户(改)" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + } + ] + } + }, + { + "seq": 446, + "label": "recovery-changes-all-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/recovery-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [], + "counts": { + "pending": 0, + "approved": 0, + "rejected": 0 + } + } + }, + { + "seq": 447, + "label": "purchase-changes-all-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/material-purchase-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "purchase_id": "", + "purchase_revision": 2, + "action": "delete", + "reason": "申请删除历史购料", + "status": "rejected", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:29.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:02:30.000Z", + "note": "购料真实存在", + "stale": false, + "canApprove": false, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "after": null, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 273000, + "profit": 56000, + "settlementDue": 0, + "ownerCost": 273000, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1 + } + } + }, + { + "id": "", + "purchase_id": "", + "purchase_revision": 1, + "action": "edit", + "reason": "核对原始购料凭据后申请", + "status": "approved", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:02:23.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:02:27.000Z", + "note": "已核对付款凭据", + "stale": false, + "canApprove": false, + "preview": { + "before": { + "id": "", + "date": "2026-11-18", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "娜娜购料", + "revision": 1 + }, + "after": { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "revision": 2 + }, + "relatedOrders": [ + { + "id": "", + "number": "20261118004", + "date": "2026-11-18", + "member": "assistant", + "before": { + "goodsCost": 272000, + "profit": 57000, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + }, + "after": { + "goodsCost": 271935, + "profit": 57065, + "settlementDue": 0, + "ownerCost": 0, + "total": 330000, + "netReceived": 330000 + } + } + ], + "affectedDates": [ + "2026-11-18" + ], + "summary": { + "affectedOrderCount": 1 + } + } + } + ], + "counts": { + "pending": 0, + "approved": 1, + "rejected": 1 + } + } + }, + { + "seq": 448, + "label": "after-sale-changes-all-assistant", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/after-sales/changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "afterSaleId": "", + "revision": 2, + "recordRevision": 2, + "status": "rejected", + "reason": "再次调整", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 1200, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:14.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:01:15.000Z", + "note": "金额无误", + "stale": false, + "staleReason": "", + "canApprove": false + }, + { + "id": "", + "afterSaleId": "", + "revision": 2, + "recordRevision": 1, + "status": "approved", + "reason": "金额录错", + "before": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 850, + "payer": "assistant" + }, + "after": { + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant" + }, + "member": "assistant", + "requesterName": "助理", + "requesterMember": "assistant", + "created": "2026-11-19T02:01:09.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-19T02:01:12.000Z", + "note": "核实", + "stale": false, + "staleReason": "", + "canApprove": false + } + ], + "counts": { + "pending": 0, + "approved": 1, + "rejected": 1 + } + } + }, + { + "seq": 449, + "label": "report-d2-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/report?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "sales": 552792, + "goods": 458720, + "knownGoods": 458720, + "expense": 800, + "profit": 93272, + "knownProfit": 93272, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "from": "2026-11-19", + "to": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "settlements": [], + "events": [] + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 2, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2信用卡", + "receipt": 0, + "refund": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "peopleCount": null + } + }, + { + "seq": 450, + "label": "report-d2-orderdate-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/report?date=2026-11-19&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "sales": 552792, + "goods": 458720, + "knownGoods": 458720, + "expense": 800, + "profit": 93272, + "knownProfit": 93272, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-19", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 1, + "poolCount": 1, + "mg": 4000, + "materialOutlay": 370000, + "purchaseValue": 370000, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 370000, + "totalOutlay": 370000, + "eventCount": 1 + } + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 2, + "returns": 1, + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "order_date": "2026-11-18", + "order_after_sale": true + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "basis": "orderDate", + "summary": { + "orderCount": 2, + "completedCount": 2, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 1, + "sale": 552792, + "material": 272720, + "laborAndFees": 6800, + "unallocated": 180000, + "totalCost": 459520, + "profit": 93272, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 278720, + "mg": 14000, + "pieces": 0, + "knownCounts": { + "sale": 2, + "material": 1, + "laborAndFees": 1, + "unallocated": 2, + "totalCost": 2, + "profit": 2, + "ownerCost": 2, + "assistantCost": 2, + "assistant2Cost": 2 + }, + "unknownCounts": { + "sale": 0, + "material": 1, + "laborAndFees": 1, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 3 + }, + "orderRows": [ + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + } + ], + "payerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 180000, + "paidFees": 800, + "total": 180800, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 736720, + "paidFees": 0, + "total": 736720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "purchaseAmount": 370000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 4000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + } + }, + "orderPayerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 180000, + "paidFees": 800, + "total": 180800, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 278720, + "paidFees": 0, + "total": 278720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null, + "order_id": "", + "orderAfterSale": true, + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + } + ] + } + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-19", + "date": "2026-11-19", + "customerCash": [], + "orderPayments": [], + "materialOutlays": [], + "directOutlays": [], + "deliveryGoodsOutlays": [], + "receipts": { + "receipt": 0, + "refund": 0, + "net": 0, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 0, + "orderCount": 0 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 0, + "refund": 0, + "net": 0, + "materialOutlay": 0, + "goodsOutlay": 0, + "feeOutlay": 0, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 0, + "totalOutlay": 0, + "eventCount": 0, + "lockCount": 0 + } + }, + "outlayGoods": 916720, + "outlayExpense": 800, + "outlayTotal": 917520, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 642792, + "refund": 90000, + "net": 552792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 642792, + "refund": 0, + "net": 642792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 3, + "orderCount": 3 + }, + "totalCost": 459520, + "recipientReceipts": { + "assistant": { + "recipient": "assistant", + "name": "娜娜", + "receipt": 210000, + "refund": 0, + "net": 210000, + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + } + ] + }, + "owner": { + "recipient": "owner", + "name": "麦麦", + "receipt": 0, + "refund": 0, + "net": 0, + "items": [] + }, + "assistant2": { + "recipient": "assistant2", + "name": "小昊", + "receipt": 432792, + "refund": 90000, + "net": 342792, + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipReceipts": { + "assistant2": { + "member": "assistant2", + "name": "小昊", + "receipt": 642792, + "refund": 90000, + "net": 552792, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 210000, + "refund": 0, + "net": 210000, + "entryCount": 1 + }, + { + "account": "助理2微信", + "recipient": "assistant2", + "channel": "wechat", + "receipt": 432792, + "refund": 0, + "net": 432792, + "entryCount": 1 + }, + { + "account": "助理2支付宝", + "recipient": "assistant2", + "channel": "alipay", + "receipt": 0, + "refund": 90000, + "net": -90000, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipBusiness": { + "assistant2": { + "member": "assistant2", + "name": "小昊", + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "netReceipts": 552792, + "totalCost": 459520, + "knownTotalCost": 459520, + "selfCost": 278720, + "knownSelfCost": 278720, + "otherCost": 180800, + "knownOtherCost": 180800, + "profit": 93272, + "knownProfit": 93272, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 180800, + "knownTotalCost": 180800, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 278720, + "knownTotalCost": 278720, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 459520, + "amount": 459520 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "recordCount": 3, + "knownMaterialCost": 0, + "knownOtherCost": 0, + "knownProfit": 93272, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 0, + "profit": 93272, + "knownAmount": 93272, + "amount": 93272 + } + ] + }, + "difference": { + "amount": 0, + "reconciled": true, + "reasons": [] + }, + "equation": { + "basis": "netReceipts", + "revenue": 552792, + "totalCost": 459520, + "profit": 93272, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-19", + "date": "2026-11-19", + "dueOut": 0, + "dueIn": 41200, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + }, + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 41200, + "openingDue": -12000, + "periodNew": -29200, + "periodTransferred": 0, + "closingDue": -41200, + "offset": 250800, + "period": { + "obligationNet": -29200, + "transferred": 0, + "receivedForNet": -210000, + "advancedNet": 180800 + } + } + ] + }, + "hasActivity": true + } + }, + "dailyProfits": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "knownTotalCost": 459520, + "knownProfit": 93272, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant2", + "name": "小昊", + "totalCost": 459520, + "profit": 93272 + } + ], + "summary": { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "knownTotalCost": 459520, + "knownProfit": 93272, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 459520, + "profit": 93272 + } + }, + "dailyFunds": { + "date": "2026-11-19", + "from": "2026-11-19", + "team": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 736720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -393928, + "cumulativeChange": -517765, + "cashBalance": -393928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ], + "transfers": [], + "revision": "dc9272ede872920e05008ef8c8e2a290e766de64cae986a7eb1b705d4e306dda", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "dc9272ede872920e05008ef8c8e2a290e766de64cae986a7eb1b705d4e306dda", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + }, + "reportRevision": "bf5d23834d753e6e7c3de37912b05beadd8d8f5f80fbeeb0b130ff90742fc025" + } + }, + { + "seq": 451, + "label": "report-range-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/report?from=2026-11-18&date=2026-11-19&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-18", + "sales": 1351955, + "goods": 1161720, + "knownGoods": 1161720, + "expense": 800, + "profit": 189435, + "knownProfit": 189435, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 1, + "poolCount": 1, + "mg": 4000, + "materialOutlay": 370000, + "purchaseValue": 370000, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 370000, + "totalOutlay": 370000, + "eventCount": 1 + } + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 5, + "returns": 1, + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 82000, + "refund": 0, + "net": 82000 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-", + "paper_number": "20261118002", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-", + "paper_number": "20261118008", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "reference": "更正冲回:取消审批作废;重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "order_date": "2026-11-18", + "order_after_sale": true + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 217163, + "goods": 183000, + "expense": 0, + "profit": 34163, + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-", + "paper_number": "20261118002", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 150000, + "goods": 130000, + "expense": 0, + "profit": 20000, + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000, + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 82000, + "goods": 70000, + "expense": 0, + "profit": 12000, + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-", + "paper_number": "20261118008", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "订单录错作废冲回", + "sales": -150000, + "goods": -130000, + "expense": 0, + "profit": -20000, + "created": "2026-11-19T02:00:45.000Z", + "number": "MM20261118-", + "paper_number": "20261118006", + "order_date": "2026-11-18" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "basis": "orderDate", + "summary": { + "orderCount": 6, + "completedCount": 5, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 3, + "sale": 1351955, + "material": 712720, + "laborAndFees": 16800, + "unallocated": 433000, + "totalCost": 1162520, + "profit": 189435, + "ownerCost": 0, + "assistantCost": 250800, + "assistant2Cost": 911720, + "mg": 23300, + "pieces": 3, + "knownCounts": { + "sale": 6, + "material": 3, + "laborAndFees": 3, + "unallocated": 6, + "totalCost": 6, + "profit": 6, + "ownerCost": 6, + "assistantCost": 6, + "assistant2Cost": 6 + }, + "unknownCounts": { + "sale": 0, + "material": 3, + "laborAndFees": 3, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 7 + }, + "orderRows": [ + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + } + ], + "payerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 250000, + "paidFees": 800, + "total": 250800, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "customer": "对照驳回客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 1627720, + "paidFees": 0, + "total": 1627720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "goods", + "amount": 258000, + "payer": "assistant2", + "source": "锁价采购 · 实付 2026-11-18", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "锁价料费", + "materialSource": "original", + "paidDate": "2026-11-18", + "calculation": { + "rate": 86000, + "quantity": 3000 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "purchaseAmount": 370000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 4000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + } + }, + "orderPayerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 250000, + "paidFees": 800, + "total": 250800, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "customer": "对照驳回客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 911720, + "paidFees": 0, + "total": 911720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "customer": "对照客户乙", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null, + "order_id": "", + "orderAfterSale": true, + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + } + ] + } + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [], + "deliveryGoodsOutlays": [], + "receipts": { + "receipt": 50000, + "refund": 0, + "net": 50000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 50000, + "refund": 0, + "net": 50000, + "materialOutlay": 258000, + "goodsOutlay": 258000, + "feeOutlay": 0, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 258000, + "totalOutlay": 258000, + "eventCount": 2, + "lockCount": 1 + } + }, + "outlayGoods": 1877720, + "outlayExpense": 800, + "outlayTotal": 1878520, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1491955, + "refund": 90000, + "net": 1401955, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1192792, + "refund": 0, + "net": 1192792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 299163, + "refund": 90000, + "net": 209163 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 82000, + "refund": 0, + "net": 82000 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 7 + }, + "totalCost": 1162520, + "recipientReceipts": { + "assistant": { + "recipient": "assistant", + "name": "娜娜", + "receipt": 292000, + "refund": 0, + "net": 292000, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118008", + "customer": "对照驳回客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:26.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + } + ] + }, + "owner": { + "recipient": "owner", + "name": "麦麦", + "receipt": 0, + "refund": 0, + "net": 0, + "items": [] + }, + "assistant2": { + "recipient": "assistant2", + "name": "小昊", + "receipt": 1199955, + "refund": 90000, + "net": 1109955, + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118002", + "customer": "对照客户乙", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:18.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:24.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "更正冲回:取消审批作废;重复录入", + "note": "", + "created": "2026-11-19T02:00:45.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户三", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:55.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipReceipts": { + "assistant2": { + "member": "assistant2", + "name": "小昊", + "receipt": 1491955, + "refund": 90000, + "net": 1401955, + "accounts": [ + { + "account": "助理支付宝", + "recipient": "assistant", + "channel": "alipay", + "receipt": 82000, + "refund": 0, + "net": 82000, + "entryCount": 1 + }, + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 210000, + "refund": 0, + "net": 210000, + "entryCount": 1 + }, + { + "account": "助理2支付宝", + "recipient": "assistant2", + "channel": "alipay", + "receipt": 217163, + "refund": 90000, + "net": 127163, + "entryCount": 2 + }, + { + "account": "助理2现金", + "recipient": "assistant2", + "channel": "cash", + "receipt": 0, + "refund": 0, + "net": 0, + "entryCount": 2 + }, + { + "account": "助理2微信", + "recipient": "assistant2", + "channel": "wechat", + "receipt": 982792, + "refund": 0, + "net": 982792, + "entryCount": 3 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118008", + "customer": "对照驳回客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:26.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118002", + "customer": "对照客户乙", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:18.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:24.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118006", + "customer": "对照取消客户", + "reference": "更正冲回:取消审批作废;重复录入", + "note": "", + "created": "2026-11-19T02:00:45.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "order_id": null, + "price_lock_id": "", + "order_date": null, + "number": "SJ20261118-", + "paper_number": null, + "customer": "对照锁价客户三", + "reference": "", + "note": "锁价备注", + "created": "2026-11-18T02:01:55.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipBusiness": { + "assistant2": { + "member": "assistant2", + "name": "小昊", + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "recordCount": 7, + "orderCount": 6, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1351955, + "netReceipts": 1401955, + "totalCost": 1162520, + "knownTotalCost": 1162520, + "selfCost": 911720, + "knownSelfCost": 911720, + "otherCost": 250800, + "knownOtherCost": 250800, + "profit": 189435, + "knownProfit": 189435, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 250800, + "knownTotalCost": 250800, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 911720, + "knownTotalCost": 911720, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 1162520, + "amount": 1162520 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-18", + "recordCount": 4, + "knownMaterialCost": 0, + "knownOtherCost": 0, + "knownProfit": 96163, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 0, + "profit": 96163, + "knownAmount": 96163, + "amount": 96163 + }, + { + "date": "2026-11-19", + "recordCount": 3, + "knownMaterialCost": 0, + "knownOtherCost": 0, + "knownProfit": 93272, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 0, + "profit": 93272, + "knownAmount": 93272, + "amount": 93272 + } + ] + }, + "difference": { + "amount": 50000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + }, + { + "code": "order_after_sale", + "text": "订单售后按实际发生日确认退款和利润调整,原开单日结果保留;扣留客户款已计入最终结果。" + }, + { + "code": "refund_or_cancellation", + "text": "退货或作废已按原账冲回销售;尚未退清的客户款或不同日期的退款不作为销售利润。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 1351955, + "totalCost": 1162520, + "profit": 189435, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-18", + "date": "2026-11-19", + "dueOut": 0, + "dueIn": 41200, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + }, + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 41200, + "openingDue": 0, + "periodNew": -41200, + "periodTransferred": 0, + "closingDue": -41200, + "offset": 250800, + "period": { + "obligationNet": -41200, + "transferred": 0, + "receivedForNet": -292000, + "advancedNet": 250800 + } + } + ] + }, + "hasActivity": true + } + }, + "dailyProfits": { + "basis": "orderDate", + "from": "2026-11-18", + "date": "2026-11-19", + "rows": [ + { + "recordCount": 4, + "orderCount": 4, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 799163, + "knownTotalCost": 703000, + "knownProfit": 96163, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-18", + "member": "assistant2", + "name": "小昊", + "totalCost": 703000, + "profit": 96163 + }, + { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "knownTotalCost": 459520, + "knownProfit": 93272, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant2", + "name": "小昊", + "totalCost": 459520, + "profit": 93272 + } + ], + "summary": { + "recordCount": 7, + "orderCount": 6, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1351955, + "knownTotalCost": 1162520, + "knownProfit": 189435, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 1162520, + "profit": 189435 + } + }, + "dailyFunds": { + "date": "2026-11-19", + "from": "2026-11-18", + "team": { + "from": "2026-11-18", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "assistant2", + "receipts": 1199955, + "refunds": 90000, + "outlays": 1627720, + "transferIn": 0, + "transferOut": 0, + "openingChange": 0, + "periodChange": -517765, + "cumulativeChange": -517765, + "cashBalance": -517765, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 82000, + "revision": 2 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 70000, + "revision": 2 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-18", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 82000, + "revision": 2 + }, + { + "id": "", + "date": "2026-11-18", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 70000, + "revision": 2 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3 + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3 + } + ], + "transfers": [], + "revision": "dc9272ede872920e05008ef8c8e2a290e766de64cae986a7eb1b705d4e306dda", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": true, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [ + { + "id": "", + "date": "2026-11-18", + "items": [ + { + "id": "", + "name": "对照快递", + "amount": 900, + "member": "owner", + "sourceType": "independent", + "sourceKey": "", + "usedAmount": 0, + "remainingAmount": 900 + } + ], + "total": 900, + "note": "", + "status": "rejected", + "revision": 2, + "requester_id": "", + "requester_name": "助理2", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-18T02:02:26.000Z", + "review_note": "凭据不全", + "created": "2026-11-18T02:02:25.000Z", + "updated": "2026-11-18T02:02:26.000Z", + "payer": "assistant2", + "member": "assistant2", + "fundingMode": "independent", + "canEdit": true, + "canApprove": false + } + ], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "dc9272ede872920e05008ef8c8e2a290e766de64cae986a7eb1b705d4e306dda", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + }, + "reportRevision": "5a3e9dc1b3231a5b75145e19ecdf916b09c3eebe2e7158151dd9f9b66b82f613" + } + }, + { + "seq": 452, + "label": "order-book-d2-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/order-book?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 2, + "completedCount": 2, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 1, + "sale": 552792, + "material": 272720, + "laborAndFees": 6800, + "unallocated": 180000, + "totalCost": 459520, + "profit": 93272, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 278720, + "mg": 14000, + "pieces": 0, + "knownCounts": { + "sale": 2, + "material": 1, + "laborAndFees": 1, + "unallocated": 2, + "totalCost": 2, + "profit": 2, + "ownerCost": 2, + "assistantCost": 2, + "assistant2Cost": 2 + }, + "unknownCounts": { + "sale": 0, + "material": 1, + "laborAndFees": 1, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 3 + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-19", + "date": "2026-11-19", + "customerCash": [], + "orderPayments": [], + "materialOutlays": [], + "directOutlays": [], + "deliveryGoodsOutlays": [], + "receipts": { + "receipt": 0, + "refund": 0, + "net": 0, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 0, + "orderCount": 0 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 0, + "refund": 0, + "net": 0, + "materialOutlay": 0, + "goodsOutlay": 0, + "feeOutlay": 0, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 0, + "totalOutlay": 0, + "eventCount": 0, + "lockCount": 0 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-19", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 1, + "poolCount": 1, + "mg": 4000, + "materialOutlay": 370000, + "purchaseValue": 370000, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 370000, + "totalOutlay": 370000, + "eventCount": 1 + } + }, + "summaryWithoutCancelled": { + "orderCount": 2, + "completedCount": 2, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 1, + "sale": 552792, + "material": 272720, + "laborAndFees": 6800, + "unallocated": 180000, + "totalCost": 459520, + "profit": 93272, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 278720, + "mg": 14000, + "pieces": 0, + "knownCounts": { + "sale": 2, + "material": 1, + "laborAndFees": 1, + "unallocated": 2, + "totalCost": 2, + "profit": 2, + "ownerCost": 2, + "assistantCost": 2, + "assistant2Cost": 2 + }, + "unknownCounts": { + "sale": 0, + "material": 1, + "laborAndFees": 1, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 3 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 642792, + "refund": 90000, + "net": 552792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 642792, + "refund": 0, + "net": 642792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 3, + "orderCount": 3 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 642792, + "refund": 90000, + "net": 552792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 642792, + "refund": 0, + "net": 642792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 3, + "orderCount": 3 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 642792, + "refund": 90000, + "net": 552792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 642792, + "refund": 0, + "net": 642792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 3, + "orderCount": 3 + } + } + }, + { + "seq": 453, + "label": "order-book-range-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "returned", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 6, + "completedCount": 5, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 3, + "sale": 1351955, + "material": 712720, + "laborAndFees": 16800, + "unallocated": 433000, + "totalCost": 1162520, + "profit": 189435, + "ownerCost": 0, + "assistantCost": 250800, + "assistant2Cost": 911720, + "mg": 23300, + "pieces": 3, + "knownCounts": { + "sale": 6, + "material": 3, + "laborAndFees": 3, + "unallocated": 6, + "totalCost": 6, + "profit": 6, + "ownerCost": 6, + "assistantCost": 6, + "assistant2Cost": 6 + }, + "unknownCounts": { + "sale": 0, + "material": 3, + "laborAndFees": 3, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 7 + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [], + "deliveryGoodsOutlays": [], + "receipts": { + "receipt": 50000, + "refund": 0, + "net": 50000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 50000, + "refund": 0, + "net": 50000, + "materialOutlay": 258000, + "goodsOutlay": 258000, + "feeOutlay": 0, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 258000, + "totalOutlay": 258000, + "eventCount": 2, + "lockCount": 1 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 1, + "poolCount": 1, + "mg": 4000, + "materialOutlay": 370000, + "purchaseValue": 370000, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 370000, + "totalOutlay": 370000, + "eventCount": 1 + } + }, + "summaryWithoutCancelled": { + "orderCount": 5, + "completedCount": 5, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 3, + "sale": 1351955, + "material": 712720, + "laborAndFees": 16800, + "unallocated": 433000, + "totalCost": 1162520, + "profit": 189435, + "ownerCost": 0, + "assistantCost": 250800, + "assistant2Cost": 911720, + "mg": 21800, + "pieces": 3, + "knownCounts": { + "sale": 5, + "material": 2, + "laborAndFees": 2, + "unallocated": 5, + "totalCost": 5, + "profit": 5, + "ownerCost": 5, + "assistantCost": 5, + "assistant2Cost": 5 + }, + "unknownCounts": { + "sale": 0, + "material": 3, + "laborAndFees": 3, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 6 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1491955, + "refund": 90000, + "net": 1401955, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1192792, + "refund": 0, + "net": 1192792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 299163, + "refund": 90000, + "net": 209163 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 82000, + "refund": 0, + "net": 82000 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 7, + "orderCount": 6 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1491955, + "refund": 90000, + "net": 1401955, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1192792, + "refund": 0, + "net": 1192792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 299163, + "refund": 90000, + "net": 209163 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 82000, + "refund": 0, + "net": 82000 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 7 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1491955, + "refund": 90000, + "net": 1401955, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1192792, + "refund": 0, + "net": 1192792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 299163, + "refund": 90000, + "net": 209163 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 82000, + "refund": 0, + "net": 82000 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 7 + } + } + }, + { + "seq": 454, + "label": "inventory-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/inventory", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "yesterdayDate": "2026-11-18", + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "current": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "yesterday": { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:50.000Z", + "stale": true, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + }, + "todaySnapshot": null, + "revision": "26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace", + "legacyInventory": [], + "canReview": false, + "automaticSnapshot": { + "enabled": false, + "time": "23:50", + "timeZone": "Asia/Shanghai", + "date": "2026-11-19", + "status": "stopped", + "lastSuccess": null, + "lastError": null, + "nextAttemptAt": null + } + } + }, + { + "seq": 455, + "label": "movements-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/inventory/movements", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "pocket": "", + "pockets": [ + { + "pocket": "现货", + "active": true + }, + { + "pocket": "金料", + "active": true + }, + { + "pocket": "找金", + "active": true + }, + { + "pocket": "回收旧料", + "active": true + }, + { + "pocket": "君宝汇", + "active": true + }, + { + "pocket": "pocket_", + "active": true + } + ], + "kind": "all", + "hideDeleted": false, + "from": "", + "to": "", + "total": 33, + "shown": 33, + "limit": 100, + "pageSize": 100, + "page": 1, + "totalPages": 1, + "hasPrev": false, + "hasNext": false, + "movements": [ + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "order_cancel_reverse", + "note": "MM20261119-;当天直接作废:当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -6000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 4851, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery", + "note": "HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 7992, + "kind": "recovery", + "note": "HS202611190001", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -3100, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 100, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 补重黄金入库", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 3000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 原锁定黄金入库", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "after-sale:", + "order_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "return", + "note": "MM20261118- · 售后回收旧料", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "groupId": "after-sale:", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500, + "kind": "order_cancel_reverse", + "note": "MM20261118-;审批作废:重复录入", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": -1200, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "actor": "麦麦", + "created": "2026-11-19T02:00:21.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "increase", + "note": "当天手动入库", + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": -1000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "increase", + "note": "当天手动入库", + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "increase", + "note": "娜娜手动入库", + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": -10000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "decrease", + "note": "娜娜手动出库", + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "increase", + "note": "娜娜手动入库", + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "展柜起始", + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始金料", + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始库存", + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 456, + "label": "snapshots-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/inventory/snapshots", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "snapshots": [ + { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:50.000Z", + "stale": true, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + } + ] + } + }, + { + "seq": 457, + "label": "material-pools-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/material-pools", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "rows": [ + { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 181898, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 181898, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "using", + "revision": "c2b7cf97dc5037020f6b38451266013f370e11bed92c022656cc69db8dab9cf4", + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "member": "assistant2", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "carry", + "cashAmount": 0 + }, + { + "id": "return::material:0", + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "payer": "assistant2", + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "return", + "cashAmount": 0 + }, + { + "id": "", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "member": "assistant2", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + } + ], + "usages": [ + { + "active": 1, + "mg": 2000, + "amount": 181898, + "created": "2026-11-19T02:02:40.000Z", + "fifo_sequence": 2, + "anonymous": true + } + ], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ] + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "legacyReadOnly": true + }, + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "shared": true, + "canEdit": false, + "canRequestChange": false + }, + { + "id": "", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "shared": true, + "canEdit": false, + "canRequestChange": false + } + ], + "usages": [ + { + "active": 1, + "mg": 3000, + "amount": 271935, + "created": "2026-11-18T02:01:20.000Z", + "fifo_sequence": 1, + "anonymous": true + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "legacyReadOnly": true + } + ], + "current": { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": false, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 181898, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 181898, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "using", + "revision": "c2b7cf97dc5037020f6b38451266013f370e11bed92c022656cc69db8dab9cf4", + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "member": "assistant2", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "carry", + "cashAmount": 0 + }, + { + "id": "return::material:0", + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "payer": "assistant2", + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "return", + "cashAmount": 0 + }, + { + "id": "", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "shared": true, + "canEdit": false, + "canRequestChange": false, + "sourceKind": "purchase" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "member": "assistant2", + "canEdit": true, + "canRequestChange": false, + "ownerReviewRequired": false + } + ], + "usages": [ + { + "active": 1, + "mg": 2000, + "amount": 181898, + "created": "2026-11-19T02:02:40.000Z", + "fifo_sequence": 2, + "anonymous": true + } + ], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "pending": false, + "settlementDue": null + }, + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ] + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "legacyReadOnly": true + }, + "rolling": { + "enabled": true, + "cutover": "2026-11-19", + "canEnable": false, + "reason": "" + }, + "summary": { + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "remainingCost": 3274167, + "shortageMg": 0, + "pendingCount": 0, + "purchaseCount": 2 + }, + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + } + } + }, + { + "seq": 458, + "label": "price-locks-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/price-locks?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-19", + "rows": [ + { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-18T02:01:55.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + } + ], + "counts": { + "pending": 1, + "delivered": 0, + "cancelled": 0 + } + } + }, + { + "seq": 459, + "label": "recoveries-list-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/recoveries", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190001", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:32.000Z", + "actor": "助理2", + "revision": 1, + "paper_number": "20261119011", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + } + ], + "summary": { + "count": 1, + "cancelledCount": 0, + "directCount": 0, + "exchangeCount": 1, + "oldMg": 7992, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 432792, + "offsetAmount": 0, + "cashReceipt": 432792, + "cashPayment": 0 + } + } + }, + { + "seq": 460, + "label": "order-changes-all-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/order-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "return", + "reason": "客户退回一件", + "status": "approved", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回", + "action_label": "订单售后", + "action_input": { + "date": "2026-11-19", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "1.000", + "pocket": "金料", + "disposition": "scrap" + } + ], + "refund": { + "amount": "900", + "account": "助理2支付宝", + "payer": "assistant2" + }, + "deductionReason": "客户确认扣费", + "expenses": [] + } + }, + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:25.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:03.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 500000, + "netReceived": 500000, + "goodsCost": 450000, + "directCost": 0, + "profit": 50000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 500000, + "netReceived": 410000, + "goodsCost": 450000, + "directCost": 0, + "profit": 48000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -5000 + }, + { + "date": "2026-11-19", + "pocket": "金料", + "kind": "return", + "mg": 1000 + } + ], + "changes": [ + { + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000 + } + ] + } + }, + "changes": [ + { + "field": "status", + "label": "订单状态", + "before": "delivered", + "after": "returned" + }, + { + "field": "returned_date", + "label": "退货日期", + "before": null, + "after": "2026-11-19" + }, + { + "field": "refunded", + "label": "累计退款", + "before": 0, + "after": 90000 + }, + { + "field": "payments", + "label": "收退款流水", + "before": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "after": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "助理2", + "created": "2026-11-19T02:01:03.000Z" + } + ] + }, + { + "field": "netReceived", + "label": "已收净额", + "before": 500000, + "after": 410000 + }, + { + "field": "profit", + "label": "利润", + "before": 50000, + "after": 48000 + } + ], + "relatedOrders": [], + "afterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + } + }, + { + "id": "", + "order_id": "", + "order_revision": 4, + "action": "edit", + "reason": "想改售价", + "status": "rejected", + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:00:33.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:34.000Z", + "note": "售价无误", + "action_label": "修改订单", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false, + "before": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:26.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "after": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "2026-11-18", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:33.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "summary": { + "before": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "after": { + "total": 82000, + "netReceived": 82000, + "goodsCost": 70000, + "directCost": 0, + "profit": 12000, + "settlementDue": 0, + "materialCostPending": false + }, + "inventory": { + "before": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "after": [ + { + "date": "2026-11-18", + "pocket": "现货", + "kind": "sale", + "mg": -800 + } + ], + "changes": [] + } + }, + "changes": [ + { + "field": "fees_date", + "label": "费用日期", + "before": "", + "after": "2026-11-18" + } + ], + "relatedOrders": [] + } + ], + "counts": { + "pending": 0, + "approved": 1, + "rejected": 1 + }, + "canApprove": false + } + }, + { + "seq": 461, + "label": "cancellations-all-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/order-cancellations?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 4, + "reason": "重复录入", + "status": "approved", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认", + "order_number": "MM20261118-", + "order_date": "2026-11-18", + "order_status": "delivered", + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "stale": false, + "canApprove": false, + "summary": { + "total": 150000, + "netReceived": 150000, + "goodsCost": 130000, + "directCost": 0, + "profit": 20000, + "settlementDue": 0, + "inventory": [ + { + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500 + } + ] + } + } + ], + "counts": { + "pending": 0, + "approved": 1, + "rejected": 0 + }, + "canApprove": false + } + }, + { + "seq": 462, + "label": "ownership-all-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/order-ownership-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "order_id": "", + "order_revision": 6, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "实际由小昊接待", + "status": "approved", + "direct": false, + "requester_id": "", + "requester_name": "助理", + "requester_role": "assistant", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:56.000Z", + "note": "核实", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261119-", + "order_customer": "当天客户(改)", + "order_date": "2026-11-19", + "order_status": "delivered", + "stale": false, + "canApprove": false + }, + { + "id": "", + "order_id": "", + "order_revision": 4, + "from_member": "assistant", + "to_member": "assistant2", + "reason": "核实业务归属", + "status": "approved", + "direct": true, + "requester_id": "", + "requester_name": "麦麦", + "requester_role": "owner", + "created": "2026-11-19T02:00:49.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:49.000Z", + "note": "", + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "order_number": "MM20261118-", + "order_customer": "对照驳回客户", + "order_date": "2026-11-18", + "order_status": "delivered", + "stale": false, + "canApprove": false + } + ], + "counts": { + "pending": 0, + "approved": 2, + "rejected": 0 + }, + "canApprove": false + } + }, + { + "seq": 463, + "label": "lock-changes-all-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/price-lock-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [ + { + "id": "", + "price_lock_id": "", + "price_lock_revision": 1, + "action": "cancel", + "reason": "客户不要了", + "payload": { + "action": "cancel", + "revision": 1, + "reason": "客户不要了", + "verified": true + }, + "status": "rejected", + "requester_id": "", + "requester_name": "助理2", + "requester_role": "assistant", + "created": "2026-11-19T02:01:23.000Z", + "reviewer_id": "", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:24.000Z", + "note": "客户仍要", + "requestId": "", + "revision": 1, + "before": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "pending", + "revision": 1, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-18T02:01:55.000Z", + "cancelled_at": null, + "cancelled_reason": null, + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "material_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "voided_events": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "after": { + "id": "", + "number": "SJ20261118-", + "date": "2026-11-18", + "customer": "对照锁价客户三", + "salesperson": "小昊", + "note": "锁价备注", + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "estimated_total": 276000, + "discount": 0, + "status": "cancelled", + "revision": 2, + "final_order_id": null, + "delivery": null, + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "updated": "2026-11-19T02:01:23.000Z", + "cancelled_at": "2026-11-19T02:01:23.000Z", + "cancelled_reason": "客户不要了", + "lines": [ + { + "id": "", + "line_index": 0, + "line": { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 258000, + "costParts": { + "material": 258000, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 276000, + "baseSale": 276000, + "charges": [], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克" + }, + "locked_mg": 3000, + "sell_rate": 90000, + "buy_rate": 86000, + "buy_payer": "assistant2", + "material_amount": 258000, + "material_source": "manual", + "delivery": null + } + ], + "member": "assistant2", + "kind": "priceLock", + "credit_card_rate_permille": 6, + "material_source": "manual", + "cash_events": [], + "material_events": [], + "voided_events": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "payer": null, + "source": null, + "quantity": null, + "rate": null, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 1, + "void_reason": "客户不要了", + "voided_at": "2026-11-19T02:01:23.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "account": null, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 1, + "void_reason": "客户不要了", + "voided_at": "2026-11-19T02:01:23.000Z", + "card_fee_amount": null, + "card_fee_payer": null, + "card_fee_expense_id": null, + "card_fee_rate": null, + "card_fee_note": null + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "credit_card_fees": [], + "credit_card_fee_total": 0 + }, + "materialReturnDate": "2026-11-19", + "changes": [ + { + "field": "netReceived", + "before": 50000, + "after": 0 + }, + { + "field": "status", + "before": "pending", + "after": "cancelled" + } + ], + "relatedOrders": [], + "relatedPriceLocks": [], + "stale": false + } + ] + } + }, + { + "seq": 464, + "label": "recovery-changes-all-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/recovery-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [], + "counts": { + "pending": 0, + "approved": 0, + "rejected": 0 + } + } + }, + { + "seq": 465, + "label": "purchase-changes-all-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/material-purchase-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "rows": [], + "counts": { + "pending": 0, + "approved": 0, + "rejected": 0 + } + } + }, + { + "seq": 466, + "label": "after-sale-changes-all-assistant2", + "date": "2026-11-19", + "actor": "assistant2", + "method": "GET", + "path": "/api/after-sales/changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [], + "counts": { + "pending": 0, + "approved": 0, + "rejected": 0 + } + } + }, + { + "seq": 467, + "label": "order-book-filter status=after_sale", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19&status=after_sale", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "after_sale", + "pocket": "", + "rows": [ + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + } + ], + "displayRows": [ + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 0, + "completedCount": 0, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 0, + "sale": -90000, + "material": -88000, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": -87050, + "profit": -2950, + "ownerCost": 0, + "assistantCost": 950, + "assistant2Cost": -88000, + "mg": 0, + "pieces": 0, + "knownCounts": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "unknownCounts": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": false, + "afterSaleCount": 3, + "recordCount": 3 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 0, + "completedCount": 0, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 0, + "sale": -90000, + "material": -88000, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": -87050, + "profit": -2950, + "ownerCost": 0, + "assistantCost": 950, + "assistant2Cost": -88000, + "mg": 0, + "pieces": 0, + "knownCounts": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "unknownCounts": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": false, + "afterSaleCount": 3, + "recordCount": 3 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 0, + "refund": 90000, + "net": -90000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 0, + "refund": 90000, + "net": -90000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + } + } + }, + { + "seq": 468, + "label": "order-book-filter status=delivered", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19&status=delivered", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "delivered", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 13, + "completedCount": 13, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 3948555, + "material": 1467963, + "laborAndFees": 23331, + "unallocated": 1875000, + "totalCost": 3366294, + "profit": 582261, + "ownerCost": 1945131, + "assistantCost": 871443, + "assistant2Cost": 549720, + "mg": 48650, + "pieces": 4, + "knownCounts": { + "sale": 13, + "material": 6, + "laborAndFees": 6, + "unallocated": 13, + "totalCost": 13, + "profit": 13, + "ownerCost": 13, + "assistantCost": 13, + "assistant2Cost": 13 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 0, + "recordCount": 13 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 13, + "completedCount": 13, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 3948555, + "material": 1467963, + "laborAndFees": 23331, + "unallocated": 1875000, + "totalCost": 3366294, + "profit": 582261, + "ownerCost": 1945131, + "assistantCost": 871443, + "assistant2Cost": 549720, + "mg": 48650, + "pieces": 4, + "knownCounts": { + "sale": 13, + "material": 6, + "laborAndFees": 6, + "unallocated": 13, + "totalCost": 13, + "profit": 13, + "ownerCost": 13, + "assistantCost": 13, + "assistant2Cost": 13 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 0, + "recordCount": 13 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 3948555, + "refund": 0, + "net": 3948555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1634692, + "refund": 0, + "net": 1634692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 415363, + "refund": 0, + "net": 415363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 98200, + "refund": 0, + "net": 98200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 0, + "net": 217163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 15, + "orderCount": 13 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 3948555, + "refund": 0, + "net": 3948555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1634692, + "refund": 0, + "net": 1634692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 415363, + "refund": 0, + "net": 415363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 98200, + "refund": 0, + "net": 98200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 0, + "net": 217163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 15, + "orderCount": 13 + } + } + }, + { + "seq": 469, + "label": "order-book-filter status=cancelled", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19&status=cancelled", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "cancelled", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 2, + "completedCount": 0, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 2, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "mg": 3500, + "pieces": 0, + "knownCounts": { + "sale": 2, + "material": 2, + "laborAndFees": 2, + "unallocated": 2, + "totalCost": 2, + "profit": 2, + "ownerCost": 2, + "assistantCost": 2, + "assistant2Cost": 2 + }, + "unknownCounts": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": false, + "afterSaleCount": 0, + "recordCount": 2 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 0, + "completedCount": 0, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "mg": 0, + "pieces": 0, + "knownCounts": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "unknownCounts": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "partial": false, + "afterSaleCount": 0, + "recordCount": 0 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 0, + "refund": 0, + "net": 0, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 0, + "orderCount": 0 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 0, + "refund": 0, + "net": 0, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 2 + } + } + }, + { + "seq": 470, + "label": "order-book-filter q=对照", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19&q=对照", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "对照", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "returned", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 12, + "completedCount": 11, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 5, + "sale": 3878555, + "material": 1638065, + "laborAndFees": 33481, + "unallocated": 1653000, + "totalCost": 3324546, + "profit": 554009, + "ownerCost": 1945131, + "assistantCost": 467695, + "assistant2Cost": 911720, + "mg": 50650, + "pieces": 4, + "knownCounts": { + "sale": 12, + "material": 7, + "laborAndFees": 7, + "unallocated": 12, + "totalCost": 12, + "profit": 12, + "ownerCost": 12, + "assistantCost": 12, + "assistant2Cost": 12 + }, + "unknownCounts": { + "sale": 0, + "material": 5, + "laborAndFees": 5, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 15 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 11, + "completedCount": 11, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 5, + "sale": 3878555, + "material": 1638065, + "laborAndFees": 33481, + "unallocated": 1653000, + "totalCost": 3324546, + "profit": 554009, + "ownerCost": 1945131, + "assistantCost": 467695, + "assistant2Cost": 911720, + "mg": 49150, + "pieces": 4, + "knownCounts": { + "sale": 11, + "material": 6, + "laborAndFees": 6, + "unallocated": 11, + "totalCost": 11, + "profit": 11, + "ownerCost": 11, + "assistantCost": 11, + "assistant2Cost": 11 + }, + "unknownCounts": { + "sale": 0, + "material": 5, + "laborAndFees": 5, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 14 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4138555, + "refund": 90000, + "net": 4048555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1704692, + "refund": 0, + "net": 1704692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 721900, + "refund": 0, + "net": 721900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 16, + "orderCount": 13 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4138555, + "refund": 90000, + "net": 4048555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1704692, + "refund": 0, + "net": 1704692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 721900, + "refund": 0, + "net": 721900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 18, + "orderCount": 14 + } + } + }, + { + "seq": 471, + "label": "order-book-filter pocket=现货", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19&pocket=现货", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "现货", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "returned", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 12, + "completedCount": 10, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 2, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 5, + "sale": 2630055, + "material": 1454130, + "laborAndFees": 30600, + "unallocated": 825000, + "totalCost": 2309730, + "profit": 320325, + "ownerCost": 893400, + "assistantCost": 416610, + "assistant2Cost": 999720, + "mg": 42150, + "pieces": 3, + "knownCounts": { + "sale": 12, + "material": 7, + "laborAndFees": 7, + "unallocated": 12, + "totalCost": 12, + "profit": 12, + "ownerCost": 12, + "assistantCost": 12, + "assistant2Cost": 12 + }, + "unknownCounts": { + "sale": 0, + "material": 5, + "laborAndFees": 5, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 0, + "recordCount": 12 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 10, + "completedCount": 10, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 5, + "sale": 2630055, + "material": 1454130, + "laborAndFees": 30600, + "unallocated": 825000, + "totalCost": 2309730, + "profit": 320325, + "ownerCost": 893400, + "assistantCost": 416610, + "assistant2Cost": 999720, + "mg": 38650, + "pieces": 3, + "knownCounts": { + "sale": 10, + "material": 5, + "laborAndFees": 5, + "unallocated": 10, + "totalCost": 10, + "profit": 10, + "ownerCost": 10, + "assistantCost": 10, + "assistant2Cost": 10 + }, + "unknownCounts": { + "sale": 0, + "material": 5, + "laborAndFees": 5, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 0, + "recordCount": 10 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 2630055, + "refund": 0, + "net": 2630055, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1914692, + "refund": 0, + "net": 1914692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 415363, + "refund": 0, + "net": 415363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 300000, + "refund": 0, + "net": 300000 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 981900, + "refund": 0, + "net": 981900 + }, + { + "account": "助理支付宝", + "receipt": 98200, + "refund": 0, + "net": 98200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 300000, + "refund": 0, + "net": 300000 + }, + { + "account": "助理2微信", + "receipt": 932792, + "refund": 0, + "net": 932792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 0, + "net": 217163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 12, + "orderCount": 10 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 2630055, + "refund": 0, + "net": 2630055, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1914692, + "refund": 0, + "net": 1914692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 415363, + "refund": 0, + "net": 415363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 300000, + "refund": 0, + "net": 300000 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 981900, + "refund": 0, + "net": 981900 + }, + { + "account": "助理支付宝", + "receipt": 98200, + "refund": 0, + "net": 98200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 300000, + "refund": 0, + "net": 300000 + }, + { + "account": "助理2微信", + "receipt": 932792, + "refund": 0, + "net": 932792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 0, + "net": 217163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 16, + "orderCount": 12 + } + } + }, + { + "seq": 472, + "label": "order-book-filter member=assistant", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19&member=assistant", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 8, + "completedCount": 7, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1626600, + "material": 1107243, + "laborAndFees": 15681, + "unallocated": 192000, + "totalCost": 1314924, + "profit": 311676, + "ownerCost": 693331, + "assistantCost": 621593, + "assistant2Cost": 0, + "mg": 19850, + "pieces": 1, + "knownCounts": { + "sale": 8, + "material": 6, + "laborAndFees": 6, + "unallocated": 8, + "totalCost": 8, + "profit": 8, + "ownerCost": 8, + "assistantCost": 8, + "assistant2Cost": 8 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 9 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 406200, + "refund": 0, + "net": 406200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 3, + "orderCount": 2 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 406200, + "refund": 0, + "net": 406200, + "materialOutlay": 519000, + "goodsOutlay": 522000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 0, + "totalOutlay": 522600, + "eventCount": 10, + "lockCount": 2 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + } + }, + "summary": { + "purchaseCount": 2, + "poolCount": 2, + "mg": 16000, + "materialOutlay": 1450000, + "purchaseValue": 1450000, + "ownerOutlay": 0, + "assistantOutlay": 1450000, + "assistant2Outlay": 0, + "totalOutlay": 1450000, + "eventCount": 2 + } + }, + "summaryWithoutCancelled": { + "orderCount": 7, + "completedCount": 7, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1626600, + "material": 1107243, + "laborAndFees": 15681, + "unallocated": 192000, + "totalCost": 1314924, + "profit": 311676, + "ownerCost": 693331, + "assistantCost": 621593, + "assistant2Cost": 0, + "mg": 17850, + "pieces": 1, + "knownCounts": { + "sale": 7, + "material": 5, + "laborAndFees": 5, + "unallocated": 7, + "totalCost": 7, + "profit": 7, + "ownerCost": 7, + "assistantCost": 7, + "assistant2Cost": 7 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 8 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1746600, + "refund": 0, + "net": 1746600, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 8 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1746600, + "refund": 0, + "net": 1746600, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 11, + "orderCount": 9 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 1746600, + "refund": 0, + "net": 1746600, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 991900, + "refund": 0, + "net": 991900 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 11, + "orderCount": 9 + } + } + }, + { + "seq": 473, + "label": "order-book-filter account=助理微信", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19&account=助理微信", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "returned", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 16, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 2, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4358555, + "material": 1819963, + "laborAndFees": 34281, + "unallocated": 1875000, + "totalCost": 3729244, + "profit": 629311, + "ownerCost": 1945131, + "assistantCost": 872393, + "assistant2Cost": 911720, + "mg": 57150, + "pieces": 4, + "knownCounts": { + "sale": 16, + "material": 9, + "laborAndFees": 9, + "unallocated": 16, + "totalCost": 16, + "profit": 16, + "ownerCost": 16, + "assistantCost": 16, + "assistant2Cost": 16 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 19 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 14, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4358555, + "material": 1819963, + "laborAndFees": 34281, + "unallocated": 1875000, + "totalCost": 3729244, + "profit": 629311, + "ownerCost": 1945131, + "assistantCost": 872393, + "assistant2Cost": 911720, + "mg": 53650, + "pieces": 4, + "knownCounts": { + "sale": 14, + "material": 7, + "laborAndFees": 7, + "unallocated": 14, + "totalCost": 14, + "profit": 14, + "ownerCost": 14, + "assistantCost": 14, + "assistant2Cost": 14 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 17 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 19, + "orderCount": 16 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + } + } + }, + { + "seq": 474, + "label": "order-book-filter paymentAccount=助理微信", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19&paymentAccount=助理微信", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "returned", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 16, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 2, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4358555, + "material": 1819963, + "laborAndFees": 34281, + "unallocated": 1875000, + "totalCost": 3729244, + "profit": 629311, + "ownerCost": 1945131, + "assistantCost": 872393, + "assistant2Cost": 911720, + "mg": 57150, + "pieces": 4, + "knownCounts": { + "sale": 16, + "material": 9, + "laborAndFees": 9, + "unallocated": 16, + "totalCost": 16, + "profit": 16, + "ownerCost": 16, + "assistantCost": 16, + "assistant2Cost": 16 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 19 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 14, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4358555, + "material": 1819963, + "laborAndFees": 34281, + "unallocated": 1875000, + "totalCost": 3729244, + "profit": 629311, + "ownerCost": 1945131, + "assistantCost": 872393, + "assistant2Cost": 911720, + "mg": 53650, + "pieces": 4, + "knownCounts": { + "sale": 14, + "material": 7, + "laborAndFees": 7, + "unallocated": 14, + "totalCost": 14, + "profit": 14, + "ownerCost": 14, + "assistantCost": 14, + "assistant2Cost": 14 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 17 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 19, + "orderCount": 16 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + } + } + }, + { + "seq": 475, + "label": "order-book-filter basis=orderDate", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-19&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-19", + "today": "2026-11-19", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "returned", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 16, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 2, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4358555, + "material": 1819963, + "laborAndFees": 34281, + "unallocated": 1875000, + "totalCost": 3729244, + "profit": 629311, + "ownerCost": 1945131, + "assistantCost": 872393, + "assistant2Cost": 911720, + "mg": 57150, + "pieces": 4, + "knownCounts": { + "sale": 16, + "material": 9, + "laborAndFees": 9, + "unallocated": 16, + "totalCost": 16, + "profit": 16, + "ownerCost": 16, + "assistantCost": 16, + "assistant2Cost": 16 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 19 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-19", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-previous", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 1450000, + "goods": 1450000, + "paidFees": 0, + "total": 1450000, + "purchaseCount": 2 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 2, + "mg": 40000, + "materialOutlay": 3640000, + "purchaseValue": 3640000, + "ownerOutlay": 1820000, + "assistantOutlay": 1450000, + "assistant2Outlay": 370000, + "totalOutlay": 3640000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 14, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4358555, + "material": 1819963, + "laborAndFees": 34281, + "unallocated": 1875000, + "totalCost": 3729244, + "profit": 629311, + "ownerCost": 1945131, + "assistantCost": 872393, + "assistant2Cost": 911720, + "mg": 53650, + "pieces": 4, + "knownCounts": { + "sale": 14, + "material": 7, + "laborAndFees": 7, + "unallocated": 14, + "totalCost": 14, + "profit": 14, + "ownerCost": 14, + "assistantCost": 14, + "assistant2Cost": 14 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 17 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 19, + "orderCount": 16 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-19", + "receipt": 4618555, + "refund": 90000, + "net": 4528555, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2184692, + "refund": 0, + "net": 2184692 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1201900, + "refund": 0, + "net": 1201900 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 982792, + "refund": 0, + "net": 982792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 23, + "orderCount": 18 + } + } + }, + { + "seq": 476, + "label": "report-member-filter", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/report?date=2026-11-19&member=assistant2&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "sales": 552792, + "goods": 458720, + "knownGoods": 458720, + "expense": 800, + "profit": 93272, + "knownProfit": 93272, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-19", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 1, + "poolCount": 1, + "mg": 4000, + "materialOutlay": 370000, + "purchaseValue": 370000, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 370000, + "totalOutlay": 370000, + "eventCount": 1 + } + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 2, + "returns": 1, + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "order_date": "2026-11-18", + "order_after_sale": true + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "basis": "orderDate", + "summary": { + "orderCount": 2, + "completedCount": 2, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 1, + "sale": 552792, + "material": 272720, + "laborAndFees": 6800, + "unallocated": 180000, + "totalCost": 459520, + "profit": 93272, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 278720, + "mg": 14000, + "pieces": 0, + "knownCounts": { + "sale": 2, + "material": 1, + "laborAndFees": 1, + "unallocated": 2, + "totalCost": 2, + "profit": 2, + "ownerCost": 2, + "assistantCost": 2, + "assistant2Cost": 2 + }, + "unknownCounts": { + "sale": 0, + "material": 1, + "laborAndFees": 1, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 3 + }, + "orderRows": [ + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + } + ], + "payerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 180000, + "paidFees": 800, + "total": 180800, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 736720, + "paidFees": 0, + "total": 736720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "purchaseAmount": 370000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 4000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + } + }, + "orderPayerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 180000, + "paidFees": 800, + "total": 180800, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 0, + "paidFees": 0, + "total": 0, + "missingCount": 0, + "pendingCount": 0, + "items": [] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 278720, + "paidFees": 0, + "total": 278720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null, + "order_id": "", + "orderAfterSale": true, + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + } + ] + } + }, + "peopleCount": { + "from": "2026-11-19", + "date": "2026-11-19", + "baselineDate": "2026-11-18", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": 5, + "baselineDate": "2026-11-18", + "netChange": 2, + "netChangeReason": null, + "recordedDays": 1 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": 3, + "baselineDate": "2026-11-18", + "netChange": 1, + "netChangeReason": null, + "recordedDays": 1 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-19", + "date": "2026-11-19", + "customerCash": [], + "orderPayments": [], + "materialOutlays": [], + "directOutlays": [], + "deliveryGoodsOutlays": [], + "receipts": { + "receipt": 0, + "refund": 0, + "net": 0, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 0, + "orderCount": 0 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 0, + "refund": 0, + "net": 0, + "materialOutlay": 0, + "goodsOutlay": 0, + "feeOutlay": 0, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 0, + "totalOutlay": 0, + "eventCount": 0, + "lockCount": 0 + } + }, + "outlayGoods": 916720, + "outlayExpense": 800, + "outlayTotal": 917520, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 642792, + "refund": 90000, + "net": 552792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 642792, + "refund": 0, + "net": 642792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 3, + "orderCount": 3 + }, + "totalCost": 459520, + "recipientReceipts": { + "assistant": { + "recipient": "assistant", + "name": "娜娜", + "receipt": 210000, + "refund": 0, + "net": 210000, + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + } + ] + }, + "owner": { + "recipient": "owner", + "name": "麦麦", + "receipt": 0, + "refund": 0, + "net": 0, + "items": [] + }, + "assistant2": { + "recipient": "assistant2", + "name": "小昊", + "receipt": 432792, + "refund": 90000, + "net": 342792, + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipReceipts": { + "assistant2": { + "member": "assistant2", + "name": "小昊", + "receipt": 642792, + "refund": 90000, + "net": 552792, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 210000, + "refund": 0, + "net": 210000, + "entryCount": 1 + }, + { + "account": "助理2微信", + "recipient": "assistant2", + "channel": "wechat", + "receipt": 432792, + "refund": 0, + "net": 432792, + "entryCount": 1 + }, + { + "account": "助理2支付宝", + "recipient": "assistant2", + "channel": "alipay", + "receipt": 0, + "refund": 90000, + "net": -90000, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipBusiness": { + "assistant2": { + "member": "assistant2", + "name": "小昊", + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "netReceipts": 552792, + "totalCost": 459520, + "knownTotalCost": 459520, + "selfCost": 278720, + "knownSelfCost": 278720, + "otherCost": 180800, + "knownOtherCost": 180800, + "profit": 93272, + "knownProfit": 93272, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 180800, + "knownTotalCost": 180800, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 278720, + "knownTotalCost": 278720, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 459520, + "amount": 459520 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "recordCount": 3, + "knownMaterialCost": 0, + "knownOtherCost": 0, + "knownProfit": 93272, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 0, + "profit": 93272, + "knownAmount": 93272, + "amount": 93272 + } + ] + }, + "difference": { + "amount": 0, + "reconciled": true, + "reasons": [] + }, + "equation": { + "basis": "netReceipts", + "revenue": 552792, + "totalCost": 459520, + "profit": 93272, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-19", + "date": "2026-11-19", + "dueOut": 0, + "dueIn": 41200, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + }, + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 41200, + "openingDue": -12000, + "periodNew": -29200, + "periodTransferred": 0, + "closingDue": -41200, + "offset": 250800, + "period": { + "obligationNet": -29200, + "transferred": 0, + "receivedForNet": -210000, + "advancedNet": 180800 + } + } + ] + }, + "hasActivity": true + } + }, + "dailyProfits": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "knownTotalCost": 459520, + "knownProfit": 93272, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant2", + "name": "小昊", + "totalCost": 459520, + "profit": 93272 + } + ], + "summary": { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "knownTotalCost": 459520, + "knownProfit": 93272, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 459520, + "profit": 93272 + } + }, + "dailyFunds": { + "date": "2026-11-19", + "from": "2026-11-19", + "team": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 0, + "refunds": 0, + "outlays": 600, + "transferIn": 10000, + "transferOut": 0, + "openingChange": -2341031, + "periodChange": 9400, + "cumulativeChange": -2331631, + "cashBalance": 9400, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 627000, + "refunds": 0, + "outlays": 802210, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 44600, + "periodChange": -185210, + "cumulativeChange": -140610, + "cashBalance": -185210, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 736720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -393928, + "cumulativeChange": -517765, + "cashBalance": -393928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账二", + "actor": "麦麦" + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + }, + "reportRevision": "bf5d23834d753e6e7c3de37912b05beadd8d8f5f80fbeeb0b130ff90742fc025" + } + }, + { + "seq": 477, + "label": "movements-filter", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/movements?from=2026-11-18&date=2026-11-19&pocket=现货", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "pocket": "现货", + "pockets": [ + { + "pocket": "现货", + "active": true + }, + { + "pocket": "金料", + "active": true + }, + { + "pocket": "找金", + "active": true + }, + { + "pocket": "回收旧料", + "active": true + }, + { + "pocket": "君宝汇", + "active": true + }, + { + "pocket": "pocket_", + "active": true + } + ], + "kind": "all", + "hideDeleted": false, + "from": "2026-11-18", + "to": "", + "total": 22, + "shown": 22, + "limit": 100, + "pageSize": 100, + "page": 1, + "totalPages": 1, + "hasPrev": false, + "hasNext": false, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -500, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000, + "kind": "order_cancel_reverse", + "note": "MM20261119-;当天直接作废:当天录错", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -6000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -3100, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 100, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 补重黄金入库", + "purchase_cost": 9000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 3000, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 原锁定黄金入库", + "purchase_cost": 255000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500, + "kind": "order_cancel_reverse", + "note": "MM20261118-;审批作废:重复录入", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "transfer", + "note": "调拨", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "kind": "opening", + "note": "黄金对照起始库存", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 478, + "label": "movements-xlsx", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/movements/export.xlsx", + "key": null, + "status": 200, + "contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "disposition": "attachment; filename=\"inventory-movements-2026-11-19.xlsx\"; filename*=UTF-8''%E5%BA%93%E5%AD%98%E6%B5%81%E6%B0%B4-%E5%85%A8%E9%83%A8%E8%B4%A7%E7%9B%98-%E5%85%A8%E9%83%A8%E6%B5%81%E6%B0%B4-2026-11-19.xlsx", + "setCookie": null, + "body": { + "zip": [ + { + "name": "[Content_Types].xml", + "text": "" + }, + { + "name": "_rels/.rels", + "text": "" + }, + { + "name": "xl/workbook.xml", + "text": "" + }, + { + "name": "xl/_rels/workbook.xml.rels", + "text": "" + }, + { + "name": "xl/styles.xml", + "text": "" + }, + { + "name": "xl/worksheets/sheet1.xml", + "text": "序号日期货盘增减克重(g)类型备注/原单经办人记录时间状态增减对数(对)12026-11-19现货-0.5销售出库MM20261119-娜娜2026-11-19 10:02:51随原业务记录保留22026-11-19现货2订单作废冲回MM20261119-;当天直接作废:当天录错娜娜2026-11-19 10:01:59随原业务记录保留32026-11-19现货-2销售出库MM20261119-娜娜2026-11-19 10:01:57随原业务记录保留42026-11-19现货-2销售出库MM20261119-娜娜2026-11-19 10:01:48随原业务记录保留52026-11-19现货-6销售出库MM20261119-娜娜2026-11-19 10:01:33随原业务记录保留62026-11-19回收旧料4.851回收旧料入库HS202611190002娜娜2026-11-19 10:01:33随原业务记录保留72026-11-19现货-12销售出库MM20261119-小昊2026-11-19 10:01:32随原业务记录保留82026-11-19回收旧料7.992回收旧料入库HS202611190001小昊2026-11-19 10:01:32随原业务记录保留92026-11-19现货-3.1销售出库MM20261119-娜娜2026-11-19 10:01:28随原业务记录保留102026-11-19现货0.1锁价黄金入库SJ20261118- 足金999 补重黄金入库娜娜2026-11-19 10:01:28随原业务记录保留112026-11-19现货3锁价黄金入库SJ20261118- 足金999 原锁定黄金入库娜娜2026-11-19 10:01:28随原业务记录保留122026-11-19金料1退货入库MM20261118- · 售后回收旧料麦麦2026-11-19 10:01:05随原业务记录保留132026-11-18现货1.5订单作废冲回MM20261118-;审批作废:重复录入麦麦2026-11-19 10:00:45随原业务记录保留142026-11-19金料-1.2更正冲回撤回旧记录的库存影响麦麦2026-11-19 10:00:21更正记录 · 撤回旧记录的库存影响152026-11-19金料1.2增加当天手动入库娜娜2026-11-19 10:00:19原记录 · 已删除162026-11-19金料-1更正冲回撤回旧记录的库存影响娜娜2026-11-19 10:00:19更正记录 · 撤回旧记录的库存影响172026-11-19金料1增加当天手动入库娜娜2026-11-19 10:00:16原记录 · 已删除182026-11-18现货3增加娜娜手动入库麦麦2026-11-19 10:00:11修改后有效192026-11-18现货-2.5更正冲回撤回旧记录的库存影响麦麦2026-11-19 10:00:11更正记录 · 撤回旧记录的库存影响202026-11-18现货-4销售出库MM20261118-麦麦2026-11-18 10:01:34随原业务记录保留212026-11-18现货-0.8销售出库MM20261118-娜娜2026-11-18 10:01:26随原业务记录保留222026-11-18现货-5销售出库MM20261118-小昊2026-11-18 10:01:25随原业务记录保留232026-11-18现货-1.5销售出库MM20261118-小昊2026-11-18 10:01:24随原业务记录保留242026-11-18展柜A(主)-10销售出库MM20261118-麦麦2026-11-18 10:01:23随原业务记录保留252026-11-18现货-2销售出库MM20261118-小昊2026-11-18 10:01:18随原业务记录保留262026-11-18现货-3.25销售出库MM20261118-娜娜2026-11-18 10:01:17随原业务记录保留272026-11-18现货-0.5减少娜娜手动出库娜娜2026-11-18 10:01:05当前有效282026-11-18现货2.5增加娜娜手动入库娜娜2026-11-18 10:01:04原记录 · 已修改292026-11-18金料5平移调拨麦麦2026-11-18 10:01:03当前有效302026-11-18现货-5平移调拨麦麦2026-11-18 10:01:03当前有效312026-11-18展柜A(主)20开账展柜起始麦麦2026-11-18 10:01:02随原业务记录保留322026-11-18金料50开账黄金对照起始金料麦麦2026-11-18 10:01:01随原业务记录保留332026-11-18现货100开账黄金对照起始库存麦麦2026-11-18 10:01:00随原业务记录保留" + } + ] + } + }, + { + "seq": 479, + "label": "movements-xlsx-range", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory/movements/export.xlsx?from=2026-11-18&date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "disposition": "attachment; filename=\"inventory-movements-2026-11-19.xlsx\"; filename*=UTF-8''%E5%BA%93%E5%AD%98%E6%B5%81%E6%B0%B4-%E5%85%A8%E9%83%A8%E8%B4%A7%E7%9B%98-%E5%85%A8%E9%83%A8%E6%B5%81%E6%B0%B4-2026-11-18%E8%87%B3%E4%BB%8A.xlsx", + "setCookie": null, + "body": { + "zip": [ + { + "name": "[Content_Types].xml", + "text": "" + }, + { + "name": "_rels/.rels", + "text": "" + }, + { + "name": "xl/workbook.xml", + "text": "" + }, + { + "name": "xl/_rels/workbook.xml.rels", + "text": "" + }, + { + "name": "xl/styles.xml", + "text": "" + }, + { + "name": "xl/worksheets/sheet1.xml", + "text": "序号日期货盘增减克重(g)类型备注/原单经办人记录时间状态增减对数(对)12026-11-19现货-0.5销售出库MM20261119-娜娜2026-11-19 10:02:51随原业务记录保留22026-11-19现货2订单作废冲回MM20261119-;当天直接作废:当天录错娜娜2026-11-19 10:01:59随原业务记录保留32026-11-19现货-2销售出库MM20261119-娜娜2026-11-19 10:01:57随原业务记录保留42026-11-19现货-2销售出库MM20261119-娜娜2026-11-19 10:01:48随原业务记录保留52026-11-19现货-6销售出库MM20261119-娜娜2026-11-19 10:01:33随原业务记录保留62026-11-19回收旧料4.851回收旧料入库HS202611190002娜娜2026-11-19 10:01:33随原业务记录保留72026-11-19现货-12销售出库MM20261119-小昊2026-11-19 10:01:32随原业务记录保留82026-11-19回收旧料7.992回收旧料入库HS202611190001小昊2026-11-19 10:01:32随原业务记录保留92026-11-19现货-3.1销售出库MM20261119-娜娜2026-11-19 10:01:28随原业务记录保留102026-11-19现货0.1锁价黄金入库SJ20261118- 足金999 补重黄金入库娜娜2026-11-19 10:01:28随原业务记录保留112026-11-19现货3锁价黄金入库SJ20261118- 足金999 原锁定黄金入库娜娜2026-11-19 10:01:28随原业务记录保留122026-11-19金料1退货入库MM20261118- · 售后回收旧料麦麦2026-11-19 10:01:05随原业务记录保留132026-11-18现货1.5订单作废冲回MM20261118-;审批作废:重复录入麦麦2026-11-19 10:00:45随原业务记录保留142026-11-19金料-1.2更正冲回撤回旧记录的库存影响麦麦2026-11-19 10:00:21更正记录 · 撤回旧记录的库存影响152026-11-19金料1.2增加当天手动入库娜娜2026-11-19 10:00:19原记录 · 已删除162026-11-19金料-1更正冲回撤回旧记录的库存影响娜娜2026-11-19 10:00:19更正记录 · 撤回旧记录的库存影响172026-11-19金料1增加当天手动入库娜娜2026-11-19 10:00:16原记录 · 已删除182026-11-18现货3增加娜娜手动入库麦麦2026-11-19 10:00:11修改后有效192026-11-18现货-2.5更正冲回撤回旧记录的库存影响麦麦2026-11-19 10:00:11更正记录 · 撤回旧记录的库存影响202026-11-18现货-4销售出库MM20261118-麦麦2026-11-18 10:01:34随原业务记录保留212026-11-18现货-0.8销售出库MM20261118-娜娜2026-11-18 10:01:26随原业务记录保留222026-11-18现货-5销售出库MM20261118-小昊2026-11-18 10:01:25随原业务记录保留232026-11-18现货-1.5销售出库MM20261118-小昊2026-11-18 10:01:24随原业务记录保留242026-11-18展柜A(主)-10销售出库MM20261118-麦麦2026-11-18 10:01:23随原业务记录保留252026-11-18现货-2销售出库MM20261118-小昊2026-11-18 10:01:18随原业务记录保留262026-11-18现货-3.25销售出库MM20261118-娜娜2026-11-18 10:01:17随原业务记录保留272026-11-18现货-0.5减少娜娜手动出库娜娜2026-11-18 10:01:05当前有效282026-11-18现货2.5增加娜娜手动入库娜娜2026-11-18 10:01:04原记录 · 已修改292026-11-18金料5平移调拨麦麦2026-11-18 10:01:03当前有效302026-11-18现货-5平移调拨麦麦2026-11-18 10:01:03当前有效312026-11-18展柜A(主)20开账展柜起始麦麦2026-11-18 10:01:02随原业务记录保留322026-11-18金料50开账黄金对照起始金料麦麦2026-11-18 10:01:01随原业务记录保留332026-11-18现货100开账黄金对照起始库存麦麦2026-11-18 10:01:00随原业务记录保留" + } + ] + } + }, + { + "seq": 480, + "label": "inventory-csv", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/export/inventory", + "key": null, + "status": 200, + "contentType": "text/csv; charset=utf-8", + "disposition": "attachment; filename=\"inventory.csv\"", + "setCookie": null, + "body": { + "text": "货盘,账面克重,已占用克重,可用克重,计数单位,账面对数,已占用对数,可用对数\r\n\"现货\",61.950,0.000,61.950,,,,\r\n\"金料\",56.000,0.000,56.000,,,,\r\n\"找金\",0.000,0.000,0.000,,,,\r\n\"回收旧料\",12.843,0.000,12.843,,,,\r\n\"君宝汇\",0.000,0.000,0.000,,,,\r\n\"臻金汇\",0.000,0.000,0.000,,,,\r\n\"金金\",0.000,0.000,0.000,,,,\r\n\"定制工厂\",0.000,0.000,0.000,,,,\r\n\"展柜A(主)\",10.000,0.000,10.000,,,," + } + }, + { + "seq": 481, + "label": "team-funds-report", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/team-funds?date=2026-11-19", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 0, + "refunds": 0, + "outlays": 600, + "transferIn": 10000, + "transferOut": 0, + "openingChange": -2341031, + "periodChange": 9400, + "cumulativeChange": -2331631, + "cashBalance": 9400, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 627000, + "refunds": 0, + "outlays": 802210, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 44600, + "periodChange": -185210, + "cumulativeChange": -140610, + "cashBalance": -185210, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 736720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -393928, + "cumulativeChange": -517765, + "cashBalance": -393928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账二", + "actor": "麦麦" + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + } + }, + { + "seq": 482, + "note": "section", + "name": "closeAndBackup" + }, + { + "seq": 483, + "label": "inventory-before-review-d2", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/inventory", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "yesterdayDate": "2026-11-18", + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "current": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "yesterday": { + "date": "2026-11-18", + "inventory": [ + { + "pocket": "现货", + "mg": 80450, + "reserved": 0, + "available": 80450 + }, + { + "pocket": "金料", + "mg": 55000, + "reserved": 0, + "available": 55000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-18T02:02:46.000Z", + "updated": "2026-11-18T02:02:50.000Z", + "stale": true, + "revision": "3ced53bccf874039772cb33ea02c64ef6b6b7c23c841b7a40909076084b3a086", + "source": "manual", + "scheduled_for": null + }, + "todaySnapshot": null, + "revision": "26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace", + "legacyInventory": [], + "canReview": true, + "automaticSnapshot": { + "enabled": false, + "time": "23:50", + "timeZone": "Asia/Shanghai", + "date": "2026-11-19", + "status": "stopped", + "lastSuccess": null, + "lastError": null, + "nextAttemptAt": null + } + } + }, + { + "seq": 484, + "label": "inventory-review-d2", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/inventory/review", + "key": "golden-00191-inventory-review-d2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "verified": true, + "revision": "26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "snapshot": { + "date": "2026-11-19", + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-19T02:04:45.000Z", + "updated": "2026-11-19T02:04:45.000Z", + "stale": false, + "revision": "26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace", + "source": "manual", + "scheduled_for": null + } + } + }, + { + "seq": 485, + "label": "close-d2", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/close", + "key": "golden-00192-close-d2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-19", + "basis": "orderDate" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "snapshot": { + "date": "2026-11-19", + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-19T02:04:45.000Z", + "updated": "2026-11-19T02:04:46.000Z", + "stale": false, + "revision": "26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace", + "source": "manual", + "scheduled_for": null + }, + "basis": "orderDate", + "reportRevision": "fa73de27deceb492d63cf1d58c3eba7bf0d1089f22a851135fe95a461efa7504" + } + }, + { + "seq": 486, + "label": "report-after-close", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/report?date=2026-11-19&basis=orderDate", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-19", + "from": "2026-11-19", + "sales": 1239792, + "goods": 1056028, + "knownGoods": 1056028, + "expense": 1400, + "profit": 182364, + "knownProfit": 182364, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-19", + "date": "2026-11-19", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 460000, + "goods": 460000, + "paidFees": 0, + "total": 460000, + "purchaseCount": 1 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 2, + "poolCount": 1, + "mg": 9000, + "materialOutlay": 830000, + "purchaseValue": 830000, + "ownerOutlay": 0, + "assistantOutlay": 460000, + "assistant2Outlay": 370000, + "totalOutlay": 830000, + "eventCount": 2 + } + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 6, + "returns": 1, + "accounts": [ + { + "account": "助理微信", + "receipt": 610800, + "refund": 0, + "net": 610800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "reference": "置换差额实际收款 · HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "order_date": "2026-11-18", + "order_after_sale": true + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 286200, + "goods": 267000, + "expense": 600, + "profit": 18600, + "created": "2026-11-19T02:01:28.000Z", + "number": "MM20261119-", + "paper_number": "20261119010", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-", + "paper_number": "20261119011", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 130800, + "goods": 106410, + "expense": 0, + "profit": 24390, + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-", + "paper_number": "20261119012", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-", + "paper_number": "20261119013", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单录错作废冲回", + "sales": -210000, + "goods": -180000, + "expense": 0, + "profit": -30000, + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-", + "paper_number": "20261119014", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 220000, + "goods": 181898, + "expense": 0, + "profit": 38102, + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-", + "paper_number": "20261119015", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 50000, + "goods": 42000, + "expense": 0, + "profit": 8000, + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-", + "paper_number": "20261119016", + "order_date": "2026-11-19" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "order_date": "2026-11-18" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": { + "date": "2026-11-19", + "actor": "麦麦", + "created": "2026-11-19T02:04:46.000Z", + "stale": false, + "basis": "orderDate", + "reportRevision": "fa73de27deceb492d63cf1d58c3eba7bf0d1089f22a851135fe95a461efa7504", + "staleReason": null + }, + "basis": "orderDate", + "summary": { + "orderCount": 7, + "completedCount": 6, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1239792, + "material": 822028, + "laborAndFees": 13400, + "unallocated": 222000, + "totalCost": 1057428, + "profit": 182364, + "ownerCost": 255600, + "assistantCost": 523108, + "assistant2Cost": 278720, + "mg": 27600, + "pieces": 0, + "knownCounts": { + "sale": 7, + "material": 5, + "laborAndFees": 5, + "unallocated": 7, + "totalCost": 7, + "profit": 7, + "ownerCost": 7, + "assistantCost": 7, + "assistant2Cost": 7 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 8 + }, + "orderRows": [ + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 432792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 432792, + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720, + "known": { + "sale": 432792, + "material": 360720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 366720, + "profit": 66072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 366720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 130800, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0, + "known": { + "sale": 130800, + "material": 103410, + "laborAndFees": 3000, + "unallocated": 0, + "totalCost": 106410, + "profit": 24390, + "ownerCost": 0, + "assistantCost": 106410, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "payerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 800410, + "paidFees": 800, + "total": 801210, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories", + "status": "recorded", + "actualOutlay": true + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other", + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "goods", + "amount": 9000, + "payer": "assistant", + "source": "锁价采购 · 实付 2026-11-19", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material", + "name": "补购料费", + "materialSource": "extra", + "paidDate": "2026-11-19", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "status": "recorded", + "actualOutlay": true + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "purchaseAmount": 460000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 5000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 0, + "paidFees": 600, + "total": 600, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "paid", + "component": "fee", + "product": "足金999", + "name": "实际快递", + "source": "锁价费用 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "status": "recorded", + "calculation": null, + "actualOutlay": true + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 736720, + "paidFees": 0, + "total": 736720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "purchaseAmount": 370000, + "kind": "goods", + "component": "material", + "materialPoolId": "2026-11-19", + "name": "日料池采购", + "source": "日料池 2026-11-19 · 实付 2026-11-19", + "paidDate": "2026-11-19", + "quantity": 4000, + "calculation": null, + "status": "recorded", + "actualOutlay": true + } + ] + } + }, + "orderPayerCosts": { + "assistant": { + "payer": "assistant", + "name": "娜娜", + "goods": 522308, + "paidFees": 800, + "total": 523108, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 103410, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 1149 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 6000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "customer": "对照换货客户二", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "customer": "当天客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "2e1d58e4d359165036a53976f4ed30c7052bb21df8bd2eb46c6544546a2e818b", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "customer": "滚动料池客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "customer": "安全测试", + "status": "recorded" + } + ] + }, + "owner": { + "payer": "owner", + "name": "麦麦", + "goods": 255000, + "paidFees": 600, + "total": 255600, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + }, + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "整单费用 · 实付 2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "status": "recorded", + "calculation": null, + "paidDate": "2026-11-19" + } + ] + }, + "assistant2": { + "payer": "assistant2", + "name": "小昊", + "goods": 278720, + "paidFees": 0, + "total": 278720, + "missingCount": 0, + "pendingCount": 0, + "items": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null, + "order_id": "", + "orderAfterSale": true, + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "customer": "对照售后订单客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 360720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 4008 + }, + "component": "material", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "customer": "对照换货客户", + "status": "recorded" + } + ] + } + }, + "peopleCount": { + "from": "2026-11-19", + "date": "2026-11-19", + "baselineDate": "2026-11-18", + "mode": "daily-total", + "assistant1": { + "total": 7, + "endTotal": 7, + "baselineTotal": 5, + "baselineDate": "2026-11-18", + "netChange": 2, + "netChangeReason": null, + "recordedDays": 1 + }, + "assistant2": { + "total": 4, + "endTotal": 4, + "baselineTotal": 3, + "baselineDate": "2026-11-18", + "netChange": 1, + "netChangeReason": null, + "recordedDays": 1 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-19", + "date": "2026-11-19", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 600, + "total": 600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 16200, + "refund": 0, + "net": 16200, + "materialOutlay": 9000, + "goodsOutlay": 12000, + "feeOutlay": 600, + "ownerOutlay": 600, + "assistantOutlay": 12000, + "assistant2Outlay": 0, + "totalOutlay": 12600, + "eventCount": 6, + "lockCount": 1 + } + }, + "outlayGoods": 1537130, + "outlayExpense": 1400, + "outlayTotal": 1538530, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-19", + "date": "2026-11-19", + "receipt": 1059792, + "refund": 90000, + "net": 969792, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1043592, + "refund": 0, + "net": 1043592 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 16200, + "refund": 90000, + "net": -73800 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 610800, + "refund": 0, + "net": 610800 + }, + { + "account": "助理支付宝", + "receipt": 16200, + "refund": 0, + "net": 16200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 432792, + "refund": 0, + "net": 432792 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 90000, + "net": -90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 8 + }, + "totalCost": 1057428, + "recipientReceipts": { + "assistant": { + "recipient": "assistant", + "name": "娜娜", + "receipt": 627000, + "refund": 0, + "net": 627000, + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + } + ] + }, + "owner": { + "recipient": "owner", + "name": "麦麦", + "receipt": 0, + "refund": 0, + "net": 0, + "items": [] + }, + "assistant2": { + "recipient": "assistant2", + "name": "小昊", + "receipt": 432792, + "refund": 90000, + "net": 342792, + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipReceipts": { + "owner": { + "member": "owner", + "name": "麦麦", + "receipt": 0, + "refund": 0, + "net": 0, + "accounts": [], + "items": [] + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "receipt": 417000, + "refund": 0, + "net": 417000, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 400800, + "refund": 0, + "net": 400800, + "entryCount": 5 + }, + { + "account": "助理支付宝", + "recipient": "assistant", + "channel": "alipay", + "receipt": 16200, + "refund": 0, + "net": 16200, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119012", + "customer": "对照换货客户二", + "reference": "置换差额实际收款 · HS202611190002", + "note": "", + "created": "2026-11-19T02:01:33.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:57.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119014", + "customer": "当天取消客户", + "reference": "更正冲回:取消审批作废;当天录错", + "note": "", + "created": "2026-11-19T02:01:59.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119015", + "customer": "滚动料池客户", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:40.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119016", + "customer": "安全测试", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:02:51.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "order_id": "", + "price_lock_id": "", + "order_date": "2026-11-19", + "number": "SJ20261118-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "reference": "", + "note": "锁价备注", + "created": "2026-11-19T02:01:28.000Z" + } + ] + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "receipt": 642792, + "refund": 90000, + "net": 552792, + "accounts": [ + { + "account": "助理微信", + "recipient": "assistant", + "channel": "wechat", + "receipt": 210000, + "refund": 0, + "net": 210000, + "entryCount": 1 + }, + { + "account": "助理2微信", + "recipient": "assistant2", + "channel": "wechat", + "receipt": 432792, + "refund": 0, + "net": 432792, + "entryCount": 1 + }, + { + "account": "助理2支付宝", + "recipient": "assistant2", + "channel": "alipay", + "receipt": 0, + "refund": 90000, + "net": -90000, + "entryCount": 1 + } + ], + "items": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119013", + "customer": "当天客户(改)", + "reference": "开单时已全额收款", + "note": "", + "created": "2026-11-19T02:01:48.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-19", + "number": "MM20261119-", + "paper_number": "20261119011", + "customer": "对照换货客户", + "reference": "置换差额实际收款 · HS202611190001", + "note": "", + "created": "2026-11-19T02:01:32.000Z" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "order_id": "", + "price_lock_id": null, + "order_date": "2026-11-18", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "reference": "整单售后退款", + "note": "", + "created": "2026-11-19T02:01:05.000Z", + "order_after_sale": true + } + ] + } + }, + "ownershipBusiness": { + "owner": { + "member": "owner", + "name": "麦麦", + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "recordCount": 0, + "orderCount": 0, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 0, + "netReceipts": 0, + "totalCost": 0, + "knownTotalCost": 0, + "selfCost": 0, + "knownSelfCost": 0, + "otherCost": 0, + "knownOtherCost": 0, + "profit": 0, + "knownProfit": 0, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 0, + "amount": 0 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [] + }, + "difference": { + "amount": 0, + "reconciled": true, + "reasons": [] + }, + "equation": { + "basis": "netReceipts", + "revenue": 0, + "totalCost": 0, + "profit": 0, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-19", + "date": "2026-11-19", + "dueOut": 0, + "dueIn": 637681, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 637681, + "openingDue": -647081, + "periodNew": -600, + "periodTransferred": -10000, + "closingDue": -637681, + "offset": 290650, + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + } + ] + }, + "hasActivity": true + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "recordCount": 5, + "orderCount": 5, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 687000, + "netReceipts": 417000, + "totalCost": 597908, + "knownTotalCost": 597908, + "selfCost": 342308, + "knownSelfCost": 342308, + "otherCost": 255600, + "knownOtherCost": 255600, + "profit": 89092, + "knownProfit": 89092, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 255600, + "knownTotalCost": 255600, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 342308, + "knownTotalCost": 342308, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 2000, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 181898, + "knownAmount": 181898 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [ + { + "mg": 2000, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 181898, + "knownAmount": 181898 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "poolId": "2026-11-19", + "date": "2026-11-19", + "averageRate": 90949, + "sources": [ + { + "kind": "public", + "member": null, + "priceLocked": false, + "mg": 2000, + "averageRate": 90949, + "amount": 181898, + "knownAmount": 181898, + "missingCount": 0 + } + ] + } + ], + "otherCosts": { + "knownAmount": 416010, + "amount": 416010 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "items": [ + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "component": "material", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 255000, + "estimatedAmount": null, + "status": "recorded" + }, + { + "date": "2026-11-19", + "kind": "order", + "id": "", + "number": "MM20261119-", + "paperNumber": "20261119010", + "customer": "对照锁价客户(改)", + "name": "实际快递", + "source": "2026-11-19", + "component": "fee", + "poolId": null, + "poolMaterial": false, + "allocationPending": false, + "amount": 600, + "estimatedAmount": null, + "status": "recorded" + } + ], + "knownAmount": 255600, + "amount": 255600, + "missingCount": 0, + "pendingCount": 0, + "poolAmount": 0, + "knownPoolAmount": 0, + "otherAmount": 255600, + "knownOtherAmount": 255600 + } + ] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "recordCount": 5, + "knownMaterialCost": 255000, + "knownOtherCost": 600, + "knownProfit": 89092, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 255000, + "otherCost": 600, + "profit": 89092, + "knownAmount": 344692, + "amount": 344692 + } + ] + }, + "difference": { + "amount": -270000, + "reconciled": false, + "reasons": [ + { + "code": "price_lock_timing", + "text": "锁价定金、尾款与退款按实际发生日核对,销售与利润按成交单日期核算。" + }, + { + "code": "refund_or_cancellation", + "text": "退货或作废已按原账冲回销售;尚未退清的客户款或不同日期的退款不作为销售利润。" + } + ] + }, + "equation": { + "basis": "sales", + "revenue": 687000, + "totalCost": 597908, + "profit": 89092, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-19", + "date": "2026-11-19", + "dueOut": 678881, + "dueIn": 0, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 637681, + "dueIn": 0, + "openingDue": 647081, + "periodNew": 600, + "periodTransferred": 10000, + "closingDue": 637681, + "offset": 290650, + "period": { + "obligationNet": 600, + "transferred": 10000, + "receivedForNet": 0, + "advancedNet": 600 + } + }, + { + "member": "assistant2", + "name": "小昊", + "dueOut": 41200, + "dueIn": 0, + "openingDue": 12000, + "periodNew": 29200, + "periodTransferred": 0, + "closingDue": 41200, + "offset": 250800, + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + } + } + ] + }, + "hasActivity": true + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "netReceipts": 552792, + "totalCost": 459520, + "knownTotalCost": 459520, + "selfCost": 278720, + "knownSelfCost": 278720, + "otherCost": 180800, + "knownOtherCost": 180800, + "profit": 93272, + "knownProfit": 93272, + "incomplete": false, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "costByPayer": { + "owner": { + "member": "owner", + "name": "麦麦", + "totalCost": 0, + "knownTotalCost": 0, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant": { + "member": "assistant", + "name": "娜娜", + "totalCost": 180800, + "knownTotalCost": 180800, + "missingCount": 0, + "pendingCount": 0 + }, + "assistant2": { + "member": "assistant2", + "name": "小昊", + "totalCost": 278720, + "knownTotalCost": 278720, + "missingCount": 0, + "pendingCount": 0 + } + }, + "poolMaterial": { + "mg": 0, + "amount": 0, + "knownAmount": 0, + "missingCount": 0, + "byPayer": { + "owner": { + "amount": 0, + "knownAmount": 0 + }, + "assistant": { + "amount": 0, + "knownAmount": 0 + }, + "assistant2": { + "amount": 0, + "knownAmount": 0 + } + }, + "hasPriceLocks": false, + "days": [], + "otherCosts": { + "knownAmount": 459520, + "amount": 459520 + } + }, + "ownerAdvances": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [] + }, + "currentAccount": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "days": [ + { + "date": "2026-11-19", + "recordCount": 3, + "knownMaterialCost": 0, + "knownOtherCost": 0, + "knownProfit": 93272, + "ownerNetReceipts": 0, + "missingCostCount": 0, + "pendingCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "materialCost": 0, + "otherCost": 0, + "profit": 93272, + "knownAmount": 93272, + "amount": 93272 + } + ] + }, + "difference": { + "amount": 0, + "reconciled": true, + "reasons": [] + }, + "equation": { + "basis": "netReceipts", + "revenue": 552792, + "totalCost": 459520, + "profit": 93272, + "complete": true + }, + "settlement": { + "available": true, + "basis": "cumulative-through-date", + "from": "2026-11-19", + "date": "2026-11-19", + "dueOut": 0, + "dueIn": 41200, + "partial": false, + "pendingCount": 0, + "legacyCount": 0, + "notice": "截至所选日的累计往来,已抵扣实际转账与代收;逐人核对,不将他人付款成本直接当作应转。", + "counterparts": [ + { + "member": "owner", + "name": "麦麦", + "dueOut": 0, + "dueIn": 0, + "openingDue": 0, + "periodNew": 0, + "periodTransferred": 0, + "closingDue": 0, + "offset": 0, + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + } + }, + { + "member": "assistant", + "name": "娜娜", + "dueOut": 0, + "dueIn": 41200, + "openingDue": -12000, + "periodNew": -29200, + "periodTransferred": 0, + "closingDue": -41200, + "offset": 250800, + "period": { + "obligationNet": -29200, + "transferred": 0, + "receivedForNet": -210000, + "advancedNet": 180800 + } + } + ] + }, + "hasActivity": true + } + }, + "dailyProfits": { + "basis": "orderDate", + "from": "2026-11-19", + "date": "2026-11-19", + "rows": [ + { + "recordCount": 5, + "orderCount": 5, + "afterSaleCount": 0, + "draftCount": 0, + "sales": 687000, + "knownTotalCost": 597908, + "knownProfit": 89092, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant", + "name": "娜娜", + "totalCost": 597908, + "profit": 89092 + }, + { + "recordCount": 3, + "orderCount": 2, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 552792, + "knownTotalCost": 459520, + "knownProfit": 93272, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "date": "2026-11-19", + "member": "assistant2", + "name": "小昊", + "totalCost": 459520, + "profit": 93272 + } + ], + "summary": { + "recordCount": 8, + "orderCount": 7, + "afterSaleCount": 1, + "draftCount": 0, + "sales": 1239792, + "knownTotalCost": 1057428, + "knownProfit": 182364, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "incomplete": false, + "totalCost": 1057428, + "profit": 182364 + } + }, + "dailyFunds": { + "date": "2026-11-19", + "from": "2026-11-19", + "team": { + "from": "2026-11-19", + "to": "2026-11-19", + "date": "2026-11-19", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 0, + "refunds": 0, + "outlays": 600, + "transferIn": 10000, + "transferOut": 0, + "openingChange": -2341031, + "periodChange": 9400, + "cumulativeChange": -2331631, + "cashBalance": 9400, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 627000, + "refunds": 0, + "outlays": 802210, + "transferIn": 0, + "transferOut": 10000, + "openingChange": 44600, + "periodChange": -185210, + "cumulativeChange": -140610, + "cashBalance": -185210, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 432792, + "refunds": 90000, + "outlays": 736720, + "transferIn": 0, + "transferOut": 0, + "openingChange": -123837, + "periodChange": -393928, + "cumulativeChange": -517765, + "cashBalance": -393928, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": -600, + "transferred": -10000, + "receivedForNet": 0, + "advancedNet": -600 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + } + ] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 29200, + "transferred": 0, + "receivedForNet": 210000, + "advancedNet": -180800 + }, + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ] + } + ], + "entries": [ + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant", + "toMember": "owner", + "amount": 600, + "revision": 1, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "receipt", + "project": "客户款代收", + "fromMember": "assistant", + "toMember": "assistant2", + "amount": 210000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "订单实际费用", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 800, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + }, + { + "id": "", + "date": "2026-11-19", + "kind": "advance", + "project": "商品实际垫付", + "fromMember": "assistant2", + "toMember": "assistant", + "amount": 180000, + "revision": 3, + "sourceKind": "order", + "sourceId": "" + } + ], + "transfers": [ + { + "id": "", + "date": "2026-11-19", + "fromMember": "assistant", + "toMember": "owner", + "amount": 10000, + "note": "对照转账二", + "actor": "麦麦" + } + ], + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "91d8e840360bd6750d7d9078c202052d4754bf75b4d2400dcc33adc06ef7598e", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + }, + "reportRevision": "fa73de27deceb492d63cf1d58c3eba7bf0d1089f22a851135fe95a461efa7504" + } + }, + { + "seq": 487, + "label": null, + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/backup", + "key": "golden-00193-backup", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "name": "" + } + }, + { + "seq": 488, + "label": "backup-download", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/backup/", + "key": null, + "status": 200, + "contentType": "application/octet-stream", + "disposition": "attachment; filename=\"\"", + "setCookie": null, + "body": { + "omitted": true, + "bytes": true + } + }, + { + "seq": 489, + "label": "backup-download-denied", + "date": "2026-11-19", + "actor": "assistant", + "method": "GET", + "path": "/api/backup/", + "key": null, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "omitted": true, + "bytes": true + } + }, + { + "seq": 490, + "label": "backup-invalid-name", + "date": "2026-11-19", + "actor": "owner", + "method": "GET", + "path": "/api/backup/not-a-backup", + "key": null, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "备份名称无效" + } + }, + { + "seq": 491, + "label": "sync-disabled", + "date": "2026-11-19", + "actor": "owner", + "method": "POST", + "path": "/api/sync", + "key": "golden-00194-sync-disabled", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "enabled": false, + "busy": false, + "error": null, + "pending": 17, + "failed": 0 + } + }, + { + "seq": 492, + "note": "section", + "name": "dayThreeLogin" + }, + { + "seq": 493, + "note": "clock", + "date": "2026-11-20", + "hour": 10 + }, + { + "seq": 494, + "label": "login-owner", + "date": "2026-11-20", + "actor": "owner", + "method": "POST", + "path": "/api/login", + "key": "golden-00195-login-owner", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "麦麦", + "password": "golden-owner-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + } + } + }, + { + "seq": 495, + "label": "login-assistant", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/login", + "key": "golden-00196-login-assistant", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "助理1", + "password": "golden-assistant-new-pass" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理", + "role": "assistant", + "member": "assistant", + "operatorName": "娜娜", + "label": "娜娜" + } + } + }, + { + "seq": 496, + "label": "login-assistant2", + "date": "2026-11-20", + "actor": "assistant2", + "method": "POST", + "path": "/api/login", + "key": "golden-00197-login-assistant2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "助理2", + "password": "golden-assistant2-new-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "助理2", + "role": "assistant", + "member": "assistant2", + "operatorName": "小昊", + "label": "小昊" + } + } + }, + { + "seq": 497, + "note": "section", + "name": "recoveryChanges" + }, + { + "seq": 498, + "label": "recovery-edit-context", + "date": "2026-11-20", + "actor": "assistant2", + "method": "GET", + "path": "/api/recoveries//edit", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 1, + "status": "active", + "record": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190001", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:32.000Z", + "actor": "助理2", + "revision": 1, + "paper_number": "20261119011", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + "inputs": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.000", + "melted_weight": "8.000", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "permissions": { + "canEdit": true, + "canCancel": true, + "canDirect": false, + "requiresApproval": true, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "reason": "" + }, + "blockedUsages": [], + "pending": null, + "history": [] + } + }, + { + "seq": 499, + "label": "recovery-edit-quote", + "date": "2026-11-20", + "actor": "assistant2", + "method": "POST", + "path": "/api/recoveries//quote", + "key": null, + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.2", + "melted_weight": "8.1", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + }, + "revision": 1, + "reason": "跨天更正旧料克重" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8200, + "meltedMg": 8100, + "purity": 99.9, + "foldedMg": 8092 + } + ], + "oldMg": 8092, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 8092, + "differenceMg": 3908, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 390800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 422792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 351720, + "laborCost": 6000, + "goodsCost": 357720, + "directCost": 0, + "profit": 65072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 3908 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 422792, + "cashReceipt": 422792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ] + } + }, + { + "seq": 500, + "label": "recovery-update-request", + "date": "2026-11-20", + "actor": "assistant2", + "method": "POST", + "path": "/api/recoveries//update", + "key": "golden-00198-recovery-update-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.2", + "melted_weight": "8.1", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + }, + "revision": 1, + "reason": "跨天更正旧料克重" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "applied": false, + "pending": true, + "requestId": "", + "request": { + "id": "", + "recoveryId": "", + "revision": 1, + "recoveryRevision": 1, + "action": "update", + "status": "pending", + "reason": "跨天更正旧料克重", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.000", + "melted_weight": "8.000", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.200", + "melted_weight": "8.100", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 7992, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072 + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 8092, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 422792, + "cashReceipt": 422792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 357720, + "directCost": 0, + "profit": 65072 + }, + "affectedDates": [ + "2026-11-19" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理2", + "requesterMember": "assistant2", + "member": "assistant2", + "created": "2026-11-20T02:00:06.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "canApprove": false + }, + "recovery": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 8000, + "meltedMg": 8000, + "purity": 99.9, + "foldedMg": 7992 + } + ], + "oldMg": 7992, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 12000, + "matchedMg": 7992, + "differenceMg": 4008, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 7992, + "goldAmount": 400800, + "laborAmount": 24000, + "depreciationAmount": 7992, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 432792, + "payer": "assistant2", + "payment_account": "助理2微信", + "materialCost": 360720, + "laborCost": 6000, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072, + "newProduct": { + "name": "足金对照新货", + "quantity": 12000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 4008 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190001", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:32.000Z", + "actor": "助理2", + "revision": 1, + "paper_number": "20261119011", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": false, + "canCancel": false, + "pendingRequestId": "", + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + } + }, + { + "seq": 501, + "label": "recovery-changes-list", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/recovery-changes", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "recoveryId": "", + "revision": 1, + "recoveryRevision": 1, + "action": "update", + "status": "pending", + "reason": "跨天更正旧料克重", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.000", + "melted_weight": "8.000", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.200", + "melted_weight": "8.100", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 7992, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072 + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 8092, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 422792, + "cashReceipt": 422792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 357720, + "directCost": 0, + "profit": 65072 + }, + "affectedDates": [ + "2026-11-19" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理2", + "requesterMember": "assistant2", + "member": "assistant2", + "created": "2026-11-20T02:00:06.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "canApprove": true + } + ], + "counts": { + "pending": 1, + "approved": 0, + "rejected": 0 + } + } + }, + { + "seq": 502, + "label": "recovery-change-detail", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/recovery-changes/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "recoveryId": "", + "revision": 1, + "recoveryRevision": 1, + "action": "update", + "status": "pending", + "reason": "跨天更正旧料克重", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.000", + "melted_weight": "8.000", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.200", + "melted_weight": "8.100", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 7992, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072 + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 8092, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 422792, + "cashReceipt": 422792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 357720, + "directCost": 0, + "profit": 65072 + }, + "affectedDates": [ + "2026-11-19" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理2", + "requesterMember": "assistant2", + "member": "assistant2", + "created": "2026-11-20T02:00:06.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "canApprove": true + } + }, + { + "seq": 503, + "label": "recovery-change-self-approve", + "date": "2026-11-20", + "actor": "assistant2", + "method": "POST", + "path": "/api/recovery-changes//approve", + "key": "golden-00199-recovery-change-self-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "verified": true, + "note": "自批" + } + }, + "status": 403, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "回收更正申请由麦麦审批" + } + }, + { + "seq": 504, + "label": "recovery-change-approve", + "date": "2026-11-20", + "actor": "owner", + "method": "POST", + "path": "/api/recovery-changes//approve", + "key": "golden-00200-recovery-change-approve", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "verified": true, + "note": "核实" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "recoveryId": "", + "revision": 2, + "recoveryRevision": 1, + "action": "update", + "status": "approved", + "reason": "跨天更正旧料克重", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.000", + "melted_weight": "8.000", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.200", + "melted_weight": "8.100", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 7992, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072 + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 8092, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 422792, + "cashReceipt": 422792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 357720, + "directCost": 0, + "profit": 65072 + }, + "affectedDates": [ + "2026-11-19" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理2", + "requesterMember": "assistant2", + "member": "assistant2", + "created": "2026-11-20T02:00:06.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-20T02:00:10.000Z", + "note": "核实", + "stale": false, + "canApprove": false + } + }, + { + "seq": 505, + "label": "recovery-edit-context-2", + "date": "2026-11-20", + "actor": "assistant", + "method": "GET", + "path": "/api/recoveries//edit", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 1, + "status": "active", + "record": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 5000, + "meltedMg": 4900, + "purity": 99, + "foldedMg": 4851 + } + ], + "oldMg": 4851, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 6000, + "matchedMg": 4851, + "differenceMg": 1149, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 4851, + "goldAmount": 114900, + "laborAmount": 12000, + "depreciationAmount": 4851, + "charges": [], + "chargesAmount": 0, + "discount": 1000, + "rounding_mode": "yuan", + "rounding_adjustment": 49, + "receivable": 130800, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 103410, + "laborCost": 3000, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390, + "newProduct": { + "name": "足金对照新货", + "quantity": 6000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190002", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:33.000Z", + "actor": "助理", + "revision": 1, + "paper_number": "20261119012", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + "inputs": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "5.000", + "melted_weight": "4.900", + "purity": "99" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "6.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "4.851", + "depreciation_rate": "10.00", + "charges": [], + "discount": "10.00", + "rounding_mode": "yuan", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant", + "cost_material_payer": "assistant", + "cost_labor_payer": "assistant", + "fee_items": [] + } + }, + "permissions": { + "canEdit": true, + "canCancel": true, + "canDirect": false, + "requiresApproval": true, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "reason": "" + }, + "blockedUsages": [], + "pending": null, + "history": [] + } + }, + { + "seq": 506, + "label": "recovery-cancel-request", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/recoveries//cancel", + "key": "golden-00201-recovery-cancel-request", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "reason": "客户反悔", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "applied": false, + "pending": true, + "requestId": "", + "request": { + "id": "", + "recoveryId": "", + "revision": 1, + "recoveryRevision": 1, + "action": "cancel", + "status": "pending", + "reason": "客户反悔", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "5.000", + "melted_weight": "4.900", + "purity": "99" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "6.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "4.851", + "depreciation_rate": "10.00", + "charges": [], + "discount": "10.00", + "rounding_mode": "yuan", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant", + "cost_material_payer": "assistant", + "cost_labor_payer": "assistant", + "fee_items": [] + } + }, + "after": null, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 4851, + "newMg": 6000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390 + }, + "after": null, + "affectedDates": [ + "2026-11-19", + "2026-11-20" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理", + "requesterMember": "assistant", + "member": "assistant", + "created": "2026-11-20T02:00:12.000Z", + "reviewerName": null, + "reviewed": null, + "note": "", + "stale": false, + "canApprove": false + }, + "recovery": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 5000, + "meltedMg": 4900, + "purity": 99, + "foldedMg": 4851 + } + ], + "oldMg": 4851, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 6000, + "matchedMg": 4851, + "differenceMg": 1149, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 4851, + "goldAmount": 114900, + "laborAmount": 12000, + "depreciationAmount": 4851, + "charges": [], + "chargesAmount": 0, + "discount": 1000, + "rounding_mode": "yuan", + "rounding_adjustment": 49, + "receivable": 130800, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 103410, + "laborCost": 3000, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390, + "newProduct": { + "name": "足金对照新货", + "quantity": 6000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190002", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:33.000Z", + "actor": "助理", + "revision": 1, + "paper_number": "20261119012", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": false, + "canCancel": false, + "pendingRequestId": "", + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + } + }, + { + "seq": 507, + "label": "recovery-change-reject", + "date": "2026-11-20", + "actor": "owner", + "method": "POST", + "path": "/api/recovery-changes//reject", + "key": "golden-00202-recovery-change-reject", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "note": "需核实" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "recoveryId": "", + "revision": 2, + "recoveryRevision": 1, + "action": "cancel", + "status": "rejected", + "reason": "客户反悔", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "5.000", + "melted_weight": "4.900", + "purity": "99" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "6.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "4.851", + "depreciation_rate": "10.00", + "charges": [], + "discount": "10.00", + "rounding_mode": "yuan", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant", + "cost_material_payer": "assistant", + "cost_labor_payer": "assistant", + "fee_items": [] + } + }, + "after": null, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 4851, + "newMg": 6000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390 + }, + "after": null, + "affectedDates": [ + "2026-11-19", + "2026-11-20" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理", + "requesterMember": "assistant", + "member": "assistant", + "created": "2026-11-20T02:00:12.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-20T02:00:13.000Z", + "note": "需核实", + "stale": false, + "canApprove": false + } + }, + { + "seq": 508, + "label": "recovery-owner-edit-context", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/recoveries//edit", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 1, + "status": "active", + "record": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 5000, + "meltedMg": 4900, + "purity": 99, + "foldedMg": 4851 + } + ], + "oldMg": 4851, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 6000, + "matchedMg": 4851, + "differenceMg": 1149, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 4851, + "goldAmount": 114900, + "laborAmount": 12000, + "depreciationAmount": 4851, + "charges": [], + "chargesAmount": 0, + "discount": 1000, + "rounding_mode": "yuan", + "rounding_adjustment": 49, + "receivable": 130800, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 103410, + "laborCost": 3000, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390, + "newProduct": { + "name": "足金对照新货", + "quantity": 6000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190002", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:33.000Z", + "actor": "助理", + "revision": 1, + "paper_number": "20261119012", + "materialCostPending": false, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + "inputs": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "5.000", + "melted_weight": "4.900", + "purity": "99" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "6.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "4.851", + "depreciation_rate": "10.00", + "charges": [], + "discount": "10.00", + "rounding_mode": "yuan", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant", + "cost_material_payer": "assistant", + "cost_labor_payer": "assistant", + "fee_items": [] + } + }, + "permissions": { + "canEdit": true, + "canCancel": true, + "canDirect": true, + "requiresApproval": false, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "reason": "" + }, + "blockedUsages": [], + "pending": null, + "history": [ + { + "id": "", + "recoveryId": "", + "revision": 2, + "recoveryRevision": 1, + "action": "cancel", + "status": "rejected", + "reason": "客户反悔", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "5.000", + "melted_weight": "4.900", + "purity": "99" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "6.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "4.851", + "depreciation_rate": "10.00", + "charges": [], + "discount": "10.00", + "rounding_mode": "yuan", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant", + "cost_material_payer": "assistant", + "cost_labor_payer": "assistant", + "fee_items": [] + } + }, + "after": null, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 4851, + "newMg": 6000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390 + }, + "after": null, + "affectedDates": [ + "2026-11-19", + "2026-11-20" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理", + "requesterMember": "assistant", + "member": "assistant", + "created": "2026-11-20T02:00:12.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-20T02:00:13.000Z", + "note": "需核实", + "stale": false, + "canApprove": false + } + ] + } + }, + { + "seq": 509, + "label": "recovery-cancel-owner", + "date": "2026-11-20", + "actor": "owner", + "method": "POST", + "path": "/api/recoveries//cancel", + "key": "golden-00203-recovery-cancel-owner", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "reason": "录错", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "applied": true, + "pending": false, + "requestId": "", + "request": { + "id": "", + "recoveryId": "", + "revision": 1, + "recoveryRevision": 1, + "action": "cancel", + "status": "approved", + "reason": "录错", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "5.000", + "melted_weight": "4.900", + "purity": "99" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "6.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "4.851", + "depreciation_rate": "10.00", + "charges": [], + "discount": "10.00", + "rounding_mode": "yuan", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant", + "cost_material_payer": "assistant", + "cost_labor_payer": "assistant", + "fee_items": [] + } + }, + "after": null, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 4851, + "newMg": 6000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390 + }, + "after": null, + "affectedDates": [ + "2026-11-19", + "2026-11-20" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "麦麦", + "requesterMember": "owner", + "member": "assistant", + "created": "2026-11-20T02:00:15.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-20T02:00:15.000Z", + "note": "", + "stale": false, + "canApprove": false + }, + "recovery": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 5000, + "meltedMg": 4900, + "purity": 99, + "foldedMg": 4851 + } + ], + "oldMg": 4851, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 6000, + "matchedMg": 4851, + "differenceMg": 1149, + "surplusMg": 0, + "goldRate": 100000, + "laborRate": 2000, + "laborMode": "gram", + "depreciationRate": 1000, + "depreciationMg": 4851, + "goldAmount": 114900, + "laborAmount": 12000, + "depreciationAmount": 4851, + "charges": [], + "chargesAmount": 0, + "discount": 1000, + "rounding_mode": "yuan", + "rounding_adjustment": 49, + "receivable": 130800, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 103410, + "laborCost": 3000, + "goodsCost": 106410, + "directCost": 0, + "profit": 0, + "newProduct": { + "name": "足金对照新货", + "quantity": 6000, + "pocket": "现货" + }, + "exchange": { + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "costPayer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "fee_items": [] + }, + "purchaseMg": 0, + "buyRate": 0, + "calculatedPurchaseAmount": 0, + "purchaseAmount": 0, + "actualBuyRate": null, + "offsetAmount": 0, + "netSettlement": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611190002", + "order_id": "", + "purchase_id": null, + "created": "2026-11-19T02:01:33.000Z", + "actor": "助理", + "revision": 2, + "paper_number": "20261119012", + "materialCostPending": false, + "status": "cancelled", + "cancelledAt": "2026-11-20T02:00:15.000Z", + "canEdit": false, + "canCancel": false, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + } + }, + { + "seq": 510, + "label": "recoveries-all", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/recoveries?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-20", + "date": "2026-11-20", + "rows": [], + "summary": { + "count": 0, + "cancelledCount": 0, + "directCount": 0, + "exchangeCount": 0, + "oldMg": 0, + "newMg": 0, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 0, + "offsetAmount": 0, + "cashReceipt": 0, + "cashPayment": 0 + } + } + }, + { + "seq": 511, + "label": "recovery-changes-all", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/recovery-changes?status=all", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "requests": [ + { + "id": "", + "recoveryId": "", + "revision": 1, + "recoveryRevision": 1, + "action": "cancel", + "status": "approved", + "reason": "录错", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "5.000", + "melted_weight": "4.900", + "purity": "99" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "6.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "4.851", + "depreciation_rate": "10.00", + "charges": [], + "discount": "10.00", + "rounding_mode": "yuan", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant", + "cost_material_payer": "assistant", + "cost_labor_payer": "assistant", + "fee_items": [] + } + }, + "after": null, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 4851, + "newMg": 6000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390 + }, + "after": null, + "affectedDates": [ + "2026-11-19", + "2026-11-20" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "麦麦", + "requesterMember": "owner", + "member": "assistant", + "created": "2026-11-20T02:00:15.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-20T02:00:15.000Z", + "note": "", + "stale": false, + "canApprove": false + }, + { + "id": "", + "recoveryId": "", + "revision": 2, + "recoveryRevision": 1, + "action": "cancel", + "status": "rejected", + "reason": "客户反悔", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户二", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "5.000", + "melted_weight": "4.900", + "purity": "99" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "6.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "4.851", + "depreciation_rate": "10.00", + "charges": [], + "discount": "10.00", + "rounding_mode": "yuan", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant", + "cost_material_payer": "assistant", + "cost_labor_payer": "assistant", + "fee_items": [] + } + }, + "after": null, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 4851, + "newMg": 6000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 130800, + "cashReceipt": 130800, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 106410, + "directCost": 0, + "profit": 24390 + }, + "after": null, + "affectedDates": [ + "2026-11-19", + "2026-11-20" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理", + "requesterMember": "assistant", + "member": "assistant", + "created": "2026-11-20T02:00:12.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-20T02:00:13.000Z", + "note": "需核实", + "stale": false, + "canApprove": false + }, + { + "id": "", + "recoveryId": "", + "revision": 2, + "recoveryRevision": 1, + "action": "update", + "status": "approved", + "reason": "跨天更正旧料克重", + "before": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.000", + "melted_weight": "8.000", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "customer": "对照换货客户", + "customer_type": "unknown", + "salesperson": "小昊", + "member": "assistant2", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "8.200", + "melted_weight": "8.100", + "purity": "99.9" + } + ], + "buy_rate": "0.00", + "buy_total": "0.00", + "payer": "assistant2", + "payment_account": "助理2微信", + "verified": true, + "exchange": { + "name": "足金对照新货", + "quantity": "12.000", + "pocket": "现货", + "gold_price": "1000.00", + "labor_rate": "20.00", + "labor_mode": "gram", + "depreciation_weight": "7.992", + "depreciation_rate": "10.00", + "charges": [], + "discount": "0.00", + "rounding_mode": "cent", + "cost_material": { + "mode": "gram", + "rate": "900.00" + }, + "cost_labor": { + "mode": "gram", + "rate": "5.00" + }, + "cost_payer": "assistant2", + "cost_material_payer": "assistant2", + "cost_labor_payer": "assistant2", + "fee_items": [] + } + }, + "summary": { + "before": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 7992, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 432792, + "cashReceipt": 432792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 366720, + "directCost": 0, + "profit": 66072 + }, + "after": { + "mode": "exchange", + "date": "2026-11-19", + "oldMg": 8092, + "newMg": 12000, + "purchaseMg": 0, + "purchaseAmount": 0, + "receivable": 422792, + "cashReceipt": 422792, + "cashPayment": 0, + "offsetAmount": 0, + "goodsCost": 357720, + "directCost": 0, + "profit": 65072 + }, + "affectedDates": [ + "2026-11-19" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理2", + "requesterMember": "assistant2", + "member": "assistant2", + "created": "2026-11-20T02:00:06.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-20T02:00:10.000Z", + "note": "核实", + "stale": false, + "canApprove": false + } + ], + "counts": { + "pending": 0, + "approved": 2, + "rejected": 1 + } + } + }, + { + "seq": 512, + "note": "section", + "name": "directRecoveriesD3" + }, + { + "seq": 513, + "label": "recovery-quote", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/recoveries/quote", + "key": null, + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "salesperson": "娜娜", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "10", + "melted_weight": "10", + "purity": "100" + } + ], + "buy_rate": "900", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 10000, + "meltedMg": 10000, + "purity": 100, + "foldedMg": 10000 + } + ], + "oldMg": 10000, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 0, + "matchedMg": 0, + "differenceMg": 0, + "surplusMg": 10000, + "goldRate": 0, + "laborRate": 0, + "laborMode": "gram", + "depreciationRate": 0, + "depreciationMg": 0, + "goldAmount": 0, + "laborAmount": 0, + "depreciationAmount": 0, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 0, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 0, + "laborCost": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0, + "purchaseMg": 10000, + "buyRate": 90000, + "calculatedPurchaseAmount": 900000, + "purchaseAmount": 900000, + "actualBuyRate": 90000, + "offsetAmount": 0, + "netSettlement": -900000, + "cashReceipt": 0, + "cashPayment": 900000, + "cardFee": 0, + "paymentMethods": [ + "微信" + ] + } + }, + { + "seq": 514, + "label": "recovery-without-key", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/recoveries", + "key": null, + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "salesperson": "娜娜", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "10", + "melted_weight": "10", + "purity": "100" + } + ], + "buy_rate": "900", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "缺少有效操作号,请刷新后重试" + } + }, + { + "seq": 515, + "label": "recovery-direct", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/recoveries", + "key": "golden-00204-recovery-direct", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "salesperson": "娜娜", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "10", + "melted_weight": "10", + "purity": "100" + } + ], + "buy_rate": "900", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 10000, + "meltedMg": 10000, + "purity": 100, + "foldedMg": 10000 + } + ], + "oldMg": 10000, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 0, + "matchedMg": 0, + "differenceMg": 0, + "surplusMg": 10000, + "goldRate": 0, + "laborRate": 0, + "laborMode": "gram", + "depreciationRate": 0, + "depreciationMg": 0, + "goldAmount": 0, + "laborAmount": 0, + "depreciationAmount": 0, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 0, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 0, + "laborCost": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0, + "purchaseMg": 10000, + "buyRate": 90000, + "calculatedPurchaseAmount": 900000, + "purchaseAmount": 900000, + "actualBuyRate": 90000, + "offsetAmount": 0, + "netSettlement": -900000, + "cashReceipt": 0, + "cashPayment": 900000, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611200003", + "order_id": null, + "purchase_id": "", + "created": "2026-11-20T02:00:20.000Z", + "actor": "助理", + "revision": 1, + "materialBatch": { + "purchaseId": "", + "recoveryId": "", + "member": "assistant", + "mg": 10000, + "usedMg": 0, + "remainingMg": 10000, + "usages": [] + }, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + }, + { + "seq": 516, + "label": "recovery-owner", + "date": "2026-11-20", + "actor": "owner", + "method": "POST", + "path": "/api/recoveries", + "key": "golden-00205-recovery-owner", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "salesperson": "麦麦", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "3", + "melted_weight": "3", + "purity": "100" + } + ], + "buy_rate": "900", + "payer": "owner", + "payment_account": "麦麦现金", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "麦麦", + "member": "owner", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 3000, + "meltedMg": 3000, + "purity": 100, + "foldedMg": 3000 + } + ], + "oldMg": 3000, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 0, + "matchedMg": 0, + "differenceMg": 0, + "surplusMg": 3000, + "goldRate": 0, + "laborRate": 0, + "laborMode": "gram", + "depreciationRate": 0, + "depreciationMg": 0, + "goldAmount": 0, + "laborAmount": 0, + "depreciationAmount": 0, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 0, + "payer": "owner", + "payment_account": "麦麦现金", + "materialCost": 0, + "laborCost": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0, + "purchaseMg": 3000, + "buyRate": 90000, + "calculatedPurchaseAmount": 270000, + "purchaseAmount": 270000, + "actualBuyRate": 90000, + "offsetAmount": 0, + "netSettlement": -270000, + "cashReceipt": 0, + "cashPayment": 270000, + "cardFee": 0, + "paymentMethods": [ + "现金" + ], + "id": "", + "number": "HS202611200004", + "order_id": null, + "purchase_id": "", + "created": "2026-11-20T02:00:21.000Z", + "actor": "麦麦", + "revision": 1, + "materialBatch": { + "purchaseId": "", + "recoveryId": "", + "member": "owner", + "mg": 3000, + "usedMg": 0, + "remainingMg": 3000, + "usages": [] + }, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + }, + { + "seq": 517, + "label": "recovery-direct-detail", + "date": "2026-11-20", + "actor": "assistant", + "method": "GET", + "path": "/api/recoveries/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 10000, + "meltedMg": 10000, + "purity": 100, + "foldedMg": 10000 + } + ], + "oldMg": 10000, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 0, + "matchedMg": 0, + "differenceMg": 0, + "surplusMg": 10000, + "goldRate": 0, + "laborRate": 0, + "laborMode": "gram", + "depreciationRate": 0, + "depreciationMg": 0, + "goldAmount": 0, + "laborAmount": 0, + "depreciationAmount": 0, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 0, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 0, + "laborCost": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0, + "purchaseMg": 10000, + "buyRate": 90000, + "calculatedPurchaseAmount": 900000, + "purchaseAmount": 900000, + "actualBuyRate": 90000, + "offsetAmount": 0, + "netSettlement": -900000, + "cashReceipt": 0, + "cashPayment": 900000, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611200003", + "order_id": null, + "purchase_id": "", + "created": "2026-11-20T02:00:20.000Z", + "actor": "助理", + "revision": 1, + "materialBatch": { + "purchaseId": "", + "recoveryId": "", + "member": "assistant", + "mg": 10000, + "usedMg": 0, + "remainingMg": 10000, + "usages": [] + }, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 518, + "label": "print-recovery", + "date": "2026-11-20", + "actor": "assistant", + "method": "GET", + "path": "/print/recoveries/", + "key": null, + "status": 200, + "contentType": "text/html; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "text": "HS202611200003 · 黄金回收单
","printed":false,"revision":0,"updated":null,"actor":null,"sourceRevision":1,"user":""}\" role=\"status\">未打印固定241×140mm横版;打印窗口也选241×140mm,关闭页眉页脚。正在调整为一页…

黄金对照珠宝

黄金回收单
客户:对照回收客户日期:2026-11-20单号:HS202611200003
开单人:娜娜付款方式:微信

旧料(Au 黄金)

序号旧料名称来料克重(克)熔后克重(克)成色折后克重(克)回收单价
1Au 黄金 · Au旧料10.0010.00100%10.00¥900.00/克
旧料折后合计:10.00 克
回收人民币大写:玖仟元整
最终回收金额:¥9000.00
备注:—
联系电话:联系电话 000-0000
经办人:娜娜 ________________
" + } + }, + { + "seq": 519, + "label": "recovery-direct-edit-context", + "date": "2026-11-20", + "actor": "assistant", + "method": "GET", + "path": "/api/recoveries//edit", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 1, + "status": "active", + "record": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 10000, + "meltedMg": 10000, + "purity": 100, + "foldedMg": 10000 + } + ], + "oldMg": 10000, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 0, + "matchedMg": 0, + "differenceMg": 0, + "surplusMg": 10000, + "goldRate": 0, + "laborRate": 0, + "laborMode": "gram", + "depreciationRate": 0, + "depreciationMg": 0, + "goldAmount": 0, + "laborAmount": 0, + "depreciationAmount": 0, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 0, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 0, + "laborCost": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0, + "purchaseMg": 10000, + "buyRate": 90000, + "calculatedPurchaseAmount": 900000, + "purchaseAmount": 900000, + "actualBuyRate": 90000, + "offsetAmount": 0, + "netSettlement": -900000, + "cashReceipt": 0, + "cashPayment": 900000, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611200003", + "order_id": null, + "purchase_id": "", + "created": "2026-11-20T02:00:20.000Z", + "actor": "助理", + "revision": 1, + "materialBatch": { + "purchaseId": "", + "recoveryId": "", + "member": "assistant", + "mg": 10000, + "usedMg": 0, + "remainingMg": 10000, + "usages": [] + }, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + "inputs": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "10.000", + "melted_weight": "10.000", + "purity": "100" + } + ], + "buy_rate": "900.00", + "buy_total": "9000.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true + }, + "permissions": { + "canEdit": true, + "canCancel": true, + "canDirect": true, + "requiresApproval": false, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "reason": "" + }, + "blockedUsages": [], + "pending": null, + "history": [] + } + }, + { + "seq": 520, + "label": "recovery-update-same-day", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/recoveries//update", + "key": "golden-00206-recovery-update-same-day", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "10.000", + "melted_weight": "10.000", + "purity": "100" + } + ], + "buy_rate": "905", + "buy_total": "9000.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true, + "revision": 1, + "reason": "当天更正" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "applied": true, + "pending": false, + "requestId": "", + "request": { + "id": "", + "recoveryId": "", + "revision": 1, + "recoveryRevision": 1, + "action": "update", + "status": "approved", + "reason": "当天更正", + "before": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "10.000", + "melted_weight": "10.000", + "purity": "100" + } + ], + "buy_rate": "900.00", + "buy_total": "9000.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true + }, + "after": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "10.000", + "melted_weight": "10.000", + "purity": "100" + } + ], + "buy_rate": "905.00", + "buy_total": "9000.00", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true + }, + "summary": { + "before": { + "mode": "direct", + "date": "2026-11-20", + "oldMg": 10000, + "newMg": 0, + "purchaseMg": 10000, + "purchaseAmount": 900000, + "receivable": 0, + "cashReceipt": 0, + "cashPayment": 900000, + "offsetAmount": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0 + }, + "after": { + "mode": "direct", + "date": "2026-11-20", + "oldMg": 10000, + "newMg": 0, + "purchaseMg": 10000, + "purchaseAmount": 900000, + "receivable": 0, + "cashReceipt": 0, + "cashPayment": 900000, + "offsetAmount": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0 + }, + "affectedDates": [ + "2026-11-20" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "助理", + "requesterMember": "assistant", + "member": "assistant", + "created": "2026-11-20T02:00:25.000Z", + "reviewerName": "助理", + "reviewed": "2026-11-20T02:00:25.000Z", + "note": "", + "stale": false, + "canApprove": false + }, + "recovery": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 10000, + "meltedMg": 10000, + "purity": 100, + "foldedMg": 10000 + } + ], + "oldMg": 10000, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 0, + "matchedMg": 0, + "differenceMg": 0, + "surplusMg": 10000, + "goldRate": 0, + "laborRate": 0, + "laborMode": "gram", + "depreciationRate": 0, + "depreciationMg": 0, + "goldAmount": 0, + "laborAmount": 0, + "depreciationAmount": 0, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 0, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 0, + "laborCost": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0, + "purchaseMg": 10000, + "buyRate": 90500, + "calculatedPurchaseAmount": 905000, + "purchaseAmount": 900000, + "actualBuyRate": 90000, + "offsetAmount": 0, + "netSettlement": -900000, + "cashReceipt": 0, + "cashPayment": 900000, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611200003", + "order_id": null, + "purchase_id": "", + "created": "2026-11-20T02:00:20.000Z", + "actor": "助理", + "revision": 2, + "materialBatch": { + "purchaseId": "", + "recoveryId": "", + "member": "assistant", + "mg": 10000, + "usedMg": 0, + "remainingMg": 10000, + "usages": [] + }, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + } + }, + { + "seq": 521, + "label": "recovery-owner-direct-edit-context", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/recoveries//edit", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "revision": 1, + "status": "active", + "record": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "麦麦", + "member": "owner", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 3000, + "meltedMg": 3000, + "purity": 100, + "foldedMg": 3000 + } + ], + "oldMg": 3000, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 0, + "matchedMg": 0, + "differenceMg": 0, + "surplusMg": 3000, + "goldRate": 0, + "laborRate": 0, + "laborMode": "gram", + "depreciationRate": 0, + "depreciationMg": 0, + "goldAmount": 0, + "laborAmount": 0, + "depreciationAmount": 0, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 0, + "payer": "owner", + "payment_account": "麦麦现金", + "materialCost": 0, + "laborCost": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0, + "purchaseMg": 3000, + "buyRate": 90000, + "calculatedPurchaseAmount": 270000, + "purchaseAmount": 270000, + "actualBuyRate": 90000, + "offsetAmount": 0, + "netSettlement": -270000, + "cashReceipt": 0, + "cashPayment": 270000, + "cardFee": 0, + "paymentMethods": [ + "现金" + ], + "id": "", + "number": "HS202611200004", + "order_id": null, + "purchase_id": "", + "created": "2026-11-20T02:00:21.000Z", + "actor": "麦麦", + "revision": 1, + "materialBatch": { + "purchaseId": "", + "recoveryId": "", + "member": "owner", + "mg": 3000, + "usedMg": 0, + "remainingMg": 3000, + "usages": [] + }, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + "inputs": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "麦麦", + "member": "owner", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "3.000", + "melted_weight": "3.000", + "purity": "100" + } + ], + "buy_rate": "900.00", + "buy_total": "2700.00", + "payer": "owner", + "payment_account": "麦麦现金", + "verified": true + }, + "permissions": { + "canEdit": true, + "canCancel": true, + "canDirect": true, + "requiresApproval": false, + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "reason": "" + }, + "blockedUsages": [], + "pending": null, + "history": [] + } + }, + { + "seq": 522, + "label": "recovery-cancel-owner-direct", + "date": "2026-11-20", + "actor": "owner", + "method": "POST", + "path": "/api/recoveries//cancel", + "key": "golden-00207-recovery-cancel-owner-direct", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "revision": 1, + "reason": "录错", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "applied": true, + "pending": false, + "requestId": "", + "request": { + "id": "", + "recoveryId": "", + "revision": 1, + "recoveryRevision": 1, + "action": "cancel", + "status": "approved", + "reason": "录错", + "before": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "麦麦", + "member": "owner", + "note": "", + "old_pocket": "回收旧料", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "3.000", + "melted_weight": "3.000", + "purity": "100" + } + ], + "buy_rate": "900.00", + "buy_total": "2700.00", + "payer": "owner", + "payment_account": "麦麦现金", + "verified": true + }, + "after": null, + "summary": { + "before": { + "mode": "direct", + "date": "2026-11-20", + "oldMg": 3000, + "newMg": 0, + "purchaseMg": 3000, + "purchaseAmount": 270000, + "receivable": 0, + "cashReceipt": 0, + "cashPayment": 270000, + "offsetAmount": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0 + }, + "after": null, + "affectedDates": [ + "2026-11-20" + ], + "blockedUsages": [], + "requiresLegacyCountVerified": false, + "legacyCountNotice": "", + "legacyCountVerified": false + }, + "requesterName": "麦麦", + "requesterMember": "owner", + "member": "owner", + "created": "2026-11-20T02:00:27.000Z", + "reviewerName": "麦麦", + "reviewed": "2026-11-20T02:00:27.000Z", + "note": "", + "stale": false, + "canApprove": false + }, + "recovery": { + "mode": "direct", + "date": "2026-11-20", + "customer": "对照回收客户", + "customer_type": "unknown", + "salesperson": "麦麦", + "member": "owner", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 3000, + "meltedMg": 3000, + "purity": 100, + "foldedMg": 3000 + } + ], + "oldMg": 3000, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 0, + "matchedMg": 0, + "differenceMg": 0, + "surplusMg": 3000, + "goldRate": 0, + "laborRate": 0, + "laborMode": "gram", + "depreciationRate": 0, + "depreciationMg": 0, + "goldAmount": 0, + "laborAmount": 0, + "depreciationAmount": 0, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 0, + "payer": "owner", + "payment_account": "麦麦现金", + "materialCost": 0, + "laborCost": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0, + "purchaseMg": 3000, + "buyRate": 90000, + "calculatedPurchaseAmount": 270000, + "purchaseAmount": 270000, + "actualBuyRate": 90000, + "offsetAmount": 0, + "netSettlement": -270000, + "cashReceipt": 0, + "cashPayment": 270000, + "cardFee": 0, + "paymentMethods": [ + "现金" + ], + "id": "", + "number": "HS202611200004", + "order_id": null, + "purchase_id": "", + "created": "2026-11-20T02:00:21.000Z", + "actor": "麦麦", + "revision": 2, + "materialBatch": { + "purchaseId": "", + "recoveryId": "", + "member": "owner", + "mg": 3000, + "usedMg": 0, + "remainingMg": 0, + "usages": [] + }, + "status": "cancelled", + "cancelledAt": "2026-11-20T02:00:27.000Z", + "canEdit": false, + "canCancel": false, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + } + }, + { + "seq": 523, + "label": "material-pool-after-recovery", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/material-pools/2026-11-20", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "2026-11-20", + "date": "2026-11-20", + "rolling": true, + "frozen": false, + "totalMg": 36000, + "totalAmount": 3274167, + "usedMg": 0, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 996167, + "consumed": 0, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "unused", + "revision": "678541b34cc886d415b60b583a73eef3c0477ecf0ccf06c4af8c3fa902a549da", + "opening": { + "mg": 36000, + "amount": 3274167, + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "pending": false + }, + "todayPurchases": { + "mg": 0, + "amount": 0, + "count": 0, + "items": [] + }, + "todayReturns": { + "mg": 0, + "amount": 0, + "count": 0, + "grossMg": 0, + "grossAmount": 0, + "grossCount": 0 + }, + "returns": [], + "purchases": [ + { + "id": "carry:2026-11-20", + "date": "2026-11-20", + "mg": 36000, + "amount": 3274167, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "created": "2026-11-20T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "materialGroups": [ + { + "key": "public", + "kind": "public", + "member": null, + "purchases": [ + { + "id": "carry:2026-11-20", + "date": "2026-11-20", + "mg": 36000, + "amount": 3274167, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "created": "2026-11-20T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false + } + ], + "totalMg": 36000, + "totalAmount": 3274167, + "averageRate": 90949 + }, + { + "key": "personal:assistant", + "kind": "personal_recovery", + "member": "assistant", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "直接回收 · HS202611200003", + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-20T02:00:25.000Z", + "source_sequence": 7, + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 900000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "canEdit": false, + "sourceKind": "purchase" + } + ], + "totalMg": 10000, + "totalAmount": 900000, + "averageRate": 90000 + } + ], + "personalPools": { + "assistant": { + "key": "personal:assistant", + "kind": "personal_recovery", + "member": "assistant", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "直接回收 · HS202611200003", + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-20T02:00:25.000Z", + "source_sequence": 7, + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 900000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "canEdit": false, + "sourceKind": "purchase" + } + ], + "totalMg": 10000, + "totalAmount": 900000, + "averageRate": 90000, + "usedMg": 0, + "consumedCost": 0, + "remainingMg": 10000, + "remainingCost": 900000, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "remainingBatches": [ + { + "purchaseId": "", + "recoveryId": "", + "mg": 10000 + } + ], + "shortageMg": 0, + "status": "unused", + "byPayer": { + "owner": { + "purchased": 0, + "consumed": 0, + "remaining": 0 + }, + "assistant": { + "purchased": 900000, + "consumed": 0, + "remaining": 900000 + }, + "assistant2": { + "purchased": 0, + "consumed": 0, + "remaining": 0 + } + }, + "date": "2026-11-20", + "id": "2026-11-20" + } + }, + "remainingMaterialGroups": [ + { + "kind": "public", + "member": null, + "mg": 36000, + "amount": 3274167, + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "batches": [ + { + "purchaseId": "carry:2026-11-20", + "mg": 36000 + } + ] + }, + { + "kind": "personal_recovery", + "member": "assistant", + "mg": 10000, + "amount": 900000, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "batches": [ + { + "purchaseId": "", + "recoveryId": "", + "mg": 10000 + } + ] + } + ], + "eligibleMember": "owner", + "eligibleRemainingMg": 36000, + "eligibleRemainingAmount": 3274167, + "eligibleAverageRate": 90949, + "eligibleStatus": "ready", + "legacyReadOnly": true + } + }, + { + "seq": 524, + "note": "section", + "name": "knownIssueAfterSaleAfterRecovery" + }, + { + "seq": 525, + "label": "issue-known-issue", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/orders/issue", + "key": "golden-00208-issue-known-issue", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-20", + "customer": "留档客户", + "internal_note": "留档备注", + "salesperson": "娜娜", + "payment_account": "助理微信", + "rounding_mode": "cent", + "lines": [ + { + "name": "足金手链", + "unit": "g", + "quantity": "2", + "pocket": "现货", + "payer": "assistant", + "sale": "2000", + "costParts": { + "material": "1800", + "labor": "50", + "accessories": "0", + "other": "0" + } + } + ], + "fee_items": [] + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "" + } + }, + { + "seq": 526, + "label": "recovery-known-issue", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/recoveries", + "key": "golden-00209-recovery-known-issue", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "留档回收客户", + "salesperson": "娜娜", + "old_lines": [ + { + "name": "Au旧料", + "incoming_weight": "2", + "melted_weight": "2", + "purity": "100" + } + ], + "buy_rate": "900", + "payer": "assistant", + "payment_account": "助理微信", + "verified": true + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "mode": "direct", + "date": "2026-11-20", + "customer": "留档回收客户", + "customer_type": "unknown", + "salesperson": "娜娜", + "member": "assistant", + "note": "", + "old_lines": [ + { + "name": "Au旧料", + "incomingMg": 2000, + "meltedMg": 2000, + "purity": 100, + "foldedMg": 2000 + } + ], + "oldMg": 2000, + "oldPocket": "回收旧料", + "credit_card_rate_permille": 6, + "newMg": 0, + "matchedMg": 0, + "differenceMg": 0, + "surplusMg": 2000, + "goldRate": 0, + "laborRate": 0, + "laborMode": "gram", + "depreciationRate": 0, + "depreciationMg": 0, + "goldAmount": 0, + "laborAmount": 0, + "depreciationAmount": 0, + "charges": [], + "chargesAmount": 0, + "discount": 0, + "rounding_mode": "cent", + "rounding_adjustment": 0, + "receivable": 0, + "payer": "assistant", + "payment_account": "助理微信", + "materialCost": 0, + "laborCost": 0, + "goodsCost": 0, + "directCost": 0, + "profit": 0, + "purchaseMg": 2000, + "buyRate": 90000, + "calculatedPurchaseAmount": 180000, + "purchaseAmount": 180000, + "actualBuyRate": 90000, + "offsetAmount": 0, + "netSettlement": -180000, + "cashReceipt": 0, + "cashPayment": 180000, + "cardFee": 0, + "paymentMethods": [ + "微信" + ], + "id": "", + "number": "HS202611200005", + "order_id": null, + "purchase_id": "", + "created": "2026-11-20T02:00:30.000Z", + "actor": "助理", + "revision": 1, + "materialBatch": { + "purchaseId": "", + "recoveryId": "", + "member": "assistant", + "mg": 2000, + "usedMg": 0, + "remainingMg": 2000, + "usages": [] + }, + "status": "active", + "cancelledAt": "", + "canEdit": true, + "canCancel": true, + "pendingRequestId": null, + "immutableReason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录" + } + }, + { + "seq": 527, + "label": "known-issue-order", + "date": "2026-11-20", + "actor": "assistant", + "method": "GET", + "path": "/api/orders/", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "id": "", + "number": "MM20261120-", + "date": "2026-11-20", + "customer": "留档客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261120017", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 185000, + "costParts": { + "material": 180000, + "labor": 5000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 200000, + "baseSale": 200000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 200000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-20T02:00:29.000Z", + "delivered_date": "2026-11-20", + "returned_date": null, + "paper_date": "2026-11-20", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "留档备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-20", + "kind": "receipt", + "amount": 200000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-20T02:00:29.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 200000, + "refunded": 0, + "netReceived": 200000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 185000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 185000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 15000, + "profit": 15000, + "knownProfit": 15000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "audit": [ + { + "action": "生成已交付单据", + "actor": "助理", + "detail": { + "amount": 200000, + "account": "助理微信", + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-20T02:00:29.000Z" + }, + { + "action": "complete", + "actor": "助理", + "detail": { + "date": "2026-11-20", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-20T02:00:29.000Z" + }, + { + "action": "deliver", + "actor": "助理", + "detail": { + "date": "2026-11-20", + "verified": true, + "revision": 4, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-20T02:00:29.000Z" + }, + { + "action": "receipt", + "actor": "助理", + "detail": { + "date": "2026-11-20", + "amount": "2000.00", + "account": "助理微信", + "credit_card_fee_payer": "owner", + "verified": true, + "reference": "开单时已全额收款", + "revision": 3, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-20T02:00:29.000Z" + }, + { + "action": "confirm", + "actor": "助理", + "detail": { + "date": "2026-11-20", + "revision": 2, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-20T02:00:29.000Z" + }, + { + "action": "保存草稿", + "actor": "助理", + "detail": { + "revision": 1, + "actorIdentity": { + "id": "", + "role": "assistant", + "member": "assistant" + } + }, + "created": "2026-11-20T02:00:29.000Z" + } + ], + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:29.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + }, + { + "seq": 528, + "label": "known-issue-after-sale-rejected", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/orders//return", + "key": "golden-00210-known-issue-after-sale-rejected", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "date": "2026-11-20", + "revision": 4, + "verified": true, + "reason": "当天退回", + "afterSale": { + "lines": [ + { + "lineIndex": 0, + "quantity": "1.000", + "pocket": "现货", + "disposition": "stock" + } + ], + "refund": { + "amount": "900", + "account": "助理微信", + "payer": "assistant" + }, + "deductionReason": "客户确认", + "expenses": [] + } + } + }, + "status": 400, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "料池实际批次克重不足" + } + }, + { + "seq": 529, + "note": "section", + "name": "dayThreeReads" + }, + { + "seq": 530, + "label": "final-state-owner", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "today": "2026-11-20", + "mode": "trial", + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + }, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "shopSettings": { + "version": 1, + "revision": 7, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "members": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "" + } + ], + "creditCardRatePermille": 6, + "profitSharePercent": 30, + "profitShareEffectiveMonth": "2000-01", + "profitShareHistory": [ + { + "month": "2000-01", + "percent": 30 + } + ], + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "8", + "packagingPayer": "owner" + } + }, + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "pocketCatalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "pocket_", + "name": "展柜A(主)", + "active": true, + "self": true, + "builtin": false, + "revision": 2, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:34.000Z", + "countUnit": null, + "countSince": null + } + ], + "accounts": [ + "助理微信", + "助理支付宝", + "助理现金", + "麦麦微信", + "麦麦支付宝", + "麦麦现金", + "麦麦信用卡", + "助理2微信", + "助理2支付宝", + "助理2现金" + ], + "inventory": [ + { + "pocket": "现货", + "mg": 65950, + "reserved": 0, + "available": 65950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 20092, + "reserved": 0, + "available": 20092 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "orders": [ + { + "id": "", + "number": "MM20261120-", + "date": "2026-11-20", + "customer": "留档客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261120017", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 185000, + "costParts": { + "material": 180000, + "labor": 5000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 200000, + "baseSale": 200000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 200000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-20T02:00:29.000Z", + "delivered_date": "2026-11-20", + "returned_date": null, + "paper_date": "2026-11-20", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "留档备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 200000, + "refunded": 0, + "netReceived": 200000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 185000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 185000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 15000, + "profit": 15000, + "knownProfit": 15000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:29.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "安全测试", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119016", + "status": "delivered", + "lines": [ + { + "name": "足金转运珠", + "code": "", + "unit": "g", + "quantity": 500, + "pocket": "现货", + "payer": "assistant", + "cost": 42000, + "sale": 50000, + "baseSale": 50000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 50000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:02:51.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "安全测试备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 42000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 42000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 8000, + "profit": 8000, + "knownProfit": 8000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:02:51.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "滚动料池客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119015", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "", + "payer": "assistant", + "cost": 181898, + "costParts": { + "material": 181898, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-19" + }, + "costLabor": { + "mode": "total" + }, + "sale": 220000, + "baseSale": 220000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-19", + "date": "2026-11-19", + "status": "allocated", + "amount": 181898, + "quantity": 2000, + "averageRate": 90949, + "allocations": [ + { + "payer": "assistant", + "amount": 181898 + } + ], + "revision": "278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc", + "rolling": true + } + } + ], + "discount": 0, + "total": 220000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:02:40.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "滚动料池备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 220000, + "refunded": 0, + "netReceived": 220000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 181898, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 181898, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 38102, + "profit": 38102, + "knownProfit": 38102, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:02:40.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天取消客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119014", + "status": "cancelled", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:57.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 30000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:59.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 7, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": { + "id": "", + "status": "approved", + "order_revision": 6, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "实际由小昊接待", + "requester_name": "助理", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:56.000Z", + "note": "核实", + "direct": false + }, + "corrections": [], + "received": 210000, + "refunded": 0, + "netReceived": 210000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 800, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29200, + "profit": 29200, + "knownProfit": 29200, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 7, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:56.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119012", + "status": "cancelled", + "lines": [ + { + "name": "足金对照新货", + "code": "", + "unit": "g", + "quantity": 6000, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "cost": 106410, + "costParts": { + "material": 103410, + "labor": 3000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "sale": 131751, + "baseSale": 131751, + "charges": [], + "pricingMode": "manual", + "priceNote": "补金 1.149克 × 1000.00元;新货工费 120.00元;折旧 48.51元", + "recoveryMaterialMg": 1149, + "recovery_id": "" + } + ], + "discount": 1000, + "total": 130800, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:33.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "录错", + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 130800, + "recovery_id": "", + "recovery_mode": "exchange", + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 0, + "rounding_adjustment": 49, + "goodsCost": 106410, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 106410, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 24390, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:15.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照换货客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261119011", + "status": "delivered", + "lines": [ + { + "name": "足金对照新货", + "code": "", + "unit": "g", + "quantity": 12000, + "pocket": "现货", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 357720, + "costParts": { + "material": 351720, + "labor": 6000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 3908 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "sale": 422792, + "baseSale": 422792, + "charges": [], + "pricingMode": "manual", + "priceNote": "补金 3.908克 × 1000.00元;新货工费 240.00元;折旧 79.92元", + "recoveryMaterialMg": 3908, + "recovery_id": "" + } + ], + "discount": 0, + "total": 422792, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:32.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z" + } + ], + "received": 422792, + "refunded": 0, + "netReceived": 422792, + "balance": 0, + "recovery_id": "", + "recovery_mode": "exchange", + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 422792, + "rounding_adjustment": 0, + "goodsCost": 357720, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 357720, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 65072, + "profit": 65072, + "knownProfit": 65072, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:10.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "paper_number": "20261119010", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3100, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 267000, + "costParts": { + "material": 264000, + "labor": 3000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 286200, + "baseSale": 285200, + "charges": [ + { + "name": "服务", + "amount": 1000 + } + ], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克", + "lineId": "", + "materialAllocations": [ + { + "source": "original", + "quantity": 3000, + "rate": 85000, + "amount": 255000, + "payer": "owner" + }, + { + "source": "extra", + "quantity": 100, + "rate": 90000, + "amount": 9000, + "payer": "assistant" + } + ] + } + ], + "discount": 0, + "total": 286200, + "revision": 3, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:28.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理支付宝", + "fee_items": [ + { + "key": "shipping", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-19", + "rounding_mode": "yuan", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "price_lock_id": "", + "corrections": [], + "received": 286200, + "refunded": 0, + "netReceived": 286200, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 267000, + "directCost": 600, + "materialCostPending": false, + "knownGoodsCost": 267000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 18600, + "profit": 18600, + "knownProfit": 18600, + "ownerCost": 255600, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 3, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:28.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照分步客户", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118009", + "status": "delivered", + "lines": [ + { + "name": "足金项链", + "code": "", + "unit": "g", + "quantity": 4000, + "pocket": "现货", + "payer": "owner", + "cost": 350000, + "sale": 400000, + "baseSale": 400000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 400000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:27.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦支付宝", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1800, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "分步单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "owner", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 400000, + "refunded": 0, + "netReceived": 400000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 350000, + "directCost": 1800, + "materialCostPending": false, + "knownGoodsCost": 350000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 48200, + "profit": 48200, + "knownProfit": 48200, + "ownerCost": 351800, + "ownerDirect": 400000, + "ownerCredit": 400000, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:34.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "核实业务归属", + "requester_name": "麦麦", + "created": "2026-11-19T02:00:49.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:49.000Z", + "note": "", + "direct": true + }, + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:49.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:05.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照取消客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118006", + "status": "cancelled", + "lines": [ + { + "name": "足金戒指", + "code": "", + "unit": "g", + "quantity": 1500, + "pocket": "现货", + "payer": "assistant2", + "cost": 130000, + "sale": 150000, + "baseSale": 150000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 150000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:24.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "取消单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 130000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 130000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 20000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:45.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118005", + "status": "delivered", + "lines": [ + { + "name": "足金手镯", + "code": "", + "unit": "g", + "quantity": 10000, + "pocket": "pocket_", + "payer": "owner", + "cost": 900000, + "sale": 980000, + "baseSale": 980000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 980000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:21.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "草稿单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "owner", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 980000, + "refunded": 0, + "netReceived": 980000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 900000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 900000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 80000, + "profit": 80000, + "knownProfit": 80000, + "ownerCost": 900000, + "ownerDirect": 980000, + "ownerCredit": 980000, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:23.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 271935, + "costParts": { + "material": 271935, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 271935, + "quantity": 3000, + "averageRate": 90645, + "allocations": [ + { + "payer": "assistant", + "amount": 271935 + } + ], + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 6, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "expense", + "action_label": "费用补记", + "order_revision": 4, + "reason": "补记快递", + "requester_name": "助理", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 271935, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 271935, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57065, + "profit": 57065, + "knownProfit": 57065, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 6, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:02:27.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 288500, + "refunded": 0, + "netReceived": 288500, + "balance": 0, + "rounding_adjustment": -40, + "goodsCost": 150000, + "directCost": 1731, + "materialCostPending": false, + "knownGoodsCost": 150000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 136769, + "profit": 136769, + "knownProfit": 136769, + "ownerCost": 151731, + "ownerDirect": 288500, + "ownerCredit": 288500, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:39.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户乙", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118002", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant2", + "cost": 180000, + "sale": 208710, + "baseSale": 208710, + "charges": [], + "pricingMode": "auto", + "goldPrice": 95555, + "laborRate": 8800, + "laborMode": "piece", + "pieces": 2, + "priceNote": "金价 955.55元/克 + 工费 88.00元/件 × 2件" + }, + { + "name": "纯银925", + "code": "", + "unit": "件", + "quantity": 3, + "pocket": "", + "payer": "assistant2", + "cost": 3000, + "sale": 9990, + "baseSale": 9990, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 1537, + "total": 217163, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:18.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "按件内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 217163, + "refunded": 0, + "netReceived": 217163, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 183000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 183000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 34163, + "profit": 34163, + "knownProfit": 34163, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:18.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "edit", + "action_label": "修改订单", + "order_revision": 4, + "reason": "跨天修改客户名", + "requester_name": "助理", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:31.000Z", + "note": "凭据已核对" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:31.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + ], + "priceLockCounts": { + "pending": 2, + "delivered": 1, + "cancelled": 1 + }, + "materialPoolSummary": { + "totalMg": 36000, + "totalAmount": 3274167, + "usedMg": 0, + "remainingMg": 36000, + "remainingCost": 3274167, + "shortageMg": 0, + "pendingCount": 0, + "purchaseCount": 0 + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "materialPoolAllocation": { + "version": 1, + "targetVersion": 2, + "migrationRequired": true, + "usageCount": 2, + "activeUsageCount": 2 + }, + "sync": { + "enabled": false, + "busy": false, + "error": null, + "pending": 18, + "failed": 0 + }, + "printing": { + "store": "黄金对照珠宝", + "subtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "width": 241, + "height": 140, + "offsetX": 2, + "offsetY": 3, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + }, + "backup": { + "last": { + "name": "", + "time": "2026-11-19T02:04:48.000Z" + }, + "error": null + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 2000, + "kind": "recovery", + "note": "HS202611200005", + "purchase_cost": 180000, + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-20", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261120-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-20T02:00:29.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": -3000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611200004;录错", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:27.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 10000, + "kind": "recovery_change_old", + "note": "回收更正:HS202611200003;当天更正", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-20T02:00:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": -10000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611200003;当天更正", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-20T02:00:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 3000, + "kind": "recovery", + "note": "HS202611200004", + "purchase_cost": 270000, + "actor": "麦麦", + "created": "2026-11-20T02:00:21.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 10000, + "kind": "recovery", + "note": "HS202611200003", + "purchase_cost": 900000, + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 6000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190002;录错", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": -4851, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190002;录错", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "kind": "recovery_change_sale", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 8092, + "kind": "recovery_change_old", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 12000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": -7992, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -500, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000, + "kind": "order_cancel_reverse", + "note": "MM20261119-;当天直接作废:当天录错", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -6000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 4851, + "kind": "recovery", + "note": "HS202611190002", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 7992, + "kind": "recovery", + "note": "HS202611190001", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -3100, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 100, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 补重黄金入库", + "purchase_cost": 9000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 3000, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 原锁定黄金入库", + "purchase_cost": 255000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "after-sale:", + "order_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "return", + "note": "MM20261118- · 售后回收旧料", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "groupId": "after-sale:", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500, + "kind": "order_cancel_reverse", + "note": "MM20261118-;审批作废:重复录入", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1200, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:21.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1000, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": -10000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "kind": "transfer", + "note": "调拨", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "transfer", + "note": "调拨", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "kind": "opening", + "note": "展柜起始", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "kind": "opening", + "note": "黄金对照起始金料", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "kind": "opening", + "note": "黄金对照起始库存", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 531, + "label": "final-session-owner", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/session", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + }, + "setup": false, + "mode": "trial", + "today": "2026-11-20", + "brand": { + "storeName": "黄金对照珠宝" + }, + "loginOptions": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ] + } + }, + { + "seq": 532, + "label": "final-report-owner", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/report?from=2026-11-18&date=2026-11-20", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-20", + "from": "2026-11-18", + "sales": 4417755, + "goods": 3790753, + "knownGoods": 3790753, + "expense": 8081, + "profit": 618921, + "knownProfit": 618921, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "from": "2026-11-18", + "to": "2026-11-20", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "直接回收 · HS202611200003", + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-20T02:00:25.000Z", + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 900000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "canEdit": false + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 2000, + "amount": 180000, + "payer": "assistant", + "note": "直接回收 · HS202611200005", + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-20T02:00:30.000Z", + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 180000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "canEdit": false + } + ], + "settlements": [], + "events": [ + { + "id": "", + "pool_id": "2026-11-18", + "usage_id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付占用", + "before_value": null, + "after_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": null, + "ownerAmount": null, + "assistantAmount": null, + "revision": 1 + }, + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "usage_id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "补齐料费", + "before_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": null, + "ownerAmount": null, + "assistantAmount": null, + "revision": 1, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ] + }, + "after_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 272000, + "ownerAmount": 0, + "assistantAmount": 272000, + "revision": 2, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ] + }, + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "usage_id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "加权料费调整", + "before_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 272000, + "ownerAmount": 0, + "assistantAmount": 272000, + "revision": 2, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ] + }, + "after_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "ownerAmount": 0, + "assistantAmount": 271935, + "revision": 3, + "allocations": [ + { + "payer": "assistant", + "amount": 271935 + } + ] + }, + "actor": "麦麦", + "created": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "usage_id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付占用", + "before_value": null, + "after_value": { + "poolId": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": null, + "ownerAmount": null, + "assistantAmount": null, + "revision": 1 + }, + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z" + } + ] + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 15, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 1271100, + "refund": 0 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0 + }, + { + "account": "助理信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0 + }, + { + "account": "助理2微信", + "receipt": 972792, + "refund": 0 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2信用卡", + "receipt": 0, + "refund": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 980000, + "account": "麦麦现金", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 100000, + "account": "麦麦支付宝", + "reference": "定金", + "actor": "麦麦", + "created": "2026-11-18T02:01:31.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 300000, + "account": "麦麦信用卡", + "reference": "尾款", + "actor": "麦麦", + "created": "2026-11-18T02:01:33.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "reference": "更正冲回:取消审批作废;重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "reference": "置换差额实际收款 · HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -432792, + "account": "助理2微信", + "reference": "更正冲回:回收专用更正;跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 422792, + "account": "助理2微信", + "reference": "回收更正补记:跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -130800, + "account": "助理微信", + "reference": "更正冲回:回收专用更正;录错", + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-20", + "kind": "receipt", + "amount": 200000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-20T02:00:29.000Z", + "number": "MM20261120-" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 321100, + "goods": 290200, + "expense": 1200, + "profit": 29700, + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 217163, + "goods": 183000, + "expense": 0, + "profit": 34163, + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 330000, + "goods": 272000, + "expense": 0, + "profit": 58000, + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 980000, + "goods": 900000, + "expense": 0, + "profit": 80000, + "created": "2026-11-18T02:01:23.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 150000, + "goods": 130000, + "expense": 0, + "profit": 20000, + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000, + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 82000, + "goods": 70000, + "expense": 0, + "profit": 12000, + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 400000, + "goods": 350000, + "expense": 1800, + "profit": 48200, + "created": "2026-11-18T02:01:34.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "订单录错作废冲回", + "sales": -150000, + "goods": -130000, + "expense": 0, + "profit": -20000, + "created": "2026-11-19T02:00:45.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "日购料成本调整", + "sales": 0, + "goods": -65, + "expense": 0, + "profit": 65, + "created": "2026-11-19T02:02:27.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 1000, + "profit": -1000, + "created": "2026-11-19T02:00:37.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 286200, + "goods": 267000, + "expense": 600, + "profit": 18600, + "created": "2026-11-19T02:01:28.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 130800, + "goods": 106410, + "expense": 0, + "profit": 24390, + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单录错作废冲回", + "sales": -210000, + "goods": -180000, + "expense": 0, + "profit": -30000, + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 220000, + "goods": 181898, + "expense": 0, + "profit": 38102, + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 50000, + "goods": 42000, + "expense": 0, + "profit": 8000, + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "回收专用更正冲回", + "sales": -432792, + "goods": -366720, + "expense": 0, + "profit": -66072, + "created": "2026-11-20T02:00:10.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "回收专用更正补记", + "sales": 422792, + "goods": 357720, + "expense": 0, + "profit": 65072, + "created": "2026-11-20T02:00:10.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "回收专用更正冲回", + "sales": -130800, + "goods": -106410, + "expense": 0, + "profit": -24390, + "created": "2026-11-20T02:00:15.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-20", + "kind": "交付", + "sales": 200000, + "goods": 185000, + "expense": 0, + "profit": 15000, + "created": "2026-11-20T02:00:29.000Z", + "number": "MM20261120-" + } + ], + "afterSales": [ + { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z" + }, + { + "id": "", + "date": "2026-11-18", + "project": "对照清洗", + "customer": "对照售后客户二", + "amount": 0, + "payer": "owner", + "actor": "麦麦", + "created": "2026-11-18T02:02:06.000Z" + } + ], + "afterSaleCount": 2, + "inventory": [ + { + "pocket": "现货", + "mg": 65950, + "reserved": 0, + "available": 65950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 20092, + "reserved": 0, + "available": 20092 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261120-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null + } + }, + { + "seq": 533, + "label": "final-order-book-owner", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-20", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-20", + "today": "2026-11-20", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 422792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 422792, + "sale": 422792, + "material": 351720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 357720, + "profit": 65072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 357720, + "known": { + "sale": 422792, + "material": 351720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 357720, + "profit": 65072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 357720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 351720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 3908 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 0, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "原售价与货品成本已冲回,实际费用保留", + "balance": 130800, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261120-", + "paper_number": "20261120017", + "date": "2026-11-20", + "created": "2026-11-20T02:00:29.000Z", + "customer": "留档客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 200000, + "sale": 200000, + "material": 180000, + "laborAndFees": 5000, + "unallocated": 0, + "totalCost": 185000, + "profit": 15000, + "ownerCost": 0, + "assistantCost": 185000, + "assistant2Cost": 0, + "known": { + "sale": 200000, + "material": 180000, + "laborAndFees": 5000, + "unallocated": 0, + "totalCost": 185000, + "profit": 15000, + "ownerCost": 0, + "assistantCost": 185000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 5000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 5000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118005", + "date": "2026-11-18", + "created": "2026-11-18T02:01:21.000Z", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘·展柜A(主)" + ], + "mg": 10000, + "summaryMg": 10000, + "pieces": 0, + "originalSale": 980000, + "sale": 980000, + "material": null, + "laborAndFees": null, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 980000, + "material": 0, + "laborAndFees": 0, + "unallocated": 900000, + "totalCost": 900000, + "profit": 80000, + "ownerCost": 900000, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金手镯", + "amount": 900000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "returned", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "owner", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118009", + "date": "2026-11-18", + "created": "2026-11-18T02:01:27.000Z", + "customer": "对照分步客户", + "salesperson": "麦麦", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 4000, + "summaryMg": 4000, + "pieces": 0, + "originalSale": 400000, + "sale": 400000, + "material": null, + "laborAndFees": null, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 400000, + "material": 0, + "laborAndFees": 1800, + "unallocated": 350000, + "totalCost": 351800, + "profit": 48200, + "ownerCost": 351800, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金项链", + "amount": 350000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1800, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:06.000Z", + "customer": "对照售后客户二", + "salesperson": "麦麦", + "status": "after_sale", + "project": "对照清洗", + "note": "对照清洗", + "amount": 0, + "payer": "owner", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照清洗", + "source": "售后 · 2026-11-18", + "amount": 0, + "payer": "owner", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 422792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 422792, + "sale": 422792, + "material": 351720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 357720, + "profit": 65072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 357720, + "known": { + "sale": 422792, + "material": 351720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 357720, + "profit": 65072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 357720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 351720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 3908 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 0, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "原售价与货品成本已冲回,实际费用保留", + "balance": 130800, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "recovery", + "recovery_id": "", + "recovery_mode": "direct", + "number": "HS202611200003", + "paper_number": "", + "date": "2026-11-20", + "created": "2026-11-20T02:00:20.000Z", + "customer": "对照回收客户", + "salesperson": "娜娜", + "member": "assistant", + "status": "recovery", + "note": "", + "types": [ + "黄金回收" + ], + "mg": 10000, + "summaryMg": 0, + "pieces": 0, + "cashPayment": 900000, + "purchase_id": "", + "costHint": "回收付款已计入每日购料,本行不计销售、利润和销售克重", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261120-", + "paper_number": "20261120017", + "date": "2026-11-20", + "created": "2026-11-20T02:00:29.000Z", + "customer": "留档客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 200000, + "sale": 200000, + "material": 180000, + "laborAndFees": 5000, + "unallocated": 0, + "totalCost": 185000, + "profit": 15000, + "ownerCost": 0, + "assistantCost": 185000, + "assistant2Cost": 0, + "known": { + "sale": 200000, + "material": 180000, + "laborAndFees": 5000, + "unallocated": 0, + "totalCost": 185000, + "profit": 15000, + "ownerCost": 0, + "assistantCost": 185000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 5000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 5000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "recovery", + "recovery_id": "", + "recovery_mode": "direct", + "number": "HS202611200005", + "paper_number": "", + "date": "2026-11-20", + "created": "2026-11-20T02:00:30.000Z", + "customer": "留档回收客户", + "salesperson": "娜娜", + "member": "assistant", + "status": "recovery", + "note": "", + "types": [ + "黄金回收" + ], + "mg": 2000, + "summaryMg": 0, + "pieces": 0, + "cashPayment": 180000, + "purchase_id": "", + "costHint": "回收付款已计入每日购料,本行不计销售、利润和销售克重", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 2, + "summary": { + "orderCount": 17, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 3, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4417755, + "material": 1887553, + "laborAndFees": 36281, + "unallocated": 1875000, + "totalCost": 3798834, + "profit": 618921, + "ownerCost": 1945131, + "assistantCost": 950983, + "assistant2Cost": 902720, + "mg": 59150, + "pieces": 4, + "knownCounts": { + "sale": 17, + "material": 10, + "laborAndFees": 10, + "unallocated": 17, + "totalCost": 17, + "profit": 17, + "ownerCost": 17, + "assistantCost": 17, + "assistant2Cost": 17 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 20 + }, + "peopleCount": { + "from": "2026-11-18", + "date": "2026-11-20", + "baselineDate": "2026-11-17", + "mode": "daily-total", + "assistant1": { + "total": null, + "endTotal": null, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-both", + "recordedDays": 2 + }, + "assistant2": { + "total": null, + "endTotal": null, + "baselineTotal": null, + "baselineDate": null, + "netChange": null, + "netChangeReason": "missing-both", + "recordedDays": 2 + } + }, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-20", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 320000, + "refund": 0, + "net": 320000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 4, + "orderCount": 3 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 456200, + "refund": 0, + "net": 456200, + "materialOutlay": 777000, + "goodsOutlay": 780000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 258000, + "totalOutlay": 780600, + "eventCount": 12, + "lockCount": 3 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-20", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "直接回收 · HS202611200003", + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-20T02:00:25.000Z", + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 900000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "canEdit": false + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 2000, + "amount": 180000, + "payer": "assistant", + "note": "直接回收 · HS202611200005", + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-20T02:00:30.000Z", + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 180000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "canEdit": false + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 1820000, + "goods": 1820000, + "paidFees": 0, + "total": 1820000, + "purchaseCount": 1 + }, + "assistant": { + "payer": "assistant", + "material": 2530000, + "goods": 2530000, + "paidFees": 0, + "total": 2530000, + "purchaseCount": 4 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 6, + "poolCount": 3, + "mg": 52000, + "materialOutlay": 4720000, + "purchaseValue": 4720000, + "ownerOutlay": 1820000, + "assistantOutlay": 2530000, + "assistant2Outlay": 370000, + "totalOutlay": 4720000, + "eventCount": 6 + } + }, + "summaryWithoutCancelled": { + "orderCount": 14, + "completedCount": 14, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 7, + "sale": 4417755, + "material": 1887553, + "laborAndFees": 36281, + "unallocated": 1875000, + "totalCost": 3798834, + "profit": 618921, + "ownerCost": 1945131, + "assistantCost": 950983, + "assistant2Cost": 902720, + "mg": 49650, + "pieces": 4, + "knownCounts": { + "sale": 14, + "material": 7, + "laborAndFees": 7, + "unallocated": 14, + "totalCost": 14, + "profit": 14, + "ownerCost": 14, + "assistantCost": 14, + "assistant2Cost": 14 + }, + "unknownCounts": { + "sale": 0, + "material": 7, + "laborAndFees": 7, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 3, + "recordCount": 17 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-20", + "receipt": 4677755, + "refund": 90000, + "net": 4587755, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2243892, + "refund": 0, + "net": 2243892 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1271100, + "refund": 0, + "net": 1271100 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 972792, + "refund": 0, + "net": 972792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 21, + "orderCount": 16 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-20", + "receipt": 4677755, + "refund": 90000, + "net": 4587755, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2243892, + "refund": 0, + "net": 2243892 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1271100, + "refund": 0, + "net": 1271100 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 972792, + "refund": 0, + "net": 972792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 27, + "orderCount": 19 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-20", + "receipt": 4677755, + "refund": 90000, + "net": 4587755, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 2243892, + "refund": 0, + "net": 2243892 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 535363, + "refund": 90000, + "net": 445363 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 1310000, + "refund": 0, + "net": 1310000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1271100, + "refund": 0, + "net": 1271100 + }, + { + "account": "助理支付宝", + "receipt": 218200, + "refund": 0, + "net": 218200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 100000, + "refund": 0, + "net": 100000 + }, + { + "account": "麦麦现金", + "receipt": 980000, + "refund": 0, + "net": 980000 + }, + { + "account": "麦麦信用卡", + "receipt": 588500, + "refund": 0, + "net": 588500 + }, + { + "account": "助理2微信", + "receipt": 972792, + "refund": 0, + "net": 972792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 27, + "orderCount": 19 + } + } + }, + { + "seq": 534, + "label": "final-state-assistant", + "date": "2026-11-20", + "actor": "assistant", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "today": "2026-11-20", + "mode": "trial", + "user": { + "id": "", + "name": "助理", + "role": "assistant", + "member": "assistant", + "operatorName": "娜娜", + "label": "娜娜" + }, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "shopSettings": { + "version": 1, + "revision": 7, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "members": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ], + "creditCardRatePermille": 6, + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "8", + "packagingPayer": "owner" + } + }, + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "pocketCatalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "pocket_", + "name": "展柜A(主)", + "active": true, + "self": true, + "builtin": false, + "revision": 2, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:34.000Z", + "countUnit": null, + "countSince": null + } + ], + "accounts": [ + "助理微信", + "助理支付宝", + "助理现金", + "麦麦微信", + "麦麦支付宝", + "麦麦现金", + "麦麦信用卡", + "助理2微信", + "助理2支付宝", + "助理2现金" + ], + "inventory": [ + { + "pocket": "现货", + "mg": 65950, + "reserved": 0, + "available": 65950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 20092, + "reserved": 0, + "available": 20092 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "orders": [ + { + "id": "", + "number": "MM20261120-", + "date": "2026-11-20", + "customer": "留档客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261120017", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 185000, + "costParts": { + "material": 180000, + "labor": 5000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 200000, + "baseSale": 200000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 200000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-20T02:00:29.000Z", + "delivered_date": "2026-11-20", + "returned_date": null, + "paper_date": "2026-11-20", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "留档备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 200000, + "refunded": 0, + "netReceived": 200000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 185000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 185000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 15000, + "profit": 15000, + "knownProfit": 15000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:29.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "安全测试", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119016", + "status": "delivered", + "lines": [ + { + "name": "足金转运珠", + "code": "", + "unit": "g", + "quantity": 500, + "pocket": "现货", + "payer": "assistant", + "cost": 42000, + "sale": 50000, + "baseSale": 50000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 50000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:02:51.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "安全测试备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 42000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 42000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 8000, + "profit": 8000, + "knownProfit": 8000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:02:51.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "滚动料池客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119015", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "", + "payer": "assistant", + "cost": 181898, + "costParts": { + "material": 181898, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-19" + }, + "costLabor": { + "mode": "total" + }, + "sale": 220000, + "baseSale": 220000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-19", + "date": "2026-11-19", + "status": "allocated", + "amount": 181898, + "quantity": 2000, + "averageRate": 90949, + "allocations": [ + { + "payer": "assistant", + "amount": 181898 + } + ], + "revision": "278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc", + "rolling": true + } + } + ], + "discount": 0, + "total": 220000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:02:40.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "滚动料池备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 220000, + "refunded": 0, + "netReceived": 220000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 181898, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 181898, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 38102, + "profit": 38102, + "knownProfit": 38102, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:02:40.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天取消客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119014", + "status": "cancelled", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:57.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 30000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:59.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119012", + "status": "cancelled", + "lines": [ + { + "name": "足金对照新货", + "code": "", + "unit": "g", + "quantity": 6000, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "cost": 106410, + "costParts": { + "material": 103410, + "labor": 3000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "sale": 131751, + "baseSale": 131751, + "charges": [], + "pricingMode": "manual", + "priceNote": "补金 1.149克 × 1000.00元;新货工费 120.00元;折旧 48.51元", + "recoveryMaterialMg": 1149, + "recovery_id": "" + } + ], + "discount": 1000, + "total": 130800, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:33.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "录错", + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 130800, + "recovery_id": "", + "recovery_mode": "exchange", + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 0, + "rounding_adjustment": 49, + "goodsCost": 106410, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 106410, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 24390, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:15.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "paper_number": "20261119010", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3100, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 267000, + "costParts": { + "material": 264000, + "labor": 3000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 286200, + "baseSale": 285200, + "charges": [ + { + "name": "服务", + "amount": 1000 + } + ], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克", + "lineId": "", + "materialAllocations": [ + { + "source": "original", + "quantity": 3000, + "rate": 85000, + "amount": 255000, + "payer": "owner" + }, + { + "source": "extra", + "quantity": 100, + "rate": 90000, + "amount": 9000, + "payer": "assistant" + } + ] + } + ], + "discount": 0, + "total": 286200, + "revision": 3, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:28.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理支付宝", + "fee_items": [ + { + "key": "shipping", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-19", + "rounding_mode": "yuan", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "price_lock_id": "", + "corrections": [], + "received": 286200, + "refunded": 0, + "netReceived": 286200, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 267000, + "directCost": 600, + "materialCostPending": false, + "knownGoodsCost": 267000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 18600, + "profit": 18600, + "knownProfit": 18600, + "ownerCost": 255600, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 3, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:28.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 271935, + "costParts": { + "material": 271935, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 271935, + "quantity": 3000, + "averageRate": 90645, + "allocations": [ + { + "payer": "assistant", + "amount": 271935 + } + ], + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 6, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "expense", + "action_label": "费用补记", + "order_revision": 4, + "reason": "补记快递", + "requester_name": "助理", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 271935, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 271935, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57065, + "profit": 57065, + "knownProfit": 57065, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 6, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:02:27.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 288500, + "refunded": 0, + "netReceived": 288500, + "balance": 0, + "rounding_adjustment": -40, + "goodsCost": 150000, + "directCost": 1731, + "materialCostPending": false, + "knownGoodsCost": 150000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 136769, + "profit": 136769, + "knownProfit": 136769, + "ownerCost": 151731, + "ownerDirect": 288500, + "ownerCredit": 288500, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:39.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "edit", + "action_label": "修改订单", + "order_revision": 4, + "reason": "跨天修改客户名", + "requester_name": "助理", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:31.000Z", + "note": "凭据已核对" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:31.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + ], + "priceLockCounts": { + "pending": 1, + "delivered": 1, + "cancelled": 0 + }, + "materialPoolSummary": { + "totalMg": 36000, + "totalAmount": 3274167, + "usedMg": 0, + "remainingMg": 36000, + "remainingCost": 3274167, + "shortageMg": 0, + "pendingCount": 0, + "purchaseCount": 0 + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "materialPoolAllocation": { + "version": 1, + "targetVersion": 2, + "migrationRequired": true, + "usageCount": 2, + "activeUsageCount": 2 + }, + "sync": { + "enabled": false + }, + "printing": { + "store": "黄金对照珠宝", + "subtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "width": 241, + "height": 140, + "offsetX": 2, + "offsetY": 3, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + }, + "backup": null, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 2000, + "kind": "recovery", + "note": "HS202611200005", + "purchase_cost": 180000, + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-20", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261120-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-20T02:00:29.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": -3000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611200004;录错", + "actor": "麦麦", + "created": "2026-11-20T02:00:27.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 10000, + "kind": "recovery_change_old", + "note": "回收更正:HS202611200003;当天更正", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-20T02:00:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": -10000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611200003;当天更正", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-20T02:00:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 3000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery", + "note": "HS202611200004", + "actor": "麦麦", + "created": "2026-11-20T02:00:21.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 10000, + "kind": "recovery", + "note": "HS202611200003", + "purchase_cost": 900000, + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 6000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190002;录错", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": -4851, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190002;录错", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_sale", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 8092, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_old", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 12000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": -7992, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -500, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000, + "kind": "order_cancel_reverse", + "note": "MM20261119-;当天直接作废:当天录错", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -6000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 4851, + "kind": "recovery", + "note": "HS202611190002", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 7992, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery", + "note": "HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -3100, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 100, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 补重黄金入库", + "purchase_cost": 9000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 3000, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 原锁定黄金入库", + "purchase_cost": 255000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "after-sale:", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "return", + "note": "MM20261118- · 售后回收旧料", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "groupId": "after-sale:", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "order_cancel_reverse", + "note": "MM20261118-;审批作废:重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1200, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:21.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1000, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": -10000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "展柜起始", + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始金料", + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始库存", + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 535, + "label": "final-session-assistant", + "date": "2026-11-20", + "actor": "assistant", + "method": "GET", + "path": "/api/session", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "user": { + "id": "", + "name": "助理", + "role": "assistant", + "member": "assistant", + "operatorName": "娜娜", + "label": "娜娜" + }, + "setup": false, + "mode": "trial", + "today": "2026-11-20", + "brand": { + "storeName": "黄金对照珠宝" + }, + "loginOptions": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ] + } + }, + { + "seq": 536, + "label": "final-report-assistant", + "date": "2026-11-20", + "actor": "assistant", + "method": "GET", + "path": "/api/report?from=2026-11-18&date=2026-11-20", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-20", + "from": "2026-11-18", + "sales": 1695800, + "goods": 1388033, + "knownGoods": 1388033, + "expense": 5481, + "profit": 302286, + "knownProfit": 302286, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "from": "2026-11-18", + "to": "2026-11-20", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "直接回收 · HS202611200003", + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-20T02:00:25.000Z", + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 900000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "canEdit": false + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 2000, + "amount": 180000, + "payer": "assistant", + "note": "直接回收 · HS202611200005", + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-20T02:00:30.000Z", + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 180000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "canEdit": false + } + ], + "settlements": [], + "events": [ + { + "id": "", + "pool_id": "2026-11-18", + "usage_id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付占用", + "before_value": null, + "after_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": null, + "ownerAmount": null, + "assistantAmount": null, + "revision": 1 + }, + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "usage_id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "补齐料费", + "before_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": null, + "ownerAmount": null, + "assistantAmount": null, + "revision": 1, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ] + }, + "after_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 272000, + "ownerAmount": 0, + "assistantAmount": 272000, + "revision": 2, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ] + }, + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "usage_id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "加权料费调整", + "before_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 272000, + "ownerAmount": 0, + "assistantAmount": 272000, + "revision": 2, + "allocations": [ + { + "payer": "assistant", + "amount": 272000 + } + ] + }, + "after_value": { + "poolId": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "ownerAmount": 0, + "assistantAmount": 271935, + "revision": 3, + "allocations": [ + { + "payer": "assistant", + "amount": 271935 + } + ] + }, + "actor": "麦麦", + "created": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "usage_id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付占用", + "before_value": null, + "after_value": { + "poolId": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": null, + "ownerAmount": null, + "assistantAmount": null, + "revision": 1 + }, + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z" + } + ] + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 8, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 1061100, + "refund": 0 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2信用卡", + "receipt": 0, + "refund": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 321100, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 288500, + "account": "麦麦信用卡", + "reference": "开单时已全额收款", + "actor": "麦麦", + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 330000, + "account": "助理现金", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 130800, + "account": "助理微信", + "reference": "置换差额实际收款 · HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -210000, + "account": "助理微信", + "reference": "更正冲回:取消审批作废;当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 220000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 50000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -130800, + "account": "助理微信", + "reference": "更正冲回:回收专用更正;录错", + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-20", + "kind": "receipt", + "amount": 200000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-20T02:00:29.000Z", + "number": "MM20261120-" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 321100, + "goods": 290200, + "expense": 1200, + "profit": 29700, + "created": "2026-11-18T02:01:17.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 288500, + "goods": 150000, + "expense": 1731, + "profit": 136769, + "created": "2026-11-18T02:01:19.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 330000, + "goods": 272000, + "expense": 0, + "profit": 58000, + "created": "2026-11-18T02:01:20.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "日购料成本调整", + "sales": 0, + "goods": -65, + "expense": 0, + "profit": 65, + "created": "2026-11-19T02:02:27.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 1000, + "profit": -1000, + "created": "2026-11-19T02:00:37.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 286200, + "goods": 267000, + "expense": 600, + "profit": 18600, + "created": "2026-11-19T02:01:28.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 130800, + "goods": 106410, + "expense": 0, + "profit": 24390, + "created": "2026-11-19T02:01:33.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:57.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单录错作废冲回", + "sales": -210000, + "goods": -180000, + "expense": 0, + "profit": -30000, + "created": "2026-11-19T02:01:59.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 220000, + "goods": 181898, + "expense": 0, + "profit": 38102, + "created": "2026-11-19T02:02:40.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 50000, + "goods": 42000, + "expense": 0, + "profit": 8000, + "created": "2026-11-19T02:02:51.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "回收专用更正冲回", + "sales": -130800, + "goods": -106410, + "expense": 0, + "profit": -24390, + "created": "2026-11-20T02:00:15.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-20", + "kind": "交付", + "sales": 200000, + "goods": 185000, + "expense": 0, + "profit": 15000, + "created": "2026-11-20T02:00:29.000Z", + "number": "MM20261120-" + } + ], + "afterSales": [ + { + "id": "", + "date": "2026-11-18", + "project": "对照改圈", + "customer": "对照售后客户", + "amount": 950, + "payer": "assistant", + "actor": "助理", + "created": "2026-11-18T02:02:03.000Z" + } + ], + "afterSaleCount": 1, + "inventory": [ + { + "pocket": "现货", + "mg": 65950, + "reserved": 0, + "available": 65950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 20092, + "reserved": 0, + "available": 20092 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261120-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "peopleCount": null + } + }, + { + "seq": 537, + "label": "final-order-book-assistant", + "date": "2026-11-20", + "actor": "assistant", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-20", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-20", + "today": "2026-11-20", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0 + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 0, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "原售价与货品成本已冲回,实际费用保留", + "balance": 130800, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261120-", + "paper_number": "20261120017", + "date": "2026-11-20", + "created": "2026-11-20T02:00:29.000Z", + "customer": "留档客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 200000, + "sale": 200000, + "material": 180000, + "laborAndFees": 5000, + "unallocated": 0, + "totalCost": 185000, + "profit": 15000, + "ownerCost": 0, + "assistantCost": 185000, + "assistant2Cost": 0, + "known": { + "sale": 200000, + "material": 180000, + "laborAndFees": 5000, + "unallocated": 0, + "totalCost": 185000, + "profit": 15000, + "ownerCost": 0, + "assistantCost": 185000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 5000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 5000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118001", + "date": "2026-11-18", + "created": "2026-11-18T02:01:17.000Z", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "客户单备注", + "types": [ + "货盘现货" + ], + "mg": 3250, + "summaryMg": 3250, + "pieces": 0, + "originalSale": 321100, + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0, + "known": { + "sale": 321100, + "material": 286000, + "laborAndFees": 5400, + "unallocated": 0, + "totalCost": 291400, + "profit": 29700, + "ownerCost": 286000, + "assistantCost": 5400, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金999", + "amount": 286000, + "payer": "owner", + "excluded": false, + "calculation": { + "rate": 88000, + "quantity": 3250 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 4000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 200, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "快递", + "source": "2026-11-18", + "amount": 1200, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 2, + "updated": "2026-11-18T02:01:50.000Z", + "actor": "助理" + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118003", + "date": "2026-11-18", + "created": "2026-11-18T02:01:19.000Z", + "customer": "对照客户丙", + "salesperson": "麦麦", + "status": "delivered", + "note": "老板改备注", + "types": [ + "配货" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 1, + "originalSale": 288500, + "sale": 288500, + "material": null, + "laborAndFees": null, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 288500, + "material": 0, + "laborAndFees": 1731, + "unallocated": 150000, + "totalCost": 151731, + "profit": 136769, + "ownerCost": 151731, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 金镶玉吊坠", + "amount": 150000, + "payer": "owner", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "信用卡手续费(6‰)", + "source": "2026-11-18", + "amount": 1731, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118004", + "date": "2026-11-18", + "created": "2026-11-18T02:01:20.000Z", + "materialPoolIds": [ + "2026-11-18" + ], + "materialCostPending": false, + "customer": "对照客户丁", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 3000, + "summaryMg": 3000, + "pieces": 0, + "originalSale": 330000, + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0, + "known": { + "sale": 330000, + "material": 271935, + "laborAndFees": 1000, + "unallocated": 0, + "totalCost": 272935, + "profit": 57065, + "ownerCost": 0, + "assistantCost": 272935, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-18日购料", + "amount": 271935, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-18", + "materialPoolRevision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "calculation": { + "rate": 90645, + "quantity": 3000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "补寄快递", + "source": "2026-11-19", + "amount": 1000, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 6, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "afterSale", + "after_sale_id": "", + "number": "售后", + "paper_number": "", + "date": "2026-11-18", + "created": "2026-11-18T02:02:03.000Z", + "customer": "对照售后客户", + "salesperson": "助理", + "status": "after_sale", + "project": "对照改圈", + "note": "对照改圈", + "amount": 950, + "payer": "assistant", + "types": [ + "售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 0, + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 950, + "unallocated": 0, + "totalCost": 950, + "profit": -950, + "ownerCost": 0, + "assistantCost": 950 + }, + "costItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "laborAndFeeItems": [ + { + "kind": "afterSale", + "after_sale_id": "", + "name": "对照改圈", + "source": "售后 · 2026-11-18", + "amount": 950, + "payer": "assistant", + "component": "fee", + "calculation": null + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "独立售后支出,计入所选日期利润", + "balance": 0, + "revision": 2, + "reviewed_revision": 2 + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119010", + "date": "2026-11-19", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "types": [ + "货盘现货" + ], + "mg": 3100, + "summaryMg": 3100, + "pieces": 0, + "originalSale": 286200, + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0, + "known": { + "sale": 286200, + "material": 264000, + "laborAndFees": 3600, + "unallocated": 0, + "totalCost": 267600, + "profit": 18600, + "ownerCost": 255600, + "assistantCost": 12000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 原锁价采购", + "amount": 255000, + "payer": "owner", + "excluded": false, + "priceLockSource": "original", + "calculation": { + "rate": 85000, + "quantity": 3000 + } + }, + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 补重采购", + "amount": 9000, + "payer": "assistant", + "excluded": false, + "priceLockSource": "extra", + "calculation": { + "rate": 90000, + "quantity": 100 + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + }, + { + "kind": "paid", + "name": "实际快递", + "source": "2026-11-19", + "amount": 600, + "payer": "owner", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 3, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119012", + "date": "2026-11-19", + "created": "2026-11-19T02:01:33.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 0, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 6000, + "summaryMg": 6000, + "pieces": 0, + "originalSale": 130800, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "原售价与货品成本已冲回,实际费用保留", + "balance": 130800, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119014", + "date": "2026-11-19", + "created": "2026-11-19T02:01:57.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "customer": "当天取消客户", + "salesperson": "娜娜", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119015", + "date": "2026-11-19", + "created": "2026-11-19T02:02:40.000Z", + "materialPoolIds": [ + "2026-11-19" + ], + "materialCostPending": false, + "customer": "滚动料池客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "配货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 220000, + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0, + "known": { + "sale": 220000, + "material": 181898, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 181898, + "profit": 38102, + "ownerCost": 0, + "assistantCost": 181898, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "料费成本", + "source": "商品 1 · 足金999 · 2026-11-19日购料", + "amount": 181898, + "payer": "assistant", + "excluded": false, + "materialPoolId": "2026-11-19", + "materialPoolRevision": "278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc", + "calculation": { + "rate": 90949, + "quantity": 2000, + "weighted": true + } + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119016", + "date": "2026-11-19", + "created": "2026-11-19T02:02:51.000Z", + "customer": "安全测试", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 500, + "summaryMg": 500, + "pieces": 0, + "originalSale": 50000, + "sale": 50000, + "material": null, + "laborAndFees": null, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0, + "known": { + "sale": 50000, + "material": 0, + "laborAndFees": 0, + "unallocated": 42000, + "totalCost": 42000, + "profit": 8000, + "ownerCost": 0, + "assistantCost": 42000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金转运珠", + "amount": 42000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "recovery", + "recovery_id": "", + "recovery_mode": "direct", + "number": "HS202611200003", + "paper_number": "", + "date": "2026-11-20", + "created": "2026-11-20T02:00:20.000Z", + "customer": "对照回收客户", + "salesperson": "娜娜", + "member": "assistant", + "status": "recovery", + "note": "", + "types": [ + "黄金回收" + ], + "mg": 10000, + "summaryMg": 0, + "pieces": 0, + "cashPayment": 900000, + "purchase_id": "", + "costHint": "回收付款已计入每日购料,本行不计销售、利润和销售克重", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant", + "funds_mode": "team", + "number": "MM20261120-", + "paper_number": "20261120017", + "date": "2026-11-20", + "created": "2026-11-20T02:00:29.000Z", + "customer": "留档客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 200000, + "sale": 200000, + "material": 180000, + "laborAndFees": 5000, + "unallocated": 0, + "totalCost": 185000, + "profit": 15000, + "ownerCost": 0, + "assistantCost": 185000, + "assistant2Cost": 0, + "known": { + "sale": 200000, + "material": 180000, + "laborAndFees": 5000, + "unallocated": 0, + "totalCost": 185000, + "profit": 15000, + "ownerCost": 0, + "assistantCost": 185000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 5000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 5000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "kind": "recovery", + "recovery_id": "", + "recovery_mode": "direct", + "number": "HS202611200005", + "paper_number": "", + "date": "2026-11-20", + "created": "2026-11-20T02:00:30.000Z", + "customer": "留档回收客户", + "salesperson": "娜娜", + "member": "assistant", + "status": "recovery", + "note": "", + "types": [ + "黄金回收" + ], + "mg": 2000, + "summaryMg": 0, + "pieces": 0, + "cashPayment": 180000, + "purchase_id": "", + "costHint": "回收付款已计入每日购料,本行不计销售、利润和销售克重", + "printStatus": { + "kind": "recovery", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 2, + "summary": { + "orderCount": 9, + "completedCount": 7, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 2, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1695800, + "material": 1183833, + "laborAndFees": 17681, + "unallocated": 192000, + "totalCost": 1393514, + "profit": 302286, + "ownerCost": 693331, + "assistantCost": 700183, + "assistant2Cost": 0, + "mg": 21850, + "pieces": 1, + "knownCounts": { + "sale": 9, + "material": 7, + "laborAndFees": 7, + "unallocated": 9, + "totalCost": 9, + "profit": 9, + "ownerCost": 9, + "assistantCost": 9, + "assistant2Cost": 9 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 10 + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-20", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 270000, + "account": "助理微信", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 120000, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:02:02.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 16200, + "account": "助理支付宝", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:53.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 255000, + "payer": "owner", + "source": "original", + "quantity": 3000, + "rate": 85000, + "number": "SJ20261118-", + "customer": "对照锁价客户二", + "product": "足金999", + "actor": "助理", + "created": "2026-11-18T02:01:54.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-19", + "kind": "material", + "amount": 9000, + "payer": "assistant", + "source": "extra", + "quantity": 100, + "rate": 90000, + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "product": "足金999", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [ + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "price_lock_id": "", + "number": "SJ20261118-", + "customer": "对照锁价客户(改)", + "kind": "fee", + "component": "fee", + "product": "足金999" + } + ], + "deliveryGoodsOutlays": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金999", + "amount": 3000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::0", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::1", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金999", + "amount": 0, + "payer": "assistant", + "excluded": false, + "calculation": null, + "id": "price-lock-goods::2", + "price_lock_id": "", + "order_id": "", + "number": "MM20261119-", + "paper_number": "20261119010", + "customer": "对照锁价客户(改)", + "date": "2026-11-19", + "component": "other" + } + ], + "receipts": { + "receipt": 406200, + "refund": 0, + "net": 406200, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 270000, + "refund": 0, + "net": 270000 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 3, + "orderCount": 2 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 510000, + "goods": 510000, + "paidFees": 600, + "total": 510600 + }, + "assistant": { + "payer": "assistant", + "material": 9000, + "goods": 12000, + "paidFees": 0, + "total": 12000 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + } + }, + "summary": { + "receipt": 406200, + "refund": 0, + "net": 406200, + "materialOutlay": 519000, + "goodsOutlay": 522000, + "feeOutlay": 600, + "ownerOutlay": 510600, + "assistantOutlay": 12000, + "assistant2Outlay": 0, + "totalOutlay": 522600, + "eventCount": 10, + "lockCount": 2 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-20", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z" + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "直接回收 · HS202611200003", + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-20T02:00:25.000Z", + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 900000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "canEdit": false + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 2000, + "amount": 180000, + "payer": "assistant", + "note": "直接回收 · HS202611200005", + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-20T02:00:30.000Z", + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 180000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "canEdit": false + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 2530000, + "goods": 2530000, + "paidFees": 0, + "total": 2530000, + "purchaseCount": 4 + }, + "assistant2": { + "payer": "assistant2", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + } + }, + "summary": { + "purchaseCount": 4, + "poolCount": 3, + "mg": 28000, + "materialOutlay": 2530000, + "purchaseValue": 2530000, + "ownerOutlay": 0, + "assistantOutlay": 2530000, + "assistant2Outlay": 0, + "totalOutlay": 2530000, + "eventCount": 4 + } + }, + "summaryWithoutCancelled": { + "orderCount": 7, + "completedCount": 7, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 0, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 2, + "sale": 1695800, + "material": 1183833, + "laborAndFees": 17681, + "unallocated": 192000, + "totalCost": 1393514, + "profit": 302286, + "ownerCost": 693331, + "assistantCost": 700183, + "assistant2Cost": 0, + "mg": 13850, + "pieces": 1, + "knownCounts": { + "sale": 7, + "material": 5, + "laborAndFees": 5, + "unallocated": 7, + "totalCost": 7, + "profit": 7, + "ownerCost": 7, + "assistantCost": 7, + "assistant2Cost": 7 + }, + "unknownCounts": { + "sale": 0, + "material": 2, + "laborAndFees": 2, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 8 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-20", + "receipt": 1815800, + "refund": 0, + "net": 1815800, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1061100, + "refund": 0, + "net": 1061100 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1061100, + "refund": 0, + "net": 1061100 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 8 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-20", + "receipt": 1815800, + "refund": 0, + "net": 1815800, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1061100, + "refund": 0, + "net": 1061100 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1061100, + "refund": 0, + "net": 1061100 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 13, + "orderCount": 10 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-20", + "receipt": 1815800, + "refund": 0, + "net": 1815800, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1061100, + "refund": 0, + "net": 1061100 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "channel": "credit_card", + "name": "信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 1061100, + "refund": 0, + "net": 1061100 + }, + { + "account": "助理支付宝", + "receipt": 136200, + "refund": 0, + "net": 136200 + }, + { + "account": "助理现金", + "receipt": 330000, + "refund": 0, + "net": 330000 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 288500, + "refund": 0, + "net": 288500 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 13, + "orderCount": 10 + } + } + }, + { + "seq": 538, + "label": "final-state-assistant2", + "date": "2026-11-20", + "actor": "assistant2", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "today": "2026-11-20", + "mode": "trial", + "user": { + "id": "", + "name": "助理2", + "role": "assistant", + "member": "assistant2", + "operatorName": "小昊", + "label": "小昊" + }, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "shopSettings": { + "version": 1, + "revision": 7, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "members": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ], + "creditCardRatePermille": 6, + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "8", + "packagingPayer": "owner" + } + }, + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "pocketCatalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "pocket_", + "name": "展柜A(主)", + "active": true, + "self": true, + "builtin": false, + "revision": 2, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:34.000Z", + "countUnit": null, + "countSince": null + } + ], + "accounts": [ + "助理微信", + "助理支付宝", + "助理现金", + "麦麦微信", + "麦麦支付宝", + "麦麦现金", + "麦麦信用卡", + "助理2微信", + "助理2支付宝", + "助理2现金" + ], + "inventory": [ + { + "pocket": "现货", + "mg": 65950, + "reserved": 0, + "available": 65950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 20092, + "reserved": 0, + "available": 20092 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "orders": [ + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 7, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": { + "id": "", + "status": "approved", + "order_revision": 6, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "实际由小昊接待", + "requester_name": "助理", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:56.000Z", + "note": "核实", + "direct": false + }, + "corrections": [], + "received": 210000, + "refunded": 0, + "netReceived": 210000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 800, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29200, + "profit": 29200, + "knownProfit": 29200, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 7, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:56.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照换货客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261119011", + "status": "delivered", + "lines": [ + { + "name": "足金对照新货", + "code": "", + "unit": "g", + "quantity": 12000, + "pocket": "现货", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 357720, + "costParts": { + "material": 351720, + "labor": 6000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 3908 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "sale": 422792, + "baseSale": 422792, + "charges": [], + "pricingMode": "manual", + "priceNote": "补金 3.908克 × 1000.00元;新货工费 240.00元;折旧 79.92元", + "recoveryMaterialMg": 3908, + "recovery_id": "" + } + ], + "discount": 0, + "total": 422792, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:32.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z" + } + ], + "received": 422792, + "refunded": 0, + "netReceived": 422792, + "balance": 0, + "recovery_id": "", + "recovery_mode": "exchange", + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 422792, + "rounding_adjustment": 0, + "goodsCost": 357720, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 357720, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 65072, + "profit": 65072, + "knownProfit": 65072, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:10.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "核实业务归属", + "requester_name": "麦麦", + "created": "2026-11-19T02:00:49.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:49.000Z", + "note": "", + "direct": true + }, + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:49.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:05.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照取消客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118006", + "status": "cancelled", + "lines": [ + { + "name": "足金戒指", + "code": "", + "unit": "g", + "quantity": 1500, + "pocket": "现货", + "payer": "assistant2", + "cost": 130000, + "sale": 150000, + "baseSale": 150000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 150000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:24.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "取消单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 130000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 130000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 20000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:45.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户乙", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118002", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant2", + "cost": 180000, + "sale": 208710, + "baseSale": 208710, + "charges": [], + "pricingMode": "auto", + "goldPrice": 95555, + "laborRate": 8800, + "laborMode": "piece", + "pieces": 2, + "priceNote": "金价 955.55元/克 + 工费 88.00元/件 × 2件" + }, + { + "name": "纯银925", + "code": "", + "unit": "件", + "quantity": 3, + "pocket": "", + "payer": "assistant2", + "cost": 3000, + "sale": 9990, + "baseSale": 9990, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 1537, + "total": 217163, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:18.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "按件内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 217163, + "refunded": 0, + "netReceived": 217163, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 183000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 183000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 34163, + "profit": 34163, + "knownProfit": 34163, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:18.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + ], + "priceLockCounts": { + "pending": 1, + "delivered": 0, + "cancelled": 0 + }, + "materialPoolSummary": { + "totalMg": 36000, + "totalAmount": 3274167, + "usedMg": 0, + "remainingMg": 36000, + "remainingCost": 3274167, + "shortageMg": 0, + "pendingCount": 0, + "purchaseCount": 0 + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "materialPoolAllocation": { + "version": 1, + "targetVersion": 2, + "migrationRequired": true, + "usageCount": 0, + "activeUsageCount": 0 + }, + "sync": { + "enabled": false + }, + "printing": { + "store": "黄金对照珠宝", + "subtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "width": 241, + "height": 140, + "offsetX": 2, + "offsetY": 3, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + }, + "backup": null, + "movements": [ + { + "id": "", + "group_id": "", + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery", + "note": "HS202611200005", + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-20", + "pocket": "现货", + "mg": -2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261120-", + "actor": "助理", + "created": "2026-11-20T02:00:29.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": -3000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611200004;录错", + "actor": "麦麦", + "created": "2026-11-20T02:00:27.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 10000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_old", + "note": "回收更正:HS202611200003;当天更正", + "actor": "助理", + "created": "2026-11-20T02:00:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": -10000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611200003;当天更正", + "actor": "助理", + "created": "2026-11-20T02:00:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 3000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery", + "note": "HS202611200004", + "actor": "麦麦", + "created": "2026-11-20T02:00:21.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 10000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery", + "note": "HS202611200003", + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 6000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190002;录错", + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": -4851, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190002;录错", + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "kind": "recovery_change_sale", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 8092, + "kind": "recovery_change_old", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 12000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": -7992, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "order_cancel_reverse", + "note": "MM20261119-;当天直接作废:当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -6000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 4851, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "recovery", + "note": "HS202611190002", + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 7992, + "kind": "recovery", + "note": "HS202611190001", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -3100, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261119-", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 100, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 补重黄金入库", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 3000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 原锁定黄金入库", + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "after-sale:", + "order_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "return", + "note": "MM20261118- · 售后回收旧料", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "groupId": "after-sale:", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500, + "kind": "order_cancel_reverse", + "note": "MM20261118-;审批作废:重复录入", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": -1200, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "actor": "麦麦", + "created": "2026-11-19T02:00:21.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "increase", + "note": "当天手动入库", + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": -1000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "increase", + "note": "当天手动入库", + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "increase", + "note": "娜娜手动入库", + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": -10000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "sale", + "note": "MM20261118-", + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "decrease", + "note": "娜娜手动出库", + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "increase", + "note": "娜娜手动入库", + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "transfer", + "note": "调拨", + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "展柜起始", + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始金料", + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "stockCount": null, + "countUnit": null, + "countEffectiveDate": null, + "kind": "opening", + "note": "黄金对照起始库存", + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 539, + "label": "final-session-assistant2", + "date": "2026-11-20", + "actor": "assistant2", + "method": "GET", + "path": "/api/session", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "user": { + "id": "", + "name": "助理2", + "role": "assistant", + "member": "assistant2", + "operatorName": "小昊", + "label": "小昊" + }, + "setup": false, + "mode": "trial", + "today": "2026-11-20", + "brand": { + "storeName": "黄金对照珠宝" + }, + "loginOptions": [ + { + "member": "owner", + "label": "麦麦" + }, + { + "member": "assistant", + "label": "娜娜" + }, + { + "member": "assistant2", + "label": "小昊" + } + ] + } + }, + { + "seq": 540, + "label": "final-report-assistant2", + "date": "2026-11-20", + "actor": "assistant2", + "method": "GET", + "path": "/api/report?from=2026-11-18&date=2026-11-20", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-20", + "from": "2026-11-18", + "sales": 1341955, + "goods": 1152720, + "knownGoods": 1152720, + "expense": 800, + "profit": 188435, + "knownProfit": 188435, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "from": "2026-11-18", + "to": "2026-11-20", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "settlements": [], + "events": [] + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 5, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0 + }, + { + "account": "助理支付宝", + "receipt": 82000, + "refund": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2微信", + "receipt": 972792, + "refund": 0 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2信用卡", + "receipt": 0, + "refund": 0 + } + ], + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 217163, + "account": "助理2支付宝", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 150000, + "account": "助理2现金", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 82000, + "account": "助理支付宝", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": -150000, + "account": "助理2现金", + "reference": "更正冲回:取消审批作废;重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "refund", + "amount": 90000, + "account": "助理2支付宝", + "reference": "整单售后退款", + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 432792, + "account": "助理2微信", + "reference": "置换差额实际收款 · HS202611190001", + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 210000, + "account": "助理微信", + "reference": "开单时已全额收款", + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": -432792, + "account": "助理2微信", + "reference": "更正冲回:回收专用更正;跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "receipt", + "amount": 422792, + "account": "助理2微信", + "reference": "回收更正补记:跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null, + "price_lock_event_id": "" + } + ], + "settlements": [], + "journal": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 217163, + "goods": 183000, + "expense": 0, + "profit": 34163, + "created": "2026-11-18T02:01:18.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 150000, + "goods": 130000, + "expense": 0, + "profit": 20000, + "created": "2026-11-18T02:01:24.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000, + "created": "2026-11-18T02:01:25.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "交付", + "sales": 82000, + "goods": 70000, + "expense": 0, + "profit": 12000, + "created": "2026-11-18T02:01:26.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "订单录错作废冲回", + "sales": -150000, + "goods": -130000, + "expense": 0, + "profit": -20000, + "created": "2026-11-19T02:00:45.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "订单退货退款售后", + "sales": -90000, + "goods": -88000, + "expense": 0, + "profit": -2000, + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 432792, + "goods": 366720, + "expense": 0, + "profit": 66072, + "created": "2026-11-19T02:01:32.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "交付", + "sales": 210000, + "goods": 180000, + "expense": 0, + "profit": 30000, + "created": "2026-11-19T02:01:48.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "直接费用", + "sales": 0, + "goods": 0, + "expense": 800, + "profit": -800, + "created": "2026-11-19T02:01:52.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "回收专用更正冲回", + "sales": -432792, + "goods": -366720, + "expense": 0, + "profit": -66072, + "created": "2026-11-20T02:00:10.000Z", + "number": "MM20261119-" + }, + { + "id": "", + "order_id": "", + "date": "2026-11-19", + "kind": "回收专用更正补记", + "sales": 422792, + "goods": 357720, + "expense": 0, + "profit": 65072, + "created": "2026-11-20T02:00:10.000Z", + "number": "MM20261119-" + } + ], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 65950, + "reserved": 0, + "available": 65950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 20092, + "reserved": 0, + "available": 20092 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null, + "peopleCount": null + } + }, + { + "seq": 541, + "label": "final-order-book-assistant2", + "date": "2026-11-20", + "actor": "assistant2", + "method": "GET", + "path": "/api/order-book?from=2026-11-18&date=2026-11-20", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2026-11-18", + "date": "2026-11-20", + "today": "2026-11-20", + "q": "", + "status": "all", + "pocket": "", + "rows": [ + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 422792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 422792, + "sale": 422792, + "material": 351720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 357720, + "profit": 65072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 357720, + "known": { + "sale": 422792, + "material": 351720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 357720, + "profit": 65072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 357720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 351720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 3908 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0 + } + ], + "displayRows": [ + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118002", + "date": "2026-11-18", + "created": "2026-11-18T02:01:18.000Z", + "customer": "对照客户乙", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货", + "配货 · 银饰" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 3, + "originalSale": 217163, + "sale": 217163, + "material": null, + "laborAndFees": null, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000, + "known": { + "sale": 217163, + "material": 0, + "laborAndFees": 0, + "unallocated": 183000, + "totalCost": 183000, + "profit": 34163, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 183000 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金999", + "amount": 180000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 2 · 纯银925", + "amount": 3000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118006", + "date": "2026-11-18", + "created": "2026-11-18T02:01:24.000Z", + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "customer": "对照取消客户", + "salesperson": "小昊", + "status": "cancelled", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 1500, + "summaryMg": 1500, + "pieces": 0, + "originalSale": 150000, + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0, + "known": { + "sale": 0, + "material": 0, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "costItems": [], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-18", + "created": "2026-11-18T02:01:25.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "returned", + "note": "", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "current_status": "returned", + "types": [ + "货盘现货" + ], + "mg": 5000, + "summaryMg": 5000, + "pieces": 0, + "originalSale": 500000, + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000, + "known": { + "sale": 500000, + "material": 440000, + "laborAndFees": 10000, + "unallocated": 0, + "totalCost": 450000, + "profit": 50000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 450000 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金手链", + "amount": 440000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金手链", + "amount": 10000, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金手链", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 4, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261118-", + "paper_number": "20261118008", + "date": "2026-11-18", + "created": "2026-11-18T02:01:26.000Z", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 800, + "summaryMg": 800, + "pieces": 0, + "originalSale": 82000, + "sale": 82000, + "material": null, + "laborAndFees": null, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0, + "known": { + "sale": 82000, + "material": 0, + "laborAndFees": 0, + "unallocated": 70000, + "totalCost": 70000, + "profit": 12000, + "ownerCost": 0, + "assistantCost": 70000, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金耳钉", + "amount": 70000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + }, + { + "id": "", + "order_id": "", + "kind": "orderAfterSale", + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "order_id": "", + "created": "2026-11-19T02:01:05.000Z", + "number": "MM20261118-", + "paper_number": "20261118007", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "order_date": "2026-11-18", + "member": "assistant2" + }, + "member": "assistant2", + "number": "MM20261118-", + "paper_number": "20261118007", + "date": "2026-11-19", + "order_date": "2026-11-18", + "created": "2026-11-19T02:01:05.000Z", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "status": "after_sale", + "note": "", + "project": "订单售后", + "types": [ + "订单售后" + ], + "mg": 0, + "summaryMg": 0, + "pieces": 0, + "originalSale": 500000, + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000, + "known": { + "sale": -90000, + "material": -88000, + "laborAndFees": 0, + "unallocated": 0, + "totalCost": -88000, + "profit": -2000, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": -88000 + }, + "costItems": [ + { + "kind": "goods", + "component": "material", + "name": "售后收回金料成本", + "source": "商品 1 · 足金手链", + "amount": -88000, + "payer": "assistant2", + "nonCash": true, + "materialPoolId": "2026-11-19", + "calculation": null + } + ], + "laborAndFeeItems": [], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "按售后发生日调整;回收成本不属于新付款", + "balance": 0, + "revision": 1, + "reviewed_revision": 1 + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119011", + "date": "2026-11-19", + "created": "2026-11-19T02:01:32.000Z", + "recovery_id": "", + "recovery_mode": "exchange", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 422792, + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "customer": "对照换货客户", + "salesperson": "小昊", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 12000, + "summaryMg": 12000, + "pieces": 0, + "originalSale": 422792, + "sale": 422792, + "material": 351720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 357720, + "profit": 65072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 357720, + "known": { + "sale": 422792, + "material": 351720, + "laborAndFees": 6000, + "unallocated": 0, + "totalCost": 357720, + "profit": 65072, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 357720 + }, + "costItems": [ + { + "kind": "goods", + "name": "料费成本", + "source": "商品 1 · 足金对照新货", + "amount": 351720, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 90000, + "quantity": 3908 + }, + "component": "material" + }, + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "laborAndFeeItems": [ + { + "kind": "goods", + "name": "进货工费", + "source": "商品 1 · 足金对照新货", + "amount": 6000, + "payer": "assistant2", + "excluded": false, + "calculation": { + "rate": 500, + "quantity": 12000 + }, + "component": "labor" + }, + { + "kind": "goods", + "name": "配件成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "accessories" + }, + { + "kind": "goods", + "name": "其他货品成本", + "source": "商品 1 · 足金对照新货", + "amount": 0, + "payer": "assistant2", + "excluded": false, + "calculation": null, + "component": "other" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": false, + "incomplete": false, + "costHint": "", + "balance": 0, + "revision": 5, + "reviewed_revision": 0, + "printStatus": { + "kind": "recovery", + "id": "", + "printed": true, + "revision": 1, + "updated": "2026-11-19T02:01:40.000Z", + "actor": "助理2" + } + }, + { + "id": "", + "member": "assistant2", + "funds_mode": "team", + "number": "MM20261119-", + "paper_number": "20261119013", + "date": "2026-11-19", + "created": "2026-11-19T02:01:48.000Z", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "status": "delivered", + "note": "", + "types": [ + "货盘现货" + ], + "mg": 2000, + "summaryMg": 2000, + "pieces": 0, + "originalSale": 210000, + "sale": 210000, + "material": null, + "laborAndFees": null, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0, + "known": { + "sale": 210000, + "material": 0, + "laborAndFees": 800, + "unallocated": 180000, + "totalCost": 180800, + "profit": 29200, + "ownerCost": 0, + "assistantCost": 180800, + "assistant2Cost": 0 + }, + "costItems": [ + { + "kind": "goods", + "name": "货品成本(原单未分项)", + "source": "商品 1 · 足金吊坠", + "amount": 180000, + "payer": "assistant", + "excluded": false, + "calculation": null, + "component": "unallocated" + }, + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "laborAndFeeItems": [ + { + "kind": "paid", + "name": "当天快递", + "source": "2026-11-19", + "amount": 800, + "payer": "assistant", + "component": "fee" + } + ], + "pendingCostItems": [], + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "legacyUnallocated": true, + "incomplete": false, + "costHint": "原单货品成本未分项,计入未分项成本", + "balance": 0, + "revision": 7, + "reviewed_revision": 0, + "printStatus": { + "kind": "order", + "id": "", + "printed": false, + "revision": 0, + "updated": null, + "actor": null + } + } + ], + "recoveryCount": 0, + "summary": { + "orderCount": 6, + "completedCount": 5, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 1, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 3, + "sale": 1341955, + "material": 703720, + "laborAndFees": 16800, + "unallocated": 433000, + "totalCost": 1153520, + "profit": 188435, + "ownerCost": 0, + "assistantCost": 250800, + "assistant2Cost": 902720, + "mg": 23300, + "pieces": 3, + "knownCounts": { + "sale": 6, + "material": 3, + "laborAndFees": 3, + "unallocated": 6, + "totalCost": 6, + "profit": 6, + "ownerCost": 6, + "assistantCost": 6, + "assistant2Cost": 6 + }, + "unknownCounts": { + "sale": 0, + "material": 3, + "laborAndFees": 3, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 7 + }, + "peopleCount": null, + "priceLockActivity": { + "basis": "eventDate", + "from": "2026-11-18", + "date": "2026-11-20", + "customerCash": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 50000, + "account": "助理2微信", + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": null, + "voided": 0, + "void_reason": null, + "voided_at": null + } + ], + "orderPayments": [], + "materialOutlays": [ + { + "id": "", + "price_lock_id": "", + "date": "2026-11-18", + "kind": "material", + "amount": 258000, + "payer": "assistant2", + "source": "original", + "quantity": 3000, + "rate": 86000, + "number": "SJ20261118-", + "customer": "对照锁价客户三", + "product": "足金999", + "actor": "助理2", + "created": "2026-11-18T02:01:55.000Z", + "line_index": 0, + "voided": 0, + "void_reason": null, + "voided_at": null, + "component": "material" + } + ], + "directOutlays": [], + "deliveryGoodsOutlays": [], + "receipts": { + "receipt": 50000, + "refund": 0, + "net": 50000, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 50000, + "refund": 0, + "net": 50000 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 1, + "orderCount": 1 + }, + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 258000, + "goods": 258000, + "paidFees": 0, + "total": 258000 + } + }, + "summary": { + "receipt": 50000, + "refund": 0, + "net": 50000, + "materialOutlay": 258000, + "goodsOutlay": 258000, + "feeOutlay": 0, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 258000, + "totalOutlay": 258000, + "eventCount": 2, + "lockCount": 1 + } + }, + "materialPoolActivity": { + "basis": "purchaseDate", + "from": "2026-11-18", + "date": "2026-11-20", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z" + } + ], + "payerOutlays": { + "owner": { + "payer": "owner", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant": { + "payer": "assistant", + "material": 0, + "goods": 0, + "paidFees": 0, + "total": 0, + "purchaseCount": 0 + }, + "assistant2": { + "payer": "assistant2", + "material": 370000, + "goods": 370000, + "paidFees": 0, + "total": 370000, + "purchaseCount": 1 + } + }, + "summary": { + "purchaseCount": 1, + "poolCount": 1, + "mg": 4000, + "materialOutlay": 370000, + "purchaseValue": 370000, + "ownerOutlay": 0, + "assistantOutlay": 0, + "assistant2Outlay": 370000, + "totalOutlay": 370000, + "eventCount": 1 + } + }, + "summaryWithoutCancelled": { + "orderCount": 5, + "completedCount": 5, + "draftCount": 0, + "confirmedCount": 0, + "returnedCount": 1, + "cancelledCount": 0, + "incompleteCount": 0, + "missingCosts": 0, + "pendingCosts": 0, + "unknownCosts": 0, + "unknownCostCount": 0, + "unknownProfitCount": 0, + "legacyUnallocatedCount": 3, + "sale": 1341955, + "material": 703720, + "laborAndFees": 16800, + "unallocated": 433000, + "totalCost": 1153520, + "profit": 188435, + "ownerCost": 0, + "assistantCost": 250800, + "assistant2Cost": 902720, + "mg": 21800, + "pieces": 3, + "knownCounts": { + "sale": 5, + "material": 2, + "laborAndFees": 2, + "unallocated": 5, + "totalCost": 5, + "profit": 5, + "ownerCost": 5, + "assistantCost": 5, + "assistant2Cost": 5 + }, + "unknownCounts": { + "sale": 0, + "material": 3, + "laborAndFees": 3, + "unallocated": 0, + "totalCost": 0, + "profit": 0, + "ownerCost": 0, + "assistantCost": 0, + "assistant2Cost": 0 + }, + "partial": true, + "afterSaleCount": 1, + "recordCount": 6 + }, + "receiptsWithoutCancelled": { + "basis": "orderDate", + "filterScope": "matchingOrdersWithoutCancelled", + "from": "2026-11-18", + "date": "2026-11-20", + "receipt": 1481955, + "refund": 90000, + "net": 1391955, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1182792, + "refund": 0, + "net": 1182792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 299163, + "refund": 90000, + "net": 209163 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 82000, + "refund": 0, + "net": 82000 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 972792, + "refund": 0, + "net": 972792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 9, + "orderCount": 6 + }, + "receiptsByPaymentDate": { + "basis": "paymentDate", + "filterScope": "dateRange", + "from": "2026-11-18", + "date": "2026-11-20", + "receipt": 1481955, + "refund": 90000, + "net": 1391955, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1182792, + "refund": 0, + "net": 1182792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 299163, + "refund": 90000, + "net": 209163 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 82000, + "refund": 0, + "net": 82000 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 972792, + "refund": 0, + "net": 972792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 11, + "orderCount": 7 + }, + "receiptsByOrderDate": { + "basis": "orderDate", + "filterScope": "matchingOrders", + "from": "2026-11-18", + "date": "2026-11-20", + "receipt": 1481955, + "refund": 90000, + "net": 1391955, + "channels": [ + { + "channel": "wechat", + "name": "微信", + "receipt": 1182792, + "refund": 0, + "net": 1182792 + }, + { + "channel": "alipay", + "name": "支付宝", + "receipt": 299163, + "refund": 90000, + "net": 209163 + }, + { + "channel": "cash", + "name": "现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "accounts": [ + { + "account": "助理微信", + "receipt": 210000, + "refund": 0, + "net": 210000 + }, + { + "account": "助理支付宝", + "receipt": 82000, + "refund": 0, + "net": 82000 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0, + "net": 0 + }, + { + "account": "助理2微信", + "receipt": 972792, + "refund": 0, + "net": 972792 + }, + { + "account": "助理2支付宝", + "receipt": 217163, + "refund": 90000, + "net": 127163 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0, + "net": 0 + } + ], + "paymentCount": 11, + "orderCount": 7 + } + } + }, + { + "seq": 542, + "label": "final-inventory", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/inventory", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-20", + "yesterdayDate": "2026-11-19", + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "current": [ + { + "pocket": "现货", + "mg": 65950, + "reserved": 0, + "available": 65950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 20092, + "reserved": 0, + "available": 20092 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "yesterday": { + "date": "2026-11-19", + "inventory": [ + { + "pocket": "现货", + "mg": 61950, + "reserved": 0, + "available": 61950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 12843, + "reserved": 0, + "available": 12843 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "actor": "麦麦", + "created": "2026-11-19T02:04:45.000Z", + "updated": "2026-11-19T02:04:46.000Z", + "stale": true, + "revision": "26e088956f984c72faf016a73484b8daf5648bcb6a79e96465dce260ed8aaace", + "source": "manual", + "scheduled_for": null + }, + "todaySnapshot": null, + "revision": "05152ca7efd793b29308acab81860887d032a1c8a7a1f82dcb8574764c09fd63", + "legacyInventory": [], + "canReview": true, + "automaticSnapshot": { + "enabled": false, + "time": "23:50", + "timeZone": "Asia/Shanghai", + "date": "2026-11-20", + "status": "stopped", + "lastSuccess": null, + "lastError": null, + "nextAttemptAt": null + } + } + }, + { + "seq": 543, + "label": "final-daily-funds", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/daily-funds?date=2026-11-20", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-20", + "from": "2026-11-20", + "team": { + "from": "2026-11-20", + "to": "2026-11-20", + "date": "2026-11-20", + "members": [ + { + "id": "owner", + "name": "麦麦" + }, + { + "id": "assistant", + "name": "娜娜" + }, + { + "id": "assistant2", + "name": "小昊" + } + ], + "balances": [ + { + "member": "owner", + "receipts": 0, + "refunds": 0, + "outlays": 0, + "transferIn": 0, + "transferOut": 0, + "openingChange": -2331631, + "periodChange": 0, + "cumulativeChange": -2331631, + "cashBalance": 0, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant", + "receipts": 200000, + "refunds": 0, + "outlays": 1265000, + "transferIn": 0, + "transferOut": 0, + "openingChange": -165000, + "periodChange": -1065000, + "cumulativeChange": -1230000, + "cashBalance": -1065000, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + }, + { + "member": "assistant2", + "receipts": 0, + "refunds": 0, + "outlays": 0, + "transferIn": 0, + "transferOut": 0, + "openingChange": -518765, + "periodChange": 0, + "cumulativeChange": -518765, + "cashBalance": 0, + "balanceType": "recorded-change", + "notice": "仅三人新账已登记的资金增减,不含真实期初余额" + } + ], + "pairs": [ + { + "id": "owner:assistant", + "members": [ + "owner", + "assistant" + ], + "net": -637681, + "obligationNet": -657681, + "transferred": -20000, + "receivedForNet": 288500, + "advancedNet": -946181, + "offset": 290650, + "due": 637681, + "fromMember": "assistant", + "toMember": "owner", + "direction": "transfer", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "owner:assistant2", + "members": [ + "owner", + "assistant2" + ], + "net": 0, + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0, + "offset": 0, + "due": 0, + "fromMember": null, + "toMember": null, + "direction": "none", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + }, + { + "id": "assistant:assistant2", + "members": [ + "assistant", + "assistant2" + ], + "net": 41200, + "obligationNet": 41200, + "transferred": 0, + "receivedForNet": 292000, + "advancedNet": -250800, + "offset": 250800, + "due": 41200, + "fromMember": "assistant", + "toMember": "assistant2", + "direction": "transfer", + "period": { + "obligationNet": 0, + "transferred": 0, + "receivedForNet": 0, + "advancedNet": 0 + }, + "entries": [] + } + ], + "entries": [], + "transfers": [], + "revision": "aee7ca002fd70deaa425634460b6122d541587cffd55ff4dc901adc1e4bf923c", + "pending": [], + "legacyReadOnly": true, + "cutover": "仅已启用的三人新账事件;旧结算不自动迁入", + "transfersDeducted": true + }, + "readOnly": false, + "hasRecords": true, + "pendingCount": 0, + "legacyReadOnly": true, + "transfersNotDeducted": false, + "reimbursements": [], + "approvedReimbursements": 0, + "ready": true, + "transferAmount": null, + "direction": null, + "sources": { + "revision": "aee7ca002fd70deaa425634460b6122d541587cffd55ff4dc901adc1e4bf923c", + "total": 0, + "items": [] + }, + "confirmation": null, + "actualOutlay": null, + "missingDates": [], + "staleDates": [], + "days": [] + } + }, + { + "seq": 544, + "label": "asset", + "date": "2026-11-20", + "actor": null, + "method": "GET", + "path": "/", + "key": null, + "status": 200, + "contentType": "text/html; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "omitted": true, + "bytes": true + } + }, + { + "seq": 545, + "label": "asset", + "date": "2026-11-20", + "actor": null, + "method": "GET", + "path": "/app.js", + "key": null, + "status": 200, + "contentType": "application/javascript; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "omitted": true, + "bytes": true + } + }, + { + "seq": 546, + "label": "asset", + "date": "2026-11-20", + "actor": null, + "method": "GET", + "path": "/app.css", + "key": null, + "status": 200, + "contentType": "text/css; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "omitted": true, + "bytes": true + } + }, + { + "seq": 547, + "label": "asset", + "date": "2026-11-20", + "actor": null, + "method": "GET", + "path": "/print.js", + "key": null, + "status": 200, + "contentType": "application/javascript; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "omitted": true, + "bytes": true + } + }, + { + "seq": 548, + "label": "asset", + "date": "2026-11-20", + "actor": null, + "method": "GET", + "path": "/calculations.js", + "key": null, + "status": 200, + "contentType": "application/javascript; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "omitted": true, + "bytes": true + } + }, + { + "seq": 549, + "label": "asset-missing", + "date": "2026-11-20", + "actor": null, + "method": "GET", + "path": "/missing.js", + "key": null, + "status": 404, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "地址不存在" + } + }, + { + "seq": 550, + "label": "logout-owner", + "date": "2026-11-20", + "actor": "owner", + "method": "POST", + "path": "/api/logout", + "key": "golden-00211-logout-owner", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=0", + "body": { + "ok": true + } + }, + { + "seq": 551, + "label": "logout-assistant", + "date": "2026-11-20", + "actor": "assistant", + "method": "POST", + "path": "/api/logout", + "key": "golden-00212-logout-assistant", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=0", + "body": { + "ok": true + } + }, + { + "seq": 552, + "label": "logout-assistant2", + "date": "2026-11-20", + "actor": "assistant2", + "method": "POST", + "path": "/api/logout", + "key": "golden-00213-logout-assistant2", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": {} + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=0", + "body": { + "ok": true + } + }, + { + "seq": 553, + "label": "state-after-final-logout", + "date": "2026-11-20", + "actor": "owner", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 401, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "error": "请先登录" + } + }, + { + "seq": 554, + "note": "section", + "name": "dayFourReads" + }, + { + "seq": 555, + "note": "clock", + "date": "2026-11-21", + "hour": 10 + }, + { + "seq": 556, + "label": "login-owner-d4", + "date": "2026-11-21", + "actor": "owner", + "method": "POST", + "path": "/api/login", + "key": "golden-00214-login-owner-d4", + "request": { + "headers": { + "origin": "http://", + "xrw": "maimai-ledger", + "contentType": "application/json" + }, + "body": { + "name": "麦麦", + "password": "golden-owner-pass-2026" + } + }, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": "mm_session=; HttpOnly; SameSite=Strict; Path=/; Max-Age=28800", + "body": { + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + } + } + }, + { + "seq": 557, + "label": "state-d4", + "date": "2026-11-21", + "actor": "owner", + "method": "GET", + "path": "/api/state", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "today": "2026-11-21", + "mode": "trial", + "user": { + "id": "", + "name": "麦麦", + "role": "owner", + "member": "owner", + "operatorName": "麦麦", + "label": "麦麦" + }, + "members": [ + { + "member": "owner", + "label": "麦麦", + "enabled": true + }, + { + "member": "assistant", + "label": "娜娜", + "enabled": true + }, + { + "member": "assistant2", + "label": "小昊", + "enabled": true + } + ], + "shopSettings": { + "version": 1, + "revision": 7, + "storeName": "黄金对照珠宝", + "receiptSubtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "members": [ + { + "member": "owner", + "label": "麦麦", + "loginName": "麦麦", + "operatorName": "" + }, + { + "member": "assistant", + "label": "娜娜", + "loginName": "助理", + "operatorName": "" + }, + { + "member": "assistant2", + "label": "小昊", + "loginName": "助理2", + "operatorName": "" + } + ], + "creditCardRatePermille": 6, + "profitSharePercent": 30, + "profitShareEffectiveMonth": "2000-01", + "profitShareHistory": [ + { + "month": "2000-01", + "percent": 30 + } + ], + "costPresets": { + "jd": { + "amount": "8", + "payer": "owner" + }, + "yt": { + "amount": "6", + "payer": "order" + }, + "box": { + "amount": "3", + "payer": "owner" + }, + "steel": { + "amount": "7", + "payer": "owner" + }, + "silver": { + "amount": "18", + "payer": "owner" + } + }, + "feeDefaults": { + "certificate": "4", + "packaging": "3", + "shipping": "8", + "packagingPayer": "owner" + } + }, + "pockets": [ + "现货", + "金料", + "找金", + "回收旧料", + "君宝汇", + "pocket_" + ], + "pocketCatalog": [ + { + "key": "现货", + "name": "现货", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金料", + "name": "金料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "找金", + "name": "找金", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "回收旧料", + "name": "回收旧料", + "active": true, + "self": true, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "君宝汇", + "name": "君宝汇", + "active": true, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "臻金汇", + "name": "臻金汇", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "金金", + "name": "金金", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "定制工厂", + "name": "定制工厂", + "active": false, + "self": false, + "builtin": true, + "revision": 1, + "created": "2026-11-18T02:00:00.000Z", + "updated": "2026-11-18T02:00:00.000Z", + "countUnit": null, + "countSince": null + }, + { + "key": "pocket_", + "name": "展柜A(主)", + "active": true, + "self": true, + "builtin": false, + "revision": 2, + "created": "2026-11-18T02:00:32.000Z", + "updated": "2026-11-18T02:00:34.000Z", + "countUnit": null, + "countSince": null + } + ], + "accounts": [ + "助理微信", + "助理支付宝", + "助理现金", + "麦麦微信", + "麦麦支付宝", + "麦麦现金", + "麦麦信用卡", + "助理2微信", + "助理2支付宝", + "助理2现金" + ], + "inventory": [ + { + "pocket": "现货", + "mg": 65950, + "reserved": 0, + "available": 65950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 20092, + "reserved": 0, + "available": 20092 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "orders": [ + { + "id": "", + "number": "MM20261120-", + "date": "2026-11-20", + "customer": "留档客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261120017", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 185000, + "costParts": { + "material": 180000, + "labor": 5000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 200000, + "baseSale": 200000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 200000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-20T02:00:29.000Z", + "delivered_date": "2026-11-20", + "returned_date": null, + "paper_date": "2026-11-20", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "留档备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 200000, + "refunded": 0, + "netReceived": 200000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 185000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 185000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 15000, + "profit": 15000, + "knownProfit": 15000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:29.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "安全测试", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119016", + "status": "delivered", + "lines": [ + { + "name": "足金转运珠", + "code": "", + "unit": "g", + "quantity": 500, + "pocket": "现货", + "payer": "assistant", + "cost": 42000, + "sale": 50000, + "baseSale": 50000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 50000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:02:51.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "安全测试备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 50000, + "refunded": 0, + "netReceived": 50000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 42000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 42000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 8000, + "profit": 8000, + "knownProfit": 8000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:02:51.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "滚动料池客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119015", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "", + "payer": "assistant", + "cost": 181898, + "costParts": { + "material": 181898, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-19" + }, + "costLabor": { + "mode": "total" + }, + "sale": 220000, + "baseSale": 220000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-19", + "date": "2026-11-19", + "status": "allocated", + "amount": 181898, + "quantity": 2000, + "averageRate": 90949, + "allocations": [ + { + "payer": "assistant", + "amount": 181898 + } + ], + "revision": "278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc", + "rolling": true + } + } + ], + "discount": 0, + "total": 220000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-19T02:02:40.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "滚动料池备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 220000, + "refunded": 0, + "netReceived": 220000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 181898, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 181898, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 38102, + "profit": 38102, + "knownProfit": 38102, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:02:40.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天取消客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119014", + "status": "cancelled", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:57.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "当天录错", + "requester_name": "助理", + "created": "2026-11-19T02:01:59.000Z", + "reviewer_name": null, + "reviewed": null, + "note": "", + "direct": true, + "operator_name": "助理", + "executedAt": "2026-11-19T02:01:59.000Z" + }, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "当天录错", + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 30000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:59.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "当天客户(改)", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119013", + "status": "delivered", + "lines": [ + { + "name": "足金吊坠", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant", + "cost": 180000, + "sale": 210000, + "baseSale": 210000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 210000, + "revision": 7, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:48.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "当天单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": { + "id": "", + "status": "approved", + "order_revision": 6, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "实际由小昊接待", + "requester_name": "助理", + "created": "2026-11-19T02:01:54.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:56.000Z", + "note": "核实", + "direct": false + }, + "corrections": [], + "received": 210000, + "refunded": 0, + "netReceived": 210000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 180000, + "directCost": 800, + "materialCostPending": false, + "knownGoodsCost": 180000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29200, + "profit": 29200, + "knownProfit": 29200, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 7, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:56.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照换货客户二", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261119012", + "status": "cancelled", + "lines": [ + { + "name": "足金对照新货", + "code": "", + "unit": "g", + "quantity": 6000, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "assistant", + "labor": "assistant" + }, + "cost": 106410, + "costParts": { + "material": 103410, + "labor": 3000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 1149 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "sale": 131751, + "baseSale": 131751, + "charges": [], + "pricingMode": "manual", + "priceNote": "补金 1.149克 × 1000.00元;新货工费 120.00元;折旧 48.51元", + "recoveryMaterialMg": 1149, + "recovery_id": "" + } + ], + "discount": 1000, + "total": 130800, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:33.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "录错", + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 130800, + "recovery_id": "", + "recovery_mode": "exchange", + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 0, + "rounding_adjustment": 49, + "goodsCost": 106410, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 106410, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 24390, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:15.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照换货客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261119011", + "status": "delivered", + "lines": [ + { + "name": "足金对照新货", + "code": "", + "unit": "g", + "quantity": 12000, + "pocket": "现货", + "payer": "assistant2", + "costPayers": { + "material": "assistant2", + "labor": "assistant2" + }, + "cost": 357720, + "costParts": { + "material": 351720, + "labor": 6000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total", + "rate": 90000, + "consumptionMg": 3908 + }, + "costLabor": { + "mode": "gram", + "rate": 500 + }, + "sale": 422792, + "baseSale": 422792, + "charges": [], + "pricingMode": "manual", + "priceNote": "补金 3.908克 × 1000.00元;新货工费 240.00元;折旧 79.92元", + "recoveryMaterialMg": 3908, + "recovery_id": "" + } + ], + "discount": 0, + "total": 422792, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:32.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "2026-11-19", + "rounding_mode": "cent", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "跨天更正旧料克重", + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z" + } + ], + "received": 422792, + "refunded": 0, + "netReceived": 422792, + "balance": 0, + "recovery_id": "", + "recovery_mode": "exchange", + "recovery_immutable_reason": "本单关联黄金回收/置换、购料及库存,暂不支持普通订单修改、取消、退款、退货或费用变更,请保留原关联记录", + "nonCashOffset": 0, + "cashPaid": 0, + "netSettlement": 422792, + "rounding_adjustment": 0, + "goodsCost": 357720, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 357720, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 65072, + "profit": 65072, + "knownProfit": 65072, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-20T02:00:10.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261119-", + "date": "2026-11-19", + "customer": "对照锁价客户(改)", + "salesperson": "娜娜", + "note": "锁价备注;锁价单 SJ20261118-;按原锁定金价 900.00元/克结算", + "paper_number": "20261119010", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3100, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 267000, + "costParts": { + "material": 264000, + "labor": 3000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 286200, + "baseSale": 285200, + "charges": [ + { + "name": "服务", + "amount": 1000 + } + ], + "pricingMode": "auto", + "goldPrice": 90000, + "laborRate": 2000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 900.00元/克 + 工费 20.00元/克", + "lineId": "", + "materialAllocations": [ + { + "source": "original", + "quantity": 3000, + "rate": 85000, + "amount": 255000, + "payer": "owner" + }, + { + "source": "extra", + "quantity": 100, + "rate": 90000, + "amount": 9000, + "payer": "assistant" + } + ] + } + ], + "discount": 0, + "total": 286200, + "revision": 3, + "reviewed_revision": 0, + "created": "2026-11-19T02:01:28.000Z", + "delivered_date": "2026-11-19", + "returned_date": null, + "paper_date": "2026-11-19", + "payment_account": "助理支付宝", + "fee_items": [ + { + "key": "shipping", + "amount": 600, + "payer": "owner", + "note": "实际快递", + "status": "recorded", + "edited": false + } + ], + "fees_date": "2026-11-19", + "rounding_mode": "yuan", + "internal_note": "", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "price_lock_id": "", + "corrections": [], + "received": 286200, + "refunded": 0, + "netReceived": 286200, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 267000, + "directCost": 600, + "materialCostPending": false, + "knownGoodsCost": 267000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 18600, + "profit": 18600, + "knownProfit": 18600, + "ownerCost": 255600, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 3, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:28.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照分步客户", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118009", + "status": "delivered", + "lines": [ + { + "name": "足金项链", + "code": "", + "unit": "g", + "quantity": 4000, + "pocket": "现货", + "payer": "owner", + "cost": 350000, + "sale": 400000, + "baseSale": 400000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 400000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:27.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦支付宝", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1800, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "分步单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "owner", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 400000, + "refunded": 0, + "netReceived": 400000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 350000, + "directCost": 1800, + "materialCostPending": false, + "knownGoodsCost": 350000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 48200, + "profit": 48200, + "knownProfit": 48200, + "ownerCost": 351800, + "ownerDirect": 400000, + "ownerCredit": 400000, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:34.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照驳回客户", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118008", + "status": "delivered", + "lines": [ + { + "name": "足金耳钉", + "code": "", + "unit": "g", + "quantity": 800, + "pocket": "现货", + "payer": "assistant", + "cost": 70000, + "sale": 82000, + "baseSale": 82000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 82000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:26.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "驳回单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "before": { + "member": "assistant", + "label": "娜娜" + }, + "after": { + "member": "assistant2", + "label": "小昊" + }, + "reason": "核实业务归属", + "requester_name": "麦麦", + "created": "2026-11-19T02:00:49.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:49.000Z", + "note": "", + "direct": true + }, + "corrections": [], + "received": 82000, + "refunded": 0, + "netReceived": 82000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 70000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 70000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 12000, + "profit": 12000, + "knownProfit": 12000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:49.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "returned", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": "2026-11-19", + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 500000, + "refunded": 90000, + "netReceived": 410000, + "balance": 0, + "orderAfterSale": { + "orderId": "", + "date": "2026-11-19", + "reason": "客户退回一件", + "deductionReason": "客户确认扣费", + "refund": { + "amount": 90000, + "account": "助理2支付宝", + "payer": "assistant2", + "reference": "" + }, + "expenses": [], + "original": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + "originalJournal": { + "sales": 500000, + "goods": 450000, + "expense": 0, + "profit": 50000 + }, + "summary": { + "refundAmount": 90000, + "retainedAmount": 410000, + "materialReturnedCost": 88000, + "laborRestockedCost": 0, + "materialLoss": 352000, + "costLoss": 362000, + "originalDirectCost": 0, + "newExpenses": 0, + "directCost": 0, + "profit": 48000, + "finalProfit": 48000, + "profitAdjustment": -2000, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ] + }, + "lines": [ + { + "lineIndex": 0, + "name": "足金手链", + "code": "", + "quantity": 1000, + "originalQuantity": 5000, + "pocket": "金料", + "disposition": "scrap", + "stockCount": null, + "originalMaterialCost": 440000, + "materialReturnedCost": 88000, + "materialLoss": 352000, + "laborRestockedCost": 0, + "laborPayer": "assistant2", + "costLoss": 362000, + "materialAllocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "restockedLaborAllocations": [] + } + ], + "originalOrder": { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照售后订单客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118007", + "status": "delivered", + "lines": [ + { + "name": "足金手链", + "code": "", + "unit": "g", + "quantity": 5000, + "pocket": "现货", + "payer": "assistant2", + "cost": 450000, + "costParts": { + "material": 440000, + "labor": 10000, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "total" + }, + "costLabor": { + "mode": "total" + }, + "sale": 500000, + "baseSale": 500000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 500000, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:25.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2微信", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "售后单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "return", + "action_label": "订单售后", + "order_revision": 4, + "reason": "客户退回一件", + "requester_name": "助理2", + "created": "2026-11-19T02:01:03.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:01:05.000Z", + "note": "实物已收回" + }, + "ownershipPending": null, + "ownershipApproved": null, + "payments": [ + { + "id": "", + "order_id": "", + "date": "2026-11-18", + "kind": "receipt", + "amount": 500000, + "account": "助理2微信", + "reference": "开单时已全额收款", + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z" + } + ], + "expenses": [], + "settlements": [], + "corrections": [], + "received": 500000, + "refunded": 0, + "netReceived": 500000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 50000, + "knownProfit": 50000, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + }, + "rounding_adjustment": 0, + "goodsCost": 450000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 450000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 50000, + "profit": 48000, + "knownProfit": 48000, + "ownerCost": 0, + "assistantInventoryCredit": 0, + "assistantInventoryCreditSources": [], + "assistantInventoryCreditExplanation": "", + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:01:05.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照取消客户", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118006", + "status": "cancelled", + "lines": [ + { + "name": "足金戒指", + "code": "", + "unit": "g", + "quantity": 1500, + "pocket": "现货", + "payer": "assistant2", + "cost": 130000, + "sale": 150000, + "baseSale": 150000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 150000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:24.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "取消单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": { + "id": "", + "status": "approved", + "order_revision": 4, + "reason": "重复录入", + "requester_name": "助理2", + "created": "2026-11-19T02:00:41.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:45.000Z", + "note": "核对原单后确认" + }, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [ + { + "target": "", + "type": "payment", + "reason": "重复录入", + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z" + } + ], + "received": 0, + "refunded": 0, + "netReceived": 0, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 130000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 130000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 20000, + "profit": 0, + "knownProfit": 0, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:45.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照草稿客户", + "salesperson": "麦麦", + "note": "", + "paper_number": "20261118005", + "status": "delivered", + "lines": [ + { + "name": "足金手镯", + "code": "", + "unit": "g", + "quantity": 10000, + "pocket": "pocket_", + "payer": "owner", + "cost": 900000, + "sale": 980000, + "baseSale": 980000, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 0, + "total": 980000, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:21.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "yuan", + "internal_note": "草稿单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "owner", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 980000, + "refunded": 0, + "netReceived": 980000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 900000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 900000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 80000, + "profit": 80000, + "knownProfit": 80000, + "ownerCost": 900000, + "ownerDirect": 980000, + "ownerCredit": 980000, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:23.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丁", + "salesperson": "娜娜", + "note": "", + "paper_number": "20261118004", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3000, + "pocket": "", + "payer": "assistant", + "cost": 271935, + "costParts": { + "material": 271935, + "labor": 0, + "accessories": 0, + "other": 0 + }, + "costMaterial": { + "mode": "pool", + "poolId": "2026-11-18" + }, + "costLabor": { + "mode": "total" + }, + "sale": 330000, + "baseSale": 330000, + "charges": [], + "pricingMode": "manual", + "priceNote": "", + "materialPool": { + "poolId": "2026-11-18", + "date": "2026-11-18", + "status": "allocated", + "amount": 271935, + "quantity": 3000, + "averageRate": 90645, + "allocations": [ + { + "payer": "assistant", + "amount": 271935 + } + ], + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75" + } + } + ], + "discount": 0, + "total": 330000, + "revision": 6, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:20.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理现金", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "料池单备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "expense", + "action_label": "费用补记", + "order_revision": 4, + "reason": "补记快递", + "requester_name": "助理", + "created": "2026-11-19T02:00:36.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:37.000Z", + "note": "核实" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 330000, + "refunded": 0, + "netReceived": 330000, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 271935, + "directCost": 1000, + "materialCostPending": false, + "knownGoodsCost": 271935, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 57065, + "profit": 57065, + "knownProfit": 57065, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 6, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:02:27.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户丙", + "salesperson": "麦麦", + "note": "老板改备注", + "paper_number": "20261118003", + "status": "delivered", + "lines": [ + { + "name": "金镶玉吊坠", + "code": "", + "unit": "件", + "quantity": 1, + "pocket": "", + "payer": "owner", + "cost": 150000, + "sale": 288840, + "baseSale": 288840, + "charges": [], + "pricingMode": "manual", + "priceNote": "一口价" + } + ], + "discount": 300, + "total": 288500, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:19.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "麦麦信用卡", + "fee_items": [ + { + "key": "card_fee:", + "system": "credit_card", + "source_kind": "payment", + "source_id": "", + "date": "2026-11-18", + "amount": 1731, + "payer": "owner", + "note": "信用卡手续费(6‰)", + "rate_permille": 6, + "status": "recorded", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "一口价备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 288500, + "refunded": 0, + "netReceived": 288500, + "balance": 0, + "rounding_adjustment": -40, + "goodsCost": 150000, + "directCost": 1731, + "materialCostPending": false, + "knownGoodsCost": 150000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 136769, + "profit": 136769, + "knownProfit": 136769, + "ownerCost": 151731, + "ownerDirect": 288500, + "ownerCredit": 288500, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:39.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户乙", + "salesperson": "小昊", + "note": "", + "paper_number": "20261118002", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 2000, + "pocket": "现货", + "payer": "assistant2", + "cost": 180000, + "sale": 208710, + "baseSale": 208710, + "charges": [], + "pricingMode": "auto", + "goldPrice": 95555, + "laborRate": 8800, + "laborMode": "piece", + "pieces": 2, + "priceNote": "金价 955.55元/克 + 工费 88.00元/件 × 2件" + }, + { + "name": "纯银925", + "code": "", + "unit": "件", + "quantity": 3, + "pocket": "", + "payer": "assistant2", + "cost": 3000, + "sale": 9990, + "baseSale": 9990, + "charges": [], + "pricingMode": "manual", + "priceNote": "" + } + ], + "discount": 1537, + "total": 217163, + "revision": 4, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:18.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理2支付宝", + "fee_items": [], + "fees_date": "", + "rounding_mode": "cent", + "internal_note": "按件内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant2", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": null, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 217163, + "refunded": 0, + "netReceived": 217163, + "balance": 0, + "rounding_adjustment": 0, + "goodsCost": 183000, + "directCost": 0, + "materialCostPending": false, + "knownGoodsCost": 183000, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 34163, + "profit": 34163, + "knownProfit": 34163, + "ownerCost": 0, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 4, + "done_revision": 0, + "error": null, + "updated": "2026-11-18T02:01:18.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + }, + { + "id": "", + "number": "MM20261118-", + "date": "2026-11-18", + "customer": "对照客户甲(改)", + "salesperson": "娜娜", + "note": "客户单备注", + "paper_number": "20261118001", + "status": "delivered", + "lines": [ + { + "name": "足金999", + "code": "", + "unit": "g", + "quantity": 3250, + "pocket": "现货", + "payer": "assistant", + "costPayers": { + "material": "owner", + "labor": "assistant" + }, + "cost": 290200, + "costParts": { + "material": 286000, + "labor": 4000, + "accessories": 200, + "other": 0 + }, + "costMaterial": { + "mode": "gram", + "rate": 88000 + }, + "costLabor": { + "mode": "total" + }, + "sale": 321050, + "baseSale": 318500, + "charges": [ + { + "name": "刻字", + "amount": 2000 + }, + { + "name": "包装", + "amount": 550 + } + ], + "pricingMode": "auto", + "goldPrice": 95000, + "laborRate": 3000, + "laborMode": "gram", + "pieces": 1, + "priceNote": "金价 950.00元/克 + 工费 30.00元/克" + } + ], + "discount": 0, + "total": 321100, + "revision": 5, + "reviewed_revision": 0, + "created": "2026-11-18T02:01:17.000Z", + "delivered_date": "2026-11-18", + "returned_date": null, + "paper_date": "2026-11-18", + "payment_account": "助理微信", + "fee_items": [ + { + "key": "shipping", + "amount": 1200, + "payer": "assistant", + "note": "快递", + "status": "recorded", + "edited": true, + "date": "2026-11-18", + "expense_id": "" + } + ], + "fees_date": "2026-11-18", + "rounding_mode": "yuan", + "internal_note": "#复购 内部备注", + "fee_cost_mode": "legacy", + "customer_type": "unknown", + "member": "assistant", + "cancellationPending": null, + "cancellationApproved": null, + "changePending": null, + "changeApproved": { + "id": "", + "status": "approved", + "action": "edit", + "action_label": "修改订单", + "order_revision": 4, + "reason": "跨天修改客户名", + "requester_name": "助理", + "created": "2026-11-19T02:00:25.000Z", + "reviewer_name": "麦麦", + "reviewed": "2026-11-19T02:00:31.000Z", + "note": "凭据已核对" + }, + "ownershipPending": null, + "ownershipApproved": null, + "corrections": [], + "received": 321100, + "refunded": 0, + "netReceived": 321100, + "balance": 0, + "rounding_adjustment": 50, + "goodsCost": 290200, + "directCost": 1200, + "materialCostPending": false, + "knownGoodsCost": 290200, + "pendingFees": [], + "draftFees": 0, + "estimatedProfit": 29700, + "profit": 29700, + "knownProfit": 29700, + "ownerCost": 286000, + "ownerDirect": 0, + "ownerCredit": 0, + "costTransferred": 0, + "profitTransferred": 0, + "costDue": 0, + "profitDue": 0, + "settlementDue": 0, + "knownSettlementDue": 0, + "sync": { + "revision": 5, + "done_revision": 0, + "error": null, + "updated": "2026-11-19T02:00:31.000Z" + }, + "funds_mode": "team", + "credit_card_rate_permille": 6 + } + ], + "priceLockCounts": { + "pending": 2, + "delivered": 1, + "cancelled": 1 + }, + "materialPoolSummary": { + "totalMg": 36000, + "totalAmount": 3274167, + "usedMg": 0, + "remainingMg": 36000, + "remainingCost": 3274167, + "shortageMg": 0, + "pendingCount": 0, + "purchaseCount": 0 + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "materialPoolAllocation": { + "version": 1, + "targetVersion": 2, + "migrationRequired": true, + "usageCount": 2, + "activeUsageCount": 2 + }, + "sync": { + "enabled": false, + "busy": false, + "error": null, + "pending": 18, + "failed": 0 + }, + "printing": { + "store": "黄金对照珠宝", + "subtitle": "黄金对照销售单", + "contact": "联系电话 000-0000", + "width": 241, + "height": 140, + "offsetX": 2, + "offsetY": 3, + "rows": 3, + "contentTop": 12, + "rowHeight": 10 + }, + "backup": { + "last": { + "name": "", + "time": "2026-11-19T02:04:48.000Z" + }, + "error": null + }, + "movements": [ + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 2000, + "kind": "recovery", + "note": "HS202611200005", + "purchase_cost": 180000, + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-20", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261120-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-20T02:00:29.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": -3000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611200004;录错", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:27.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 10000, + "kind": "recovery_change_old", + "note": "回收更正:HS202611200003;当天更正", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-20T02:00:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": -10000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611200003;当天更正", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-20T02:00:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 3000, + "kind": "recovery", + "note": "HS202611200004", + "purchase_cost": 270000, + "actor": "麦麦", + "created": "2026-11-20T02:00:21.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-20", + "pocket": "回收旧料", + "mg": 10000, + "kind": "recovery", + "note": "HS202611200003", + "purchase_cost": 900000, + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 6000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190002;录错", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": -4851, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190002;录错", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:15.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "kind": "recovery_change_sale", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 8092, + "kind": "recovery_change_old", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 12000, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": -7992, + "kind": "recovery_change_reverse", + "note": "回收更正:HS202611190001;跨天更正旧料克重", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-20T02:00:10.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -500, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:02:51.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 2000, + "kind": "order_cancel_reverse", + "note": "MM20261119-;当天直接作废:当天录错", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:59.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:57.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:48.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -6000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 4851, + "kind": "recovery", + "note": "HS202611190002", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:33.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -12000, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "回收旧料", + "mg": 7992, + "kind": "recovery", + "note": "HS202611190001", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-19T02:01:32.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": -3100, + "kind": "sale", + "note": "MM20261119-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 100, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 补重黄金入库", + "purchase_cost": 9000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-19", + "pocket": "现货", + "mg": 3000, + "kind": "lock_purchase", + "note": "SJ20261118- 足金999 原锁定黄金入库", + "purchase_cost": 255000, + "actor": "助理", + "created": "2026-11-19T02:01:28.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "after-sale:", + "order_id": "", + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "return", + "note": "MM20261118- · 售后回收旧料", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "groupId": "after-sale:", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": 1500, + "kind": "order_cancel_reverse", + "note": "MM20261118-;审批作废:重复录入", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:45.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1200, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:21.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1200, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": -1000, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:19.000Z", + "groupId": "", + "revision": 3, + "manual": false, + "current": false, + "status": "deleted", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-19", + "pocket": "金料", + "mg": 1000, + "kind": "increase", + "note": "当天手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-19T02:00:16.000Z", + "groupId": "", + "revision": 3, + "manual": true, + "current": false, + "status": "deleted", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 3000, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": true, + "status": "modified", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -2500, + "kind": "manual_reversal", + "note": "手动库存更正冲回:", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-19T02:00:11.000Z", + "groupId": "", + "revision": 2, + "manual": false, + "current": false, + "status": "modified", + "reversal": true, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -4000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:34.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -800, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:26.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:25.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -1500, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:24.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "pocket_", + "mg": -10000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:23.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -2000, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理2", + "created": "2026-11-18T02:01:18.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": "", + "date": "2026-11-18", + "pocket": "现货", + "mg": -3250, + "kind": "sale", + "note": "MM20261118-", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:17.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -500, + "kind": "decrease", + "note": "娜娜手动出库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:05.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 2500, + "kind": "increase", + "note": "娜娜手动入库", + "purchase_cost": null, + "actor": "助理", + "created": "2026-11-18T02:01:04.000Z", + "groupId": "", + "revision": 2, + "manual": true, + "current": false, + "status": "modified", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "金料", + "mg": 5000, + "kind": "transfer", + "note": "调拨", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": -5000, + "kind": "transfer", + "note": "调拨", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:03.000Z", + "groupId": "", + "revision": 1, + "manual": true, + "current": true, + "status": "active", + "reversal": false, + "canEdit": true, + "canDelete": true, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "pocket_", + "mg": 20000, + "kind": "opening", + "note": "展柜起始", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:02.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "金料", + "mg": 50000, + "kind": "opening", + "note": "黄金对照起始金料", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:01.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + }, + { + "id": "", + "group_id": "", + "order_id": null, + "date": "2026-11-18", + "pocket": "现货", + "mg": 100000, + "kind": "opening", + "note": "黄金对照起始库存", + "purchase_cost": null, + "actor": "麦麦", + "created": "2026-11-18T02:01:00.000Z", + "groupId": "", + "revision": 1, + "manual": false, + "current": true, + "status": "active", + "reversal": false, + "canEdit": false, + "canDelete": false, + "pendingRequestId": null, + "pendingApproval": false + } + ] + } + }, + { + "seq": 558, + "label": "material-pools-d4", + "date": "2026-11-21", + "actor": "owner", + "method": "GET", + "path": "/api/material-pools", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "from": "2000-01-01", + "date": "2026-11-21", + "rows": [ + { + "id": "2026-11-20", + "date": "2026-11-20", + "rolling": true, + "frozen": false, + "totalMg": 36000, + "totalAmount": 3274167, + "usedMg": 0, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 996167, + "consumed": 0, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "unused", + "revision": "2888d0d62256b3e0f97b8b29f2dcd22e44ce293073f970fe6a3139844f4a12dd", + "opening": { + "mg": 36000, + "amount": 3274167, + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "pending": false + }, + "todayPurchases": { + "mg": 0, + "amount": 0, + "count": 0, + "items": [] + }, + "todayReturns": { + "mg": 0, + "amount": 0, + "count": 0, + "grossMg": 0, + "grossAmount": 0, + "grossCount": 0 + }, + "returns": [], + "purchases": [ + { + "id": "carry:2026-11-20", + "date": "2026-11-20", + "mg": 36000, + "amount": 3274167, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "created": "2026-11-20T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": true + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "materialGroups": [ + { + "key": "public", + "kind": "public", + "member": null, + "purchases": [ + { + "id": "carry:2026-11-20", + "date": "2026-11-20", + "mg": 36000, + "amount": 3274167, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "created": "2026-11-20T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false + } + ], + "totalMg": 36000, + "totalAmount": 3274167, + "averageRate": 90949 + }, + { + "key": "personal:assistant", + "kind": "personal_recovery", + "member": "assistant", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "直接回收 · HS202611200003", + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-20T02:00:25.000Z", + "source_sequence": 7, + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 900000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "canEdit": false, + "sourceKind": "purchase" + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 2000, + "amount": 180000, + "payer": "assistant", + "note": "直接回收 · HS202611200005", + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-20T02:00:30.000Z", + "source_sequence": 9, + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 180000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "canEdit": false, + "sourceKind": "purchase" + } + ], + "totalMg": 12000, + "totalAmount": 1080000, + "averageRate": 90000 + } + ], + "personalPools": { + "assistant": { + "key": "personal:assistant", + "kind": "personal_recovery", + "member": "assistant", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 10000, + "amount": 900000, + "payer": "assistant", + "note": "直接回收 · HS202611200003", + "actor": "助理", + "created": "2026-11-20T02:00:20.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-20T02:00:25.000Z", + "source_sequence": 7, + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 900000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + } + ], + "canEdit": false, + "sourceKind": "purchase" + }, + { + "id": "", + "pool_id": "2026-11-20", + "date": "2026-11-20", + "mg": 2000, + "amount": 180000, + "payer": "assistant", + "note": "直接回收 · HS202611200005", + "actor": "助理", + "created": "2026-11-20T02:00:30.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-20T02:00:30.000Z", + "source_sequence": 9, + "materialOwner": "assistant", + "materialKind": "personal_recovery", + "recoveryId": "", + "recovery_id": "", + "cashAmount": 180000, + "offsetAmount": 0, + "allocations": [ + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "canEdit": false, + "sourceKind": "purchase" + } + ], + "totalMg": 12000, + "totalAmount": 1080000, + "averageRate": 90000, + "usedMg": 0, + "consumedCost": 0, + "remainingMg": 12000, + "remainingCost": 1080000, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + }, + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "remainingBatches": [ + { + "purchaseId": "", + "recoveryId": "", + "mg": 10000 + }, + { + "purchaseId": "", + "recoveryId": "", + "mg": 2000 + } + ], + "shortageMg": 0, + "status": "unused", + "byPayer": { + "owner": { + "purchased": 0, + "consumed": 0, + "remaining": 0 + }, + "assistant": { + "purchased": 1080000, + "consumed": 0, + "remaining": 1080000 + }, + "assistant2": { + "purchased": 0, + "consumed": 0, + "remaining": 0 + } + }, + "date": "2026-11-20", + "id": "2026-11-20" + } + }, + "remainingMaterialGroups": [ + { + "kind": "public", + "member": null, + "mg": 36000, + "amount": 3274167, + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "batches": [ + { + "purchaseId": "carry:2026-11-20", + "mg": 36000 + } + ] + }, + { + "kind": "personal_recovery", + "member": "assistant", + "mg": 12000, + "amount": 1080000, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + }, + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "batches": [ + { + "purchaseId": "", + "recoveryId": "", + "mg": 10000 + }, + { + "purchaseId": "", + "recoveryId": "", + "mg": 2000 + } + ] + } + ], + "legacyReadOnly": true + }, + { + "id": "2026-11-19", + "date": "2026-11-19", + "rolling": true, + "frozen": true, + "totalMg": 38000, + "totalAmount": 3456065, + "usedMg": 2000, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 181898, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 1178065, + "consumed": 181898, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "using", + "revision": "278a6986270886d53a62e969a467ca9cc287fb29d2d3db30e437b74501f04dfc", + "opening": { + "mg": 28000, + "amount": 2538065, + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "pending": false, + "pools": [ + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + } + } + ] + }, + "todayPurchases": { + "mg": 9000, + "amount": 830000, + "count": 2, + "items": [ + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "assistant2" + } + ] + }, + "todayReturns": { + "mg": 1000, + "amount": 88000, + "count": 1, + "grossMg": 1000, + "grossAmount": 88000, + "grossCount": 1 + }, + "returns": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0 + } + ], + "purchases": [ + { + "id": "carry:2026-11-19", + "date": "2026-11-19", + "mg": 28000, + "amount": 2538065, + "payer": "assistant", + "allocations": [ + { + "payer": "assistant", + "amount": 718065, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + } + ], + "created": "2026-11-19T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": true + }, + { + "id": "return::material:0", + "order_id": "", + "line_index": 0, + "date": "2026-11-19", + "mg": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "origin_pool_id": "", + "same_day": 0, + "actor": "麦麦", + "created": "2026-11-19T02:01:05.000Z", + "source_sequence": 1, + "number": "20261118007", + "paper_number": "20261118007", + "order_date": "2026-11-18", + "materialSources": [ + { + "kind": "public", + "member": null, + "quantity": 1000, + "amount": 88000, + "allocations": [ + { + "payer": "assistant2", + "amount": 88000 + } + ], + "batches": [], + "basisAmount": 88000, + "basisMg": 1000, + "prefixMg": 0, + "prefixAmount": 0 + } + ], + "sameDay": false, + "cashAmount": 0, + "batches": [], + "materialKind": "public", + "materialOwner": null, + "payer": "assistant2", + "sourceKind": "return", + "note": "退货回料", + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": true + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 5000, + "amount": 460000, + "payer": "assistant", + "note": "第二天购料", + "actor": "助理", + "created": "2026-11-19T02:02:19.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:19.000Z", + "source_sequence": 4, + "sourceKind": "purchase", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 4000, + "amount": 370000, + "payer": "assistant2", + "note": "", + "actor": "助理2", + "created": "2026-11-19T02:02:20.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-19T02:02:20.000Z", + "source_sequence": 5, + "sourceKind": "purchase", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "assistant2" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-19", + "date": "2026-11-19", + "mg": 2000, + "active": 1, + "amount": 181898, + "owner_amount": 0, + "assistant_amount": 181898, + "revision": 1, + "created": "2026-11-19T02:02:40.000Z", + "updated": "2026-11-20T02:00:15.000Z", + "fifo_sequence": 2, + "number": "MM20261119-", + "customer": "滚动料池客户", + "order_status": "delivered", + "assistant2_amount": 0, + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "legacyReadOnly": true + }, + { + "id": "2026-11-18", + "date": "2026-11-18", + "totalMg": 31000, + "totalAmount": 2810000, + "averageRate": 90645, + "usedMg": 3000, + "remainingMg": 28000, + "shortageMg": 0, + "consumedCost": 271935, + "remainingCost": 2538065, + "status": "using", + "revision": "2823f40ff78424f5423f0dbdf991ea5fcc83b0144648e9d2399869970c27af75", + "purchases": [ + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 11000, + "amount": 990000, + "payer": "assistant", + "note": "核对凭据", + "actor": "助理", + "created": "2026-11-18T02:01:09.000Z", + "revision": 2, + "deleted_at": "", + "updated": "2026-11-19T02:02:27.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "assistant" + }, + { + "id": "", + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 20000, + "amount": 1820000, + "payer": "owner", + "note": "麦麦购料", + "actor": "麦麦", + "created": "2026-11-18T02:01:10.000Z", + "revision": 1, + "deleted_at": "", + "updated": "2026-11-18T02:01:10.000Z", + "canEdit": false, + "canRequestChange": true, + "ownerReviewRequired": true, + "member": "owner" + } + ], + "usages": [ + { + "id": "", + "order_id": "", + "line_index": 0, + "pool_id": "2026-11-18", + "date": "2026-11-18", + "mg": 3000, + "active": 1, + "amount": 271935, + "owner_amount": 0, + "assistant_amount": 271935, + "revision": 3, + "created": "2026-11-18T02:01:20.000Z", + "updated": "2026-11-19T02:02:27.000Z", + "fifo_sequence": 1, + "number": "MM20261118-", + "customer": "对照客户丁", + "order_status": "delivered", + "member": "assistant", + "product": "足金999" + } + ], + "settlements": [], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 990000, + "consumed": 271935, + "remaining": 718065 + } + }, + "settlement": { + "assistantInventoryCredit": 718065, + "transferred": 0, + "settlementDue": -718065, + "pending": false + }, + "legacyReadOnly": true + } + ], + "current": { + "id": "2026-11-21", + "date": "2026-11-21", + "rolling": true, + "frozen": false, + "totalMg": 36000, + "totalAmount": 3274167, + "usedMg": 0, + "remainingMg": 36000, + "shortageMg": 0, + "consumedCost": 0, + "remainingCost": 3274167, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "byPayer": { + "owner": { + "purchased": 1820000, + "consumed": 0, + "remaining": 1820000 + }, + "assistant": { + "purchased": 996167, + "consumed": 0, + "remaining": 996167 + }, + "assistant2": { + "purchased": 458000, + "consumed": 0, + "remaining": 458000 + } + }, + "averageRate": 90949, + "status": "unused", + "revision": "c605e96b9e2c99b1df7c4fb2a3d46a34ae34df2dd9d3244a6b9a57cd19579b1f", + "opening": { + "mg": 36000, + "amount": 3274167, + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "pending": false, + "materialGroups": [ + { + "kind": "public", + "member": null, + "mg": 36000, + "amount": 3274167, + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "batches": [ + { + "purchaseId": "carry:2026-11-20", + "mg": 36000 + } + ] + }, + { + "kind": "personal_recovery", + "member": "assistant", + "mg": 12000, + "amount": 1080000, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + }, + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "batches": [ + { + "purchaseId": "", + "recoveryId": "", + "mg": 10000 + }, + { + "purchaseId": "", + "recoveryId": "", + "mg": 2000 + } + ] + } + ] + }, + "todayPurchases": { + "mg": 0, + "amount": 0, + "count": 0, + "items": [] + }, + "todayReturns": { + "mg": 0, + "amount": 0, + "count": 0, + "grossMg": 0, + "grossAmount": 0, + "grossCount": 0 + }, + "returns": [], + "purchases": [ + { + "id": "carry:2026-11-21:public", + "date": "2026-11-21", + "mg": 36000, + "amount": 3274167, + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "payer": "assistant", + "batches": [ + { + "purchaseId": "carry:2026-11-20", + "mg": 36000 + } + ], + "materialKind": "public", + "materialOwner": null, + "created": "2026-11-21T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false, + "canRequestChange": false, + "ownerReviewRequired": false + } + ], + "usages": [], + "settlements": [], + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "assistantInventoryCredit": 0, + "transferred": 0, + "pending": false + }, + "materialGroups": [ + { + "key": "public", + "kind": "public", + "member": null, + "purchases": [ + { + "id": "carry:2026-11-21:public", + "date": "2026-11-21", + "mg": 36000, + "amount": 3274167, + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "payer": "assistant", + "batches": [ + { + "purchaseId": "carry:2026-11-20", + "mg": 36000 + } + ], + "materialKind": "public", + "materialOwner": null, + "created": "2026-11-21T00:00:00.000Z", + "note": "以前结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false + } + ], + "totalMg": 36000, + "totalAmount": 3274167, + "averageRate": 90949 + }, + { + "key": "personal:assistant", + "kind": "personal_recovery", + "member": "assistant", + "purchases": [ + { + "id": "carry:2026-11-21:personal:assistant", + "date": "2026-11-21", + "mg": 12000, + "amount": 1080000, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + }, + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "payer": "assistant", + "batches": [ + { + "purchaseId": "", + "recoveryId": "", + "mg": 10000 + }, + { + "purchaseId": "", + "recoveryId": "", + "mg": 2000 + } + ], + "materialKind": "personal_recovery", + "materialOwner": "assistant", + "created": "2026-11-21T00:00:00.000Z", + "note": "个人回收料结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false + } + ], + "totalMg": 12000, + "totalAmount": 1080000, + "averageRate": 90000 + } + ], + "personalPools": { + "assistant": { + "key": "personal:assistant", + "kind": "personal_recovery", + "member": "assistant", + "purchases": [ + { + "id": "carry:2026-11-21:personal:assistant", + "date": "2026-11-21", + "mg": 12000, + "amount": 1080000, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + }, + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "payer": "assistant", + "batches": [ + { + "purchaseId": "", + "recoveryId": "", + "mg": 10000 + }, + { + "purchaseId": "", + "recoveryId": "", + "mg": 2000 + } + ], + "materialKind": "personal_recovery", + "materialOwner": "assistant", + "created": "2026-11-21T00:00:00.000Z", + "note": "个人回收料结转", + "sourceKind": "carry", + "cashAmount": 0, + "canEdit": false + } + ], + "totalMg": 12000, + "totalAmount": 1080000, + "averageRate": 90000, + "usedMg": 0, + "consumedCost": 0, + "remainingMg": 12000, + "remainingCost": 1080000, + "remainingAllocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + }, + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "remainingBatches": [ + { + "purchaseId": "", + "recoveryId": "", + "mg": 10000 + }, + { + "purchaseId": "", + "recoveryId": "", + "mg": 2000 + } + ], + "shortageMg": 0, + "status": "unused", + "byPayer": { + "owner": { + "purchased": 0, + "consumed": 0, + "remaining": 0 + }, + "assistant": { + "purchased": 1080000, + "consumed": 0, + "remaining": 1080000 + }, + "assistant2": { + "purchased": 0, + "consumed": 0, + "remaining": 0 + } + }, + "date": "2026-11-21", + "id": "2026-11-21" + } + }, + "remainingMaterialGroups": [ + { + "kind": "public", + "member": null, + "mg": 36000, + "amount": 3274167, + "allocations": [ + { + "payer": "assistant", + "amount": 536167, + "source_id": "", + "created": "2026-11-18T02:01:09.000Z", + "source_sequence": 1 + }, + { + "payer": "owner", + "amount": 1820000, + "source_id": "", + "created": "2026-11-18T02:01:10.000Z", + "source_sequence": 2 + }, + { + "payer": "assistant2", + "amount": 88000, + "source_id": "return::material:0", + "created": "2026-11-19T02:01:05.000Z" + }, + { + "payer": "assistant", + "amount": 460000, + "source_id": "", + "created": "2026-11-19T02:02:19.000Z" + }, + { + "payer": "assistant2", + "amount": 370000, + "source_id": "", + "created": "2026-11-19T02:02:20.000Z" + } + ], + "batches": [ + { + "purchaseId": "carry:2026-11-20", + "mg": 36000 + } + ] + }, + { + "kind": "personal_recovery", + "member": "assistant", + "mg": 12000, + "amount": 1080000, + "allocations": [ + { + "payer": "assistant", + "amount": 900000, + "source": "cash" + }, + { + "payer": "assistant", + "amount": 180000, + "source": "cash" + } + ], + "batches": [ + { + "purchaseId": "", + "recoveryId": "", + "mg": 10000 + }, + { + "purchaseId": "", + "recoveryId": "", + "mg": 2000 + } + ] + } + ], + "legacyReadOnly": true + }, + "rolling": { + "enabled": true, + "cutover": "2026-11-19", + "canEnable": false, + "reason": "" + }, + "summary": { + "totalMg": 36000, + "totalAmount": 3274167, + "usedMg": 0, + "remainingMg": 36000, + "remainingCost": 3274167, + "shortageMg": 0, + "pendingCount": 0, + "purchaseCount": 0 + }, + "settlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + } + } + }, + { + "seq": 559, + "label": "report-d4", + "date": "2026-11-21", + "actor": "owner", + "method": "GET", + "path": "/api/report?date=2026-11-21", + "key": null, + "status": 200, + "contentType": "application/json; charset=utf-8", + "disposition": null, + "setCookie": null, + "body": { + "date": "2026-11-21", + "from": "2026-11-21", + "sales": 0, + "goods": 0, + "knownGoods": 0, + "expense": 0, + "profit": 0, + "knownProfit": 0, + "materialCostPending": false, + "pendingMaterialCount": 0, + "materialPoolActivity": { + "from": "2026-11-21", + "to": "2026-11-21", + "purchases": [], + "settlements": [], + "events": [] + }, + "materialPoolSettlement": { + "legacyReadOnly": true, + "settlementDue": 0, + "knownSettlementDue": 0, + "pendingCount": 0, + "pools": [] + }, + "delivered": 0, + "returns": 0, + "accounts": [ + { + "account": "助理微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "麦麦信用卡", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2微信", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2支付宝", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2现金", + "receipt": 0, + "refund": 0 + }, + { + "account": "助理2信用卡", + "receipt": 0, + "refund": 0 + } + ], + "payments": [], + "settlements": [], + "journal": [], + "afterSales": [], + "afterSaleCount": 0, + "inventory": [ + { + "pocket": "现货", + "mg": 65950, + "reserved": 0, + "available": 65950 + }, + { + "pocket": "金料", + "mg": 56000, + "reserved": 0, + "available": 56000 + }, + { + "pocket": "找金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "回收旧料", + "mg": 20092, + "reserved": 0, + "available": 20092 + }, + { + "pocket": "君宝汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "臻金汇", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "金金", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "定制工厂", + "mg": 0, + "reserved": 0, + "available": 0 + }, + { + "pocket": "pocket_", + "mg": 10000, + "reserved": 0, + "available": 10000 + } + ], + "warnings": [ + { + "id": "", + "number": "MM20261120-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261119-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + }, + { + "id": "", + "number": "MM20261118-", + "message": "有记录待麦麦复核" + } + ], + "unsettled": [], + "settlementDue": 0, + "knownSettlementDue": 0, + "customerBalance": 0, + "close": null + } + } +] diff --git a/新账系统/e2e/baseline/legacy.json b/新账系统/e2e/baseline/legacy.json new file mode 100644 index 0000000..4cf92cb --- /dev/null +++ b/新账系统/e2e/baseline/legacy.json @@ -0,0 +1,11198 @@ +{ + "fixture": { + "sha256": "b58070aae22b8369b31029b7d9b255eb2160e77ac00c1876d026bbb35050c815", + "bytes": 897024 + }, + "startup": { + "teamBackupRequired": false, + "migrationChanged": false, + "backupFiles": 0 + }, + "before": { + "integrity": [ + "ok" + ], + "schema": { + "after_sale_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "after_sale_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "record_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "before_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "after_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "record_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_after_sale_change_pending", + "unique": 1, + "columns": [ + "after_sale_id" + ] + }, + { + "name": "ix_after_sale_changes_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "after_sale_revisions": { + "columns": [ + { + "name": "after_sale_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "after_sales": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "project", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_after_sales_date", + "unique": 0, + "columns": [ + "date" + ] + } + ], + "withoutRowid": false + }, + "audit": { + "columns": [ + { + "name": "id", + "type": "INTEGER", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "entity", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "detail", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "closes": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "report", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "stale", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + } + ], + "indexes": [], + "withoutRowid": false + }, + "corrections": { + "columns": [ + { + "name": "target", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "type", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "credit_card_rate_snapshots": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "entity_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "rate_permille", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "customer_material_deposits": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "memo", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "customer_material_events": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "deposit_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "delta_mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "memo", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_customer_material_events_deposit", + "unique": 0, + "columns": [ + "deposit_id", + "recovery_id" + ] + } + ], + "withoutRowid": false + }, + "customer_material_origins": { + "columns": [ + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "deposit_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "daily_outlay_confirmations": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_revision", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "daily_people_counts": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "count", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "assistant1_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "assistant2_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "member_counts", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'{}'" + } + ], + "indexes": [], + "withoutRowid": false + }, + "document_print_status": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "printed", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "expenses": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "inventory_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "group_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "group_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "before_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "after_value", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "group_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "inventory_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_inventory_change_pending", + "unique": 1, + "columns": [ + "group_id" + ] + }, + { + "name": "ix_inventory_changes_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "inventory_count_baselines": { + "columns": [ + { + "name": "pocket", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "initial_count", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "movement_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "inventory_manual_groups": { + "columns": [ + { + "name": "group_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "creator_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "creator_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "original_ids", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "current_ids", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "inventory_manual_rows": { + "columns": [ + { + "name": "movement_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "group_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "generation", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_inventory_manual_rows_group", + "unique": 0, + "columns": [ + "group_id" + ] + } + ], + "withoutRowid": false + }, + "inventory_snapshots": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "inventory", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "stale", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "revision", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'manual'" + }, + { + "name": "scheduled_for", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "journal": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "sales", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "goods", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "expense", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "profit", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_journal_date", + "unique": 0, + "columns": [ + "date" + ] + } + ], + "withoutRowid": false + }, + "material_pool_events": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "usage_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "before_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "after_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_pool_settlements": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_material_settlements_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "material_pool_usages": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "active", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "owner_amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "assistant_amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_material_usages_pool", + "unique": 0, + "columns": [ + "pool_id", + "active" + ] + } + ], + "withoutRowid": false + }, + "material_public_substitutions": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 1, + "pk": 3, + "dflt": null + }, + { + "name": "ranges", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_purchase_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "purchase_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payload", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "preview", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_material_change_pending", + "unique": 1, + "columns": [ + "purchase_id" + ] + } + ], + "withoutRowid": false + }, + "material_purchase_payment_origins": { + "columns": [ + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "payer_source", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_purchase_shares": { + "columns": [ + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_purchases": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "deleted_at", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_material_purchases_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "material_return_sources": { + "columns": [ + { + "name": "return_kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "return_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "sources", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_rolling_days": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "opening", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "frozen", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_rolling_legacy": { + "columns": [ + { + "name": "pool_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_rolling_returns": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "origin_pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "same_day", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_rolling_source_order": { + "columns": [ + { + "name": "sequence", + "type": "INTEGER", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_usage_allocations": { + "columns": [ + { + "name": "usage_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_usage_order": { + "columns": [ + { + "name": "sequence", + "type": "INTEGER", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_usage_parties": { + "columns": [ + { + "name": "usage_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "assistant2_amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_usage_sources": { + "columns": [ + { + "name": "usage_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "sources", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "meta": { + "columns": [ + { + "name": "key", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "movement_counts": { + "columns": [ + { + "name": "movement_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "stock_count", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "effective_date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_movement_count_date", + "unique": 0, + "columns": [ + "effective_date", + "movement_id" + ] + } + ], + "withoutRowid": false + }, + "movements": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "group_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "pocket", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "purchase_cost", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_movements_date", + "unique": 0, + "columns": [ + "date", + "pocket" + ] + } + ], + "withoutRowid": false + }, + "operations": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "result", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "order_after_sales": { + "columns": [ + { + "name": "order_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "record", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_order_after_sales_date", + "unique": 0, + "columns": [ + "date", + "order_id" + ] + } + ], + "withoutRowid": false + }, + "order_cancellations": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_order_cancellation_pending", + "unique": 1, + "columns": [ + "order_id" + ] + }, + { + "name": "ix_order_cancellation_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "order_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'edit'" + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payload", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "preview", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "effect_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_order_change_pending", + "unique": 1, + "columns": [ + "order_id" + ] + }, + { + "name": "ix_order_change_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "order_ownership_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "from_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "to_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "direct", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_order_ownership_pending", + "unique": 1, + "columns": [ + "order_id" + ] + }, + { + "name": "ix_order_ownership_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "order_templates": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "preset", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "orders": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "salesperson", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "paper_number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "lines", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "discount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "total", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "reviewed_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "delivered_date", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "returned_date", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "paper_date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "payment_account", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'助理微信'" + }, + { + "name": "fee_items", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'[]'" + }, + { + "name": "fees_date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "rounding_mode", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'cent'" + }, + { + "name": "internal_note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "fee_cost_mode", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'legacy'" + }, + { + "name": "customer_type", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'unknown'" + } + ], + "indexes": [], + "withoutRowid": false + }, + "payments": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "account", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reference", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_payment_order", + "unique": 0, + "columns": [ + "order_id" + ] + } + ], + "withoutRowid": false + }, + "pocket_catalog": { + "columns": [ + { + "name": "key", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "normalized_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "active", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "self", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "builtin", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "sort_order", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "count_unit", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "count_since", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "price_lock_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "price_lock_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "price_lock_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payload", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "preview", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "effect_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_price_lock_change_pending", + "unique": 1, + "columns": [ + "price_lock_id" + ] + }, + { + "name": "ix_price_lock_change_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "price_lock_events": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "price_lock_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "account", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "source", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "quantity", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "rate", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "product", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "voided", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "void_reason", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "voided_at", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_payer", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_expense_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_rate", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_note", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_price_lock_events_date", + "unique": 0, + "columns": [ + "date", + "created", + "id" + ] + } + ], + "withoutRowid": false + }, + "price_lock_pool_reservations": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "price_lock_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'[]'" + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'{}'" + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "price_lock_pool_returns": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "price_lock_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "origin_pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "same_day", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "price_locks": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "salesperson", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "locked_mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "sell_rate", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "buy_rate", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "buy_payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "material_amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "estimated_total", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "discount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "final_order_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "delivery", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "cancelled_at", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "cancelled_reason", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "lines", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_price_locks_status", + "unique": 0, + "columns": [ + "status", + "date" + ] + } + ], + "withoutRowid": false + }, + "private_people": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "total_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "new_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "recoveries": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mode", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "salesperson", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "old_lines", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "data", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "inventory_group", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'active'" + }, + { + "name": "cancelled_at", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_recoveries_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "recovery_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "recovery_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "before_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "after_value", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "summary", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "dependency", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_recovery_changes_pending", + "unique": 1, + "columns": [ + "recovery_id" + ] + } + ], + "withoutRowid": false + }, + "recovery_material_batches": { + "columns": [ + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_recovery_material_member", + "unique": 0, + "columns": [ + "member", + "purchase_id" + ] + } + ], + "withoutRowid": false + }, + "recovery_purchase_sources": { + "columns": [ + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "cash_amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "offset_amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "reimbursements": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "items", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "total", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "review_note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_reimbursements_date", + "unique": 0, + "columns": [ + "date", + "created", + "id" + ] + }, + { + "name": "ix_reimbursements_status", + "unique": 0, + "columns": [ + "status", + "created", + "id" + ] + } + ], + "withoutRowid": false + }, + "returned_stock_lots": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "pocket", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "code", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "stock_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "labor_cost", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "labor_payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "sessions": { + "columns": [ + { + "name": "hash", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "user_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "expires", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "settlements": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "bucket", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "sqlite_sequence": { + "columns": [ + { + "name": "name", + "type": "", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "seq", + "type": "", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "sync": { + "columns": [ + { + "name": "entity", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "done_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "record_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "attempts", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "error", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_entities": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "entity_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_team_entities_member", + "unique": 0, + "columns": [ + "member", + "kind", + "entity_id" + ] + } + ], + "withoutRowid": false + }, + "team_fund_cash": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "source_kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_team_cash_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "team_fund_claim_uses": { + "columns": [ + { + "name": "reimbursement_id", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "item_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "source_kind", + "type": "TEXT", + "notnull": 1, + "pk": 3, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 4, + "dflt": null + }, + { + "name": "component", + "type": "TEXT", + "notnull": 1, + "pk": 5, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_fund_entries": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "source_kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "project", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "from_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "to_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_team_entries_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "team_fund_sources": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "legacy", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_fund_transfers": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "from_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "to_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_team_transfers_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "team_members": { + "columns": [ + { + "name": "member", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "label", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "enabled", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_reimbursement_details": { + "columns": [ + { + "name": "reimbursement_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_reimbursement_sources": { + "columns": [ + { + "name": "source_key", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "reimbursement_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "item_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_user_members": { + "columns": [ + { + "name": "user_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "password_set", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + } + ], + "indexes": [], + "withoutRowid": false + }, + "users": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "salt", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + } + }, + "counts": { + "after_sale_changes": 0, + "after_sale_revisions": 0, + "after_sales": 0, + "audit": 10, + "closes": 0, + "corrections": 0, + "credit_card_rate_snapshots": 1, + "customer_material_deposits": 0, + "customer_material_events": 0, + "customer_material_origins": 0, + "daily_outlay_confirmations": 0, + "daily_people_counts": 0, + "document_print_status": 0, + "expenses": 0, + "inventory_changes": 0, + "inventory_count_baselines": 0, + "inventory_manual_groups": 0, + "inventory_manual_rows": 0, + "inventory_snapshots": 1, + "journal": 1, + "material_pool_events": 0, + "material_pool_settlements": 0, + "material_pool_usages": 0, + "material_public_substitutions": 0, + "material_purchase_changes": 0, + "material_purchase_payment_origins": 0, + "material_purchase_shares": 0, + "material_purchases": 0, + "material_return_sources": 0, + "material_rolling_days": 0, + "material_rolling_legacy": 0, + "material_rolling_returns": 0, + "material_rolling_source_order": 0, + "material_usage_allocations": 0, + "material_usage_order": 0, + "material_usage_parties": 0, + "material_usage_sources": 0, + "meta": 8, + "movement_counts": 0, + "movements": 3, + "operations": 3, + "order_after_sales": 0, + "order_cancellations": 0, + "order_changes": 0, + "order_ownership_changes": 0, + "order_templates": 0, + "orders": 1, + "payments": 1, + "pocket_catalog": 8, + "price_lock_changes": 0, + "price_lock_events": 0, + "price_lock_pool_reservations": 0, + "price_lock_pool_returns": 0, + "price_locks": 0, + "private_people": 0, + "recoveries": 0, + "recovery_changes": 0, + "recovery_material_batches": 0, + "recovery_purchase_sources": 0, + "reimbursements": 0, + "returned_stock_lots": 0, + "sessions": 1, + "settlements": 0, + "sqlite_sequence": 2, + "sync": 2, + "team_entities": 4, + "team_fund_cash": 2, + "team_fund_claim_uses": 0, + "team_fund_entries": 1, + "team_fund_sources": 1, + "team_fund_transfers": 0, + "team_members": 3, + "team_reimbursement_details": 0, + "team_reimbursement_sources": 0, + "team_user_members": 3, + "users": 3 + }, + "hashes": { + "after_sale_changes": "9e0859eb1d1149f47e6966612398551286679630065b9e4958b6ec497daeca5a", + "after_sale_revisions": "62dfaedc1c046b1b118bf21da6122ebc48f9a27f1d2b3e4aa0475b1dc0bb9882", + "after_sales": "c5805de9bb84ecc2c66b934ba740e99edc86850408d110f4e54b3ad1e9f793e7", + "audit": "3c6b58ee4b20fce115516902dc139dd1782c6f2f9934047f743115dc866d57bb", + "closes": "69e849e357b79c42693d1b6f602182e8dd486d3b177b00dcc6203aaa9501734b", + "corrections": "3229387e532d8b7033acf9249de535294103928824930848731376f255e79d88", + "credit_card_rate_snapshots": "fbcb6763481963de5eb4575a5f209f17497fb6965f102f015a4249b58bebf761", + "customer_material_deposits": "22125b7b0d89754c7f36567cca6e3e3e2f77de96806677b9b83610d6497a5cc4", + "customer_material_events": "4686b6bf092c2e781676496e927b6bc1042c2122f5adc8346fea95340bc81524", + "customer_material_origins": "873ac7930f118dacb4d5be95974cd14b260ad16547b48a50df44b557eb1a4e9c", + "daily_outlay_confirmations": "4f9242428914a3c597990fa445faac7cbf5f75384a6d61391eb5804d1dae8ad1", + "daily_people_counts": "a075409517745ff575955dee1aed916360bc047bcdac1d11e832ef03537d7090", + "document_print_status": "851e16b099a2e47a6632443e38de79ed0aa7e4089178fc18908a4f8487dee1c9", + "expenses": "148b144e7bb3ac64b8d57ffe30819d50a5f3f3e89583444e5f00aee2390bbd60", + "inventory_changes": "0889ef3ce9a83040807662975a1a292499ebb13226101833a0c7c53c70439b79", + "inventory_count_baselines": "f0d5e5341d23794199ce4f642a262b02b0e727ebb8e41f616fc8191589ec80c4", + "inventory_manual_groups": "c4f9d12d55e1f62a11c132ade23423a943356afcf555e8cc75d1ae6b485755ed", + "inventory_manual_rows": "7c948e27e2912f4d135e9a9f80c0866762555923ef15bcfec5c53e81fba2b7dd", + "inventory_snapshots": "f20ac86d3fa675dc8f06b33104259fd7a2699ee36acd48a2c764a8b853839085", + "journal": "3f23ee7f8ab8bdc51d5ce75ef3941af7c6fc92d4fea3a3456a47658cff045de9", + "material_pool_events": "249e2ab98e91e9a9abb249727c5bbffc09e1197c012f6551c2c51e2a15953111", + "material_pool_settlements": "ac8f3ddcb0885e4557854275b168e63b1337eb197ccb6e937a1d915bc4fcb0fe", + "material_pool_usages": "e1a9ab7ffdc74821048e460e8227d52c9a92d670047f9b75deb25a1658327821", + "material_public_substitutions": "2e2960b4dc3d3c4b98d3ebcabe1f295ded36e657aab444920dd02d5488ee7a92", + "material_purchase_changes": "7b53acc9505f9db03ecef308d78e532264cb407d91d426b447f19af9fca6c197", + "material_purchase_payment_origins": "d1e04707d00a7a2a426b3a9d5a640db45f059729427e6e8e37dd3847ab1d89ea", + "material_purchase_shares": "b4bd6ef6d2ccfdddb14c04317e44592ab8f2557227044ab87e01843e75fd1dfd", + "material_purchases": "f05e1f9bc86669b57b4ff4cf63608360c07870ae1b26e8f527c57147e21d73d7", + "material_return_sources": "2dcdccdc2342921cb6d770423e305ac647232c0ceaa3ed50a174c2fa42b1b9f1", + "material_rolling_days": "7ab190bec7d741619655f70dea6cee69c989be0180fecb9cd16e79e09d749f45", + "material_rolling_legacy": "4e96d616679f4c1df03e27d498b0fd7e677316b7c0e471096cf5c8c0ed3d5f21", + "material_rolling_returns": "0ad7f311fc794c53e67470fcc0f690ec200d730f6f922c38f007066fe2f50d4a", + "material_rolling_source_order": "ae411f0881d8cec5909c864f085afadc090f6d239a30e242735f39065b341b8d", + "material_usage_allocations": "661326a53b5b4e0f0b8a7a6ce215a71762ac98769c9f894ebc2ad5c04df5c631", + "material_usage_order": "ae411f0881d8cec5909c864f085afadc090f6d239a30e242735f39065b341b8d", + "material_usage_parties": "c7c0314e01fde0649b281efa8aeb45ed0ebbafdee2e807b126091910e73a2e3f", + "material_usage_sources": "5e96a21121759625c9e80171c187dce1cc4f1149a86aac10741fc35a1be02085", + "meta": "aa5a12441d7f81f6a1fd07253f0ceb1136dce038464ddc9d81927565414d8ff3", + "movement_counts": "df1ae0e8f2b534faef4584f680c4498a40e50b8d2f82c4110ecb5e66c96f2003", + "movements": "b6540f9c6e124ab8429dbb77eb209293b13995bd8326b509fd114d507a3dee8f", + "operations": "9616cf14410da881c620a907c5f827f2aa85c6c2402b62f89dc8d90dd6fe36de", + "order_after_sales": "f1c9ccaccc6c8f2840d62281cbb105bb3bd4bffa1cfe96138c524b2fad0a08da", + "order_cancellations": "bc74f59398eabdb6a47e36d02b78e07b045f95f0defbeedbf6b27847c3740d79", + "order_changes": "1721c1f3e83eb7c5f598129c3b89728dc660bbdfd748809e0e606ac72e41182e", + "order_ownership_changes": "91bd1bfc301f386ea4c69b70b553286a3c6da4e2b72ecf4bf24925d9362cc905", + "order_templates": "cbb11db645db849781b65a4e119872fb48038a833d370170bd6e30d25f20e263", + "orders": "bd9526d4a3311192141e133951f17cd384878c06eb1f2d98deb5494b2b35ffb2", + "payments": "aea390de9d0a4707f7f9df260fb816c3b70681048facfb964c2d1d57ea24775e", + "pocket_catalog": "c7e75e0f0549cc4c556205bb6bc13b01d9fd18bfae04d21bb1ec3e7c8fa0b5ef", + "price_lock_changes": "05f452de5ec06bac9c841a3bc943b6212c01366024d1208ad95cfc5869cf848b", + "price_lock_events": "1fa93ce06a15de30abd9c650c14af6adc1f1663d8b54815cd8d16507a5b36d26", + "price_lock_pool_reservations": "c1e524437b01d28d6a7297a3844ec6510cab72b01dde0fa568166ab9af1157d1", + "price_lock_pool_returns": "c53aadf69fa17057a4fbfce91ecd4849780f3789e1622ed817d9de45512a9090", + "price_locks": "edba2376ee72e63ae5500d7e4e83b8101c08c71395e3c907064c506867c9d765", + "private_people": "8e89b10ed1bcf8da2b252ddf85d59bf119845af65f8b5db230a6dff5dc9c97b2", + "recoveries": "13354293e4df501ed72b4a225a48df521ed06e55014926d031a96119e401acb1", + "recovery_changes": "b50c7f2bee293c8c5b60ab8f0b9cadbbfb02aa44d381a10c9c3880342634be00", + "recovery_material_batches": "de942097dc406c31b13c7b93954fa2421f7fedb203c2e0c1329c0d5897da1ec5", + "recovery_purchase_sources": "85c2f69cd78e77eafd57b98fc158a70b5ce62e35f17d2d2de017ea962d7ca722", + "reimbursements": "3a5559838c72d623c1f09184795b8941cc0e54b0430114ec5a6c0b48b0190370", + "returned_stock_lots": "3410d6e440f4f5babce2fccf93433542a0b77321b035031b82c1127b30549cb8", + "sessions": "c4b3b3493882a5d71d42b5ad32f00ebfd5c3cb6671f16c959ddd18ee79f9da74", + "settlements": "ed842d6122f09ddf1f6bb7628466e41bf899f868c7b0a6acfe2f68ce4d92fe29", + "sqlite_sequence": "a1e727bdd0e4b66ff50f0de76fc46a0583df44cce620006f0f467875f0142c6a", + "sync": "def085e408a1b362dc3ed40c45c7ca1e2d3e946cde335285bc1a194e700e54d1", + "team_entities": "8b105939acbce6f89958bf9e67e0f7860400ff42756d2d9ef40a53798a0168d6", + "team_fund_cash": "0d46673059aff93277f254ee4fefbdf9a964a86df90bc946b70bab8c5e036fcb", + "team_fund_claim_uses": "4a9d6cfe64f00a0d8198f2986d4dc4458b9d59154352e9acfc76e21a665016e0", + "team_fund_entries": "6d0700b411378c16276bb33866f0fb7b30030da2402059d11b4b25df44eaa60c", + "team_fund_sources": "e795cc58e402a345f4b6a823c954ff9871e8b592b037ab36dc573cabf6ff1649", + "team_fund_transfers": "bb16a872c757cc906806ede97af3b632d3dab8a4f4918670d8c714fa30dfe1b2", + "team_members": "384ce53e0e571c0a7b02f90c7261e1a94a79812370ad61b531650305b04b16ea", + "team_reimbursement_details": "f0514a000ce4d413735884913883c1051dffd76d5b35a79bd98448cd92ec9c34", + "team_reimbursement_sources": "6317eda06c7c8db2ebaaa5c28de5ec9e84d8e7c90705b9a3f25807494259d907", + "team_user_members": "5fe19cc1113cc73aaf0c943327a76d54f7713febcf6cdd221b7b1827b2dc9c89", + "users": "e8a064a2a2a822dc9884832b2c0eadca2d27b9faab7dd7fc73f053df8bfd3f5d" + } + }, + "after": { + "integrity": [ + "ok" + ], + "schema": { + "after_sale_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "after_sale_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "record_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "before_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "after_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "record_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_after_sale_change_pending", + "unique": 1, + "columns": [ + "after_sale_id" + ] + }, + { + "name": "ix_after_sale_changes_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "after_sale_revisions": { + "columns": [ + { + "name": "after_sale_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "after_sales": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "project", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_after_sales_date", + "unique": 0, + "columns": [ + "date" + ] + } + ], + "withoutRowid": false + }, + "audit": { + "columns": [ + { + "name": "id", + "type": "INTEGER", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "entity", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "detail", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "closes": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "report", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "stale", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + } + ], + "indexes": [], + "withoutRowid": false + }, + "corrections": { + "columns": [ + { + "name": "target", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "type", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "credit_card_rate_snapshots": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "entity_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "rate_permille", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "customer_material_deposits": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "memo", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "customer_material_events": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "deposit_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "delta_mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "memo", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_customer_material_events_deposit", + "unique": 0, + "columns": [ + "deposit_id", + "recovery_id" + ] + } + ], + "withoutRowid": false + }, + "customer_material_origins": { + "columns": [ + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "deposit_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "daily_outlay_confirmations": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_revision", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "daily_people_counts": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "count", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "assistant1_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "assistant2_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "member_counts", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'{}'" + } + ], + "indexes": [], + "withoutRowid": false + }, + "document_print_status": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "printed", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "expenses": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "inventory_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "group_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "group_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "before_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "after_value", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "group_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "inventory_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_inventory_change_pending", + "unique": 1, + "columns": [ + "group_id" + ] + }, + { + "name": "ix_inventory_changes_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "inventory_count_baselines": { + "columns": [ + { + "name": "pocket", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "initial_count", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "movement_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "inventory_manual_groups": { + "columns": [ + { + "name": "group_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "creator_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "creator_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "original_ids", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "current_ids", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "inventory_manual_rows": { + "columns": [ + { + "name": "movement_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "group_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "generation", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_inventory_manual_rows_group", + "unique": 0, + "columns": [ + "group_id" + ] + } + ], + "withoutRowid": false + }, + "inventory_snapshots": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "inventory", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "stale", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "revision", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'manual'" + }, + { + "name": "scheduled_for", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "journal": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "sales", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "goods", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "expense", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "profit", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_journal_date", + "unique": 0, + "columns": [ + "date" + ] + } + ], + "withoutRowid": false + }, + "material_pool_events": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "usage_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "before_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "after_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_pool_settlements": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_material_settlements_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "material_pool_usages": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "active", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "owner_amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "assistant_amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_material_usages_pool", + "unique": 0, + "columns": [ + "pool_id", + "active" + ] + } + ], + "withoutRowid": false + }, + "material_public_substitutions": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 1, + "pk": 3, + "dflt": null + }, + { + "name": "ranges", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_purchase_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "purchase_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payload", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "preview", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_material_change_pending", + "unique": 1, + "columns": [ + "purchase_id" + ] + } + ], + "withoutRowid": false + }, + "material_purchase_payment_origins": { + "columns": [ + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "payer_source", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_purchase_shares": { + "columns": [ + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_purchases": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "deleted_at", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_material_purchases_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "material_return_sources": { + "columns": [ + { + "name": "return_kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "return_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "sources", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_rolling_days": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "opening", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "frozen", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_rolling_legacy": { + "columns": [ + { + "name": "pool_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_rolling_returns": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "origin_pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "same_day", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_rolling_source_order": { + "columns": [ + { + "name": "sequence", + "type": "INTEGER", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_usage_allocations": { + "columns": [ + { + "name": "usage_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_usage_order": { + "columns": [ + { + "name": "sequence", + "type": "INTEGER", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_usage_parties": { + "columns": [ + { + "name": "usage_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "assistant2_amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "material_usage_sources": { + "columns": [ + { + "name": "usage_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "sources", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "meta": { + "columns": [ + { + "name": "key", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "movement_counts": { + "columns": [ + { + "name": "movement_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "stock_count", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "effective_date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_movement_count_date", + "unique": 0, + "columns": [ + "effective_date", + "movement_id" + ] + } + ], + "withoutRowid": false + }, + "movements": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "group_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "pocket", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "purchase_cost", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_movements_date", + "unique": 0, + "columns": [ + "date", + "pocket" + ] + } + ], + "withoutRowid": false + }, + "operations": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "result", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "order_after_sales": { + "columns": [ + { + "name": "order_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "record", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_order_after_sales_date", + "unique": 0, + "columns": [ + "date", + "order_id" + ] + } + ], + "withoutRowid": false + }, + "order_cancellations": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_order_cancellation_pending", + "unique": 1, + "columns": [ + "order_id" + ] + }, + { + "name": "ix_order_cancellation_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "order_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'edit'" + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payload", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "preview", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "effect_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_order_change_pending", + "unique": 1, + "columns": [ + "order_id" + ] + }, + { + "name": "ix_order_change_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "order_ownership_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "from_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "to_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "direct", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_order_ownership_pending", + "unique": 1, + "columns": [ + "order_id" + ] + }, + { + "name": "ix_order_ownership_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "order_templates": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "preset", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "orders": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "salesperson", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "paper_number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "lines", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "discount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "total", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "reviewed_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "delivered_date", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "returned_date", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "paper_date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "payment_account", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'助理微信'" + }, + { + "name": "fee_items", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'[]'" + }, + { + "name": "fees_date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "rounding_mode", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'cent'" + }, + { + "name": "internal_note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "fee_cost_mode", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'legacy'" + }, + { + "name": "customer_type", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'unknown'" + } + ], + "indexes": [], + "withoutRowid": false + }, + "payments": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "account", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reference", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_payment_order", + "unique": 0, + "columns": [ + "order_id" + ] + } + ], + "withoutRowid": false + }, + "pocket_catalog": { + "columns": [ + { + "name": "key", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "normalized_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "active", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "self", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "builtin", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "sort_order", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "count_unit", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "count_since", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "price_lock_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "price_lock_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "price_lock_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "payload", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "preview", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "effect_hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_price_lock_change_pending", + "unique": 1, + "columns": [ + "price_lock_id" + ] + }, + { + "name": "ix_price_lock_change_status", + "unique": 0, + "columns": [ + "status", + "created" + ] + } + ], + "withoutRowid": false + }, + "price_lock_events": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "price_lock_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "account", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "source", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "quantity", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "rate", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "product", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "voided", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "void_reason", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "voided_at", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_payer", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_expense_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_rate", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "card_fee_note", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_price_lock_events_date", + "unique": 0, + "columns": [ + "date", + "created", + "id" + ] + } + ], + "withoutRowid": false + }, + "price_lock_pool_reservations": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "price_lock_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'[]'" + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'{}'" + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "price_lock_pool_returns": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "price_lock_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "origin_pool_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "same_day", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "price_locks": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "salesperson", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "locked_mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "sell_rate", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "buy_rate", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "buy_payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "material_amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "estimated_total", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "discount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "final_order_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "delivery", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "cancelled_at", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "cancelled_reason", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "lines", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_price_locks_status", + "unique": 0, + "columns": [ + "status", + "date" + ] + } + ], + "withoutRowid": false + }, + "private_people": { + "columns": [ + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "total_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "new_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "recoveries": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "number", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mode", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "customer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "salesperson", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "old_lines", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "data", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "inventory_group", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "'active'" + }, + { + "name": "cancelled_at", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_recoveries_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "recovery_changes": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "recovery_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + }, + { + "name": "action", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reason", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "before_value", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "after_value", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "summary", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "dependency", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + } + ], + "indexes": [ + { + "name": "ix_recovery_changes_pending", + "unique": 1, + "columns": [ + "recovery_id" + ] + } + ], + "withoutRowid": false + }, + "recovery_material_batches": { + "columns": [ + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_recovery_material_member", + "unique": 0, + "columns": [ + "member", + "purchase_id" + ] + } + ], + "withoutRowid": false + }, + "recovery_purchase_sources": { + "columns": [ + { + "name": "purchase_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "recovery_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "cash_amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "offset_amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "allocations", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "reimbursements": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "items", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "total", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "status", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "requester_name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewer_name", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "reviewed", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "review_note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": "''" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_reimbursements_date", + "unique": 0, + "columns": [ + "date", + "created", + "id" + ] + }, + { + "name": "ix_reimbursements_status", + "unique": 0, + "columns": [ + "status", + "created", + "id" + ] + } + ], + "withoutRowid": false + }, + "returned_stock_lots": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "line_index", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "pocket", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "code", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "mg", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "stock_count", + "type": "INTEGER", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "labor_cost", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "labor_payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "sessions": { + "columns": [ + { + "name": "hash", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "user_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "expires", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "settlements": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "order_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "bucket", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "sqlite_sequence": { + "columns": [ + { + "name": "name", + "type": "", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "seq", + "type": "", + "notnull": 0, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "sync": { + "columns": [ + { + "name": "entity", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "done_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "record_id", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "attempts", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "error", + "type": "TEXT", + "notnull": 0, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_entities": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "entity_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_team_entities_member", + "unique": 0, + "columns": [ + "member", + "kind", + "entity_id" + ] + } + ], + "withoutRowid": false + }, + "team_fund_cash": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "source_kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_team_cash_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "team_fund_claim_uses": { + "columns": [ + { + "name": "reimbursement_id", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "item_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "source_kind", + "type": "TEXT", + "notnull": 1, + "pk": 3, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 4, + "dflt": null + }, + { + "name": "component", + "type": "TEXT", + "notnull": 1, + "pk": 5, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_fund_entries": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "source_kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "source_revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "project", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "from_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "to_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_team_entries_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "team_fund_sources": { + "columns": [ + { + "name": "kind", + "type": "TEXT", + "notnull": 1, + "pk": 1, + "dflt": null + }, + { + "name": "source_id", + "type": "TEXT", + "notnull": 1, + "pk": 2, + "dflt": null + }, + { + "name": "snapshot", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "revision", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "legacy", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "0" + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "updated", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_fund_transfers": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "date", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "from_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "to_member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "amount", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "note", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "actor", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "created", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [ + { + "name": "ix_team_transfers_date", + "unique": 0, + "columns": [ + "date", + "created" + ] + } + ], + "withoutRowid": false + }, + "team_members": { + "columns": [ + { + "name": "member", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "label", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "enabled", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_reimbursement_details": { + "columns": [ + { + "name": "reimbursement_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "payer", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_reimbursement_sources": { + "columns": [ + { + "name": "source_key", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "reimbursement_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "item_id", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + }, + "team_user_members": { + "columns": [ + { + "name": "user_id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "member", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "password_set", + "type": "INTEGER", + "notnull": 1, + "pk": 0, + "dflt": "1" + } + ], + "indexes": [], + "withoutRowid": false + }, + "users": { + "columns": [ + { + "name": "id", + "type": "TEXT", + "notnull": 0, + "pk": 1, + "dflt": null + }, + { + "name": "name", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "role", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "salt", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + }, + { + "name": "hash", + "type": "TEXT", + "notnull": 1, + "pk": 0, + "dflt": null + } + ], + "indexes": [], + "withoutRowid": false + } + }, + "counts": { + "after_sale_changes": 0, + "after_sale_revisions": 0, + "after_sales": 0, + "audit": 10, + "closes": 0, + "corrections": 0, + "credit_card_rate_snapshots": 1, + "customer_material_deposits": 0, + "customer_material_events": 0, + "customer_material_origins": 0, + "daily_outlay_confirmations": 0, + "daily_people_counts": 0, + "document_print_status": 0, + "expenses": 0, + "inventory_changes": 0, + "inventory_count_baselines": 0, + "inventory_manual_groups": 0, + "inventory_manual_rows": 0, + "inventory_snapshots": 1, + "journal": 1, + "material_pool_events": 0, + "material_pool_settlements": 0, + "material_pool_usages": 0, + "material_public_substitutions": 0, + "material_purchase_changes": 0, + "material_purchase_payment_origins": 0, + "material_purchase_shares": 0, + "material_purchases": 0, + "material_return_sources": 0, + "material_rolling_days": 0, + "material_rolling_legacy": 0, + "material_rolling_returns": 0, + "material_rolling_source_order": 0, + "material_usage_allocations": 0, + "material_usage_order": 0, + "material_usage_parties": 0, + "material_usage_sources": 0, + "meta": 8, + "movement_counts": 0, + "movements": 3, + "operations": 3, + "order_after_sales": 0, + "order_cancellations": 0, + "order_changes": 0, + "order_ownership_changes": 0, + "order_templates": 0, + "orders": 1, + "payments": 1, + "pocket_catalog": 8, + "price_lock_changes": 0, + "price_lock_events": 0, + "price_lock_pool_reservations": 0, + "price_lock_pool_returns": 0, + "price_locks": 0, + "private_people": 0, + "recoveries": 0, + "recovery_changes": 0, + "recovery_material_batches": 0, + "recovery_purchase_sources": 0, + "reimbursements": 0, + "returned_stock_lots": 0, + "sessions": 3, + "settlements": 0, + "sqlite_sequence": 2, + "sync": 2, + "team_entities": 4, + "team_fund_cash": 2, + "team_fund_claim_uses": 0, + "team_fund_entries": 1, + "team_fund_sources": 1, + "team_fund_transfers": 0, + "team_members": 3, + "team_reimbursement_details": 0, + "team_reimbursement_sources": 0, + "team_user_members": 3, + "users": 3 + }, + "originalColumnHashes": { + "after_sale_changes": "9e0859eb1d1149f47e6966612398551286679630065b9e4958b6ec497daeca5a", + "after_sale_revisions": "62dfaedc1c046b1b118bf21da6122ebc48f9a27f1d2b3e4aa0475b1dc0bb9882", + "after_sales": "c5805de9bb84ecc2c66b934ba740e99edc86850408d110f4e54b3ad1e9f793e7", + "audit": "3c6b58ee4b20fce115516902dc139dd1782c6f2f9934047f743115dc866d57bb", + "closes": "69e849e357b79c42693d1b6f602182e8dd486d3b177b00dcc6203aaa9501734b", + "corrections": "3229387e532d8b7033acf9249de535294103928824930848731376f255e79d88", + "credit_card_rate_snapshots": "fbcb6763481963de5eb4575a5f209f17497fb6965f102f015a4249b58bebf761", + "customer_material_deposits": "22125b7b0d89754c7f36567cca6e3e3e2f77de96806677b9b83610d6497a5cc4", + "customer_material_events": "4686b6bf092c2e781676496e927b6bc1042c2122f5adc8346fea95340bc81524", + "customer_material_origins": "873ac7930f118dacb4d5be95974cd14b260ad16547b48a50df44b557eb1a4e9c", + "daily_outlay_confirmations": "4f9242428914a3c597990fa445faac7cbf5f75384a6d61391eb5804d1dae8ad1", + "daily_people_counts": "a075409517745ff575955dee1aed916360bc047bcdac1d11e832ef03537d7090", + "document_print_status": "851e16b099a2e47a6632443e38de79ed0aa7e4089178fc18908a4f8487dee1c9", + "expenses": "148b144e7bb3ac64b8d57ffe30819d50a5f3f3e89583444e5f00aee2390bbd60", + "inventory_changes": "0889ef3ce9a83040807662975a1a292499ebb13226101833a0c7c53c70439b79", + "inventory_count_baselines": "f0d5e5341d23794199ce4f642a262b02b0e727ebb8e41f616fc8191589ec80c4", + "inventory_manual_groups": "c4f9d12d55e1f62a11c132ade23423a943356afcf555e8cc75d1ae6b485755ed", + "inventory_manual_rows": "7c948e27e2912f4d135e9a9f80c0866762555923ef15bcfec5c53e81fba2b7dd", + "inventory_snapshots": "f20ac86d3fa675dc8f06b33104259fd7a2699ee36acd48a2c764a8b853839085", + "journal": "3f23ee7f8ab8bdc51d5ce75ef3941af7c6fc92d4fea3a3456a47658cff045de9", + "material_pool_events": "249e2ab98e91e9a9abb249727c5bbffc09e1197c012f6551c2c51e2a15953111", + "material_pool_settlements": "ac8f3ddcb0885e4557854275b168e63b1337eb197ccb6e937a1d915bc4fcb0fe", + "material_pool_usages": "e1a9ab7ffdc74821048e460e8227d52c9a92d670047f9b75deb25a1658327821", + "material_public_substitutions": "2e2960b4dc3d3c4b98d3ebcabe1f295ded36e657aab444920dd02d5488ee7a92", + "material_purchase_changes": "7b53acc9505f9db03ecef308d78e532264cb407d91d426b447f19af9fca6c197", + "material_purchase_payment_origins": "d1e04707d00a7a2a426b3a9d5a640db45f059729427e6e8e37dd3847ab1d89ea", + "material_purchase_shares": "b4bd6ef6d2ccfdddb14c04317e44592ab8f2557227044ab87e01843e75fd1dfd", + "material_purchases": "f05e1f9bc86669b57b4ff4cf63608360c07870ae1b26e8f527c57147e21d73d7", + "material_return_sources": "2dcdccdc2342921cb6d770423e305ac647232c0ceaa3ed50a174c2fa42b1b9f1", + "material_rolling_days": "7ab190bec7d741619655f70dea6cee69c989be0180fecb9cd16e79e09d749f45", + "material_rolling_legacy": "4e96d616679f4c1df03e27d498b0fd7e677316b7c0e471096cf5c8c0ed3d5f21", + "material_rolling_returns": "0ad7f311fc794c53e67470fcc0f690ec200d730f6f922c38f007066fe2f50d4a", + "material_rolling_source_order": "ae411f0881d8cec5909c864f085afadc090f6d239a30e242735f39065b341b8d", + "material_usage_allocations": "661326a53b5b4e0f0b8a7a6ce215a71762ac98769c9f894ebc2ad5c04df5c631", + "material_usage_order": "ae411f0881d8cec5909c864f085afadc090f6d239a30e242735f39065b341b8d", + "material_usage_parties": "c7c0314e01fde0649b281efa8aeb45ed0ebbafdee2e807b126091910e73a2e3f", + "material_usage_sources": "5e96a21121759625c9e80171c187dce1cc4f1149a86aac10741fc35a1be02085", + "meta": "aa5a12441d7f81f6a1fd07253f0ceb1136dce038464ddc9d81927565414d8ff3", + "movement_counts": "df1ae0e8f2b534faef4584f680c4498a40e50b8d2f82c4110ecb5e66c96f2003", + "movements": "b6540f9c6e124ab8429dbb77eb209293b13995bd8326b509fd114d507a3dee8f", + "operations": "9616cf14410da881c620a907c5f827f2aa85c6c2402b62f89dc8d90dd6fe36de", + "order_after_sales": "f1c9ccaccc6c8f2840d62281cbb105bb3bd4bffa1cfe96138c524b2fad0a08da", + "order_cancellations": "bc74f59398eabdb6a47e36d02b78e07b045f95f0defbeedbf6b27847c3740d79", + "order_changes": "1721c1f3e83eb7c5f598129c3b89728dc660bbdfd748809e0e606ac72e41182e", + "order_ownership_changes": "91bd1bfc301f386ea4c69b70b553286a3c6da4e2b72ecf4bf24925d9362cc905", + "order_templates": "cbb11db645db849781b65a4e119872fb48038a833d370170bd6e30d25f20e263", + "orders": "bd9526d4a3311192141e133951f17cd384878c06eb1f2d98deb5494b2b35ffb2", + "payments": "aea390de9d0a4707f7f9df260fb816c3b70681048facfb964c2d1d57ea24775e", + "pocket_catalog": "c7e75e0f0549cc4c556205bb6bc13b01d9fd18bfae04d21bb1ec3e7c8fa0b5ef", + "price_lock_changes": "05f452de5ec06bac9c841a3bc943b6212c01366024d1208ad95cfc5869cf848b", + "price_lock_events": "1fa93ce06a15de30abd9c650c14af6adc1f1663d8b54815cd8d16507a5b36d26", + "price_lock_pool_reservations": "c1e524437b01d28d6a7297a3844ec6510cab72b01dde0fa568166ab9af1157d1", + "price_lock_pool_returns": "c53aadf69fa17057a4fbfce91ecd4849780f3789e1622ed817d9de45512a9090", + "price_locks": "edba2376ee72e63ae5500d7e4e83b8101c08c71395e3c907064c506867c9d765", + "private_people": "8e89b10ed1bcf8da2b252ddf85d59bf119845af65f8b5db230a6dff5dc9c97b2", + "recoveries": "13354293e4df501ed72b4a225a48df521ed06e55014926d031a96119e401acb1", + "recovery_changes": "b50c7f2bee293c8c5b60ab8f0b9cadbbfb02aa44d381a10c9c3880342634be00", + "recovery_material_batches": "de942097dc406c31b13c7b93954fa2421f7fedb203c2e0c1329c0d5897da1ec5", + "recovery_purchase_sources": "85c2f69cd78e77eafd57b98fc158a70b5ce62e35f17d2d2de017ea962d7ca722", + "reimbursements": "3a5559838c72d623c1f09184795b8941cc0e54b0430114ec5a6c0b48b0190370", + "returned_stock_lots": "3410d6e440f4f5babce2fccf93433542a0b77321b035031b82c1127b30549cb8", + "sessions": "62683a2b4f938679f4011be15bcb4ca074e51013988b0f42e27c01a59a57b775", + "settlements": "ed842d6122f09ddf1f6bb7628466e41bf899f868c7b0a6acfe2f68ce4d92fe29", + "sqlite_sequence": "a1e727bdd0e4b66ff50f0de76fc46a0583df44cce620006f0f467875f0142c6a", + "sync": "def085e408a1b362dc3ed40c45c7ca1e2d3e946cde335285bc1a194e700e54d1", + "team_entities": "8b105939acbce6f89958bf9e67e0f7860400ff42756d2d9ef40a53798a0168d6", + "team_fund_cash": "0d46673059aff93277f254ee4fefbdf9a964a86df90bc946b70bab8c5e036fcb", + "team_fund_claim_uses": "4a9d6cfe64f00a0d8198f2986d4dc4458b9d59154352e9acfc76e21a665016e0", + "team_fund_entries": "6d0700b411378c16276bb33866f0fb7b30030da2402059d11b4b25df44eaa60c", + "team_fund_sources": "e795cc58e402a345f4b6a823c954ff9871e8b592b037ab36dc573cabf6ff1649", + "team_fund_transfers": "bb16a872c757cc906806ede97af3b632d3dab8a4f4918670d8c714fa30dfe1b2", + "team_members": "384ce53e0e571c0a7b02f90c7261e1a94a79812370ad61b531650305b04b16ea", + "team_reimbursement_details": "f0514a000ce4d413735884913883c1051dffd76d5b35a79bd98448cd92ec9c34", + "team_reimbursement_sources": "6317eda06c7c8db2ebaaa5c28de5ec9e84d8e7c90705b9a3f25807494259d907", + "team_user_members": "5fe19cc1113cc73aaf0c943327a76d54f7713febcf6cdd221b7b1827b2dc9c89", + "users": "e8a064a2a2a822dc9884832b2c0eadca2d27b9faab7dd7fc73f053df8bfd3f5d" + } + }, + "unchangedOriginalTables": 75, + "changedOriginalTables": [ + "sessions" + ], + "responses": { + "owner": { + "login": 200, + "/api/session": { + "status": 200, + "hash": "286b2467dd2a7ae91f8c6f4d153c42cd16f0340b73944dfde5182db5cf20b0a8", + "keys": 6 + }, + "/api/state": { + "status": 200, + "hash": "af90971878daa849bc14a0336ca35c34cc55f2aa4fc337464031ed0149494ec1", + "keys": 18 + }, + "/api/order-book?from=2000-01-01&date=2026-12-05": { + "status": 200, + "hash": "8c736679c6443da895580f58c676ee0047bf9fa0847398ed45b090d8d2248f7b", + "keys": 17 + }, + "/api/report?from=2000-01-01&date=2026-12-05&basis=orderDate": { + "status": 200, + "hash": "8e02cb0328f8ec8bf4bfdaed2a8a4a552122f28fab7b23559c5721f7e4c93c8b", + "keys": 45 + }, + "/api/report?date=2026-12-05": { + "status": 200, + "hash": "c0f6002ed4ae53fb4890ac0fae8809c8cc2dbfdd08a3acfe234ab3536ca75dd7", + "keys": 27 + }, + "/api/inventory": { + "status": 200, + "hash": "99abb122d9f6e28d432afbe7626bf3547456086a03811fe9bf90a64cfafc812a", + "keys": 10 + }, + "/api/inventory/movements": { + "status": 200, + "hash": "0a686cf41fb340c7c994e23dedae8e4e05d46149bb3f1331cc4bd410d33e822d", + "keys": 15 + }, + "/api/inventory/snapshots": { + "status": 200, + "hash": "7e22dbecd3556bcdbae2bc676a5612fa6dbc3130729a0d5ad2fb16280bc4890d", + "keys": 3 + }, + "/api/material-pools": { + "status": 200, + "hash": "482a83cca8d33ea531f932ab9e45ff724057197e26424eb1e37d7ce845bd10fc", + "keys": 6 + }, + "/api/price-locks?status=all": { + "status": 200, + "hash": "2132da810e0971d4f4851a6524618a4dd63d4c24095a4aebc4804c42a6b9ad11", + "keys": 4 + }, + "/api/recoveries": { + "status": 200, + "hash": "7a24f4e8730ac1dc6460cb31c2a5f0218d1d1616b5b78f4e1af12b2002fd50dc", + "keys": 4 + }, + "/api/customer-materials": { + "status": 200, + "hash": "91aaa670073cf1251a8fb7d1c1c665a18a6f18d1174db04356043aca1a7c7d25", + "keys": 4 + }, + "/api/team-funds?date=2026-12-05": { + "status": 200, + "hash": "65c907656d9816493a5d213a6acfcf112e23fd5964ff3d430f3191f39f641fbe", + "keys": 13 + }, + "/api/team-profits": { + "status": 200, + "hash": "c21f459b103413043378d5ff8a96ecedd97f4d824486e64cfd9500331c76c55e", + "keys": 5 + }, + "/api/daily-funds?date=2026-12-05": { + "status": 200, + "hash": "82ce49f8ccbdb8649c70a40af72f824da8a5df5057f87f2734f87fc5744e5952", + "keys": 19 + }, + "/api/shop-settings": { + "status": 200, + "hash": "85cc10305b5f132734b1912d9be1f572fc0bd175f4d1e8d267148f7411237651", + "keys": 12 + }, + "/api/pockets": { + "status": 200, + "hash": "5e231d7369ee4b1c072ea765553dbdd79c48852dba11abec9d09d9493d786b5f", + "keys": 3 + }, + "/api/order-templates": { + "status": 200, + "hash": "1633902c6cbba5e7770dbed172df754a25078bb76efe1f23474edc87f1a47655", + "keys": 1 + }, + "/api/reimbursements": { + "status": 200, + "hash": "f3a5a73b94d6cd41e303f21fc9ec8fe22bacec9cd72433894a1afdd35472bc96", + "keys": 6 + }, + "/api/order-changes?status=all": { + "status": 200, + "hash": "f0a5ba1b6a67f4f5f1e1e4dbc59aa7fa0c3393fd815c3a2a62d70c2963ed11e7", + "keys": 3 + }, + "/api/order-cancellations?status=all": { + "status": 200, + "hash": "f0a5ba1b6a67f4f5f1e1e4dbc59aa7fa0c3393fd815c3a2a62d70c2963ed11e7", + "keys": 3 + }, + "/api/inventory/changes?status=all": { + "status": 200, + "hash": "624494c30b9280aff52bd0bcc2daac76e8445ec6b2c17415f50496e4d63298d1", + "keys": 2 + }, + "/api/employees": { + "status": 200, + "hash": "df086cbe0cd22a0e5d674546e8ad67d5e4fc7784b0847016bc0202089b606b55", + "keys": 2 + }, + "/api/people-count-history": { + "status": 200, + "hash": "ee416897038f8d4ed59d9d4590abe528a36b403ea1e1bb770863eab357e1ec55", + "keys": 7 + } + }, + "assistant": { + "login": 200, + "/api/session": { + "status": 200, + "hash": "0b62c9a0f5785a107ab3d2508e90a7c164dfb4321e1703c81ffe102bc3682015", + "keys": 6 + }, + "/api/state": { + "status": 200, + "hash": "8399e4f97ca6edfad2d44059b57f122304d1527247dfe6864d4ace50f231c7ed", + "keys": 18 + }, + "/api/order-book?from=2000-01-01&date=2026-12-05": { + "status": 200, + "hash": "805c719c8ee6252b171bffdf2a4ac952fd583f9ea40aafa598093c5893dde9ab", + "keys": 17 + }, + "/api/report?from=2000-01-01&date=2026-12-05&basis=orderDate": { + "status": 200, + "hash": "04384a50918e44a93f407eb03faabe4c357ead98ff5c969d7845abc169152d5f", + "keys": 45 + }, + "/api/report?date=2026-12-05": { + "status": 200, + "hash": "7b5f5efa30d8c31dec7d08bb52b22d866bdf71883a10544d3454db0b2d030b0e", + "keys": 28 + }, + "/api/inventory": { + "status": 200, + "hash": "eab32ac50072ace9d9310d65674d25ce1ec791c3a5da115f11a862e32c358e73", + "keys": 10 + }, + "/api/inventory/movements": { + "status": 200, + "hash": "277a26fe017b6adeba92827be380973370c0da2c8b1f827faa4980bd721a4e45", + "keys": 15 + }, + "/api/inventory/snapshots": { + "status": 200, + "hash": "7e22dbecd3556bcdbae2bc676a5612fa6dbc3130729a0d5ad2fb16280bc4890d", + "keys": 3 + }, + "/api/material-pools": { + "status": 200, + "hash": "065c85cc6c7c851721a3dd5f6fd15a032f2161ab7678b5a66a840f698310da18", + "keys": 6 + }, + "/api/price-locks?status=all": { + "status": 200, + "hash": "2132da810e0971d4f4851a6524618a4dd63d4c24095a4aebc4804c42a6b9ad11", + "keys": 4 + }, + "/api/recoveries": { + "status": 200, + "hash": "7a24f4e8730ac1dc6460cb31c2a5f0218d1d1616b5b78f4e1af12b2002fd50dc", + "keys": 4 + }, + "/api/customer-materials": { + "status": 200, + "hash": "91aaa670073cf1251a8fb7d1c1c665a18a6f18d1174db04356043aca1a7c7d25", + "keys": 4 + }, + "/api/team-funds?date=2026-12-05": { + "status": 403, + "hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b", + "keys": 1 + }, + "/api/team-profits": { + "status": 403, + "hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b", + "keys": 1 + }, + "/api/daily-funds?date=2026-12-05": { + "status": 200, + "hash": "155bbbc7722a8ed2524a0c1fd5de9855c36c600b5177badd15ac95671b65c951", + "keys": 19 + }, + "/api/shop-settings": { + "status": 200, + "hash": "6515a3a11432563ccb559ca233e42984fbd9813a3f0d5c83018fc23df2b16595", + "keys": 9 + }, + "/api/pockets": { + "status": 200, + "hash": "4141fbf6585e13250222265b5eaebb2fcbcfe4ebe0ab79a786e9d4aa7d1c0315", + "keys": 3 + }, + "/api/order-templates": { + "status": 200, + "hash": "1633902c6cbba5e7770dbed172df754a25078bb76efe1f23474edc87f1a47655", + "keys": 1 + }, + "/api/reimbursements": { + "status": 200, + "hash": "f3a5a73b94d6cd41e303f21fc9ec8fe22bacec9cd72433894a1afdd35472bc96", + "keys": 6 + }, + "/api/order-changes?status=all": { + "status": 200, + "hash": "946c74a0450316999153de7ffd9ec039f6d14b21874dd3916f08073d6910a294", + "keys": 3 + }, + "/api/order-cancellations?status=all": { + "status": 200, + "hash": "946c74a0450316999153de7ffd9ec039f6d14b21874dd3916f08073d6910a294", + "keys": 3 + }, + "/api/inventory/changes?status=all": { + "status": 200, + "hash": "624494c30b9280aff52bd0bcc2daac76e8445ec6b2c17415f50496e4d63298d1", + "keys": 2 + }, + "/api/employees": { + "status": 403, + "hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b", + "keys": 1 + }, + "/api/people-count-history": { + "status": 403, + "hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b", + "keys": 1 + } + }, + "assistant2": { + "login": 200, + "/api/session": { + "status": 200, + "hash": "a1ea37526a08233990b6519daf3b9014431bf00815833bcf803d629f193320b3", + "keys": 6 + }, + "/api/state": { + "status": 200, + "hash": "c98c7e78912dadaf0d784d4f17afd930e220b56a5855374040b8be828135f55c", + "keys": 18 + }, + "/api/order-book?from=2000-01-01&date=2026-12-05": { + "status": 200, + "hash": "51468f900d11293ddc48382c2cc6c0aaf7864b41942037f0faa253a1f8ac5e48", + "keys": 17 + }, + "/api/report?from=2000-01-01&date=2026-12-05&basis=orderDate": { + "status": 200, + "hash": "8de781179135a3d14a1828ac835cedcfafd320db095e96d12efe0a7a4c7539a3", + "keys": 45 + }, + "/api/report?date=2026-12-05": { + "status": 200, + "hash": "bd24e63be37d463ff91ec153d0f47a38398cbb4427aae32d9ac73de4b9d60be8", + "keys": 28 + }, + "/api/inventory": { + "status": 200, + "hash": "eab32ac50072ace9d9310d65674d25ce1ec791c3a5da115f11a862e32c358e73", + "keys": 10 + }, + "/api/inventory/movements": { + "status": 200, + "hash": "cc36109ef9c6492964b8bbaca02ea19520102a6b29f35efe7c42d027ab8ce3a7", + "keys": 15 + }, + "/api/inventory/snapshots": { + "status": 200, + "hash": "7e22dbecd3556bcdbae2bc676a5612fa6dbc3130729a0d5ad2fb16280bc4890d", + "keys": 3 + }, + "/api/material-pools": { + "status": 200, + "hash": "065c85cc6c7c851721a3dd5f6fd15a032f2161ab7678b5a66a840f698310da18", + "keys": 6 + }, + "/api/price-locks?status=all": { + "status": 200, + "hash": "2132da810e0971d4f4851a6524618a4dd63d4c24095a4aebc4804c42a6b9ad11", + "keys": 4 + }, + "/api/recoveries": { + "status": 200, + "hash": "7a24f4e8730ac1dc6460cb31c2a5f0218d1d1616b5b78f4e1af12b2002fd50dc", + "keys": 4 + }, + "/api/customer-materials": { + "status": 200, + "hash": "91aaa670073cf1251a8fb7d1c1c665a18a6f18d1174db04356043aca1a7c7d25", + "keys": 4 + }, + "/api/team-funds?date=2026-12-05": { + "status": 403, + "hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b", + "keys": 1 + }, + "/api/team-profits": { + "status": 403, + "hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b", + "keys": 1 + }, + "/api/daily-funds?date=2026-12-05": { + "status": 200, + "hash": "6f7e618950080f8fc077f4bb0dfae1cb0d2e259ea8bbd9844bc55562c5904efe", + "keys": 19 + }, + "/api/shop-settings": { + "status": 200, + "hash": "6515a3a11432563ccb559ca233e42984fbd9813a3f0d5c83018fc23df2b16595", + "keys": 9 + }, + "/api/pockets": { + "status": 200, + "hash": "4141fbf6585e13250222265b5eaebb2fcbcfe4ebe0ab79a786e9d4aa7d1c0315", + "keys": 3 + }, + "/api/order-templates": { + "status": 200, + "hash": "1633902c6cbba5e7770dbed172df754a25078bb76efe1f23474edc87f1a47655", + "keys": 1 + }, + "/api/reimbursements": { + "status": 200, + "hash": "f3a5a73b94d6cd41e303f21fc9ec8fe22bacec9cd72433894a1afdd35472bc96", + "keys": 6 + }, + "/api/order-changes?status=all": { + "status": 200, + "hash": "946c74a0450316999153de7ffd9ec039f6d14b21874dd3916f08073d6910a294", + "keys": 3 + }, + "/api/order-cancellations?status=all": { + "status": 200, + "hash": "946c74a0450316999153de7ffd9ec039f6d14b21874dd3916f08073d6910a294", + "keys": 3 + }, + "/api/inventory/changes?status=all": { + "status": 200, + "hash": "624494c30b9280aff52bd0bcc2daac76e8445ec6b2c17415f50496e4d63298d1", + "keys": 2 + }, + "/api/employees": { + "status": 403, + "hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b", + "keys": 1 + }, + "/api/people-count-history": { + "status": 403, + "hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b", + "keys": 1 + } + } + } +} diff --git a/新账系统/e2e/baseline/ui/01-login-page.txt b/新账系统/e2e/baseline/ui/01-login-page.txt new file mode 100644 index 0000000..1c407f7 --- /dev/null +++ b/新账系统/e2e/baseline/ui/01-login-page.txt @@ -0,0 +1,16 @@ +麦 +麦麦珠宝 · 新账系统 +录入、收款与复核,从同一张订单开始。 +登录账号 +请选择账号 +麦麦 +娜娜 +小昊 +密码 +登录 +云端数据库和飞书同步的真实状态,会在系统内显示。 +麦麦麦珠宝开单 · 库存 · 订单利润退出 +01 开单02 待交付03 每日购料04 回收/置换05 订单06 库存07 每日对账08 团队账目09 私域运营概况登记人数10 店铺与打印设置一次录入,沿同一张单收款、交货、复核。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +member=请选择账号 diff --git a/新账系统/e2e/baseline/ui/02-owner-home.txt b/新账系统/e2e/baseline/ui/02-owner-home.txt new file mode 100644 index 0000000..04346d8 --- /dev/null +++ b/新账系统/e2e/baseline/ui/02-owner-home.txt @@ -0,0 +1,179 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +NEW ORDER +开一张新单 +开单即交付,一次记录全额收款、实际费用、出库和利润。 +直接开单 +锁价 +清空表单 +开单模板选择或保存常用模板 +公式快速开单粘贴公式,自动填入商品 +客户与单据 +填写内容自动暂存,生成单据即完成记账 +业务日期 +纸单编号(自动) +客户称呼/代号(必填) +客户类型(必选) +新客户 +老客户 +开单人(必填) +订单归属(经营款与业绩) +麦麦 +娜娜 +小昊 +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +纸单号前半段为业务日期,后半段序号持续累计,中间不加横线,换日期不归零;生成时分配。生成单据即按成交合计记录全额收款,同时按所选货盘扣减黄金库存并计入实际利润。请核对商品已交付,选择实际收款方式与收款人;业务日期作为收款和出库日期。 +商品明细 +金价与工费分开填写 +商品 01 +移除 +商品名称 +足金999 +足银999 +纯银925 +其他 +计价方式 +按金价与工费计算 +直接填写金额 +单位 +g +件 +克重/数量 +金价/银价(元/克) +销售工费方式 +克工费 +件工费 +销售工费 +工费附加项目(选填) ++ 添加附加项目 +向客户收费预填:编绳55元、证书10元、包装10元、快递8元,均可修改;按填写金额自动加进本行销售额。 +本行销售额(元,含附加项目) +克重须为非负数字,最多3位小数 +内部成本 · 客户单据不显示 +出库货盘(仅黄金) +外配/不扣黄金 +现货 +金料 +找金 +回收旧料 +君宝汇 +料费成本来源 +手动填写成本 +当日加权料价 +料价按当天加权;垫付款按购料录入顺序扣减。进货工费仍按实际填写。 +进货料费方式 +按克料价 +直接填总料费 +进货料价(元/克) +料费成本合计(元) +料费付款人 +麦麦 +娜娜 +小昊 +填写每克进货料价后,系统自动乘以本行克重。 +进货工费方式 +克工费 +总工费 +进货总工费(元) +进货工费付款人 +麦麦 +娜娜 +小昊 +直接填写本行总工费。 ++ 添加商品 +银饰不扣黄金货盘;外配使用店内金料时,选实际出库货盘。 +实际费用(内部) ++ 添加其他成本 +按实际发生勾选,快递最多选一项;盒子按配置单价和数量计费。取消勾选不记成本,客户收费不受影响。 客户单据不显示。 +费用实际支付日期 +常用成本 · 按实际发生勾选 +快递二选一,也可不选;取消勾选不记成本。 +京东快递 +8元 +麦麦付款 +圆通快递 +6元 +麦麦付款(订单归属人) +盒子 +3元/个 +麦麦付款 +钢绳(店里) +7元 +麦麦付款 +银链(家里) +18元 +麦麦付款 +实际费用合计:¥0.00 +整单优惠/抹零(元) +客户单备注 +内部备注(客户不可见)必填,至少3个字符(含#号),最多500字 +输入 #词语 添加标签,例如 #补货、#客户自提。保存订单后可复用,点击下方标签即可填入。 +暂无已保存标签,填写 #词语 并保存订单后即可复用。 +成交合计 +待填写 +合计后四舍五入到元,请先填写商品金额与优惠。 +生成销售单据 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-template-select=选择后自动填入预设 +order-formula-input= +date=2026-11-20 +paper_number=20261120005(预计) +customer= +customer_type=☐ +customer_type=☐ +salesperson=麦麦 +member=麦麦 +payment_method=微信 +payment_recipient=麦麦 +nameType=足金999 +pricingMode=按金价与工费计算 +unit=g +quantity= +goldPrice= +laborMode=克工费 +laborRate= +sale= +pocket=现货 +cost-materialSource=手动填写成本 +cost-materialMode=按克料价 +cost-materialRate= +cost-material= +cost-materialPayer=麦麦 +cost-laborMode=总工费 +cost-labor= +cost-laborPayer=麦麦 +fees_date=2026-11-20 +cost_jd=☐ +cost_yt=☐ +cost_box=☐ +cost_steel=☐ +cost_silver=☐ +discount=0 +note= +internal_note= diff --git a/新账系统/e2e/baseline/ui/03-owner-tab-create.txt b/新账系统/e2e/baseline/ui/03-owner-tab-create.txt new file mode 100644 index 0000000..04346d8 --- /dev/null +++ b/新账系统/e2e/baseline/ui/03-owner-tab-create.txt @@ -0,0 +1,179 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +NEW ORDER +开一张新单 +开单即交付,一次记录全额收款、实际费用、出库和利润。 +直接开单 +锁价 +清空表单 +开单模板选择或保存常用模板 +公式快速开单粘贴公式,自动填入商品 +客户与单据 +填写内容自动暂存,生成单据即完成记账 +业务日期 +纸单编号(自动) +客户称呼/代号(必填) +客户类型(必选) +新客户 +老客户 +开单人(必填) +订单归属(经营款与业绩) +麦麦 +娜娜 +小昊 +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +纸单号前半段为业务日期,后半段序号持续累计,中间不加横线,换日期不归零;生成时分配。生成单据即按成交合计记录全额收款,同时按所选货盘扣减黄金库存并计入实际利润。请核对商品已交付,选择实际收款方式与收款人;业务日期作为收款和出库日期。 +商品明细 +金价与工费分开填写 +商品 01 +移除 +商品名称 +足金999 +足银999 +纯银925 +其他 +计价方式 +按金价与工费计算 +直接填写金额 +单位 +g +件 +克重/数量 +金价/银价(元/克) +销售工费方式 +克工费 +件工费 +销售工费 +工费附加项目(选填) ++ 添加附加项目 +向客户收费预填:编绳55元、证书10元、包装10元、快递8元,均可修改;按填写金额自动加进本行销售额。 +本行销售额(元,含附加项目) +克重须为非负数字,最多3位小数 +内部成本 · 客户单据不显示 +出库货盘(仅黄金) +外配/不扣黄金 +现货 +金料 +找金 +回收旧料 +君宝汇 +料费成本来源 +手动填写成本 +当日加权料价 +料价按当天加权;垫付款按购料录入顺序扣减。进货工费仍按实际填写。 +进货料费方式 +按克料价 +直接填总料费 +进货料价(元/克) +料费成本合计(元) +料费付款人 +麦麦 +娜娜 +小昊 +填写每克进货料价后,系统自动乘以本行克重。 +进货工费方式 +克工费 +总工费 +进货总工费(元) +进货工费付款人 +麦麦 +娜娜 +小昊 +直接填写本行总工费。 ++ 添加商品 +银饰不扣黄金货盘;外配使用店内金料时,选实际出库货盘。 +实际费用(内部) ++ 添加其他成本 +按实际发生勾选,快递最多选一项;盒子按配置单价和数量计费。取消勾选不记成本,客户收费不受影响。 客户单据不显示。 +费用实际支付日期 +常用成本 · 按实际发生勾选 +快递二选一,也可不选;取消勾选不记成本。 +京东快递 +8元 +麦麦付款 +圆通快递 +6元 +麦麦付款(订单归属人) +盒子 +3元/个 +麦麦付款 +钢绳(店里) +7元 +麦麦付款 +银链(家里) +18元 +麦麦付款 +实际费用合计:¥0.00 +整单优惠/抹零(元) +客户单备注 +内部备注(客户不可见)必填,至少3个字符(含#号),最多500字 +输入 #词语 添加标签,例如 #补货、#客户自提。保存订单后可复用,点击下方标签即可填入。 +暂无已保存标签,填写 #词语 并保存订单后即可复用。 +成交合计 +待填写 +合计后四舍五入到元,请先填写商品金额与优惠。 +生成销售单据 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-template-select=选择后自动填入预设 +order-formula-input= +date=2026-11-20 +paper_number=20261120005(预计) +customer= +customer_type=☐ +customer_type=☐ +salesperson=麦麦 +member=麦麦 +payment_method=微信 +payment_recipient=麦麦 +nameType=足金999 +pricingMode=按金价与工费计算 +unit=g +quantity= +goldPrice= +laborMode=克工费 +laborRate= +sale= +pocket=现货 +cost-materialSource=手动填写成本 +cost-materialMode=按克料价 +cost-materialRate= +cost-material= +cost-materialPayer=麦麦 +cost-laborMode=总工费 +cost-labor= +cost-laborPayer=麦麦 +fees_date=2026-11-20 +cost_jd=☐ +cost_yt=☐ +cost_box=☐ +cost_steel=☐ +cost_silver=☐ +discount=0 +note= +internal_note= diff --git a/新账系统/e2e/baseline/ui/04-owner-tab-price-locks.txt b/新账系统/e2e/baseline/ui/04-owner-tab-price-locks.txt new file mode 100644 index 0000000..f5e4706 --- /dev/null +++ b/新账系统/e2e/baseline/ui/04-owner-tab-price-locks.txt @@ -0,0 +1,31 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +PENDING DELIVERY +待交付 +显示所有日期的锁价待交付记录。锁价时只记实际收付,交付后才计销售、成本和利润。 +新增锁价 +修改与作废申请 +刷新 +待交付 +已作废 +目前没有锁价待交付记录 +已交付记录会进入订单列表。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] diff --git a/新账系统/e2e/baseline/ui/05-owner-tab-material-pools.txt b/新账系统/e2e/baseline/ui/05-owner-tab-material-pools.txt new file mode 100644 index 0000000..bce8a02 --- /dev/null +++ b/新账系统/e2e/baseline/ui/05-owner-tab-material-pools.txt @@ -0,0 +1,54 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +DAILY MATERIAL +每日购料 +购料付款当天记支出,余料结转;订单按实际耗用自动计料费。 +刷新 +登记一笔购料 +同一天的多笔购料自动合并加权 +购料日期 +购买克重(g) +购买总价(元) +付款人 +麦麦 +娜娜 +小昊 +备注(选填) +保存购料 +只登记购料与实际付款人,付款当天记支出,未用完的料结转留用。关联订单按实际耗用自动计算料费及与付款人的往来,销售耗用不再重复记现金支出。实物入库仍在「库存」登记。 +合并未用完的材料 +核对并启用跨日结转 +启用后,昨天以前未用完的料合并到今天,只保留一个当前加权料价和剩余克重。今日已有订单按新料价核算,旧日订单不变。 +累计购料 10.000g +购买总价 ¥9,000.00 +已用克重 0.000g +剩余克重 10.000g +每日料价 +1 个日期 · 克重、料价与状态自动计算 +料价日期 购买总克重 购买总价 加权进货料价 已用克重 剩余克重 付款人 状态 明细 +2026-11-19 10.000g ¥9,000.00 ¥900.00/克 0.000g 10.000g 麦麦 未使用 查看 +同一天按购料录入先后,先扣完一笔料款,再扣下一笔;一单耗用多笔购料时,会按实际付款人分别显示。加权料价仅供查看,订单按总价与总克重精确计算到分;同日补购会自动更新关联订单成本。已退货并回到自有库存的克重会恢复到原购料日期的可用量。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +grams= +total= +payer=麦麦 +note= diff --git a/新账系统/e2e/baseline/ui/06-owner-tab-recoveries.txt b/新账系统/e2e/baseline/ui/06-owner-tab-recoveries.txt new file mode 100644 index 0000000..25df64c --- /dev/null +++ b/新账系统/e2e/baseline/ui/06-owner-tab-recoveries.txt @@ -0,0 +1,118 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +RECOVERY & EXCHANGE +回收/置换 +称重、结算、库存与购料一次保存。 +查看记录 +回收更正复核(0) +直接回收 +置换 +寄存,暂不结算 +客户与单据 +保存后自动编号 +业务日期 +客户称呼/代号 +开单人 +归属成员 +麦麦 +娜娜 +小昊 +旧料称重 +成色按百分数填写,例如99表示99% +旧料名称 +来料重量(g) +熔后重量(g) +成色(%) +折后重量(g,自动) +折后重量 = 熔后重量 × 成色 ÷ 100。 +旧料入库货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +已结算的旧料入所选货盘;暂存余料单独记入客户寄存料。置换新货按出货货盘扣减。 +回收结算 +保存后自动记购料与回收旧料库存 +回收单价(元/g) +回收结算额(元,可改) +恢复自动金额 +按折后重量与回收单价自动计算,实际结算有调整时可修改金额。 +本次结算 +保存前请核对实际收付款 +来料重量请填写大于0的数字,最多保留3位小数。 +付款方式 +微信 +支付宝 +现金 +付款人 +麦麦 +娜娜 +小昊 +备注(选填,可打印) +已核实重量、结算金额和实际收付款 +保存回收单 +客户寄存料 +寄存,暂不结算 +刷新寄存记录 +公共寄存台账,仅按克重和备忘记录;不计入自有库存、购料成本或可用料池。 +寄存余料0.000g +累计寄存0.000g +已用于置换0.000g +日期/寄存号 备忘 寄存 已用 剩余 经办人/记录 +暂无寄存记录 +回收/置换记录 +刷新记录 +开始日期 +结束日期 +业务类型 +全部 +直接回收 +置换 +归属成员 +全部成员 +麦麦 +娜娜 +小昊 +查询 +这个日期范围还没有回收/置换单 +保存后可在这里查看和打印。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +customer= +salesperson=麦麦 +member=麦麦 +old_name=Au旧料 +incoming_weight= +melted_weight= +purity=100 +folded_weight= +old_pocket=回收旧料 +buy_rate= +buy_total= +payout_method=微信 +payer=麦麦 +note= +verified=☐ +from=2026-11-20 +date=2026-11-20 +mode=全部 +member=全部成员 diff --git a/新账系统/e2e/baseline/ui/07-owner-tab-orders.txt b/新账系统/e2e/baseline/ui/07-owner-tab-orders.txt new file mode 100644 index 0000000..990e39f --- /dev/null +++ b/新账系统/e2e/baseline/ui/07-owner-tab-orders.txt @@ -0,0 +1,64 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +今日 · 汇总 0 单 +这个日期没有符合条件的订单、回收或售后 +可以切换日期,或调整搜索和状态筛选。 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/08-owner-tab-stock.txt b/新账系统/e2e/baseline/ui/08-owner-tab-stock.txt new file mode 100644 index 0000000..ab683b8 --- /dev/null +++ b/新账系统/e2e/baseline/ui/08-owner-tab-stock.txt @@ -0,0 +1,127 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +INVENTORY +货盘库存 +登记实物增加、减少或平移,查看当天与历史库存快照。 +管理货盘 +库存修改审批(0) +复核并保存今日快照 +查看每日快照 +导出当前库存 +现货 +当前数量 +92.500 g +昨天快照 11-19 +未保存快照 +金料 +当前数量 +50.000 g +昨天快照 11-19 +未保存快照 +找金 +当前数量 +0.000 g +昨天快照 11-19 +未保存快照 +回收旧料 +当前数量 +0.000 g +昨天快照 11-19 +未保存快照 +君宝汇 +当前数量 +0.000 g +昨天快照 11-19 +未保存快照 +今天尚未保存快照。 +计划:北京时间每日 23:50 自动保存,当前未启动。 +同一天再次保存将更新当天记录。人工复核由店主操作。 +登记库存变动 +销售与退货会随订单自动记账,无需重复登记。启用对数的货盘同时记录克重与对数。 +动作 +增加 +减少 +平移 +只调整对数 +货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +数量(g) +业务日期 +备注(选填) +登记增加 +库存修改审批 +刷新申请 +员工可直接修改本人当天的手动流水;跨天修改、改到其他日期及删除须麦麦批准,等待审批时库存不变。麦麦直接修改、删除即时生效。平移的两边一起处理,订单自动流水请回到原订单处理。 +待审批(0) +已批准(0) +已驳回(0) +全部 +全部日期没有此状态的库存申请。 +库存流水 +共 6 条,当前显示 1~6 条 +导出Excel +团队共用库存,全部流水可查看。员工可直接修改本人当天的手动记录;跨天修改、改到其他日期及删除仍须店主审批。 +Excel按当前日期区间、货盘、流水类型及已删除记录显示设置导出全部匹配记录,包含其他页。 +开始日期 +结束日期 +全部日期 +筛选货盘 +全部货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +流水类型 +全部流水 +手动增加 +手动减少 +手动平移 +全部手动变动 +隐藏已删除记录 +按流水日期筛选,含起止当天;留空不限。每页100条,可翻页查看更早记录。平移按两边货盘分别记一条。 +第 1 / 1 页 · 每页 100 条 +上一页 +下一页 +日期 货盘 变动 动作 备注/原单 经办人 状态/操作 +2026-11-19 现货 -1.000g 销售出库 MM20261119- 小昊 随原业务记录保留 +2026-11-19 现货 -3.000g 销售出库 MM20261119- 麦麦 随原业务记录保留 +2026-11-19 现货 -2.000g 销售出库 MM20261119- 娜娜 随原业务记录保留 +2026-11-19 现货 -1.500g 销售出库 MM20261119- 麦麦 随原业务记录保留 +2026-11-19 金料 +50.000g 开账 浏览器检查起始库存 麦麦 随原业务记录保留 +2026-11-19 现货 +100.000g 开账 浏览器检查起始库存 麦麦 随原业务记录保留 +第 1 / 1 页 · 每页 100 条 +上一页 +下一页 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +kind=增加 +pocket=现货 +grams= +date=2026-11-20 +note= +inventory-movements-from= +inventory-movements-to= +inventory-movements-pocket=全部货盘 +inventory-movements-kind=全部流水 diff --git a/新账系统/e2e/baseline/ui/09-owner-tab-report.txt b/新账系统/e2e/baseline/ui/09-owner-tab-report.txt new file mode 100644 index 0000000..a3fdf92 --- /dev/null +++ b/新账系统/e2e/baseline/ui/09-owner-tab-report.txt @@ -0,0 +1,104 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +DAILY CHECK +每日对账 +核对本人或所选成员的所属订单收入、实际支出与收款账户。 +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +对账日期 +汇总当月 +普通订单按开单日期、售后按记录日期筛选。锁价收付按实际发生日期,销售和完整利润在交付日计入;原锁付款不会重复计入交付日支出。 +2026-11-20:所属订单净收入=收款−退款,已包含他人代收。成本含售后,料池仅计已耗用部分;麦麦垫付和当日往来逐日核对。 +所选范围暂无所属订单收入、成本或当日往来记录。 +所选日销售净额 +¥0.00 +销售 0 单 · 售后 0 笔 · 0 单完成 +本期实收 +¥0.00 +普通订单累计收款+本期锁价实收 +本期实退 +¥0.00 +普通订单累计退款+本期锁价实退 +本期净利润 +¥0.00 +销售净额 − 订单耗用成本 − 实际费用(含售后) +按收款账户核对 +2026-11-20普通订单当前收付,加上同期锁价实际收付。 +账户 实收 实退 净额 +所选范围没有收退款活动账户。 +合计 ¥0.00 ¥0.00 ¥0.00 +请按这些订单的收退款记录与微信、支付宝、现金、信用卡核对;系统尚未接入支付平台账单。 +按付款人核对成本 +普通订单按开单日归集;每日购料按实际购买日期归集,订单耗用料费不再计一次支出;锁价料费、工费与费用按实际付款日归集,原锁料费不在交付时重复计入。实际支出可能与本期订单耗用成本不同。转账请以核实后的完整实际支出为准。 +付款人 货品成本 已付费用 支出合计 +娜娜支出成本 ¥0.00 ¥0.00 ¥0.00 +小昊支出成本 ¥0.00 ¥0.00 ¥0.00 +麦麦支出成本 ¥0.00 ¥0.00 ¥0.00 +合计 ¥0.00 ¥0.00 ¥0.00 +娜娜逐项明细 0 项 +小昊逐项明细 0 项 +麦麦逐项明细 0 项 +普通订单按开单日期、售后按记录日期归集;每日购料按购买日期、锁价支出按实际付款日。旧草稿与未入账费用不计合计;退货冲回订单耗用成本,锁价已经支付的金料款仍保留。0元货品分项省略,已核实的0元费用保留。 +订单与售后净额明细 +2026-11-20范围内,普通订单按开单日、锁价成单按交付日、售后按记录日期归集。这里显示订单完整耗用成本,与上方实际付款分开核对;旧草稿不计金额。 +日期/单号或售后项目 类型/状态 销售净额 货品成本 已付费用 成本合计 订单净利润 +所选日期没有订单或售后记录。 +销售 0 单 · 售后 0 笔 ¥0.00 ¥0.00 ¥0.00 ¥0.00 ¥0.00 +客户待收款与库存 +客户待收款 ¥0.00 +现货 92.500g +金料 50.000g +找金 0.000g +回收旧料 0.000g +君宝汇 0.000g +臻金汇 0.000g +金金 0.000g +定制工厂 0.000g +需要查看 6 项 +截至现在所有订单,不受日期筛选 +MM20261119- 有记录待麦麦复核 +MM20261119- 有记录待麦麦复核 +MM20261119- 麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核 +MM20261119- 有记录待麦麦复核 +MM20261119- 有记录待麦麦复核 +MM20261119- 麦麦直接收客户款,已扣减总待结金额;货款/利润拆分需单独复核 +尚未保存所选日对账快照(含当日售后)。 +下载对账报告 +保存核对快照 +每日报销单 +2026-11-20 +待复核(0) +新增报销单 +每项单独指定承担人;已批准报销只读。请勿将已经计入订单、购料或其他付款记录的支出再次提交。 +所选日期暂无报销单。 +每日利润表 +2026-11-20 · 按日期、订单归属人核对。勾选“汇总当月”可查看当月逐日利润。 +日期 归属人 销售净额 成本 利润 +所选范围暂无订单或售后记录。 +所选范围合计 ¥0.00 ¥0.00 ¥0.00 +普通订单按开单日、锁价成单按交付日、售后按记录日归集。成本含实际耗用料费和费用;退货、作废沿原账冲回。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +report-member-filter=全部成员 +report-date=2026-11-20 +report-month=☐ diff --git a/新账系统/e2e/baseline/ui/10-owner-tab-team-funds.txt b/新账系统/e2e/baseline/ui/10-owner-tab-team-funds.txt new file mode 100644 index 0000000..6927436 --- /dev/null +++ b/新账系统/e2e/baseline/ui/10-owner-tab-team-funds.txt @@ -0,0 +1,35 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +TEAM PROFITS +团队账目 +按月核对助理净利润与预计分成。 +刷新 +月份 +查询 +订单按开单日期、售后按记录日期计入;锁价单交付后计入利润。本月统计截至今天,成本或费用未补齐时显示待核算。 +助理月度利润 +2026-11-01 至 2026-11-20 +成员 月度净利润 分成比例 预计分成 +娜娜 ¥300.00 30% ¥90.00 +小昊 ¥157.00 30% ¥47.10 +预计分成=月度净利润 × 该月份生效比例,四舍五入到分;负数保留公式计算结果。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +month=2026-11 diff --git a/新账系统/e2e/baseline/ui/11-owner-tab-private-operations.txt b/新账系统/e2e/baseline/ui/11-owner-tab-private-operations.txt new file mode 100644 index 0000000..6618cd4 --- /dev/null +++ b/新账系统/e2e/baseline/ui/11-owner-tab-private-operations.txt @@ -0,0 +1,56 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +PRIVATE OPERATIONS +私域运营概况 +仅超级管理员可查看统计;员工可自行登记本人人数。成交按订单归属人统计。 +记录人数 +开始日期 +结束日期 +员工 +全部员工 +麦麦 +娜娜 +小昊 +查询 +今天 +本月 +员工运营汇总 +2026-11-20 ~ 2026-11-20 +员工 最近总人数 新增人数 成交订单 新客订单 老客订单 未标记订单 新客转化参考 退款订单 操作 +麦麦 未记录 未记录 +0/1 天可算增量 +0 0 0 0 — 0 记人数 +娜娜 未记录 未记录 +0/1 天可算增量 +0 0 0 0 — 0 记人数 +小昊 未记录 未记录 +0/1 天可算增量 +0 0 0 0 — 0 记人数 +新增人数=当天总人数-上次记录的总人数。新客转化参考=新客订单数÷新增人数。按订单数统计,可能包含之前加的客户或同一客户多次下单;不是同批客户的准确转化率。人数缺记、分母不大于0或订单未标记时不显示比率;区间比率按合计计算。 +每日人数记录 +记录人数 +2026-11-20 ~ 2026-11-20 · 已记录 0 天。点击人数可修改对应员工当天的记录。 +所选日期暂无人数记录。 +新增人数与上一次有记录的总人数比较,漏记日期自动跳过;没有人数记录的日期不显示,0人也作为有效记录。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +from=2026-11-20 +date=2026-11-20 +member=全部员工 diff --git a/新账系统/e2e/baseline/ui/12-owner-tab-settings.txt b/新账系统/e2e/baseline/ui/12-owner-tab-settings.txt new file mode 100644 index 0000000..bf6c66c --- /dev/null +++ b/新账系统/e2e/baseline/ui/12-owner-tab-settings.txt @@ -0,0 +1,163 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +成员与账号 +当前:麦麦 +员工姓名、登录名、密码及启停状态在「员工管理」中维护。 +SHOP & PRINT SETTINGS +店铺与打印设置 +店铺身份、成员和默认值统一配置;打印布局按实际纸张校准。 +店铺配置 +当前生效配置;仅店主可以修改。 +店名 +单据标题 +联系电话/客户联系信息(选填) +开单默认费用 +证书成本(元) +包装成本(元) +整单快递成本(元) +包装默认付款人 +麦麦 +娜娜 +小昊 +默认费用只用于新增项目。已有订单、模板和草稿里已经填写的费用及付款人按原值保留,开单时仍可按实际修改。 +手续费与利润分成 +信用卡手续费率(‰) +助理利润分成比例(%) +分成生效月份 +新建订单使用当前信用卡费率;修改旧单沿用原费率。分成按生效月份统计,历史月份保留原口径。 +保存店铺配置 +勾选成本管理 +自行添加需要的项目。删除后不再用于新单,历史订单成本保留。 ++ 新增成本 +搜索成本 +成本名称 金额/单价 付款人 计费方式 状态 操作 +京东快递 ¥8 麦麦 每单一次 启用 +编辑 +删除 +圆通快递 ¥6 订单归属人 每单一次 启用 +编辑 +删除 +盒子 ¥3 麦麦 单价 × 数量 启用 +编辑 +删除 +钢绳(店里) ¥7 麦麦 每单一次 启用 +编辑 +删除 +银链(家里) ¥18 麦麦 每单一次 启用 +编辑 +删除 +员工管理 +新增员工、修改登录资料,或停用离职账号。员工只查看本人业务,店主查看全店。 +新增员工 +搜索账号、经办人或手机号 +账号状态 +全部状态 +已启用 +已停用 +搜索 +刷新 +账号名称 经办人名称(开单人) 手机号/原登录名 账号状态 历史记录 操作 +麦麦 +店主 +麦麦 麦麦 +已设置密码 +已启用 +店主账号始终保留,不能停用或删除。 +关联记录 +编辑 +娜娜 +员工 +娜娜 助理 +已设置密码 +已启用 +已有业务记录,不能删除。可停用账号,保留历史订单、付款人与统计。 +关联记录 +编辑 +停用 +删除 +小昊 +员工 +小昊 助理2 +已设置密码 +已启用 +已有业务记录,不能删除。可停用账号,保留历史订单、付款人与统计。 +关联记录 +编辑 +停用 +删除 +客户打印模板 +当前生效设置;修改后请点击保存。 +保存打印设置 +店名、单据标题与联系信息在店铺配置中保存。 +店名 +单据标题 +客户联系信息(选填) +表格最少行数 +左右偏移(mm,正数向右) +上下偏移(mm,正数向下) +内容距顶部(mm) +商品行高(mm) +打开最近一单预览 +填写效果示意;保存后用于实际打印。 +麦麦珠宝 +珠宝销售单 +商品名称 克重 成交金额 +足金手链 1.200g 1,200.00 +合计金额 ¥1,200.00 +大写:壹仟贰佰元整 +注意事项 · 珠宝首饰保养须知 +经办人 ______ +固定241×140mm横版,明细多时自动缩小到一页。打印窗口也选241×140mm,关闭页眉页脚。表格最少行数只用于补空行;套打按实物纸样校准偏移。 +补打沿用同一订单号,不会重复出库或收入。客户预览接口不返回成本、垫资人、利润及内部操作日志。 +数据库与备份 +现在运行在本机试用环境,云端正式数据库尚未部署。 +启动时和运行期间每6小时生成完整数据库备份。本机同盘备份不能防电脑损坏,正式部署还需异地备份。 +生成并下载完整备份 +飞书查看副本 +尚未连接 +使用新账专用表单向同步。修改和复核在本系统完成;同步失败不重开订单、不影响本地账务保存。 +已预留应用API同步通道。正式连接时再配置新表,未连接原销售表,未试写真实账务。 +更改当前账号密码 +原密码 +新密码(至少12个字符) +修改并重新登录 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +storeName=麦麦珠宝 +receiptSubtitle=珠宝销售单 +contact= +certificate=4 +packaging=3 +shipping=6 +packagingPayer=麦麦 +creditCardRatePermille=6 +profitSharePercent=30 +profitShareEffectiveMonth=2026-12 +shop-cost-search= +search= +status=全部状态 +store=麦麦珠宝 +subtitle=珠宝销售单 +contact= +rows=3 +offsetX=0 +offsetY=0 +contentTop=12 +rowHeight=10 diff --git a/新账系统/e2e/baseline/ui/13-owner-create-filled.txt b/新账系统/e2e/baseline/ui/13-owner-create-filled.txt new file mode 100644 index 0000000..7745613 --- /dev/null +++ b/新账系统/e2e/baseline/ui/13-owner-create-filled.txt @@ -0,0 +1,200 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +NEW ORDER +开一张新单 +开单即交付,一次记录全额收款、实际费用、出库和利润。 +直接开单 +锁价 +清空表单 +开单模板选择或保存常用模板 +公式快速开单粘贴公式,自动填入商品 +客户与单据 +填写内容自动暂存,生成单据即完成记账 +业务日期 +纸单编号(自动) +客户称呼/代号(必填) +客户类型(必选) +新客户 +老客户 +开单人(必填) +订单归属(经营款与业绩) +麦麦 +娜娜 +小昊 +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +纸单号前半段为业务日期,后半段序号持续累计,中间不加横线,换日期不归零;生成时分配。生成单据即按成交合计记录全额收款,同时按所选货盘扣减黄金库存并计入实际利润。请核对商品已交付,选择实际收款方式与收款人;业务日期作为收款和出库日期。 +商品明细 +金价与工费分开填写 +商品 01 +移除 +商品名称 +足金999 +足银999 +纯银925 +其他 +计价方式 +按金价与工费计算 +直接填写金额 +单位 +g +件 +克重/数量 +金价/银价(元/克) +销售工费方式 +克工费 +件工费 +销售工费 +工费附加项目(选填) ++ 添加附加项目 +向客户收费预填:编绳55元、证书10元、包装10元、快递8元,均可修改;按填写金额自动加进本行销售额。 +附加项目 +编绳 +证书 +包装 +快递 +附加费 +其他 +附加金额(元) +移除附加项 +本行销售额(元,含附加项目) +2.5 ×(950 + 30) + 附加 20.00 = 2,470.00 元 +内部成本 · 客户单据不显示 +出库货盘(仅黄金) +外配/不扣黄金 +现货 +金料 +找金 +回收旧料 +君宝汇 +料费成本来源 +手动填写成本 +当日加权料价 +料价按当天加权;垫付款按购料录入顺序扣减。进货工费仍按实际填写。 +进货料费方式 +按克料价 +直接填总料费 +进货料价(元/克) +料费成本合计(元) +料费付款人 +麦麦 +娜娜 +小昊 +2.5g × 880元/克 = 2,200.00元 +进货工费方式 +克工费 +总工费 +进货总工费(元) +进货工费付款人 +麦麦 +娜娜 +小昊 +直接填写本行总工费。 ++ 添加商品 +银饰不扣黄金货盘;外配使用店内金料时,选实际出库货盘。 +实际费用(内部) ++ 添加其他成本 +按实际发生勾选,快递最多选一项;盒子按配置单价和数量计费。取消勾选不记成本,客户收费不受影响。 客户单据不显示。 +费用实际支付日期 +常用成本 · 按实际发生勾选 +快递二选一,也可不选;取消勾选不记成本。 +京东快递 +8元 +麦麦付款 +圆通快递 +6元 +麦麦付款(订单归属人) +盒子 +3元/个 +麦麦付款 +钢绳(店里) +7元 +麦麦付款 +银链(家里) +18元 +麦麦付款 +编绳 +商品 1 的附加项目 +实际成本(元) +费用付款人 +娜娜 +小昊 +麦麦 +移除费用 +实际费用合计:¥5.00 +整单优惠/抹零(元) +客户单备注 +内部备注(客户不可见)必填,至少3个字符(含#号),最多500字 +输入 #词语 添加标签,例如 #补货、#客户自提。保存订单后可复用,点击下方标签即可填入。 +暂无已保存标签,填写 #词语 并保存订单后即可复用。 +成交合计 +¥2,470 +四舍五入到元 +生成销售单据 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-template-select=选择后自动填入预设 +order-formula-input= +date=2026-11-20 +paper_number=20261120005(预计) +customer=浏览器客户甲 +customer_type=☑ +customer_type=☐ +salesperson=麦麦 +member=麦麦 +payment_method=微信 +payment_recipient=麦麦 +nameType=足金999 +pricingMode=按金价与工费计算 +unit=g +quantity=2.5 +goldPrice=950 +laborMode=克工费 +laborRate=30 +chargeType=编绳 +chargeAmount=20 +sale=2470.00 +pocket=现货 +cost-materialSource=手动填写成本 +cost-materialMode=按克料价 +cost-materialRate=880 +cost-material=2200.00 +cost-materialPayer=麦麦 +cost-laborMode=总工费 +cost-labor=25 +cost-laborPayer=麦麦 +fees_date=2026-11-20 +cost_jd=☐ +cost_yt=☐ +cost_box=☐ +cost_steel=☐ +cost_silver=☐ +feeAmount=5 +feePayer=麦麦 +discount=0 +note= +internal_note=#浏览器 内部备注 diff --git a/新账系统/e2e/baseline/ui/14-owner-create-submitted.txt b/新账系统/e2e/baseline/ui/14-owner-create-submitted.txt new file mode 100644 index 0000000..d2db20a --- /dev/null +++ b/新账系统/e2e/baseline/ui/14-owner-create-submitted.txt @@ -0,0 +1,134 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +指定日期 +2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +2026-11-20 · 汇总 1 单 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — 未打印 +汇总 1 单 2.500g +克重不含银饰 +¥2,470.00 ¥2,200.00 ¥30.00 ¥2,230.00 ¥240.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +ORDER DETAIL +浏览器客户甲 +内部备注 · 客户不可见 +#浏览器 内部备注 +纸单号 20261120005 · 系统单号 MM20261120- · 收款账户 麦麦微信 +已完成麦麦的订单修改归属业务日期 2026-11-20 · 开单人 麦麦 +录入时间(北京时间):2026-11-20 10:00 +未打印 +点击客户预览里的“打印”后自动记录。 +修改订单 +客户预览/打印 +记额外费用 +取消订单 +处理售后 +旧版退货入口 +更正记错的流水 +店主复核 +销售怎么算 +足金999 +出货货盘:现货 +2.500g +2.500g ×(金价 950.00元/克 + 工费 30.00元/克) = ¥2,450.00 ++ 编绳 ¥20.00 +本行合计 +¥2,470.00 +销售小计 +¥2,470.00 +整单四舍五入到元:¥2,470.00 → ¥2,470 +成交金额 +¥2,470 +成本怎么算 +货品成本+实际费用 +成本项目 付款人 金额 +料费成本 +商品 1 · 足金999 +2.500g × 880.00元/克 +麦麦 ¥2,200.00 +进货工费 +商品 1 · 足金999 +麦麦 ¥25.00 +编绳 +2026-11-20 +麦麦 ¥5.00 +成本合计 +¥2,200.00 + ¥25.00 + ¥5.00 = ¥2,230.00 +付款人合计 +麦麦 ¥2,230.00 +实际订单利润 +¥240.00 +成交金额 ¥2,470.00 − 成本合计 ¥2,230.00 = 实际订单利润 ¥240.00 +商品来源与原始说明 +麦麦的经营订单 +利润计入麦麦的业绩,代收与垫付在每日对账核对。 +查看助理月度利润 +收退款与费用记录 +[控件] +order-date=2026-11-20 +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/15-owner-print-preview.txt b/新账系统/e2e/baseline/ui/15-owner-print-preview.txt new file mode 100644 index 0000000..7069623 --- /dev/null +++ b/新账系统/e2e/baseline/ui/15-owner-print-preview.txt @@ -0,0 +1,30 @@ +未打印 +打印/保存 PDF +切换预印纸套打模板 +固定241×140mm横版;打印窗口也选241×140mm,关闭页眉页脚。 +已按241×140mm横版排为一页。 +麦麦珠宝 +珠宝销售单 +客户:浏览器客户甲 +日期:2026-11-20 +纸单号:20261120005 +收款方式:微信 +序号 商品名称 商品编号 单位 数量/克重 金价/单价说明 销售工费 金额(元) +1 足金999 克 2.50 950.00元/克 30.00元/克 2450.00 +2 附加:编绳 项 1 附加项目 — 20.00 +合计人民币大写:贰仟肆佰柒拾元整 +优惠/抹零:¥0.00 +合计金额:¥2470 +注意事项 +本店所售商品均经国家法定机构检测合格,品质上乘,请放心选购。特此保证!如有质量争议,以省级以上具有法律效力的质检结果为准; +本店所售商品,如无质量问题,概不退换! +请保存好此票据、标签、证书等缺一视为放弃享受服务的权利。 +珠宝首饰保养须知 +避免戴贵金属及基镶嵌饰品做家务或粗重的工作。 +避免接触水银、铅等金属。 +避免接触化妆品、香水、醋、果汁、漂白剂、涂改液及含铅、汞等元素的化学品。 +人体的汗液会侵蚀贵金属饰品,所以夏天佩戴贵金属饰品及镶嵌品最好每天清水清洗。 +公司承诺:本公司所售珠宝首饰均经过首饰质量监督检验中心鉴定,如所购商品如有质量问题,承诺凭本票无条件退换货。 +备注:— +经办人:麦麦 ________________ +[控件] diff --git a/新账系统/e2e/baseline/ui/16-owner-print-marked.txt b/新账系统/e2e/baseline/ui/16-owner-print-marked.txt new file mode 100644 index 0000000..66e9994 --- /dev/null +++ b/新账系统/e2e/baseline/ui/16-owner-print-marked.txt @@ -0,0 +1,30 @@ +✓ 已打印 +打印/保存 PDF +切换预印纸套打模板 +固定241×140mm横版;打印窗口也选241×140mm,关闭页眉页脚。 +已按241×140mm横版排为一页。 +麦麦珠宝 +珠宝销售单 +客户:浏览器客户甲 +日期:2026-11-20 +纸单号:20261120005 +收款方式:微信 +序号 商品名称 商品编号 单位 数量/克重 金价/单价说明 销售工费 金额(元) +1 足金999 克 2.50 950.00元/克 30.00元/克 2450.00 +2 附加:编绳 项 1 附加项目 — 20.00 +合计人民币大写:贰仟肆佰柒拾元整 +优惠/抹零:¥0.00 +合计金额:¥2470 +注意事项 +本店所售商品均经国家法定机构检测合格,品质上乘,请放心选购。特此保证!如有质量争议,以省级以上具有法律效力的质检结果为准; +本店所售商品,如无质量问题,概不退换! +请保存好此票据、标签、证书等缺一视为放弃享受服务的权利。 +珠宝首饰保养须知 +避免戴贵金属及基镶嵌饰品做家务或粗重的工作。 +避免接触水银、铅等金属。 +避免接触化妆品、香水、醋、果汁、漂白剂、涂改液及含铅、汞等元素的化学品。 +人体的汗液会侵蚀贵金属饰品,所以夏天佩戴贵金属饰品及镶嵌品最好每天清水清洗。 +公司承诺:本公司所售珠宝首饰均经过首饰质量监督检验中心鉴定,如所购商品如有质量问题,承诺凭本票无条件退换货。 +备注:— +经办人:麦麦 ________________ +[控件] diff --git a/新账系统/e2e/baseline/ui/17-owner-orders-after-create.txt b/新账系统/e2e/baseline/ui/17-owner-orders-after-create.txt new file mode 100644 index 0000000..b5c3bc8 --- /dev/null +++ b/新账系统/e2e/baseline/ui/17-owner-orders-after-create.txt @@ -0,0 +1,77 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +指定日期 +2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +2026-11-20 · 汇总 1 单 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — ✓ 已打印 +汇总 1 单 2.500g +克重不含银饰 +¥2,470.00 ¥2,200.00 ¥30.00 ¥2,230.00 ¥240.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-date=2026-11-20 +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/18-owner-orders-month.txt b/新账系统/e2e/baseline/ui/18-owner-orders-month.txt new file mode 100644 index 0000000..7f7bbc4 --- /dev/null +++ b/新账系统/e2e/baseline/ui/18-owner-orders-month.txt @@ -0,0 +1,129 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-01 至 2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +本月 · 汇总 5 单 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +昨日老板客户甲 +20261119001 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.500g ¥1,500.00 +未分项 +未分项 +¥1,275.00 +含未分项 ¥1,275.00 +¥225.00 — +原单货品成本未分项,计入未分项成本 +未打印 +2 +昨日娜娜客户 +20261119002 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 2.000g ¥2,000.00 +未分项 +未分项 +¥1,700.00 +含未分项 ¥1,700.00 +¥300.00 — +原单货品成本未分项,计入未分项成本 +未打印 +3 +昨日老板客户乙 +20261119003 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 3.000g ¥3,100.00 +未分项 +未分项 +¥2,635.00 +含未分项 ¥2,635.00 +¥465.00 — +原单货品成本未分项,计入未分项成本 +未打印 +4 +昨日小昊客户 +20261119004 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.000g ¥1,050.00 +未分项 +未分项 +¥893.00 +含未分项 ¥893.00 +¥157.00 — +原单货品成本未分项,计入未分项成本 +未打印 +5 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — ✓ 已打印 +汇总 5 单 10.000g +克重不含银饰 +¥10,120.00 已知 ¥2,200.00 已知 ¥30.00 ¥8,733.00 +含未分项 ¥6,503.00 +¥1,387.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/19-owner-order-detail.txt b/新账系统/e2e/baseline/ui/19-owner-order-detail.txt new file mode 100644 index 0000000..cce7ec8 --- /dev/null +++ b/新账系统/e2e/baseline/ui/19-owner-order-detail.txt @@ -0,0 +1,190 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-01 至 2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +本月 · 汇总 5 单 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +昨日老板客户甲 +20261119001 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.500g ¥1,500.00 +未分项 +未分项 +¥1,275.00 +含未分项 ¥1,275.00 +¥225.00 — +原单货品成本未分项,计入未分项成本 +未打印 +2 +昨日娜娜客户 +20261119002 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 2.000g ¥2,000.00 +未分项 +未分项 +¥1,700.00 +含未分项 ¥1,700.00 +¥300.00 — +原单货品成本未分项,计入未分项成本 +未打印 +3 +昨日老板客户乙 +20261119003 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 3.000g ¥3,100.00 +未分项 +未分项 +¥2,635.00 +含未分项 ¥2,635.00 +¥465.00 — +原单货品成本未分项,计入未分项成本 +未打印 +4 +昨日小昊客户 +20261119004 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.000g ¥1,050.00 +未分项 +未分项 +¥893.00 +含未分项 ¥893.00 +¥157.00 — +原单货品成本未分项,计入未分项成本 +未打印 +5 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — ✓ 已打印 +汇总 5 单 10.000g +克重不含银饰 +¥10,120.00 已知 ¥2,200.00 已知 ¥30.00 ¥8,733.00 +含未分项 ¥6,503.00 +¥1,387.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +← 上一条 +5 / 5 +下一条 → +按当前筛选后的销售订单顺序查看 +ORDER DETAIL +浏览器客户甲 +内部备注 · 客户不可见 +#浏览器 内部备注 +纸单号 20261120005 · 系统单号 MM20261120- · 收款账户 麦麦微信 +已完成麦麦的订单修改归属业务日期 2026-11-20 · 开单人 麦麦 +录入时间(北京时间):2026-11-20 10:00 +✓ 已打印 +点击客户预览里的“打印”后自动记录。 +修改订单 +客户预览/打印 +记额外费用 +取消订单 +处理售后 +旧版退货入口 +更正记错的流水 +店主复核 +销售怎么算 +足金999 +出货货盘:现货 +2.500g +2.500g ×(金价 950.00元/克 + 工费 30.00元/克) = ¥2,450.00 ++ 编绳 ¥20.00 +本行合计 +¥2,470.00 +销售小计 +¥2,470.00 +整单四舍五入到元:¥2,470.00 → ¥2,470 +成交金额 +¥2,470 +成本怎么算 +货品成本+实际费用 +成本项目 付款人 金额 +料费成本 +商品 1 · 足金999 +2.500g × 880.00元/克 +麦麦 ¥2,200.00 +进货工费 +商品 1 · 足金999 +麦麦 ¥25.00 +编绳 +2026-11-20 +麦麦 ¥5.00 +成本合计 +¥2,200.00 + ¥25.00 + ¥5.00 = ¥2,230.00 +付款人合计 +麦麦 ¥2,230.00 +实际订单利润 +¥240.00 +成交金额 ¥2,470.00 − 成本合计 ¥2,230.00 = 实际订单利润 ¥240.00 +商品来源与原始说明 +麦麦的经营订单 +利润计入麦麦的业绩,代收与垫付在每日对账核对。 +查看助理月度利润 +收退款与费用记录 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/20-owner-order-detail-prev.txt b/新账系统/e2e/baseline/ui/20-owner-order-detail-prev.txt new file mode 100644 index 0000000..7a5d6b8 --- /dev/null +++ b/新账系统/e2e/baseline/ui/20-owner-order-detail-prev.txt @@ -0,0 +1,177 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-01 至 2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +本月 · 汇总 5 单 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +昨日老板客户甲 +20261119001 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.500g ¥1,500.00 +未分项 +未分项 +¥1,275.00 +含未分项 ¥1,275.00 +¥225.00 — +原单货品成本未分项,计入未分项成本 +未打印 +2 +昨日娜娜客户 +20261119002 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 2.000g ¥2,000.00 +未分项 +未分项 +¥1,700.00 +含未分项 ¥1,700.00 +¥300.00 — +原单货品成本未分项,计入未分项成本 +未打印 +3 +昨日老板客户乙 +20261119003 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 3.000g ¥3,100.00 +未分项 +未分项 +¥2,635.00 +含未分项 ¥2,635.00 +¥465.00 — +原单货品成本未分项,计入未分项成本 +未打印 +4 +昨日小昊客户 +20261119004 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.000g ¥1,050.00 +未分项 +未分项 +¥893.00 +含未分项 ¥893.00 +¥157.00 — +原单货品成本未分项,计入未分项成本 +未打印 +5 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — ✓ 已打印 +汇总 5 单 10.000g +克重不含银饰 +¥10,120.00 已知 ¥2,200.00 已知 ¥30.00 ¥8,733.00 +含未分项 ¥6,503.00 +¥1,387.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +← 上一条 +4 / 5 +下一条 → +按当前筛选后的销售订单顺序查看 +ORDER DETAIL +昨日小昊客户 +内部备注 · 客户不可见 +浏览器检查备注 +纸单号 20261119004 · 系统单号 MM20261119- · 收款账户 小昊微信 +已完成小昊的订单修改归属业务日期 2026-11-19 · 开单人 小昊 +录入时间(北京时间):2026-11-19 10:00 +未打印 +点击客户预览里的“打印”后自动记录。 +修改订单 +客户预览/打印 +记额外费用 +申请取消 +处理售后 +旧版退货入口 +更正记错的流水 +店主复核 +销售怎么算 +足金999 +出货货盘:现货 +1.000g +直接填基础金额 ¥1,050.00 +成交金额 +¥1,050.00 +成本怎么算 +货品成本+实际费用 +成本项目 付款人 金额 +货品成本(原单未分项) +商品 1 · 足金999 +小昊 ¥893.00 +成本合计 +¥893.00 = ¥893.00 +付款人合计 +小昊 ¥893.00 +实际订单利润 +¥157.00 +成交金额 ¥1,050.00 − 成本合计 ¥893.00 = 实际订单利润 ¥157.00 +商品来源与原始说明 +小昊的经营订单 +利润计入小昊的业绩,代收与垫付在每日对账核对。 +查看助理月度利润 +收退款与费用记录 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/21-owner-order-detail-next.txt b/新账系统/e2e/baseline/ui/21-owner-order-detail-next.txt new file mode 100644 index 0000000..cce7ec8 --- /dev/null +++ b/新账系统/e2e/baseline/ui/21-owner-order-detail-next.txt @@ -0,0 +1,190 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-01 至 2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +本月 · 汇总 5 单 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +昨日老板客户甲 +20261119001 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.500g ¥1,500.00 +未分项 +未分项 +¥1,275.00 +含未分项 ¥1,275.00 +¥225.00 — +原单货品成本未分项,计入未分项成本 +未打印 +2 +昨日娜娜客户 +20261119002 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 2.000g ¥2,000.00 +未分项 +未分项 +¥1,700.00 +含未分项 ¥1,700.00 +¥300.00 — +原单货品成本未分项,计入未分项成本 +未打印 +3 +昨日老板客户乙 +20261119003 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 3.000g ¥3,100.00 +未分项 +未分项 +¥2,635.00 +含未分项 ¥2,635.00 +¥465.00 — +原单货品成本未分项,计入未分项成本 +未打印 +4 +昨日小昊客户 +20261119004 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.000g ¥1,050.00 +未分项 +未分项 +¥893.00 +含未分项 ¥893.00 +¥157.00 — +原单货品成本未分项,计入未分项成本 +未打印 +5 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — ✓ 已打印 +汇总 5 单 10.000g +克重不含银饰 +¥10,120.00 已知 ¥2,200.00 已知 ¥30.00 ¥8,733.00 +含未分项 ¥6,503.00 +¥1,387.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +← 上一条 +5 / 5 +下一条 → +按当前筛选后的销售订单顺序查看 +ORDER DETAIL +浏览器客户甲 +内部备注 · 客户不可见 +#浏览器 内部备注 +纸单号 20261120005 · 系统单号 MM20261120- · 收款账户 麦麦微信 +已完成麦麦的订单修改归属业务日期 2026-11-20 · 开单人 麦麦 +录入时间(北京时间):2026-11-20 10:00 +✓ 已打印 +点击客户预览里的“打印”后自动记录。 +修改订单 +客户预览/打印 +记额外费用 +取消订单 +处理售后 +旧版退货入口 +更正记错的流水 +店主复核 +销售怎么算 +足金999 +出货货盘:现货 +2.500g +2.500g ×(金价 950.00元/克 + 工费 30.00元/克) = ¥2,450.00 ++ 编绳 ¥20.00 +本行合计 +¥2,470.00 +销售小计 +¥2,470.00 +整单四舍五入到元:¥2,470.00 → ¥2,470 +成交金额 +¥2,470 +成本怎么算 +货品成本+实际费用 +成本项目 付款人 金额 +料费成本 +商品 1 · 足金999 +2.500g × 880.00元/克 +麦麦 ¥2,200.00 +进货工费 +商品 1 · 足金999 +麦麦 ¥25.00 +编绳 +2026-11-20 +麦麦 ¥5.00 +成本合计 +¥2,200.00 + ¥25.00 + ¥5.00 = ¥2,230.00 +付款人合计 +麦麦 ¥2,230.00 +实际订单利润 +¥240.00 +成交金额 ¥2,470.00 − 成本合计 ¥2,230.00 = 实际订单利润 ¥240.00 +商品来源与原始说明 +麦麦的经营订单 +利润计入麦麦的业绩,代收与垫付在每日对账核对。 +查看助理月度利润 +收退款与费用记录 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/22-owner-material-purchase.txt b/新账系统/e2e/baseline/ui/22-owner-material-purchase.txt new file mode 100644 index 0000000..2bc40aa --- /dev/null +++ b/新账系统/e2e/baseline/ui/22-owner-material-purchase.txt @@ -0,0 +1,65 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +DAILY MATERIAL +每日购料 +购料付款当天记支出,余料结转;订单按实际耗用自动计料费。 +刷新 +登记一笔购料 +同一天的多笔购料自动合并加权 +购料日期 +购买克重(g) +购买总价(元) +付款人 +麦麦 +娜娜 +小昊 +备注(选填) +保存购料 +只登记购料与实际付款人,付款当天记支出,未用完的料结转留用。关联订单按实际耗用自动计算料费及与付款人的往来,销售耗用不再重复记现金支出。实物入库仍在「库存」登记。 +合并未用完的材料 +核对并启用跨日结转 +启用后,昨天以前未用完的料合并到今天,只保留一个当前加权料价和剩余克重。今日已有订单按新料价核算,旧日订单不变。 +累计购料 15.000g +购买总价 ¥13,600.00 +已用克重 0.000g +剩余克重 15.000g +每日料价 +2 个日期 · 克重、料价与状态自动计算 +料价日期 购买总克重 购买总价 加权进货料价 已用克重 剩余克重 付款人 状态 明细 +2026-11-20 5.000g ¥4,600.00 ¥920.00/克 0.000g 5.000g 麦麦 未使用 收起 +2026-11-20 购料明细(按录入先后) +单价=本笔购买总价÷购买克重,与当天加权料价分开显示;显示精度不改变记账金额。 +购料日期 购买克重 单价(元/克) 购买总价 付款人 备注 操作 +2026-11-20 5.000g 920.00 ¥4,600.00 麦麦 浏览器购料 +修改 +删除 +订单耗用与锁价原料明细 +日期/订单或锁价单 客户/商品 使用克重 耗用料费 耗用料款归属/状态 +尚未关联订单或锁价。 +购料在实际付款当天记支出,未用完的料结转留用;订单按实际耗用自动计算料费,并核算与付款人的往来,销售耗用不再重复记现金支出。成员往来在每日对账核对,旧料款结算只作历史追溯。 +2026-11-19 10.000g ¥9,000.00 ¥900.00/克 0.000g 10.000g 麦麦 未使用 查看 +同一天按购料录入先后,先扣完一笔料款,再扣下一笔;一单耗用多笔购料时,会按实际付款人分别显示。加权料价仅供查看,订单按总价与总克重精确计算到分;同日补购会自动更新关联订单成本。已退货并回到自有库存的克重会恢复到原购料日期的可用量。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +grams= +total= +payer=麦麦 +note= diff --git a/新账系统/e2e/baseline/ui/23-owner-price-lock-form.txt b/新账系统/e2e/baseline/ui/23-owner-price-lock-form.txt new file mode 100644 index 0000000..62e83bd --- /dev/null +++ b/新账系统/e2e/baseline/ui/23-owner-price-lock-form.txt @@ -0,0 +1,103 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +GOLD PRICE LOCK +黄金锁价 +同一客户可添加多件按克黄金,每件分别锁定售价与原料来源;整单收款、整单交付。保存后暂不出入库、不计利润。 +直接开单 +锁价 +客户与锁价日期 +锁价日期 +客户称呼/代号(必填) +开单人(必填) +订单归属(经营款与业绩) +麦麦 +娜娜 +小昊 +商品 01 +移除商品 +黄金商品名称(可自定义) +款号(选填) +锁定克重(g) +锁定销售金价(元/克) +销售工费方式 +克工费 +件工费 +销售工费 +客户附加项目(选填) ++ 添加附加项目 +填写克重、销售金价与工费后显示本行报价。 +原锁金料实际成本 +原锁材料来源 +手动填写料价 +当日加权料价 +料池占用本行锁定克重;实物出库在交付时登记。 +原锁进货料价(元/克) +原锁料费付款人 +麦麦 +娜娜 +小昊 +这批金料已付金额 +待填写 +已核实原锁金料的实际付款。 +独立记录本行原锁金料的实际付款;工费、快递等在交付时填写实际成本。库存归属也在交付时确认。 ++ 添加商品 +每件商品可自定义名称、克重、售价、工费和原锁成本。 +客户实际已付款 +填写整单已经收到的金额,可与预计报价不同;尚未收款填0。 +实际收款(元) +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +已核实实际收款金额与账户。 +整单优惠(元) +客户可见备注 +填写各件商品的克重、销售金价与工费后显示整单预计报价。 +整单预计成交额 · 四舍五入到元 +待填写 +待交付,不计利润 +保存锁价待交付 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +customer= +salesperson=麦麦 +member=麦麦 +name=足金999 +code= +quantity= +goldPrice= +laborMode=克工费 +laborRate= +material_source=手动填写料价 +material_rate= +material_payer=麦麦 +material_verified=☐ +received_amount= +payment_method=微信 +payment_recipient=麦麦 +payment_verified=☐ +discount=0 +note= diff --git a/新账系统/e2e/baseline/ui/24-owner-price-lock-filled.txt b/新账系统/e2e/baseline/ui/24-owner-price-lock-filled.txt new file mode 100644 index 0000000..15c9c06 --- /dev/null +++ b/新账系统/e2e/baseline/ui/24-owner-price-lock-filled.txt @@ -0,0 +1,103 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +GOLD PRICE LOCK +黄金锁价 +同一客户可添加多件按克黄金,每件分别锁定售价与原料来源;整单收款、整单交付。保存后暂不出入库、不计利润。 +直接开单 +锁价 +客户与锁价日期 +锁价日期 +客户称呼/代号(必填) +开单人(必填) +订单归属(经营款与业绩) +麦麦 +娜娜 +小昊 +商品 01 +移除商品 +黄金商品名称(可自定义) +款号(选填) +锁定克重(g) +锁定销售金价(元/克) +销售工费方式 +克工费 +件工费 +销售工费 +客户附加项目(选填) ++ 添加附加项目 +本行商品及附加项目合计 ¥1,820.00 +原锁金料实际成本 +原锁材料来源 +手动填写料价 +当日加权料价 +料池占用本行锁定克重;实物出库在交付时登记。 +原锁进货料价(元/克) +原锁料费付款人 +麦麦 +娜娜 +小昊 +这批金料已付金额 +¥1,700.00 +已核实原锁金料的实际付款。 +独立记录本行原锁金料的实际付款;工费、快递等在交付时填写实际成本。库存归属也在交付时确认。 ++ 添加商品 +每件商品可自定义名称、克重、售价、工费和原锁成本。 +客户实际已付款 +填写整单已经收到的金额,可与预计报价不同;尚未收款填0。 +实际收款(元) +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +已核实实际收款金额与账户。 +整单优惠(元) +客户可见备注 +1件商品及附加项目合计 ¥1,820.00;四舍五入到元 +整单预计成交额 · 四舍五入到元 +¥1,820 +待交付,不计利润 +保存锁价待交付 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +customer=浏览器锁价客户 +salesperson=麦麦 +member=麦麦 +name=足金999 +code= +quantity=2 +goldPrice=900 +laborMode=克工费 +laborRate=10 +material_source=手动填写料价 +material_rate=850 +material_payer=麦麦 +material_verified=☑ +received_amount=1000 +payment_method=微信 +payment_recipient=麦麦 +payment_verified=☑ +discount=0 +note= diff --git a/新账系统/e2e/baseline/ui/25-owner-price-lock-submitted.txt b/新账系统/e2e/baseline/ui/25-owner-price-lock-submitted.txt new file mode 100644 index 0000000..663a7b2 --- /dev/null +++ b/新账系统/e2e/baseline/ui/25-owner-price-lock-submitted.txt @@ -0,0 +1,65 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +PENDING DELIVERY +待交付 +显示所有日期的锁价待交付记录。锁价时只记实际收付,交付后才计销售、成本和利润。 +新增锁价 +修改与作废申请 +刷新 +待交付 +已作废 +锁价日期/客户 黄金商品 锁定克重 销售金价 已收净额 原料来源/成本 操作 +2026-11-20 +浏览器锁价客户 足金999 2.000g ¥900.00/克 ¥1,000.00 ¥1,700.00 +手动独立购料 · 麦麦 +进货料价 ¥850.00/克 +查看 +交付 +修改 +作废 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +GOLD PRICE LOCK +浏览器锁价客户 · 1件黄金锁价 +锁价日期 +2026-11-20 +原锁克重 +2.000g +锁定销售金价 +¥900.00/克 +客户实际已付净额 +¥1,000.00 +原锁料费 · 手动独立购料 +¥1,700.00 +麦麦支付,进货料价 ¥850.00/克 +状态 +待交付,不计利润 +商品 原锁克重 原锁销售金价 工费与附加项目 原锁料费/付款来源 +足金999 +商品 1 +2.000g ¥900.00/克 克工费 ¥10.00/克 ¥1,700.00 +手动独立购料 · 麦麦 +进货料价 ¥850.00/克 +预计报价 ¥1,820.00;交付时按最终克重、工费和附加项目重新结算,销售金价保持原锁价格。 +办理交付 +修改 +作废 +[控件] diff --git a/新账系统/e2e/baseline/ui/26-owner-price-locks-after-create.txt b/新账系统/e2e/baseline/ui/26-owner-price-locks-after-create.txt new file mode 100644 index 0000000..26427b9 --- /dev/null +++ b/新账系统/e2e/baseline/ui/26-owner-price-locks-after-create.txt @@ -0,0 +1,38 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +PENDING DELIVERY +待交付 +显示所有日期的锁价待交付记录。锁价时只记实际收付,交付后才计销售、成本和利润。 +新增锁价 +修改与作废申请 +刷新 +待交付 +已作废 +锁价日期/客户 黄金商品 锁定克重 销售金价 已收净额 原料来源/成本 操作 +2026-11-20 +浏览器锁价客户 足金999 2.000g ¥900.00/克 ¥1,000.00 ¥1,700.00 +手动独立购料 · 麦麦 +进货料价 ¥850.00/克 +查看 +交付 +修改 +作废 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] diff --git a/新账系统/e2e/baseline/ui/27-owner-recovery-filled.txt b/新账系统/e2e/baseline/ui/27-owner-recovery-filled.txt new file mode 100644 index 0000000..1dcf7da --- /dev/null +++ b/新账系统/e2e/baseline/ui/27-owner-recovery-filled.txt @@ -0,0 +1,121 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +RECOVERY & EXCHANGE +回收/置换 +称重、结算、库存与购料一次保存。 +查看记录 +回收更正复核(0) +直接回收 +置换 +寄存,暂不结算 +客户与单据 +保存后自动编号 +业务日期 +客户称呼/代号 +开单人 +归属成员 +麦麦 +娜娜 +小昊 +旧料称重 +成色按百分数填写,例如99表示99% +旧料名称 +来料重量(g) +熔后重量(g) +成色(%) +折后重量(g,自动) +折后重量 = 5g × 99% = 4.950g。 +旧料入库货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +已结算的旧料入所选货盘;暂存余料单独记入客户寄存料。置换新货按出货货盘扣减。 +回收结算 +保存后自动记购料与回收旧料库存 +回收单价(元/g) +回收结算额(元,可改) +恢复自动金额 +折后 4.950g × 880元/g = 4356.00元。 +本次结算 +保存前请核对实际收付款 +回收金额:4.950g × ¥880.00/g = ¥4,356.00 +店里付款 +¥4,356.00 +付款方式 +微信 +支付宝 +现金 +付款人 +麦麦 +娜娜 +小昊 +备注(选填,可打印) +已核实重量、结算金额和实际收付款 +保存回收单 +结算已核对;保存时按最新账务记录确认。 +客户寄存料 +寄存,暂不结算 +刷新寄存记录 +公共寄存台账,仅按克重和备忘记录;不计入自有库存、购料成本或可用料池。 +寄存余料0.000g +累计寄存0.000g +已用于置换0.000g +日期/寄存号 备忘 寄存 已用 剩余 经办人/记录 +暂无寄存记录 +回收/置换记录 +刷新记录 +开始日期 +结束日期 +业务类型 +全部 +直接回收 +置换 +归属成员 +全部成员 +麦麦 +娜娜 +小昊 +查询 +这个日期范围还没有回收/置换单 +保存后可在这里查看和打印。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +customer=浏览器回收客户 +salesperson=麦麦 +member=麦麦 +old_name=Au旧料 +incoming_weight=5 +melted_weight=5 +purity=99 +folded_weight=4.950 +old_pocket=回收旧料 +buy_rate=880 +buy_total=4356.00 +payout_method=微信 +payer=麦麦 +note= +verified=☑ +from=2026-11-20 +date=2026-11-20 +mode=全部 +member=全部成员 diff --git a/新账系统/e2e/baseline/ui/28-owner-recovery-saved.txt b/新账系统/e2e/baseline/ui/28-owner-recovery-saved.txt new file mode 100644 index 0000000..cc7205e --- /dev/null +++ b/新账系统/e2e/baseline/ui/28-owner-recovery-saved.txt @@ -0,0 +1,80 @@ +麦 +麦麦珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +SAVED +直接回收单已保存 +浏览器回收客户 · HS202611200001 +称重与结算已记账。购料和回收旧料库存已经一并登记。 +查看已保存单据 +客户预览/打印 +继续开另一单 +回收/置换记录 +开始日期 +结束日期 +业务类型 +全部 +直接回收 +置换 +归属成员 +全部成员 +麦麦 +娜娜 +小昊 +查询 +日期/单号 客户/开单人 类型/归属 折后旧重 新货克重 实际收付 操作 +2026-11-20 +HS202611200001 +浏览器回收客户 +麦麦 +直接回收 +麦麦 +4.950g — 店里付款 +¥4,356.00 +未打印 +查看 +打印 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +RECOVERY DETAIL +浏览器回收客户 +直接回收 · HS202611200001 · 2026-11-20 · 开单人 麦麦 · 麦麦 +未打印 +点击客户预览里的“打印”后自动记录。 +修改 +取消这笔记录 +客户预览/打印 +旧料称重 +旧料 来料(g) 熔后(g) 成色 折后(g) +Au旧料 5.000 5.000 99% 4.950 +回收金额:4.950g × ¥880.00/g = ¥4,356.00 +店里付款 +¥4,356.00 +实际付款:麦麦微信 · 麦麦付款 +折后旧料 4.950g 入回收旧料库存。已自动登记关联购料,无需另录。 +内部记账 +已生成关联购料记录。 +本次回收款已按实际付款人登记,购料与库存各记一次。 +麦麦个人回收专用料 +原回收 4.950g · 已用/锁价预留 0.000g · 剩余 4.950g。仅供本人所属订单先用,已有占用须先核对关联订单或锁价。 +[控件] +from=2026-11-20 +date=2026-11-20 +mode=全部 +member=全部成员 diff --git a/新账系统/e2e/baseline/ui/29-owner-settings-saved.txt b/新账系统/e2e/baseline/ui/29-owner-settings-saved.txt new file mode 100644 index 0000000..476eeeb --- /dev/null +++ b/新账系统/e2e/baseline/ui/29-owner-settings-saved.txt @@ -0,0 +1,163 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +成员与账号 +当前:麦麦 +员工姓名、登录名、密码及启停状态在「员工管理」中维护。 +SHOP & PRINT SETTINGS +店铺与打印设置 +店铺身份、成员和默认值统一配置;打印布局按实际纸张校准。 +店铺配置 +已保存,后续开单与登录使用当前配置。 +店名 +单据标题 +联系电话/客户联系信息(选填) +开单默认费用 +证书成本(元) +包装成本(元) +整单快递成本(元) +包装默认付款人 +麦麦 +娜娜 +小昊 +默认费用只用于新增项目。已有订单、模板和草稿里已经填写的费用及付款人按原值保留,开单时仍可按实际修改。 +手续费与利润分成 +信用卡手续费率(‰) +助理利润分成比例(%) +分成生效月份 +新建订单使用当前信用卡费率;修改旧单沿用原费率。分成按生效月份统计,历史月份保留原口径。 +保存店铺配置 +勾选成本管理 +自行添加需要的项目。删除后不再用于新单,历史订单成本保留。 ++ 新增成本 +搜索成本 +成本名称 金额/单价 付款人 计费方式 状态 操作 +京东快递 ¥8 麦麦 每单一次 启用 +编辑 +删除 +圆通快递 ¥6 订单归属人 每单一次 启用 +编辑 +删除 +盒子 ¥3 麦麦 单价 × 数量 启用 +编辑 +删除 +钢绳(店里) ¥7 麦麦 每单一次 启用 +编辑 +删除 +银链(家里) ¥18 麦麦 每单一次 启用 +编辑 +删除 +员工管理 +新增员工、修改登录资料,或停用离职账号。员工只查看本人业务,店主查看全店。 +新增员工 +搜索账号、经办人或手机号 +账号状态 +全部状态 +已启用 +已停用 +搜索 +刷新 +账号名称 经办人名称(开单人) 手机号/原登录名 账号状态 历史记录 操作 +麦麦 +店主 +麦麦 麦麦 +已设置密码 +已启用 +店主账号始终保留,不能停用或删除。 +关联记录 +编辑 +娜娜 +员工 +娜娜 助理 +已设置密码 +已启用 +已有业务记录,不能删除。可停用账号,保留历史订单、付款人与统计。 +关联记录 +编辑 +停用 +删除 +小昊 +员工 +小昊 助理2 +已设置密码 +已启用 +已有业务记录,不能删除。可停用账号,保留历史订单、付款人与统计。 +关联记录 +编辑 +停用 +删除 +客户打印模板 +当前生效设置;修改后请点击保存。 +保存打印设置 +店名、单据标题与联系信息在店铺配置中保存。 +店名 +单据标题 +客户联系信息(选填) +表格最少行数 +左右偏移(mm,正数向右) +上下偏移(mm,正数向下) +内容距顶部(mm) +商品行高(mm) +打开最近一单预览 +填写效果示意;保存后用于实际打印。 +浏览器对照珠宝 +珠宝销售单 +商品名称 克重 成交金额 +足金手链 1.200g 1,200.00 +合计金额 ¥1,200.00 +大写:壹仟贰佰元整 +注意事项 · 珠宝首饰保养须知 +经办人 ______ +固定241×140mm横版,明细多时自动缩小到一页。打印窗口也选241×140mm,关闭页眉页脚。表格最少行数只用于补空行;套打按实物纸样校准偏移。 +补打沿用同一订单号,不会重复出库或收入。客户预览接口不返回成本、垫资人、利润及内部操作日志。 +数据库与备份 +现在运行在本机试用环境,云端正式数据库尚未部署。 +启动时和运行期间每6小时生成完整数据库备份。本机同盘备份不能防电脑损坏,正式部署还需异地备份。 +生成并下载完整备份 +飞书查看副本 +尚未连接 +使用新账专用表单向同步。修改和复核在本系统完成;同步失败不重开订单、不影响本地账务保存。 +已预留应用API同步通道。正式连接时再配置新表,未连接原销售表,未试写真实账务。 +更改当前账号密码 +原密码 +新密码(至少12个字符) +修改并重新登录 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +storeName=浏览器对照珠宝 +receiptSubtitle=珠宝销售单 +contact= +certificate=4 +packaging=3 +shipping=6 +packagingPayer=麦麦 +creditCardRatePermille=6 +profitSharePercent=30 +profitShareEffectiveMonth=2026-12 +shop-cost-search= +search= +status=全部状态 +store=浏览器对照珠宝 +subtitle=珠宝销售单 +contact= +rows=3 +offsetX=0 +offsetY=0 +contentTop=12 +rowHeight=10 diff --git a/新账系统/e2e/baseline/ui/30-assistant-home.txt b/新账系统/e2e/baseline/ui/30-assistant-home.txt new file mode 100644 index 0000000..0d74ea6 --- /dev/null +++ b/新账系统/e2e/baseline/ui/30-assistant-home.txt @@ -0,0 +1,175 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +NEW ORDER +开一张新单 +开单即交付,一次记录全额收款、实际费用、出库和利润。 +直接开单 +锁价 +清空表单 +开单模板选择或保存常用模板 +公式快速开单粘贴公式,自动填入商品 +客户与单据 +填写内容自动暂存,生成单据即完成记账 +业务日期 +纸单编号(自动) +客户称呼/代号(必填) +客户类型(必选) +新客户 +老客户 +开单人(必填) +订单归属(经营款与业绩) +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +纸单号前半段为业务日期,后半段序号持续累计,中间不加横线,换日期不归零;生成时分配。生成单据即按成交合计记录全额收款,同时按所选货盘扣减黄金库存并计入实际利润。请核对商品已交付,选择实际收款方式与收款人;业务日期作为收款和出库日期。 +商品明细 +金价与工费分开填写 +商品 01 +移除 +商品名称 +足金999 +足银999 +纯银925 +其他 +计价方式 +按金价与工费计算 +直接填写金额 +单位 +g +件 +克重/数量 +金价/银价(元/克) +销售工费方式 +克工费 +件工费 +销售工费 +工费附加项目(选填) ++ 添加附加项目 +向客户收费预填:编绳55元、证书10元、包装10元、快递8元,均可修改;按填写金额自动加进本行销售额。 +本行销售额(元,含附加项目) +克重须为非负数字,最多3位小数 +内部成本 · 客户单据不显示 +出库货盘(仅黄金) +外配/不扣黄金 +现货 +金料 +找金 +回收旧料 +君宝汇 +料费成本来源 +手动填写成本 +当日加权料价 +料价按当天加权;垫付款按购料录入顺序扣减。进货工费仍按实际填写。 +进货料费方式 +按克料价 +直接填总料费 +进货料价(元/克) +料费成本合计(元) +料费付款人 +麦麦 +娜娜 +小昊 +填写每克进货料价后,系统自动乘以本行克重。 +进货工费方式 +克工费 +总工费 +进货总工费(元) +进货工费付款人 +麦麦 +娜娜 +小昊 +直接填写本行总工费。 ++ 添加商品 +银饰不扣黄金货盘;外配使用店内金料时,选实际出库货盘。 +实际费用(内部) ++ 添加其他成本 +按实际发生勾选,快递最多选一项;盒子按配置单价和数量计费。取消勾选不记成本,客户收费不受影响。 客户单据不显示。 +费用实际支付日期 +常用成本 · 按实际发生勾选 +快递二选一,也可不选;取消勾选不记成本。 +京东快递 +8元 +麦麦付款 +圆通快递 +6元 +娜娜付款(订单归属人) +盒子 +3元/个 +麦麦付款 +钢绳(店里) +7元 +麦麦付款 +银链(家里) +18元 +麦麦付款 +实际费用合计:¥0.00 +整单优惠/抹零(元) +客户单备注 +内部备注(客户不可见)必填,至少3个字符(含#号),最多500字 +输入 #词语 添加标签,例如 #补货、#客户自提。保存订单后可复用,点击下方标签即可填入。 +暂无已保存标签,填写 #词语 并保存订单后即可复用。 +成交合计 +待填写 +合计后四舍五入到元,请先填写商品金额与优惠。 +生成销售单据 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-template-select=选择后自动填入预设 +order-formula-input= +date=2026-11-20 +paper_number=20261120006(预计) +customer= +customer_type=☐ +customer_type=☐ +salesperson=娜娜 +text=娜娜 +payment_method=微信 +payment_recipient=娜娜 +nameType=足金999 +pricingMode=按金价与工费计算 +unit=g +quantity= +goldPrice= +laborMode=克工费 +laborRate= +sale= +pocket=现货 +cost-materialSource=手动填写成本 +cost-materialMode=按克料价 +cost-materialRate= +cost-material= +cost-materialPayer=娜娜 +cost-laborMode=总工费 +cost-labor= +cost-laborPayer=娜娜 +fees_date=2026-11-20 +cost_jd=☐ +cost_yt=☐ +cost_box=☐ +cost_steel=☐ +cost_silver=☐ +discount=0 +note= +internal_note= diff --git a/新账系统/e2e/baseline/ui/31-assistant-tab-create.txt b/新账系统/e2e/baseline/ui/31-assistant-tab-create.txt new file mode 100644 index 0000000..0d74ea6 --- /dev/null +++ b/新账系统/e2e/baseline/ui/31-assistant-tab-create.txt @@ -0,0 +1,175 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +NEW ORDER +开一张新单 +开单即交付,一次记录全额收款、实际费用、出库和利润。 +直接开单 +锁价 +清空表单 +开单模板选择或保存常用模板 +公式快速开单粘贴公式,自动填入商品 +客户与单据 +填写内容自动暂存,生成单据即完成记账 +业务日期 +纸单编号(自动) +客户称呼/代号(必填) +客户类型(必选) +新客户 +老客户 +开单人(必填) +订单归属(经营款与业绩) +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +纸单号前半段为业务日期,后半段序号持续累计,中间不加横线,换日期不归零;生成时分配。生成单据即按成交合计记录全额收款,同时按所选货盘扣减黄金库存并计入实际利润。请核对商品已交付,选择实际收款方式与收款人;业务日期作为收款和出库日期。 +商品明细 +金价与工费分开填写 +商品 01 +移除 +商品名称 +足金999 +足银999 +纯银925 +其他 +计价方式 +按金价与工费计算 +直接填写金额 +单位 +g +件 +克重/数量 +金价/银价(元/克) +销售工费方式 +克工费 +件工费 +销售工费 +工费附加项目(选填) ++ 添加附加项目 +向客户收费预填:编绳55元、证书10元、包装10元、快递8元,均可修改;按填写金额自动加进本行销售额。 +本行销售额(元,含附加项目) +克重须为非负数字,最多3位小数 +内部成本 · 客户单据不显示 +出库货盘(仅黄金) +外配/不扣黄金 +现货 +金料 +找金 +回收旧料 +君宝汇 +料费成本来源 +手动填写成本 +当日加权料价 +料价按当天加权;垫付款按购料录入顺序扣减。进货工费仍按实际填写。 +进货料费方式 +按克料价 +直接填总料费 +进货料价(元/克) +料费成本合计(元) +料费付款人 +麦麦 +娜娜 +小昊 +填写每克进货料价后,系统自动乘以本行克重。 +进货工费方式 +克工费 +总工费 +进货总工费(元) +进货工费付款人 +麦麦 +娜娜 +小昊 +直接填写本行总工费。 ++ 添加商品 +银饰不扣黄金货盘;外配使用店内金料时,选实际出库货盘。 +实际费用(内部) ++ 添加其他成本 +按实际发生勾选,快递最多选一项;盒子按配置单价和数量计费。取消勾选不记成本,客户收费不受影响。 客户单据不显示。 +费用实际支付日期 +常用成本 · 按实际发生勾选 +快递二选一,也可不选;取消勾选不记成本。 +京东快递 +8元 +麦麦付款 +圆通快递 +6元 +娜娜付款(订单归属人) +盒子 +3元/个 +麦麦付款 +钢绳(店里) +7元 +麦麦付款 +银链(家里) +18元 +麦麦付款 +实际费用合计:¥0.00 +整单优惠/抹零(元) +客户单备注 +内部备注(客户不可见)必填,至少3个字符(含#号),最多500字 +输入 #词语 添加标签,例如 #补货、#客户自提。保存订单后可复用,点击下方标签即可填入。 +暂无已保存标签,填写 #词语 并保存订单后即可复用。 +成交合计 +待填写 +合计后四舍五入到元,请先填写商品金额与优惠。 +生成销售单据 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-template-select=选择后自动填入预设 +order-formula-input= +date=2026-11-20 +paper_number=20261120006(预计) +customer= +customer_type=☐ +customer_type=☐ +salesperson=娜娜 +text=娜娜 +payment_method=微信 +payment_recipient=娜娜 +nameType=足金999 +pricingMode=按金价与工费计算 +unit=g +quantity= +goldPrice= +laborMode=克工费 +laborRate= +sale= +pocket=现货 +cost-materialSource=手动填写成本 +cost-materialMode=按克料价 +cost-materialRate= +cost-material= +cost-materialPayer=娜娜 +cost-laborMode=总工费 +cost-labor= +cost-laborPayer=娜娜 +fees_date=2026-11-20 +cost_jd=☐ +cost_yt=☐ +cost_box=☐ +cost_steel=☐ +cost_silver=☐ +discount=0 +note= +internal_note= diff --git a/新账系统/e2e/baseline/ui/32-assistant-tab-price-locks.txt b/新账系统/e2e/baseline/ui/32-assistant-tab-price-locks.txt new file mode 100644 index 0000000..144eed9 --- /dev/null +++ b/新账系统/e2e/baseline/ui/32-assistant-tab-price-locks.txt @@ -0,0 +1,30 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +PENDING DELIVERY +待交付 +显示所有日期的锁价待交付记录。锁价时只记实际收付,交付后才计销售、成本和利润。 +新增锁价 +修改与作废申请 +刷新 +待交付 +已作废 +目前没有锁价待交付记录 +已交付记录会进入订单列表。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] diff --git a/新账系统/e2e/baseline/ui/33-assistant-tab-material-pools.txt b/新账系统/e2e/baseline/ui/33-assistant-tab-material-pools.txt new file mode 100644 index 0000000..0e7da8c --- /dev/null +++ b/新账系统/e2e/baseline/ui/33-assistant-tab-material-pools.txt @@ -0,0 +1,58 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +DAILY MATERIAL +每日购料 +购料付款当天记支出,余料结转;订单按实际耗用自动计料费。 +刷新 +登记一笔购料 +同一天的多笔购料自动合并加权 +购料日期 +购买克重(g) +购买总价(元) +付款人 +麦麦 +娜娜 +小昊 +备注(选填) +保存购料 +只登记购料与实际付款人,付款当天记支出,未用完的料结转留用。关联订单按实际耗用自动计算料费及与付款人的往来,销售耗用不再重复记现金支出。实物入库仍在「库存」登记。 +2026-11-20 个人回收料 +回收归属与公共购料分别核算 +本人当前没有个人回收料,订单不足部分使用公共料。 +回收专用料仅供归属人的订单先用,不与其他人的回收料混用;回收来源请从原回收/置换单更正,已有耗用或锁价预留须先释放。 +合并未用完的材料 +启用后,昨天以前未用完的料合并到今天,只保留一个当前加权料价和剩余克重。今日已有订单按新料价核算,旧日订单不变。 +由店主账号核对后启用。 +累计购料 15.000g +购买总价 ¥13,600.00 +已用克重 0.000g +剩余克重 15.000g +每日料价 +2 个日期 · 克重、料价与状态自动计算 +料价日期 购买总克重 购买总价 加权进货料价 已用克重 剩余克重 付款人 状态 明细 +2026-11-20 5.000g ¥4,600.00 ¥920.00/克 0.000g 5.000g 麦麦 未使用 查看 +2026-11-19 10.000g ¥9,000.00 ¥900.00/克 0.000g 10.000g 麦麦 未使用 查看 +同一天按购料录入先后,先扣完一笔料款,再扣下一笔;一单耗用多笔购料时,会按实际付款人分别显示。加权料价仅供查看,订单按总价与总克重精确计算到分;同日补购会自动更新关联订单成本。已退货并回到自有库存的克重会恢复到原购料日期的可用量。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +grams= +total= +payer=娜娜 +note= diff --git a/新账系统/e2e/baseline/ui/34-assistant-tab-recoveries.txt b/新账系统/e2e/baseline/ui/34-assistant-tab-recoveries.txt new file mode 100644 index 0000000..51642ac --- /dev/null +++ b/新账系统/e2e/baseline/ui/34-assistant-tab-recoveries.txt @@ -0,0 +1,108 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +RECOVERY & EXCHANGE +回收/置换 +称重、结算、库存与购料一次保存。 +查看记录 +回收更正申请(0) +直接回收 +置换 +寄存,暂不结算 +客户与单据 +保存后自动编号 +业务日期 +客户称呼/代号 +开单人 +归属成员 +旧料称重 +成色按百分数填写,例如99表示99% +旧料名称 +来料重量(g) +熔后重量(g) +成色(%) +折后重量(g,自动) +折后重量 = 熔后重量 × 成色 ÷ 100。 +旧料入库货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +已结算的旧料入所选货盘;暂存余料单独记入客户寄存料。置换新货按出货货盘扣减。 +回收结算 +保存后自动记购料与回收旧料库存 +回收单价(元/g) +回收结算额(元,可改) +恢复自动金额 +按折后重量与回收单价自动计算,实际结算有调整时可修改金额。 +本次结算 +保存前请核对实际收付款 +来料重量请填写大于0的数字,最多保留3位小数。 +付款方式 +微信 +支付宝 +现金 +付款人 +麦麦 +娜娜 +小昊 +备注(选填,可打印) +已核实重量、结算金额和实际收付款 +保存回收单 +客户寄存料 +寄存,暂不结算 +刷新寄存记录 +公共寄存台账,仅按克重和备忘记录;不计入自有库存、购料成本或可用料池。 +寄存余料0.000g +累计寄存0.000g +已用于置换0.000g +日期/寄存号 备忘 寄存 已用 剩余 经办人/记录 +暂无寄存记录 +回收/置换记录 +刷新记录 +开始日期 +结束日期 +业务类型 +全部 +直接回收 +置换 +查询 +这个日期范围还没有回收/置换单 +保存后可在这里查看和打印。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +customer= +salesperson=娜娜 +text=娜娜 +old_name=Au旧料 +incoming_weight= +melted_weight= +purity=100 +folded_weight= +old_pocket=回收旧料 +buy_rate= +buy_total= +payout_method=微信 +payer=娜娜 +note= +verified=☐ +from=2026-11-20 +date=2026-11-20 +mode=全部 diff --git a/新账系统/e2e/baseline/ui/35-assistant-tab-orders.txt b/新账系统/e2e/baseline/ui/35-assistant-tab-orders.txt new file mode 100644 index 0000000..20a4dbc --- /dev/null +++ b/新账系统/e2e/baseline/ui/35-assistant-tab-orders.txt @@ -0,0 +1,57 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +今日 · 汇总 0 单 +这个日期没有符合条件的订单、回收或售后 +可以切换日期,或调整搜索和状态筛选。 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 diff --git a/新账系统/e2e/baseline/ui/36-assistant-tab-stock.txt b/新账系统/e2e/baseline/ui/36-assistant-tab-stock.txt new file mode 100644 index 0000000..aeb6c03 --- /dev/null +++ b/新账系统/e2e/baseline/ui/36-assistant-tab-stock.txt @@ -0,0 +1,124 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +INVENTORY +货盘库存 +登记实物增加、减少或平移,查看当天与历史库存快照。 +我的库存申请(0待批) +查看每日快照 +现货 +当前数量 +90.000 g +昨天快照 11-19 +未保存快照 +金料 +当前数量 +50.000 g +昨天快照 11-19 +未保存快照 +找金 +当前数量 +0.000 g +昨天快照 11-19 +未保存快照 +回收旧料 +当前数量 +4.950 g +昨天快照 11-19 +未保存快照 +君宝汇 +当前数量 +0.000 g +昨天快照 11-19 +未保存快照 +今天尚未保存快照。 +计划:北京时间每日 23:50 自动保存,当前未启动。 +同一天再次保存将更新当天记录。人工复核由店主操作。 +登记库存变动 +销售与退货会随订单自动记账,无需重复登记。启用对数的货盘同时记录克重与对数。 +动作 +增加 +减少 +平移 +货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +数量(g) +业务日期 +备注(选填) +登记增加 +我的库存修改申请 +刷新申请 +员工可直接修改本人当天的手动流水;跨天修改、改到其他日期及删除须麦麦批准,等待审批时库存不变。麦麦直接修改、删除即时生效。平移的两边一起处理,订单自动流水请回到原订单处理。 +待审批(0) +已批准(0) +已驳回(0) +全部 +全部日期没有此状态的库存申请。 +库存流水 +共 8 条,当前显示 1~8 条 +导出Excel +团队共用库存,全部流水可查看。员工可直接修改本人当天的手动记录;跨天修改、改到其他日期及删除仍须店主审批。 +Excel按当前日期区间、货盘、流水类型及已删除记录显示设置导出全部匹配记录,包含其他页。 +开始日期 +结束日期 +全部日期 +筛选货盘 +全部货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +流水类型 +全部流水 +手动增加 +手动减少 +手动平移 +全部手动变动 +隐藏已删除记录 +按流水日期筛选,含起止当天;留空不限。每页100条,可翻页查看更早记录。平移按两边货盘分别记一条。 +第 1 / 1 页 · 每页 100 条 +上一页 +下一页 +日期 货盘 变动 动作 备注/原单 经办人 状态/操作 +2026-11-20 回收旧料 +4.950g 回收旧料入库 HS202611200001 麦麦 随原业务记录保留 +2026-11-20 现货 -2.500g 销售出库 MM20261120- 麦麦 随原业务记录保留 +2026-11-19 现货 -1.000g 销售出库 MM20261119- 小昊 随原业务记录保留 +2026-11-19 现货 -3.000g 销售出库 MM20261119- 麦麦 随原业务记录保留 +2026-11-19 现货 -2.000g 销售出库 MM20261119- 娜娜 随原业务记录保留 +2026-11-19 现货 -1.500g 销售出库 MM20261119- 麦麦 随原业务记录保留 +2026-11-19 金料 +50.000g 开账 浏览器检查起始库存 麦麦 随原业务记录保留 +2026-11-19 现货 +100.000g 开账 浏览器检查起始库存 麦麦 随原业务记录保留 +第 1 / 1 页 · 每页 100 条 +上一页 +下一页 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +kind=增加 +pocket=现货 +grams= +date=2026-11-20 +note= +inventory-movements-from= +inventory-movements-to= +inventory-movements-pocket=全部货盘 +inventory-movements-kind=全部流水 diff --git a/新账系统/e2e/baseline/ui/37-assistant-tab-report.txt b/新账系统/e2e/baseline/ui/37-assistant-tab-report.txt new file mode 100644 index 0000000..758bfb3 --- /dev/null +++ b/新账系统/e2e/baseline/ui/37-assistant-tab-report.txt @@ -0,0 +1,110 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +DAILY CHECK +每日对账 +核对本人或所选成员的所属订单收入、实际支出与收款账户。 +对账日期 +汇总当月 +普通订单按开单日期、售后按记录日期筛选。锁价收付按实际发生日期,销售和完整利润在交付日计入;原锁付款不会重复计入交付日支出。 +2026-11-20:所属订单净收入=收款−退款,已包含他人代收。成本含售后,料池仅计已耗用部分;麦麦垫付和当日往来逐日核对。 +娜娜所属订单净收入 +¥0.00 +实收 ¥0.00 +实退 ¥0.00 +所属订单总成本 +¥0.00 +当日麦麦垫付明细 +当日利润 +所属订单净收入 ¥0.00 +− +订单总成本 ¥0.00 += +¥0.00 +当日往来账 +仅核对所选单日。普通订单按开单日、锁价成单按交付日、售后按记录日归集;锁价代收按实际收付日。此处不含历史余额,也未扣实际转账。 +2026-11-20 +当日无需转款 +¥0.00 +麦麦垫付已用料费 ¥0.00 + 麦麦垫付其他订单成本 ¥0.00 + 本人当日订单净利润 ¥0.00 − 麦麦代收净额 ¥0.00 = ¥0.00 +所选范围暂无收退款记录。 +所选日销售净额 +¥0.00 +销售 0 单 · 售后 0 笔 · 0 单完成 +本期实收 +¥0.00 +普通订单累计收款+本期锁价实收 +本期实退 +¥0.00 +普通订单累计退款+本期锁价实退 +本期净利润 +¥0.00 +销售净额 − 订单耗用成本 − 实际费用(含售后) +按收款账户核对 +2026-11-20普通订单当前收付,加上同期锁价实际收付。 +账户 实收 实退 净额 +所选范围没有收退款活动账户。 +合计 ¥0.00 ¥0.00 ¥0.00 +请按这些订单的收退款记录与微信、支付宝、现金、信用卡核对;系统尚未接入支付平台账单。 +按付款人核对成本 +普通订单按开单日归集;每日购料按实际购买日期归集,订单耗用料费不再计一次支出;锁价料费、工费与费用按实际付款日归集,原锁料费不在交付时重复计入。实际支出可能与本期订单耗用成本不同。转账请以核实后的完整实际支出为准。 +付款人 货品成本 已付费用 支出合计 +娜娜支出成本 ¥0.00 ¥0.00 ¥0.00 +小昊支出成本 ¥0.00 ¥0.00 ¥0.00 +麦麦支出成本 ¥0.00 ¥0.00 ¥0.00 +合计 ¥0.00 ¥0.00 ¥0.00 +娜娜逐项明细 0 项 +小昊逐项明细 0 项 +麦麦逐项明细 0 项 +普通订单按开单日期、售后按记录日期归集;每日购料按购买日期、锁价支出按实际付款日。旧草稿与未入账费用不计合计;退货冲回订单耗用成本,锁价已经支付的金料款仍保留。0元货品分项省略,已核实的0元费用保留。 +订单与售后净额明细 +2026-11-20范围内,普通订单按开单日、锁价成单按交付日、售后按记录日期归集。这里显示订单完整耗用成本,与上方实际付款分开核对;旧草稿不计金额。 +日期/单号或售后项目 类型/状态 销售净额 货品成本 已付费用 成本合计 订单净利润 +所选日期没有订单或售后记录。 +销售 0 单 · 售后 0 笔 ¥0.00 ¥0.00 ¥0.00 ¥0.00 ¥0.00 +客户待收款与库存 +客户待收款 ¥0.00 +现货 90.000g +金料 50.000g +找金 0.000g +回收旧料 4.950g +君宝汇 0.000g +臻金汇 0.000g +金金 0.000g +定制工厂 0.000g +需要查看 1 项 +截至现在所有订单,不受日期筛选 +MM20261119- 有记录待麦麦复核 +尚未保存所选日对账快照(含当日售后)。 +下载对账报告 +每日报销单 +2026-11-20 +待复核(0) +新增报销单 +每项单独指定承担人;已批准报销只读。请勿将已经计入订单、购料或其他付款记录的支出再次提交。 +所选日期暂无报销单。 +每日利润表 +2026-11-20 · 按日期、订单归属人核对。勾选“汇总当月”可查看当月逐日利润。 +日期 归属人 销售净额 成本 利润 +所选范围暂无订单或售后记录。 +所选范围合计 ¥0.00 ¥0.00 ¥0.00 +普通订单按开单日、锁价成单按交付日、售后按记录日归集。成本含实际耗用料费和费用;退货、作废沿原账冲回。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +report-date=2026-11-20 +report-month=☐ diff --git a/新账系统/e2e/baseline/ui/38-assistant-tab-people-entry.txt b/新账系统/e2e/baseline/ui/38-assistant-tab-people-entry.txt new file mode 100644 index 0000000..0223466 --- /dev/null +++ b/新账系统/e2e/baseline/ui/38-assistant-tab-people-entry.txt @@ -0,0 +1,27 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +PEOPLE +登记人数 +填写自己的当天微信总人数,系统自动与上次记录对比。 +记录人数 +我的人数记录 +日期 总人数 新增人数 操作 +还没有人数记录。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] diff --git a/新账系统/e2e/baseline/ui/39-assistant-tab-settings.txt b/新账系统/e2e/baseline/ui/39-assistant-tab-settings.txt new file mode 100644 index 0000000..8a92e41 --- /dev/null +++ b/新账系统/e2e/baseline/ui/39-assistant-tab-settings.txt @@ -0,0 +1,27 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +ACCOUNT +修改密码 +更改本人登录密码,保存后重新登录。 +更改当前账号密码 +原密码 +新密码(至少12个字符) +修改并重新登录 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] diff --git a/新账系统/e2e/baseline/ui/40-assistant-order-detail.txt b/新账系统/e2e/baseline/ui/40-assistant-order-detail.txt new file mode 100644 index 0000000..02424c8 --- /dev/null +++ b/新账系统/e2e/baseline/ui/40-assistant-order-detail.txt @@ -0,0 +1,119 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-19 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +昨日 · 汇总 1 单 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +昨日娜娜客户 +20261119002 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 2.000g ¥2,000.00 +未分项 +未分项 +¥1,700.00 +含未分项 ¥1,700.00 +¥300.00 — +原单货品成本未分项,计入未分项成本 +未打印 +汇总 1 单 2.000g +克重不含银饰 +¥2,000.00 未分项 未分项 ¥1,700.00 +含未分项 ¥1,700.00 +¥300.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +← 上一条 +1 / 1 +下一条 → +按当前筛选后的销售订单顺序查看 +ORDER DETAIL +昨日娜娜客户 +内部备注 · 客户不可见 +浏览器检查备注 +纸单号 20261119002 · 系统单号 MM20261119- · 收款账户 娜娜微信 +已完成娜娜的订单申请修改归属业务日期 2026-11-19 · 开单人 娜娜 +录入时间(北京时间):2026-11-19 10:00 +未打印 +点击客户预览里的“打印”后自动记录。 +申请修改 +客户预览/打印 +申请补记费用 +申请取消 +处理售后 +旧版退货入口 +销售怎么算 +足金999 +出货货盘:现货 +2.000g +直接填基础金额 ¥2,000.00 +成交金额 +¥2,000.00 +成本怎么算 +货品成本+实际费用 +成本项目 付款人 金额 +货品成本(原单未分项) +商品 1 · 足金999 +娜娜 ¥1,700.00 +成本合计 +¥1,700.00 = ¥1,700.00 +付款人合计 +娜娜 ¥1,700.00 +实际订单利润 +¥300.00 +成交金额 ¥2,000.00 − 成本合计 ¥1,700.00 = 实际订单利润 ¥300.00 +商品来源与原始说明 +娜娜的经营订单 +利润计入娜娜的业绩,代收与垫付在每日对账核对。 +收退款与费用记录 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 diff --git a/新账系统/e2e/baseline/ui/41-assistant-change-form.txt b/新账系统/e2e/baseline/ui/41-assistant-change-form.txt new file mode 100644 index 0000000..a278911 --- /dev/null +++ b/新账系统/e2e/baseline/ui/41-assistant-change-form.txt @@ -0,0 +1,147 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +EDIT ORDER +申请修改订单 +20261119002 · 已完成 +取消修改 +店主复核同意后,以本页成交合计作为核实后的客户实收金额,并重新核算成本、费用、库存和利润。本次沿用原单号 20261119002。 +客户与单据 +修改内容单独暂存,可刷新后继续 +业务日期 +原纸单编号 +客户称呼/代号(必填) +客户类型 +新客户 +老客户 +开单人(必填) +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +选择客户实际付款的方式与收款人。修改业务日期会重新核算对应日期的订单与库存,原单号保留。 +商品明细 +金价与工费分开填写 +商品 01 +移除 +商品名称 +足金999 +足银999 +纯银925 +其他 +计价方式 +按金价与工费计算 +直接填写金额 +单位 +g +件 +克重/数量 +销售单价说明(客户可见) +商品基础金额(不含附加项目) +工费附加项目(选填) ++ 添加附加项目 +向客户收费预填:编绳55元、证书10元、包装10元、快递8元,均可修改;按填写金额自动加进本行销售额。 +本行销售额(元,含附加项目) +基础金额 2,000.00 = 2,000.00 元 +内部成本 · 客户单据不显示 +出库货盘(仅黄金) +外配/不扣黄金 +现货 +金料 +找金 +回收旧料 +君宝汇 +货品成本由谁垫付 +麦麦 +娜娜 +小昊 +原单货品成本(旧版未分项) +保留原金额,拆分时请根据凭据填写。拆分这行成本 ++ 添加商品 +填写本单最终实际交付的商品、克重与金额。 +实际费用(内部) ++ 添加其他成本 +已有费用保留原金额、付款人与支付日期;主动勾选后才替换同类,取消已勾选项会冲回对应成本。新增费用用下方默认日期。 客户单据不显示。 +新增费用默认支付日期 +常用成本 · 按实际发生勾选 +快递二选一,也可不选;已有费用保留原支付日期,取消后保存会冲回对应成本。 +京东快递 +8元 +麦麦付款 +圆通快递 +6元 +娜娜付款(订单归属人) +盒子 +3元/个 +麦麦付款 +钢绳(店里) +7元 +麦麦付款 +银链(家里) +18元 +麦麦付款 +实际费用合计:¥0.00 +整单优惠/抹零(元) +客户单备注 +内部备注(客户不可见)必填,至少3个字符(含#号),最多500字 +输入 #词语 添加标签,例如 #补货、#客户自提。保存订单后可复用,点击下方标签即可填入。 +暂无已保存标签,填写 #词语 并保存订单后即可复用。 +更正后成交合计/客户实收 +¥2,000.00 +保留原单金额,精确到分。 +提交的是修改申请。店主复核同意后才生效,填写内容已经保留。 +修改原因 +已核实本页成交金额等于客户实际已付金额,收款账户、商品、克重及成本与凭据一致。 +取消修改 +提交修改申请 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-19 +paper_number=20261119002 +customer=昨日娜娜客户 +customer_type=☐ +customer_type=☐ +salesperson=娜娜 +payment_method=微信 +payment_recipient=娜娜 +nameType=足金999 +pricingMode=直接填写金额 +unit=g +quantity=2.000 +priceNote= +baseSale=2000.00 +sale=2000.00 +pocket=现货 +payer=娜娜 +cost=1700.00 +fees_date=2026-11-19 +cost_jd=☐ +cost_yt=☐ +cost_box=☐ +cost_steel=☐ +cost_silver=☐ +discount=0.00 +note= +internal_note=浏览器检查备注 +edit_reason= +edit_verified=☐ diff --git a/新账系统/e2e/baseline/ui/42-assistant-change-submitted.txt b/新账系统/e2e/baseline/ui/42-assistant-change-submitted.txt new file mode 100644 index 0000000..7313bb0 --- /dev/null +++ b/新账系统/e2e/baseline/ui/42-assistant-change-submitted.txt @@ -0,0 +1,121 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +娜娜 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 · 1 待处理 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-19 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +昨日 · 汇总 1 单 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +昨日娜娜客户 +20261119002 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 2.000g ¥2,000.00 +未分项 +未分项 +¥1,700.00 +含未分项 ¥1,700.00 +¥300.00 — +原单货品成本未分项,计入未分项成本 +未打印 +汇总 1 单 2.000g +克重不含银饰 +¥2,000.00 未分项 未分项 ¥1,700.00 +含未分项 ¥1,700.00 +¥300.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +ORDER DETAIL +昨日娜娜客户 +内部备注 · 客户不可见 +浏览器检查备注 +纸单号 20261119002 · 系统单号 MM20261119- · 收款账户 娜娜微信 +已完成娜娜的订单业务日期 2026-11-19 · 开单人 娜娜 +录入时间(北京时间):2026-11-19 10:00 +未打印 +点击客户预览里的“打印”后自动记录。 +客户预览/打印 +变更申请与复核 +待店主复核 +本次申请:修改订单。申请期间仍按原订单计账,本次申请尚未生效。店主同意后才更新原单;复核完成前暂停本单其他记账和取消申请。 +由店主账号核对原值与申请值后复核。 +变更申请与复核记录(1) +待店主复核 +修改订单 +申请人:助理 · 2026/11/20 10:00:56 +申请原因:客户名写错 +查看本次原值与申请值 +修改归属:本单有待审批修改申请,请先由麦麦同意或驳回后再调整归属 +销售怎么算 +足金999 +出货货盘:现货 +2.000g +直接填基础金额 ¥2,000.00 +成交金额 +¥2,000.00 +成本怎么算 +货品成本+实际费用 +成本项目 付款人 金额 +货品成本(原单未分项) +商品 1 · 足金999 +娜娜 ¥1,700.00 +成本合计 +¥1,700.00 = ¥1,700.00 +付款人合计 +娜娜 ¥1,700.00 +实际订单利润 +¥300.00 +成交金额 ¥2,000.00 − 成本合计 ¥1,700.00 = 实际订单利润 ¥300.00 +商品来源与原始说明 +娜娜的经营订单 +利润计入娜娜的业绩,代收与垫付在每日对账核对。 +收退款与费用记录 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 diff --git a/新账系统/e2e/baseline/ui/43-owner-order-changes.txt b/新账系统/e2e/baseline/ui/43-owner-order-changes.txt new file mode 100644 index 0000000..7b49691 --- /dev/null +++ b/新账系统/e2e/baseline/ui/43-owner-order-changes.txt @@ -0,0 +1,109 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 · 1 待处理 +待变更复核(1) +归属复核(0) +待取消复核(0) +售后修改复核(0) +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +今日 · 汇总 1 单 · 回收 1 笔 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — ✓ 已打印 +2 +浏览器回收客户 +回收 +HS202611200001 +回收付款 ¥4,356.00 +打印 +业务日期 2026-11-20 · 已记录 +黄金回收 4.950g +折后克重 +— — — — — — +回收付款已计入每日购料,本行不计销售、利润和销售克重 +未打印 +汇总 1 单 +回收 1 笔 2.500g +克重不含银饰 +¥2,470.00 ¥2,200.00 ¥30.00 ¥2,230.00 ¥240.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +变更申请与复核 +全部日期,不受订单页的日期、搜索或状态筛选影响。待批期间仍按原订单计账,包含改单、费用、成本、退款与退货;店主同意后才更新原单。 +待复核(1) +已同意(0) +已驳回(0) +全部 +原订单/日期 申请人/申请时间 动作/申请原因 状态/复核意见 查看 +MM20261119- +2026-11-19 +原成交 ¥2,000.00 +申请成交 ¥2,000.00 +助理 +2026/11/20 10:00:56 +修改订单 +客户名写错 待店主复核 查看并复核 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/44-owner-order-change-detail.txt b/新账系统/e2e/baseline/ui/44-owner-order-change-detail.txt new file mode 100644 index 0000000..cf7cddb --- /dev/null +++ b/新账系统/e2e/baseline/ui/44-owner-order-change-detail.txt @@ -0,0 +1,141 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 · 1 待处理 +待变更复核(1) +归属复核(0) +待取消复核(0) +售后修改复核(0) +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +今日 · 汇总 1 单 · 回收 1 笔 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — ✓ 已打印 +2 +浏览器回收客户 +回收 +HS202611200001 +回收付款 ¥4,356.00 +打印 +业务日期 2026-11-20 · 已记录 +黄金回收 4.950g +折后克重 +— — — — — — +回收付款已计入每日购料,本行不计销售、利润和销售克重 +未打印 +汇总 1 单 +回收 1 笔 2.500g +克重不含银饰 +¥2,470.00 ¥2,200.00 ¥30.00 ¥2,230.00 ¥240.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +ORDER DETAIL +昨日娜娜客户 +内部备注 · 客户不可见 +浏览器检查备注 +纸单号 20261119002 · 系统单号 MM20261119- · 收款账户 娜娜微信 +已完成娜娜的订单业务日期 2026-11-19 · 开单人 娜娜 +录入时间(北京时间):2026-11-19 10:00 +未打印 +点击客户预览里的“打印”后自动记录。 +客户预览/打印 +变更申请与复核 +待店主复核 +本次申请:修改订单。申请期间仍按原订单计账,本次申请尚未生效。店主同意后才更新原单;复核完成前暂停本单其他记账和取消申请。 +查看变更并复核 +驳回变更申请 +变更申请与复核记录(1) +待店主复核 +修改订单 +申请人:助理 · 2026/11/20 10:00:56 +申请原因:客户名写错 +查看本次原值与申请值 +修改归属:本单有待审批修改申请,请先由麦麦同意或驳回后再调整归属 +销售怎么算 +足金999 +出货货盘:现货 +2.000g +直接填基础金额 ¥2,000.00 +成交金额 +¥2,000.00 +成本怎么算 +货品成本+实际费用 +成本项目 付款人 金额 +货品成本(原单未分项) +商品 1 · 足金999 +娜娜 ¥1,700.00 +成本合计 +¥1,700.00 = ¥1,700.00 +付款人合计 +娜娜 ¥1,700.00 +实际订单利润 +¥300.00 +成交金额 ¥2,000.00 − 成本合计 ¥1,700.00 = 实际订单利润 ¥300.00 +商品来源与原始说明 +娜娜的经营订单 +利润计入娜娜的业绩,代收与垫付在每日对账核对。 +查看助理月度利润 +收退款与费用记录 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/45-owner-order-change-review.txt b/新账系统/e2e/baseline/ui/45-owner-order-change-review.txt new file mode 100644 index 0000000..4547809 --- /dev/null +++ b/新账系统/e2e/baseline/ui/45-owner-order-change-review.txt @@ -0,0 +1,211 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 · 1 待处理 +待变更复核(1) +归属复核(0) +待取消复核(0) +售后修改复核(0) +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +今日 · 汇总 1 单 · 回收 1 笔 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — ✓ 已打印 +2 +浏览器回收客户 +回收 +HS202611200001 +回收付款 ¥4,356.00 +打印 +业务日期 2026-11-20 · 已记录 +黄金回收 4.950g +折后克重 +— — — — — — +回收付款已计入每日购料,本行不计销售、利润和销售克重 +未打印 +汇总 1 单 +回收 1 笔 2.500g +克重不含银饰 +¥2,470.00 ¥2,200.00 ¥30.00 ¥2,230.00 ¥240.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +ORDER DETAIL +昨日娜娜客户 +内部备注 · 客户不可见 +浏览器检查备注 +纸单号 20261119002 · 系统单号 MM20261119- · 收款账户 娜娜微信 +已完成娜娜的订单业务日期 2026-11-19 · 开单人 娜娜 +录入时间(北京时间):2026-11-19 10:00 +未打印 +点击客户预览里的“打印”后自动记录。 +客户预览/打印 +变更申请与复核 +待店主复核 +本次申请:修改订单。申请期间仍按原订单计账,本次申请尚未生效。店主同意后才更新原单;复核完成前暂停本单其他记账和取消申请。 +查看变更并复核 +驳回变更申请 +变更申请与复核记录(1) +待店主复核 +修改订单 +申请人:助理 · 2026/11/20 10:00:56 +申请原因:客户名写错 +查看本次原值与申请值 +修改归属:本单有待审批修改申请,请先由麦麦同意或驳回后再调整归属 +复核并同意变更 +本次申请:修改订单 +申请人:助理 · 2026/11/20 10:00:56 +申请原因:客户名写错 +原值为申请时快照,申请值由服务器按本次变更试算。批准前请核对客户实付、商品、成本、费用及付款人。 +核对项目 原值(申请时) 申请值(同意后) +业务日期 2026-11-19 2026-11-19 +客户称呼/代号 +已修改 +昨日娜娜客户 昨日娜娜客户(改) +开单人 娜娜 娜娜 +收款方式与收款人 娜娜微信 娜娜微信 +客户单备注 未填写 未填写 +内部备注(客户不可见) 浏览器检查备注 浏览器检查备注 +成交取整方式 保留到分 保留到分 +新增费用默认支付日期 2026-11-19 2026-11-19 +交付日期 2026-11-19 2026-11-19 +订单状态 已完成 已完成 +退货日期 未填写 未填写 +整单优惠 ¥0.00 ¥0.00 +成交金额 ¥2,000.00 ¥2,000.00 +收款净额 ¥2,000.00 ¥2,000.00 +货品成本 ¥1,700.00 ¥1,700.00 +实际费用合计 ¥0.00 ¥0.00 +利润 ¥300.00 ¥300.00 +双方待结净额 ¥0.00 ¥0.00 +商品 1 +商品与销售计价说明 足金999 足金999 +商品编号 未填写 未填写 +克重/数量 2.000g 2.000g +销售金价、工费与件数 手填基础金额 ¥2,000.00 手填基础金额 ¥2,000.00 +成交金额(含附加收费) ¥2,000.00 ¥2,000.00 +客户附加收费 无附加收费 无附加收费 +货盘 现货 现货 +出库数量(对) 不记录对数 不记录对数 +货品成本合计 ¥1,700.00 ¥1,700.00 +进货料价与料费 料费总额 +待补齐 料费总额 +待补齐 +进货工费 进货总工费 +待补齐 进货总工费 +待补齐 +其他货品成本 原货品成本未分项 原货品成本未分项 +成本付款人 料费:娜娜 +进货工费:娜娜 +配件及其他:娜娜 料费:娜娜 +进货工费:娜娜 +配件及其他:娜娜 +逐笔收退款与实际费用 +有效客户收退款/账户 2026-11-19 · 客户收款 +¥2,000.00 · 娜娜微信 2026-11-19 · 客户收款 +¥2,000.00 · 娜娜微信 +已记实际费用/日期/付款人 无已记费用 无已记费用 +库存原值与批准后变化 +以下为本单各日期、货盘的库存流水;正数为增加,负数为减少。按件商品或退回供应商不计黄金货盘。 +原库存记录 +日期 货盘 库存业务 已记克重 +2026-11-19 现货 sale -2.000g +同意后的库存记录 +日期 货盘 库存业务 已记克重 +2026-11-19 现货 sale -2.000g +本次库存净变化 +本次没有黄金货盘净变动。 +双方已发生的实际交款保留;试算不会发起真实收款、退款或转账。批准时仍会校验订单和关联资料版本。 +复核备注(选填) +已核对本次申请动作、金额、日期、账户或付款人、退货去向及库存,确认原值与申请值,以及以上关联订单的本次修改。 +同意变更并更新原单 +收起 +销售怎么算 +足金999 +出货货盘:现货 +2.000g +直接填基础金额 ¥2,000.00 +成交金额 +¥2,000.00 +成本怎么算 +货品成本+实际费用 +成本项目 付款人 金额 +货品成本(原单未分项) +商品 1 · 足金999 +娜娜 ¥1,700.00 +成本合计 +¥1,700.00 = ¥1,700.00 +付款人合计 +娜娜 ¥1,700.00 +实际订单利润 +¥300.00 +成交金额 ¥2,000.00 − 成本合计 ¥1,700.00 = 实际订单利润 ¥300.00 +商品来源与原始说明 +娜娜的经营订单 +利润计入娜娜的业绩,代收与垫付在每日对账核对。 +查看助理月度利润 +收退款与费用记录 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 +note= +verified=☐ diff --git a/新账系统/e2e/baseline/ui/46-owner-order-change-approved.txt b/新账系统/e2e/baseline/ui/46-owner-order-change-approved.txt new file mode 100644 index 0000000..5bf67b7 --- /dev/null +++ b/新账系统/e2e/baseline/ui/46-owner-order-change-approved.txt @@ -0,0 +1,134 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +今日 · 汇总 1 单 · 回收 1 笔 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +浏览器客户甲 +20261120005 +业务日期 2026-11-20 · 已完成 +录入时间(北京时间):2026-11-20 10:00 +货盘现货 2.500g ¥2,470.00 ¥2,200.00 ¥30.00 +进货工费 ¥25.00 +编绳 ¥5.00 +¥2,230.00 ¥240.00 — ✓ 已打印 +2 +浏览器回收客户 +回收 +HS202611200001 +回收付款 ¥4,356.00 +打印 +业务日期 2026-11-20 · 已记录 +黄金回收 4.950g +折后克重 +— — — — — — +回收付款已计入每日购料,本行不计销售、利润和销售克重 +未打印 +汇总 1 单 +回收 1 笔 2.500g +克重不含银饰 +¥2,470.00 ¥2,200.00 ¥30.00 ¥2,230.00 ¥240.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[对话框] +× +ORDER DETAIL +昨日娜娜客户(改) +内部备注 · 客户不可见 +浏览器检查备注 +纸单号 20261119002 · 系统单号 MM20261119- · 收款账户 娜娜微信 +已完成娜娜的订单修改归属业务日期 2026-11-19 · 开单人 娜娜 +录入时间(北京时间):2026-11-19 10:00 +未打印 +点击客户预览里的“打印”后自动记录。 +修改订单 +客户预览/打印 +记额外费用 +申请取消 +处理售后 +旧版退货入口 +更正记错的流水 +店主复核 +变更申请与复核 +变更申请与复核记录(1) +销售怎么算 +足金999 +出货货盘:现货 +2.000g +直接填基础金额 ¥2,000.00 +成交金额 +¥2,000.00 +成本怎么算 +货品成本+实际费用 +成本项目 付款人 金额 +货品成本(原单未分项) +商品 1 · 足金999 +娜娜 ¥1,700.00 +成本合计 +¥1,700.00 = ¥1,700.00 +付款人合计 +娜娜 ¥1,700.00 +实际订单利润 +¥300.00 +成交金额 ¥2,000.00 − 成本合计 ¥1,700.00 = 实际订单利润 ¥300.00 +商品来源与原始说明 +娜娜的经营订单 +利润计入娜娜的业绩,代收与垫付在每日对账核对。 +查看助理月度利润 +收退款与费用记录 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/47-owner-orders-after-approve.txt b/新账系统/e2e/baseline/ui/47-owner-orders-after-approve.txt new file mode 100644 index 0000000..53c3787 --- /dev/null +++ b/新账系统/e2e/baseline/ui/47-owner-orders-after-approve.txt @@ -0,0 +1,120 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +麦麦 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +08 团队账目 +09 私域运营概况 +10 店铺与打印设置 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-19 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +订单归属 +全部成员 +麦麦 +娜娜 +小昊 +昨日 · 汇总 4 单 +序号 客户/销售、回收或售后 类型 克重/件数 售价 料成本 工费及附加成本 成本合计 利润 备注 打印状态 +1 +昨日老板客户甲 +20261119001 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.500g ¥1,500.00 +未分项 +未分项 +¥1,275.00 +含未分项 ¥1,275.00 +¥225.00 — +原单货品成本未分项,计入未分项成本 +未打印 +2 +昨日娜娜客户(改) +20261119002 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 2.000g ¥2,000.00 +未分项 +未分项 +¥1,700.00 +含未分项 ¥1,700.00 +¥300.00 — +原单货品成本未分项,计入未分项成本 +未打印 +3 +昨日老板客户乙 +20261119003 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 3.000g ¥3,100.00 +未分项 +未分项 +¥2,635.00 +含未分项 ¥2,635.00 +¥465.00 — +原单货品成本未分项,计入未分项成本 +未打印 +4 +昨日小昊客户 +20261119004 +业务日期 2026-11-19 · 已完成 +录入时间(北京时间):2026-11-19 10:00 +货盘现货 1.000g ¥1,050.00 +未分项 +未分项 +¥893.00 +含未分项 ¥893.00 +¥157.00 — +原单货品成本未分项,计入未分项成本 +未打印 +汇总 4 单 7.500g +克重不含银饰 +¥7,650.00 未分项 未分项 ¥6,503.00 +含未分项 ¥6,503.00 +¥1,147.00 账本金额 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 +order-member-filter=全部成员 diff --git a/新账系统/e2e/baseline/ui/48-assistant2-home.txt b/新账系统/e2e/baseline/ui/48-assistant2-home.txt new file mode 100644 index 0000000..83fc772 --- /dev/null +++ b/新账系统/e2e/baseline/ui/48-assistant2-home.txt @@ -0,0 +1,175 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +NEW ORDER +开一张新单 +开单即交付,一次记录全额收款、实际费用、出库和利润。 +直接开单 +锁价 +清空表单 +开单模板选择或保存常用模板 +公式快速开单粘贴公式,自动填入商品 +客户与单据 +填写内容自动暂存,生成单据即完成记账 +业务日期 +纸单编号(自动) +客户称呼/代号(必填) +客户类型(必选) +新客户 +老客户 +开单人(必填) +订单归属(经营款与业绩) +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +纸单号前半段为业务日期,后半段序号持续累计,中间不加横线,换日期不归零;生成时分配。生成单据即按成交合计记录全额收款,同时按所选货盘扣减黄金库存并计入实际利润。请核对商品已交付,选择实际收款方式与收款人;业务日期作为收款和出库日期。 +商品明细 +金价与工费分开填写 +商品 01 +移除 +商品名称 +足金999 +足银999 +纯银925 +其他 +计价方式 +按金价与工费计算 +直接填写金额 +单位 +g +件 +克重/数量 +金价/银价(元/克) +销售工费方式 +克工费 +件工费 +销售工费 +工费附加项目(选填) ++ 添加附加项目 +向客户收费预填:编绳55元、证书10元、包装10元、快递8元,均可修改;按填写金额自动加进本行销售额。 +本行销售额(元,含附加项目) +克重须为非负数字,最多3位小数 +内部成本 · 客户单据不显示 +出库货盘(仅黄金) +外配/不扣黄金 +现货 +金料 +找金 +回收旧料 +君宝汇 +料费成本来源 +手动填写成本 +当日加权料价 +料价按当天加权;垫付款按购料录入顺序扣减。进货工费仍按实际填写。 +进货料费方式 +按克料价 +直接填总料费 +进货料价(元/克) +料费成本合计(元) +料费付款人 +麦麦 +娜娜 +小昊 +填写每克进货料价后,系统自动乘以本行克重。 +进货工费方式 +克工费 +总工费 +进货总工费(元) +进货工费付款人 +麦麦 +娜娜 +小昊 +直接填写本行总工费。 ++ 添加商品 +银饰不扣黄金货盘;外配使用店内金料时,选实际出库货盘。 +实际费用(内部) ++ 添加其他成本 +按实际发生勾选,快递最多选一项;盒子按配置单价和数量计费。取消勾选不记成本,客户收费不受影响。 客户单据不显示。 +费用实际支付日期 +常用成本 · 按实际发生勾选 +快递二选一,也可不选;取消勾选不记成本。 +京东快递 +8元 +麦麦付款 +圆通快递 +6元 +小昊付款(订单归属人) +盒子 +3元/个 +麦麦付款 +钢绳(店里) +7元 +麦麦付款 +银链(家里) +18元 +麦麦付款 +实际费用合计:¥0.00 +整单优惠/抹零(元) +客户单备注 +内部备注(客户不可见)必填,至少3个字符(含#号),最多500字 +输入 #词语 添加标签,例如 #补货、#客户自提。保存订单后可复用,点击下方标签即可填入。 +暂无已保存标签,填写 #词语 并保存订单后即可复用。 +成交合计 +待填写 +合计后四舍五入到元,请先填写商品金额与优惠。 +生成销售单据 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-template-select=选择后自动填入预设 +order-formula-input= +date=2026-11-20 +paper_number=20261120006(预计) +customer= +customer_type=☐ +customer_type=☐ +salesperson=小昊 +text=小昊 +payment_method=微信 +payment_recipient=小昊 +nameType=足金999 +pricingMode=按金价与工费计算 +unit=g +quantity= +goldPrice= +laborMode=克工费 +laborRate= +sale= +pocket=现货 +cost-materialSource=手动填写成本 +cost-materialMode=按克料价 +cost-materialRate= +cost-material= +cost-materialPayer=小昊 +cost-laborMode=总工费 +cost-labor= +cost-laborPayer=小昊 +fees_date=2026-11-20 +cost_jd=☐ +cost_yt=☐ +cost_box=☐ +cost_steel=☐ +cost_silver=☐ +discount=0 +note= +internal_note= diff --git a/新账系统/e2e/baseline/ui/49-assistant2-tab-create.txt b/新账系统/e2e/baseline/ui/49-assistant2-tab-create.txt new file mode 100644 index 0000000..83fc772 --- /dev/null +++ b/新账系统/e2e/baseline/ui/49-assistant2-tab-create.txt @@ -0,0 +1,175 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +NEW ORDER +开一张新单 +开单即交付,一次记录全额收款、实际费用、出库和利润。 +直接开单 +锁价 +清空表单 +开单模板选择或保存常用模板 +公式快速开单粘贴公式,自动填入商品 +客户与单据 +填写内容自动暂存,生成单据即完成记账 +业务日期 +纸单编号(自动) +客户称呼/代号(必填) +客户类型(必选) +新客户 +老客户 +开单人(必填) +订单归属(经营款与业绩) +收款方式 +微信 +支付宝 +现金 +信用卡 +收款人 +麦麦 +娜娜 +小昊 +纸单号前半段为业务日期,后半段序号持续累计,中间不加横线,换日期不归零;生成时分配。生成单据即按成交合计记录全额收款,同时按所选货盘扣减黄金库存并计入实际利润。请核对商品已交付,选择实际收款方式与收款人;业务日期作为收款和出库日期。 +商品明细 +金价与工费分开填写 +商品 01 +移除 +商品名称 +足金999 +足银999 +纯银925 +其他 +计价方式 +按金价与工费计算 +直接填写金额 +单位 +g +件 +克重/数量 +金价/银价(元/克) +销售工费方式 +克工费 +件工费 +销售工费 +工费附加项目(选填) ++ 添加附加项目 +向客户收费预填:编绳55元、证书10元、包装10元、快递8元,均可修改;按填写金额自动加进本行销售额。 +本行销售额(元,含附加项目) +克重须为非负数字,最多3位小数 +内部成本 · 客户单据不显示 +出库货盘(仅黄金) +外配/不扣黄金 +现货 +金料 +找金 +回收旧料 +君宝汇 +料费成本来源 +手动填写成本 +当日加权料价 +料价按当天加权;垫付款按购料录入顺序扣减。进货工费仍按实际填写。 +进货料费方式 +按克料价 +直接填总料费 +进货料价(元/克) +料费成本合计(元) +料费付款人 +麦麦 +娜娜 +小昊 +填写每克进货料价后,系统自动乘以本行克重。 +进货工费方式 +克工费 +总工费 +进货总工费(元) +进货工费付款人 +麦麦 +娜娜 +小昊 +直接填写本行总工费。 ++ 添加商品 +银饰不扣黄金货盘;外配使用店内金料时,选实际出库货盘。 +实际费用(内部) ++ 添加其他成本 +按实际发生勾选,快递最多选一项;盒子按配置单价和数量计费。取消勾选不记成本,客户收费不受影响。 客户单据不显示。 +费用实际支付日期 +常用成本 · 按实际发生勾选 +快递二选一,也可不选;取消勾选不记成本。 +京东快递 +8元 +麦麦付款 +圆通快递 +6元 +小昊付款(订单归属人) +盒子 +3元/个 +麦麦付款 +钢绳(店里) +7元 +麦麦付款 +银链(家里) +18元 +麦麦付款 +实际费用合计:¥0.00 +整单优惠/抹零(元) +客户单备注 +内部备注(客户不可见)必填,至少3个字符(含#号),最多500字 +输入 #词语 添加标签,例如 #补货、#客户自提。保存订单后可复用,点击下方标签即可填入。 +暂无已保存标签,填写 #词语 并保存订单后即可复用。 +成交合计 +待填写 +合计后四舍五入到元,请先填写商品金额与优惠。 +生成销售单据 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-template-select=选择后自动填入预设 +order-formula-input= +date=2026-11-20 +paper_number=20261120006(预计) +customer= +customer_type=☐ +customer_type=☐ +salesperson=小昊 +text=小昊 +payment_method=微信 +payment_recipient=小昊 +nameType=足金999 +pricingMode=按金价与工费计算 +unit=g +quantity= +goldPrice= +laborMode=克工费 +laborRate= +sale= +pocket=现货 +cost-materialSource=手动填写成本 +cost-materialMode=按克料价 +cost-materialRate= +cost-material= +cost-materialPayer=小昊 +cost-laborMode=总工费 +cost-labor= +cost-laborPayer=小昊 +fees_date=2026-11-20 +cost_jd=☐ +cost_yt=☐ +cost_box=☐ +cost_steel=☐ +cost_silver=☐ +discount=0 +note= +internal_note= diff --git a/新账系统/e2e/baseline/ui/50-assistant2-tab-price-locks.txt b/新账系统/e2e/baseline/ui/50-assistant2-tab-price-locks.txt new file mode 100644 index 0000000..c47c4c7 --- /dev/null +++ b/新账系统/e2e/baseline/ui/50-assistant2-tab-price-locks.txt @@ -0,0 +1,30 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +PENDING DELIVERY +待交付 +显示所有日期的锁价待交付记录。锁价时只记实际收付,交付后才计销售、成本和利润。 +新增锁价 +修改与作废申请 +刷新 +待交付 +已作废 +目前没有锁价待交付记录 +已交付记录会进入订单列表。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] diff --git a/新账系统/e2e/baseline/ui/51-assistant2-tab-material-pools.txt b/新账系统/e2e/baseline/ui/51-assistant2-tab-material-pools.txt new file mode 100644 index 0000000..bb3584a --- /dev/null +++ b/新账系统/e2e/baseline/ui/51-assistant2-tab-material-pools.txt @@ -0,0 +1,58 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +DAILY MATERIAL +每日购料 +购料付款当天记支出,余料结转;订单按实际耗用自动计料费。 +刷新 +登记一笔购料 +同一天的多笔购料自动合并加权 +购料日期 +购买克重(g) +购买总价(元) +付款人 +麦麦 +娜娜 +小昊 +备注(选填) +保存购料 +只登记购料与实际付款人,付款当天记支出,未用完的料结转留用。关联订单按实际耗用自动计算料费及与付款人的往来,销售耗用不再重复记现金支出。实物入库仍在「库存」登记。 +2026-11-20 个人回收料 +回收归属与公共购料分别核算 +本人当前没有个人回收料,订单不足部分使用公共料。 +回收专用料仅供归属人的订单先用,不与其他人的回收料混用;回收来源请从原回收/置换单更正,已有耗用或锁价预留须先释放。 +合并未用完的材料 +启用后,昨天以前未用完的料合并到今天,只保留一个当前加权料价和剩余克重。今日已有订单按新料价核算,旧日订单不变。 +由店主账号核对后启用。 +累计购料 15.000g +购买总价 ¥13,600.00 +已用克重 0.000g +剩余克重 15.000g +每日料价 +2 个日期 · 克重、料价与状态自动计算 +料价日期 购买总克重 购买总价 加权进货料价 已用克重 剩余克重 付款人 状态 明细 +2026-11-20 5.000g ¥4,600.00 ¥920.00/克 0.000g 5.000g 麦麦 未使用 查看 +2026-11-19 10.000g ¥9,000.00 ¥900.00/克 0.000g 10.000g 麦麦 未使用 查看 +同一天按购料录入先后,先扣完一笔料款,再扣下一笔;一单耗用多笔购料时,会按实际付款人分别显示。加权料价仅供查看,订单按总价与总克重精确计算到分;同日补购会自动更新关联订单成本。已退货并回到自有库存的克重会恢复到原购料日期的可用量。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +grams= +total= +payer=小昊 +note= diff --git a/新账系统/e2e/baseline/ui/52-assistant2-tab-recoveries.txt b/新账系统/e2e/baseline/ui/52-assistant2-tab-recoveries.txt new file mode 100644 index 0000000..402c669 --- /dev/null +++ b/新账系统/e2e/baseline/ui/52-assistant2-tab-recoveries.txt @@ -0,0 +1,108 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +RECOVERY & EXCHANGE +回收/置换 +称重、结算、库存与购料一次保存。 +查看记录 +回收更正申请(0) +直接回收 +置换 +寄存,暂不结算 +客户与单据 +保存后自动编号 +业务日期 +客户称呼/代号 +开单人 +归属成员 +旧料称重 +成色按百分数填写,例如99表示99% +旧料名称 +来料重量(g) +熔后重量(g) +成色(%) +折后重量(g,自动) +折后重量 = 熔后重量 × 成色 ÷ 100。 +旧料入库货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +已结算的旧料入所选货盘;暂存余料单独记入客户寄存料。置换新货按出货货盘扣减。 +回收结算 +保存后自动记购料与回收旧料库存 +回收单价(元/g) +回收结算额(元,可改) +恢复自动金额 +按折后重量与回收单价自动计算,实际结算有调整时可修改金额。 +本次结算 +保存前请核对实际收付款 +来料重量请填写大于0的数字,最多保留3位小数。 +付款方式 +微信 +支付宝 +现金 +付款人 +麦麦 +娜娜 +小昊 +备注(选填,可打印) +已核实重量、结算金额和实际收付款 +保存回收单 +客户寄存料 +寄存,暂不结算 +刷新寄存记录 +公共寄存台账,仅按克重和备忘记录;不计入自有库存、购料成本或可用料池。 +寄存余料0.000g +累计寄存0.000g +已用于置换0.000g +日期/寄存号 备忘 寄存 已用 剩余 经办人/记录 +暂无寄存记录 +回收/置换记录 +刷新记录 +开始日期 +结束日期 +业务类型 +全部 +直接回收 +置换 +查询 +这个日期范围还没有回收/置换单 +保存后可在这里查看和打印。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +date=2026-11-20 +customer= +salesperson=小昊 +text=小昊 +old_name=Au旧料 +incoming_weight= +melted_weight= +purity=100 +folded_weight= +old_pocket=回收旧料 +buy_rate= +buy_total= +payout_method=微信 +payer=小昊 +note= +verified=☐ +from=2026-11-20 +date=2026-11-20 +mode=全部 diff --git a/新账系统/e2e/baseline/ui/53-assistant2-tab-orders.txt b/新账系统/e2e/baseline/ui/53-assistant2-tab-orders.txt new file mode 100644 index 0000000..9fc247f --- /dev/null +++ b/新账系统/e2e/baseline/ui/53-assistant2-tab-orders.txt @@ -0,0 +1,57 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +ORDER BOOK +订单 +按日期查看销售订单、回收与售后,点击客户查看明细。 +申请与复核 +新增售后费用 +刷新 +今天 +昨天 +本月 +某天 +自定义区间 +2026-11-20 +查看收款、成本与利润汇总 +全部状态 +已复核 +未复核 +售后 +回收 +锁价 +出货货盘 +全部货盘 +配货 +现货 +金料 +找金 +回收旧料 +君宝汇 +臻金汇(已停用 · 历史) +金金(已停用 · 历史) +定制工厂(已停用 · 历史) +今日 · 汇总 0 单 +这个日期没有符合条件的订单、回收或售后 +可以切换日期,或调整搜索和状态筛选。 +销售按原记账日保留,订单售后调整和独立售后费用按售后日期计入利润。已取消订单不计汇总,原收退款、费用和作废冲回明细保留在每日对账。销售克重合计不含银饰和直接回收,单行仍显示实际克重;件数照常合计。旧草稿报价不计入合计。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +order-search= +order-filter=全部状态 +order-pocket-filter=全部货盘 diff --git a/新账系统/e2e/baseline/ui/54-assistant2-tab-stock.txt b/新账系统/e2e/baseline/ui/54-assistant2-tab-stock.txt new file mode 100644 index 0000000..9744539 --- /dev/null +++ b/新账系统/e2e/baseline/ui/54-assistant2-tab-stock.txt @@ -0,0 +1,124 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +INVENTORY +货盘库存 +登记实物增加、减少或平移,查看当天与历史库存快照。 +我的库存申请(0待批) +查看每日快照 +现货 +当前数量 +90.000 g +昨天快照 11-19 +未保存快照 +金料 +当前数量 +50.000 g +昨天快照 11-19 +未保存快照 +找金 +当前数量 +0.000 g +昨天快照 11-19 +未保存快照 +回收旧料 +当前数量 +4.950 g +昨天快照 11-19 +未保存快照 +君宝汇 +当前数量 +0.000 g +昨天快照 11-19 +未保存快照 +今天尚未保存快照。 +计划:北京时间每日 23:50 自动保存,当前未启动。 +同一天再次保存将更新当天记录。人工复核由店主操作。 +登记库存变动 +销售与退货会随订单自动记账,无需重复登记。启用对数的货盘同时记录克重与对数。 +动作 +增加 +减少 +平移 +货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +数量(g) +业务日期 +备注(选填) +登记增加 +我的库存修改申请 +刷新申请 +员工可直接修改本人当天的手动流水;跨天修改、改到其他日期及删除须麦麦批准,等待审批时库存不变。麦麦直接修改、删除即时生效。平移的两边一起处理,订单自动流水请回到原订单处理。 +待审批(0) +已批准(0) +已驳回(0) +全部 +全部日期没有此状态的库存申请。 +库存流水 +共 8 条,当前显示 1~8 条 +导出Excel +团队共用库存,全部流水可查看。员工可直接修改本人当天的手动记录;跨天修改、改到其他日期及删除仍须店主审批。 +Excel按当前日期区间、货盘、流水类型及已删除记录显示设置导出全部匹配记录,包含其他页。 +开始日期 +结束日期 +全部日期 +筛选货盘 +全部货盘 +现货 +金料 +找金 +回收旧料 +君宝汇 +流水类型 +全部流水 +手动增加 +手动减少 +手动平移 +全部手动变动 +隐藏已删除记录 +按流水日期筛选,含起止当天;留空不限。每页100条,可翻页查看更早记录。平移按两边货盘分别记一条。 +第 1 / 1 页 · 每页 100 条 +上一页 +下一页 +日期 货盘 变动 动作 备注/原单 经办人 状态/操作 +2026-11-20 回收旧料 +4.950g 回收旧料入库 HS202611200001 麦麦 随原业务记录保留 +2026-11-20 现货 -2.500g 销售出库 MM20261120- 麦麦 随原业务记录保留 +2026-11-19 现货 -1.000g 销售出库 MM20261119- 小昊 随原业务记录保留 +2026-11-19 现货 -3.000g 销售出库 MM20261119- 麦麦 随原业务记录保留 +2026-11-19 现货 -2.000g 销售出库 MM20261119- 娜娜 随原业务记录保留 +2026-11-19 现货 -1.500g 销售出库 MM20261119- 麦麦 随原业务记录保留 +2026-11-19 金料 +50.000g 开账 浏览器检查起始库存 麦麦 随原业务记录保留 +2026-11-19 现货 +100.000g 开账 浏览器检查起始库存 麦麦 随原业务记录保留 +第 1 / 1 页 · 每页 100 条 +上一页 +下一页 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +kind=增加 +pocket=现货 +grams= +date=2026-11-20 +note= +inventory-movements-from= +inventory-movements-to= +inventory-movements-pocket=全部货盘 +inventory-movements-kind=全部流水 diff --git a/新账系统/e2e/baseline/ui/55-assistant2-tab-report.txt b/新账系统/e2e/baseline/ui/55-assistant2-tab-report.txt new file mode 100644 index 0000000..4ba7e33 --- /dev/null +++ b/新账系统/e2e/baseline/ui/55-assistant2-tab-report.txt @@ -0,0 +1,110 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +DAILY CHECK +每日对账 +核对本人或所选成员的所属订单收入、实际支出与收款账户。 +对账日期 +汇总当月 +普通订单按开单日期、售后按记录日期筛选。锁价收付按实际发生日期,销售和完整利润在交付日计入;原锁付款不会重复计入交付日支出。 +2026-11-20:所属订单净收入=收款−退款,已包含他人代收。成本含售后,料池仅计已耗用部分;麦麦垫付和当日往来逐日核对。 +小昊所属订单净收入 +¥0.00 +实收 ¥0.00 +实退 ¥0.00 +所属订单总成本 +¥0.00 +当日麦麦垫付明细 +当日利润 +所属订单净收入 ¥0.00 +− +订单总成本 ¥0.00 += +¥0.00 +当日往来账 +仅核对所选单日。普通订单按开单日、锁价成单按交付日、售后按记录日归集;锁价代收按实际收付日。此处不含历史余额,也未扣实际转账。 +2026-11-20 +当日无需转款 +¥0.00 +麦麦垫付已用料费 ¥0.00 + 麦麦垫付其他订单成本 ¥0.00 + 本人当日订单净利润 ¥0.00 − 麦麦代收净额 ¥0.00 = ¥0.00 +所选范围暂无收退款记录。 +所选日销售净额 +¥0.00 +销售 0 单 · 售后 0 笔 · 0 单完成 +本期实收 +¥0.00 +普通订单累计收款+本期锁价实收 +本期实退 +¥0.00 +普通订单累计退款+本期锁价实退 +本期净利润 +¥0.00 +销售净额 − 订单耗用成本 − 实际费用(含售后) +按收款账户核对 +2026-11-20普通订单当前收付,加上同期锁价实际收付。 +账户 实收 实退 净额 +所选范围没有收退款活动账户。 +合计 ¥0.00 ¥0.00 ¥0.00 +请按这些订单的收退款记录与微信、支付宝、现金、信用卡核对;系统尚未接入支付平台账单。 +按付款人核对成本 +普通订单按开单日归集;每日购料按实际购买日期归集,订单耗用料费不再计一次支出;锁价料费、工费与费用按实际付款日归集,原锁料费不在交付时重复计入。实际支出可能与本期订单耗用成本不同。转账请以核实后的完整实际支出为准。 +付款人 货品成本 已付费用 支出合计 +娜娜支出成本 ¥0.00 ¥0.00 ¥0.00 +小昊支出成本 ¥0.00 ¥0.00 ¥0.00 +麦麦支出成本 ¥0.00 ¥0.00 ¥0.00 +合计 ¥0.00 ¥0.00 ¥0.00 +娜娜逐项明细 0 项 +小昊逐项明细 0 项 +麦麦逐项明细 0 项 +普通订单按开单日期、售后按记录日期归集;每日购料按购买日期、锁价支出按实际付款日。旧草稿与未入账费用不计合计;退货冲回订单耗用成本,锁价已经支付的金料款仍保留。0元货品分项省略,已核实的0元费用保留。 +订单与售后净额明细 +2026-11-20范围内,普通订单按开单日、锁价成单按交付日、售后按记录日期归集。这里显示订单完整耗用成本,与上方实际付款分开核对;旧草稿不计金额。 +日期/单号或售后项目 类型/状态 销售净额 货品成本 已付费用 成本合计 订单净利润 +所选日期没有订单或售后记录。 +销售 0 单 · 售后 0 笔 ¥0.00 ¥0.00 ¥0.00 ¥0.00 ¥0.00 +客户待收款与库存 +客户待收款 ¥0.00 +现货 90.000g +金料 50.000g +找金 0.000g +回收旧料 4.950g +君宝汇 0.000g +臻金汇 0.000g +金金 0.000g +定制工厂 0.000g +需要查看 1 项 +截至现在所有订单,不受日期筛选 +MM20261119- 有记录待麦麦复核 +尚未保存所选日对账快照(含当日售后)。 +下载对账报告 +每日报销单 +2026-11-20 +待复核(0) +新增报销单 +每项单独指定承担人;已批准报销只读。请勿将已经计入订单、购料或其他付款记录的支出再次提交。 +所选日期暂无报销单。 +每日利润表 +2026-11-20 · 按日期、订单归属人核对。勾选“汇总当月”可查看当月逐日利润。 +日期 归属人 销售净额 成本 利润 +所选范围暂无订单或售后记录。 +所选范围合计 ¥0.00 ¥0.00 ¥0.00 +普通订单按开单日、锁价成单按交付日、售后按记录日归集。成本含实际耗用料费和费用;退货、作废沿原账冲回。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] +report-date=2026-11-20 +report-month=☐ diff --git a/新账系统/e2e/baseline/ui/56-assistant2-tab-people-entry.txt b/新账系统/e2e/baseline/ui/56-assistant2-tab-people-entry.txt new file mode 100644 index 0000000..ffd1e0c --- /dev/null +++ b/新账系统/e2e/baseline/ui/56-assistant2-tab-people-entry.txt @@ -0,0 +1,27 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +PEOPLE +登记人数 +填写自己的当天微信总人数,系统自动与上次记录对比。 +记录人数 +我的人数记录 +日期 总人数 新增人数 操作 +还没有人数记录。 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] diff --git a/新账系统/e2e/baseline/ui/57-assistant2-tab-settings.txt b/新账系统/e2e/baseline/ui/57-assistant2-tab-settings.txt new file mode 100644 index 0000000..a47e617 --- /dev/null +++ b/新账系统/e2e/baseline/ui/57-assistant2-tab-settings.txt @@ -0,0 +1,27 @@ +浏 +浏览器对照珠宝 +开单 · 库存 · 订单利润 +本机试用 +小昊 +退出 +当前为本机试用数据,请先练习核对。正式云端数据库尚未部署;不会写入原飞书账。 +01 开单 +02 待交付 +03 每日购料 +04 回收/置换 +05 订单 +06 库存 +07 每日对账 +登记人数 +10 修改密码 +一次录入,沿同一张单 +收款、交货、复核。 +ACCOUNT +修改密码 +更改本人登录密码,保存后重新登录。 +更改当前账号密码 +原密码 +新密码(至少12个字符) +修改并重新登录 +金额按分记录,黄金精确到 0.001g。实际收退款由经办人核实。 +[控件] diff --git a/新账系统/e2e/browser.mjs b/新账系统/e2e/browser.mjs new file mode 100755 index 0000000..118ab12 --- /dev/null +++ b/新账系统/e2e/browser.mjs @@ -0,0 +1,319 @@ +#!/usr/bin/env node +// 浏览器端到端检查:确定时钟下启动应用子进程,用真实页面以三个角色操作。 +// 断言:无未捕获页面错误、无控制台错误、无非预期失败请求;关键文字与金额出现在页面上。 +// 每个页面保存截图到 e2e/out/screens/,并保存规范化的页面文字快照: +// node e2e/browser.mjs 录制快照基线到 e2e/baseline/ui/ +// node e2e/browser.mjs --check 与基线比较(忽略无意义空白),有差异退出码 1 +// --headed 可视化运行;--slow 每步放慢 +import {createRequire} from 'node:module'; +import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import {fileURLToPath} from 'node:url'; +const require=createRequire(import.meta.url); +const {chromium}=require('playwright'); +const {startServer}=require('./lib/server.js'); +const {Session}=require('./lib/client.js'); +const {Normalizer}=require('./lib/normalize.js'); +const HERE=path.dirname(fileURLToPath(import.meta.url)); +const args=process.argv.slice(2),check=args.includes('--check'),headed=args.includes('--headed'); +const BASE_UI=path.join(HERE,'baseline','ui'),OUT_UI=path.join(HERE,'out','ui'),SCREENS=path.join(HERE,'out','screens'); +const D0='2026-11-19',D='2026-11-20'; +const PW={owner:'browser-owner-pass-1',assistant:'browser-assistant-pass',assistant2:'browser-assistant2-pass'}; +const SHANGHAI=8*3600*1000; +const dayStart=date=>Date.parse(date+'T00:00:00Z')-SHANGHAI+10*3600*1000; + +const failures=[];const notes=[]; +function fail(message){failures.push(message);console.error(' ✗ '+message);} +function ok(message){console.log(' ✓ '+message);} + +async function seed(server,base){ + // 前置数据只经 HTTP 写入:账号、起始库存、购料和前一天的订单(用于跨天修改申请与前后单切换)。 + const s=new Session({base,server});await s.day(D0); + await s.post('owner','/api/setup',{ownerPassword:PW.owner,assistantPassword:PW.assistant,assistant2Password:PW.assistant2}); + await s.post('assistant','/api/login',{name:'娜娜',password:PW.assistant}); + await s.post('assistant2','/api/login',{name:'小昊',password:PW.assistant2}); + for(const [pocket,grams] of [['现货','100'],['金料','50']])await s.post('owner','/api/stock',{date:D0,kind:'opening',pocket,grams,note:'浏览器检查起始库存'}); + await s.post('owner','/api/material-purchases',{date:D0,grams:'10',total:'9000',payer:'owner',note:'浏览器检查购料'}); + const order=(member,customer,quantity,sale)=>({date:D0,customer,internal_note:'浏览器检查备注',salesperson:{owner:'麦麦',assistant:'娜娜',assistant2:'小昊'}[member],payment_account:{owner:'麦麦微信',assistant:'助理微信',assistant2:'助理2微信'}[member],rounding_mode:'cent',lines:[{name:'足金999',unit:'g',quantity,pocket:'现货',payer:member,sale,cost:String(Math.round(Number(sale)*0.85))}],fee_items:[]}); + await s.post('owner','/api/orders/issue',order('owner','昨日老板客户甲','1.5','1500')); + await s.post('assistant','/api/orders/issue',order('assistant','昨日娜娜客户','2','2000')); + await s.post('owner','/api/orders/issue',order('owner','昨日老板客户乙','3','3100')); + await s.post('assistant2','/api/orders/issue',order('assistant2','昨日小昊客户','1','1050')); + if(s.problems.length)throw new Error('前置数据写入失败:\n'+s.problems.join('\n')); +} + +class Browser{ + constructor(browser,base,server){this.browser=browser;this.base=base;this.server=server;this.step=0;this.normalizer=new Normalizer();this.normalizer.literal(base,'http://');this.normalizer.literal(base.slice(7),'');this.snapIndex=0;this.allowed=[];this.inflight=0;this.snapshots=[];} + async open(role){ + this.role=role;this.context=await this.browser.newContext({viewport:{width:1400,height:1000},locale:'zh-CN',timezoneId:'Asia/Shanghai'}); + await this.context.addInitScript(()=>{window.print=()=>{};});this.context.on('page',page=>this.watch(page));this.page=await this.context.newPage();this.page.setDefaultTimeout(8000);await this.page.clock.setFixedTime(new Date(dayStart(D))); + this.watch(this.page); + } + watch(page){ + this.watched??=new WeakSet();if(this.watched.has(page))return;this.watched.add(page); + page.clock?.setFixedTime(new Date(dayStart(D))).catch(()=>{}); + page.on('pageerror',e=>fail(`[${this.role}] 页面未捕获错误:${e.message}`)); + page.on('console',m=>{if(m.type()==='error')fail(`[${this.role}] 控制台错误:${m.text()}`);}); + page.on('dialog',d=>{notes.push(`${this.role} 对话框:${d.message()}`);d.accept();}); + page.on('request',()=>{this.inflight++;}); + page.on('requestfinished',async r=>{this.inflight--;const res=await r.response();if(res&&res.status()>=400&&!this.isAllowed(r.url(),res.status()))fail(`[${this.role}] 请求失败 ${res.status()} ${r.method()} ${r.url().replace(this.base,'')}`);}); + page.on('requestfailed',r=>{this.inflight--;fail(`[${this.role}] 请求未完成 ${r.method()} ${r.url().replace(this.base,'')} ${r.failure()?.errorText}`);}); + } + isAllowed(url,status){return this.allowed.some(([pattern,code])=>(code===status)&&pattern.test(url.replace(this.base,'')));} + async close(){await this.context?.close();this.context=null;} + // 每个界面动作前把服务器时钟前进 1 秒,使写入时间戳只取决于动作顺序。 + async act(fn){this.step++;await this.server.setTime(dayStart(D)+this.step*1000);const result=await fn(this.page);await this.idle();return result;} + async idle(){ + const page=this.page;let quiet=0;const deadline=Date.now()+15000; + while(Date.now()=300)break;} + await page.evaluate(()=>new Promise(r=>requestAnimationFrame(()=>r()))); + } + async snap(name){ + const label=String(++this.snapIndex).padStart(2,'0')+'-'+name; + await this.idle(); + // 页面可见文字(含打开的对话框),规范化标识与空白。 + const raw=await this.page.evaluate(()=>{ + const parts=[...document.body.children].filter(el=>el.id!=='toast'&&el.tagName!=='DIALOG'&&el.tagName!=='SCRIPT').map(el=>el.innerText);// 提示条按真实计时消失,不计入快照 + for(const d of document.querySelectorAll('dialog[open]'))parts.push('[对话框]\n'+d.innerText); + // 表单控件当前值(innerText 不含输入框内容) + const values=[...document.querySelectorAll('input,select,textarea')].filter(el=>el.offsetParent!==null&&el.type!=='hidden'&&el.type!=='password').map(el=>{const key=el.name||el.id||el.getAttribute('aria-label')||el.type;const value=el.type==='checkbox'||el.type==='radio'?(el.checked?'☑':'☐'):el.tagName==='SELECT'?(el.selectedOptions[0]?.textContent||''):el.value;return key+'='+value;}); + return parts.join('\n')+'\n[控件]\n'+values.join('\n'); + }); + const text=raw.split('\n').map(line=>this.normalizer.string(line).replace(/[\t   ]+/g,' ').trim()).filter(Boolean).join('\n')+'\n'; + fs.mkdirSync(OUT_UI,{recursive:true});fs.mkdirSync(SCREENS,{recursive:true}); + fs.writeFileSync(path.join(OUT_UI,label+'.txt'),text); + await this.page.screenshot({path:path.join(SCREENS,label+'.png'),fullPage:true}); + this.snapshots.push({label,text});return text; + } + // 提交前列出浏览器校验未通过的字段,便于定位表单变化。 + async invalid(selector){const names=await this.page.$$eval(selector+' :invalid',els=>els.filter(e=>e.name).map(e=>e.name+'('+(e.validationMessage||'')+')'));if(names.length)fail(`[${this.role}] 表单 ${selector} 有未通过校验的字段:${names.join('、')}`);return names;} + async expectText(text,what){const body=await this.page.evaluate(()=>document.body.innerText+[...document.querySelectorAll('dialog[open]')].map(d=>d.innerText).join('\n'));if(body.includes(text))ok(what||('页面显示 '+text));else fail(`[${this.role}] 页面未显示「${text}」${what?'('+what+')':''}`);} + async login(role,member,label){ + await this.open(role); + await this.act(p=>p.goto(this.base+'/')); + if(label)await this.snap(label); + await this.act(async p=>{await p.selectOption('#login-form select[name=member]',member);await p.fill('#login-form input[name=password]',PW[role]);await p.click('#login-form button.primary');}); + await this.page.waitForSelector('#shell:not([hidden])',{timeout:10000});await this.idle(); + ok(`${role} 登录成功`); + } + async closeDialogs(){for(const close of await this.page.locator('dialog[open] .dialog-close').all())if(await close.isVisible())await this.act(()=>close.click());} + async logout(){await this.closeDialogs();await this.act(p=>p.click('[data-action="logout"]'));await this.close();} + async tab(name){await this.act(p=>p.click(`nav [data-tab="${name}"]`));} + async visitTabs(prefix){ + const tabs=await this.page.$$eval('nav [data-tab]',buttons=>buttons.filter(b=>!b.hidden&&!b.disabled&&b.offsetParent!==null).map(b=>b.dataset.tab)); + for(const tab of tabs){await this.tab(tab);await this.snap(prefix+'-tab-'+tab);} + ok(`${this.role} 访问全部 ${tabs.length} 个导航页:${tabs.join('、')}`); + return tabs; + } +} + +async function flowOwner(b){ + await b.login('owner','owner','login-page'); + await b.snap('owner-home'); + await b.visitTabs('owner'); + + // —— 开单:按克计价 + 附加项目 + 成本行 —— + await b.tab('create'); + await b.act(async p=>{ + const f=p.locator('#order-form'); + await f.locator('input[name=customer]').fill('浏览器客户甲'); + await f.locator('input[name=customer_type][value=new]').check(); + await f.locator('select[name=member]').selectOption('owner'); + const line=f.locator('.line-item').first(); + await line.locator('input[name=quantity]').fill('2.5'); + await line.locator('input[name=goldPrice]').fill('950'); + await line.locator('input[name=laborRate]').fill('30'); + await line.locator('[data-action="add-charge"]').click(); + const charge=line.locator('.charge-list > *').first(); + const amount=charge.locator('input[type=number]').first();await amount.fill('20'); + await line.locator('input[name="cost-materialRate"]').fill('880'); + await line.locator('input[name="cost-labor"]').fill('25'); + await f.locator('[name=internal_note]').fill('#浏览器 内部备注'); + // 附加项目对应的内部成本行(必填) + for(const fee of await f.locator('input[name=feeAmount]').all())if(await fee.isVisible()&&!(await fee.inputValue()))await fee.fill('5'); + }); + await b.invalid('#order-form'); + const sale=await b.page.locator('#order-form .line-item input[name=sale]').first().inputValue(); + if(sale==='2470.00'||sale==='2470')ok('本行销售额自动计算为 2470.00(2.5g×(950+30)+附加 20)');else fail('本行销售额计算不符:'+sale); + await b.snap('owner-create-filled'); + await b.act(p=>p.click('#order-form button[type=submit]')); + await b.snap('owner-create-submitted'); + // 生成后自动打开订单明细 + await b.expectText('¥2,470','订单明细显示成交合计 ¥2,470'); + await b.expectText('未打印','新单显示未打印'); + // —— 客户预览/打印:新窗口点击“打印”后记录已打印 —— + const [popup]=await Promise.all([b.context.waitForEvent('page'),b.act(p=>p.locator('#order-dialog [data-action="print"]').first().click())]); + const main=b.page;b.page=popup;popup.setDefaultTimeout(8000); + await popup.waitForLoadState('load');await b.idle(); + await b.snap('owner-print-preview'); + await b.act(p=>p.click('#print')); + await popup.waitForFunction(()=>document.getElementById('document-print-state')?.textContent.includes('已打印')); + await b.expectText('✓ 已打印','打印预览中点击打印后记录为已打印'); + await b.snap('owner-print-marked'); + await popup.close();b.page=main; + await b.act(p=>p.locator('#order-dialog [data-action="close-dialog"]').click()); + await b.tab('orders'); + await b.expectText('浏览器客户甲','新订单出现在订单列表'); + await b.snap('owner-orders-after-create'); + // —— 订单明细与前后单切换(本月列表含昨天的多张单)—— + await b.act(p=>p.click('[data-action="order-period"][data-period="month"]')); + await b.snap('owner-orders-month'); + await b.act(p=>p.locator('[data-action="open-order"]',{hasText:'浏览器客户甲'}).first().click()); + await b.expectText('已打印','重新打开明细显示已打印'); + await b.snap('owner-order-detail'); + const next=b.page.locator('#order-dialog [data-action="order-detail-next"]'); + const prev=b.page.locator('#order-dialog [data-action="order-detail-prev"]'); + if(await next.count()&&await next.isEnabled()){await b.act(()=>next.click());await b.snap('owner-order-detail-next');await b.act(()=>prev.click());await b.snap('owner-order-detail-prev');await b.expectText('浏览器客户甲','上一条回到原订单');} + else if(await prev.count()&&await prev.isEnabled()){await b.act(()=>prev.click());await b.snap('owner-order-detail-prev');await b.act(()=>next.click());await b.snap('owner-order-detail-next');await b.expectText('浏览器客户甲','下一条回到原订单');} + else fail('订单明细前后单按钮均不可用'); + await b.act(p=>p.locator('#order-dialog [data-action="close-dialog"]').click()); + + // —— 每日购料 —— + await b.tab('material-pools'); + await b.act(async p=>{const f=p.locator('#material-purchase-form');await f.locator('input[name=grams]').fill('5');await f.locator('input[name=total]').fill('4600');await f.locator('select[name=payer]').selectOption('owner');await f.locator('input[name=note]').fill('浏览器购料');await f.locator('button[type=submit],button.primary').first().click();}); + await b.expectText('浏览器购料','购料登记成功'); + await b.snap('owner-material-purchase'); + + // —— 锁价 —— + await b.tab('create'); + await b.act(p=>p.click('[data-action="create-mode"][data-mode="lock"]')); + await b.snap('owner-price-lock-form'); + await priceLockForm(b); + + // —— 直接回收 —— + await b.tab('recoveries'); + await recoveryForm(b); + + // —— 店铺设置 —— + await b.tab('settings'); + await b.act(async p=>{const f=p.locator('#shop-settings-form');await f.locator('input[name=storeName]').fill('浏览器对照珠宝');await f.locator('button[type=submit],button.primary').first().click();}); + await b.expectText('浏览器对照珠宝','店铺名称已更新'); + await b.snap('owner-settings-saved'); + await b.logout(); +} + +async function priceLockForm(b){ + const form=b.page.locator('form').filter({has:b.page.locator('[name=customer]')}).first(); + await b.act(async p=>{ + await form.locator('[name=customer]').fill('浏览器锁价客户'); + const radio=form.locator('input[name=customer_type][value=returning]');if(await radio.count())await radio.check(); + await form.locator('[name=quantity]').first().fill('2'); + await form.locator('[name=goldPrice]').first().fill('900'); + await form.locator('[name=laborRate]').first().fill('10'); + await form.locator('[name=material_rate]').fill('850'); + await form.locator('[name=received_amount]').fill('1000'); + for(const box of await form.locator('input[type=checkbox][name*=verified]').all())await box.check(); + }); + await b.invalid('form:has([name=received_amount])'); + await b.snap('owner-price-lock-filled'); + await b.act(()=>form.locator('button[type=submit]').first().click()); + await b.snap('owner-price-lock-submitted'); + await b.closeDialogs(); + await b.tab('price-locks'); + await b.expectText('浏览器锁价客户','锁价单出现在待交付列表'); + await b.snap('owner-price-locks-after-create'); +} + +async function recoveryForm(b){ + await b.act(async p=>{ + const f=p.locator('#recovery-form'); + await f.locator('[name=customer]').fill('浏览器回收客户'); + await f.locator('[name=incoming_weight]').first().fill('5'); + await f.locator('[name=melted_weight]').first().fill('5'); + await f.locator('[name=purity]').first().fill('99'); + await f.locator('[name=buy_rate]').fill('880'); + await f.locator('[name=verified]').check(); + }); + await b.snap('owner-recovery-filled'); + await b.act(p=>p.locator('#recovery-form button[type=submit]').first().click()); + await b.expectText('浏览器回收客户','回收单出现在记录中'); + await b.snap('owner-recovery-saved'); + await b.closeDialogs(); +} + +async function flowAssistantChange(b){ + await b.login('assistant','assistant'); + await b.snap('assistant-home'); + await b.visitTabs('assistant'); + await b.tab('orders'); + await b.act(p=>p.click('[data-action="order-period"][data-period="yesterday"]')); + await b.act(p=>p.locator('[data-action="open-order"]',{hasText:'昨日娜娜客户'}).first().click()); + await b.snap('assistant-order-detail'); + const edit=b.page.locator('#order-dialog button',{hasText:/^申请修改$/}).first(); + await b.act(()=>edit.click()); + await b.snap('assistant-change-form'); + await b.act(async p=>{const f=p.locator('#order-form');await f.locator('input[name=customer]').fill('昨日娜娜客户(改)');await f.locator('input[name=customer_type][value=returning]').check();await f.locator('[name=edit_reason]').fill('客户名写错');await f.locator('[name=edit_verified]').check();}); + await b.invalid('#order-form'); + await b.act(p=>p.locator('#order-form button[type=submit]').click()); + await b.snap('assistant-change-submitted'); + await b.expectText('待','提交后显示待复核'); + await b.logout(); + // 麦麦审批 + await b.login('owner','owner'); + await b.tab('orders'); + await b.act(p=>p.click('details.order-review-menu > summary')); + await b.act(p=>p.click('[data-action="open-order-changes"]')); + await b.snap('owner-order-changes'); + await b.act(p=>p.locator('dialog[open] button',{hasText:'查看并复核'}).first().click()); + await b.snap('owner-order-change-detail'); + await b.act(p=>p.locator('dialog[open] button',{hasText:'查看变更并复核'}).first().click()); + await b.snap('owner-order-change-review'); + await b.act(async p=>{const dialog=p.locator('dialog[open]').last();await dialog.locator('[name=note]').fill('已核对');await dialog.locator('[name=verified]').check();}); + await b.act(p=>p.locator('dialog[open] button',{hasText:'同意变更并更新原单'}).click()); + await b.expectText('昨日娜娜客户(改)','批准后订单明细显示新客户名'); + await b.snap('owner-order-change-approved'); + await b.closeDialogs(); + await b.tab('orders'); + await b.act(p=>p.click('[data-action="order-period"][data-period="yesterday"]')); + await b.expectText('昨日娜娜客户(改)','批准后订单显示新客户名'); + await b.snap('owner-orders-after-approve'); + await b.logout(); +} + +async function flowAssistant2(b){ + await b.login('assistant2','assistant2'); + await b.snap('assistant2-home'); + await b.visitTabs('assistant2'); + await b.logout(); +} + +function compareSnapshots(snapshots){ + const expected=fs.existsSync(BASE_UI)?fs.readdirSync(BASE_UI).filter(f=>f.endsWith('.txt')).sort():[]; + const actual=snapshots.map(s=>s.label+'.txt');const problems=[]; + for(const name of expected)if(!actual.includes(name))problems.push('缺少页面快照 '+name); + for(const name of actual)if(!expected.includes(name))problems.push('多出页面快照 '+name); + for(const {label,text} of snapshots){ + const file=path.join(BASE_UI,label+'.txt');if(!fs.existsSync(file))continue; + const a=fs.readFileSync(file,'utf8').split('\n'),c=text.split('\n'); + if(a.join('\n')===c.join('\n'))continue; + let i=0;while(i0; + console.log(`browser ${failed?'FAIL':'PASS'}:${b.snapshots.length} 个页面快照,${failures.length} 个运行错误,${problems.length} 处快照差异,用时 ${seconds}s(截图在 e2e/out/screens/)`); + process.exitCode=failed?1:0; + }else{ + if(failures.length){console.error(`运行中有 ${failures.length} 个错误,拒绝写入基线`);process.exitCode=1;} + else{fs.rmSync(BASE_UI,{recursive:true,force:true});fs.mkdirSync(BASE_UI,{recursive:true});for(const {label,text} of b.snapshots)fs.writeFileSync(path.join(BASE_UI,label+'.txt'),text);console.log(`基线已写入 e2e/baseline/ui/(${b.snapshots.length} 个页面快照,用时 ${seconds}s)`);} + } + if(notes.length&&args.includes('--verbose'))console.log(notes.join('\n')); +}finally{await browser?.close();await server.stop();fs.rmSync(dataDir,{recursive:true,force:true});} diff --git a/新账系统/e2e/coverage.js b/新账系统/e2e/coverage.js new file mode 100644 index 0000000..1428e41 --- /dev/null +++ b/新账系统/e2e/coverage.js @@ -0,0 +1,15 @@ +#!/usr/bin/env node +'use strict'; +// 粗略统计黄金对照覆盖的服务器路由:把记录里的请求归一为“方法 + 路由模板”,与 server.js 中的路由清单对照。 +// 用法:node e2e/coverage.js(读取 e2e/baseline/golden/transcript.json) +const fs=require('node:fs'),path=require('node:path'); +const transcript=JSON.parse(fs.readFileSync(path.join(__dirname,'baseline','golden','transcript.json'),'utf8')); +const template=p=>p.split('?')[0].replace(//g,':id').replace(/\d{4}-\d{2}-\d{2}/g,':date').replace(/pocket_:id/g,':pocket').replace(//g,':file').replace(/\/staff_:id\//,'/:member/').replace(/\/(assistant2?|owner)\/password$/,'/:member/password').replace(/^\/print\/(?!recoveries).+/,'/print/:id'); +const ROUTES=`GET /api/session|POST /api/setup|POST /api/login|POST /api/demo-login|POST /api/logout|GET /api/state|GET /api/print-status/order/:id|POST /api/print-status/order/:id|GET /api/print-status/recovery/:id|POST /api/print-status/recovery/:id|GET /api/shop-settings|POST /api/shop-settings|POST /api/printing|GET /api/employees|POST /api/employees|POST /api/employees/:member/update|POST /api/employees/:member/deactivate|POST /api/employees/:member/reactivate|POST /api/employees/:member/delete|GET /api/team-members|POST /api/team-members/:member/password|GET /api/pockets|POST /api/pockets|POST /api/pockets/:pocket/update|GET /api/team-funds|POST /api/team-funds/transfers|POST /api/team-funds/transfer|GET /api/private-operations|GET /api/private-operations/people|POST /api/private-operations/people|GET /api/private-operations/people-history|GET /api/team-profits|GET /api/material-pools|GET /api/material-pools/rolling-preview|POST /api/material-pools/rolling-enable|POST /api/material-pools/quote|GET /api/material-pools/:date|POST /api/material-pools/:date/settlement|GET /api/material-purchase-changes|GET /api/material-purchase-changes/:id|POST /api/material-purchase-changes/:id/approve|POST /api/material-purchase-changes/:id/reject|POST /api/material-purchases|GET /api/material-purchases/:id|POST /api/material-purchases/:id/edit|POST /api/material-purchases/:id/delete|POST /api/material-purchases/:id/change|GET /api/after-sales/changes|GET /api/after-sales/changes/:id|POST /api/after-sales/changes/:id/approve|POST /api/after-sales/changes/:id/reject|POST /api/after-sales|GET /api/after-sales/:id|POST /api/after-sales/:id/update|GET /api/customer-materials|POST /api/customer-materials|GET /api/recoveries|POST /api/recoveries|POST /api/recoveries/quote|GET /api/recoveries/:id|GET /api/recoveries/:id/edit|POST /api/recoveries/:id/update|POST /api/recoveries/:id/cancel|POST /api/recoveries/:id/quote|GET /api/recovery-changes|GET /api/recovery-changes/:id|POST /api/recovery-changes/:id/approve|POST /api/recovery-changes/:id/reject|GET /api/price-locks|POST /api/price-locks|GET /api/price-locks/:id|GET /api/price-locks/:id/edit-context|POST /api/price-locks/:id/deliver|POST /api/price-locks/:id/edit|POST /api/price-locks/:id/cancel|POST /api/price-locks/:id/change-requests|GET /api/price-lock-changes|GET /api/price-lock-changes/:id|POST /api/price-lock-changes/:id/approve|POST /api/price-lock-changes/:id/reject|GET /api/order-note-tags|GET /api/order-changes|GET /api/order-changes/:id|POST /api/order-changes/:id/approve|POST /api/order-changes/:id/reject|GET /api/order-ownership-changes|GET /api/order-ownership-changes/:id|POST /api/order-ownership-changes/:id/approve|POST /api/order-ownership-changes/:id/reject|GET /api/order-cancellations|GET /api/order-cancellations/:id|POST /api/order-cancellations/:id/approve|POST /api/order-cancellations/:id/reject|GET /api/inventory|GET /api/inventory/movements/export.xlsx|GET /api/inventory/movements|GET /api/inventory/movements/:id|POST /api/inventory/movements/:id/update|POST /api/inventory/movements/:id/delete|GET /api/inventory/changes|GET /api/inventory/changes/:id|POST /api/inventory/changes/:id/approve|POST /api/inventory/changes/:id/reject|GET /api/inventory/snapshots|POST /api/inventory/review|GET /api/order-book|GET /api/order-templates|POST /api/order-templates|GET /api/order-templates/:id|POST /api/order-templates/:id/update|POST /api/order-templates/:id/delete|GET /api/people-count|POST /api/people-count|GET /api/people-count-history|GET /api/daily-funds|POST /api/daily-funds/confirm|GET /api/reimbursement-funding-options|GET /api/reimbursements|POST /api/reimbursements|POST /api/reimbursements/:id/update|POST /api/reimbursements/:id/approve|POST /api/reimbursements/:id/reject|GET /api/returned-stock-lots|GET /api/paper-number|GET /api/orders/:id/after-sale|POST /api/orders/:id/after-sale-preview|GET /api/orders/:id|GET /api/orders/:id/public|GET /api/orders/:id/edit|GET /api/orders/:id/change|GET /api/orders/:id/ownership|GET /api/orders/:id/cancellation|POST /api/orders/issue|POST /api/orders|POST /api/orders/:id/edit|POST /api/orders/:id/change|POST /api/orders/:id/ownership|POST /api/orders/:id/cancellation|POST /api/orders/:id/canceltoday|POST /api/orders/:id/confirm|POST /api/orders/:id/receipt|POST /api/orders/:id/complete|POST /api/orders/:id/expense|POST /api/orders/:id/refund|POST /api/orders/:id/return|POST /api/orders/:id/fees|POST /api/orders/:id/cost|POST /api/orders/:id/settlement|POST /api/orders/:id/correct|POST /api/orders/:id/material|GET /print/recoveries/:id|GET /print/:id|GET /api/report|GET /api/export/inventory|POST /api/backup|GET /api/backup/:file|POST /api/sync|POST /api/stock|POST /api/close|POST /api/password|GET /(static assets)`.split('|'); +const hits=new Map(); +for(const e of transcript.filter(e=>e.method)){let key=e.method+' '+template(e.path);if(e.method==='GET'&&/^\/[\w.-]*$/.test(e.path)&&!e.path.startsWith('/api'))key='GET /(static assets)';const ok=e.status<400;const h=hits.get(key)||{ok:0,err:0};h[ok?'ok':'err']++;hits.set(key,h);} +const covered=ROUTES.filter(r=>hits.has(r)),success=ROUTES.filter(r=>hits.get(r)?.ok); +console.log(`路由清单 ${ROUTES.length} 条;被请求 ${covered.length} 条(${Math.round(covered.length/ROUTES.length*100)}%),其中有成功响应 ${success.length} 条(${Math.round(success.length/ROUTES.length*100)}%)。`); +console.log('\n未请求:\n '+ROUTES.filter(r=>!hits.has(r)).join('\n ')); +console.log('\n只有错误响应(拒绝路径):\n '+ROUTES.filter(r=>hits.has(r)&&!hits.get(r).ok).join('\n ')); +const extra=[...hits.keys()].filter(k=>!ROUTES.includes(k));if(extra.length)console.log('\n清单外(多为故意的未知地址):\n '+extra.join('\n ')); diff --git a/新账系统/e2e/fake-clock.cjs b/新账系统/e2e/fake-clock.cjs new file mode 100644 index 0000000..6dea9be --- /dev/null +++ b/新账系统/e2e/fake-clock.cjs @@ -0,0 +1,68 @@ +'use strict'; +// 验证工具专用:用 node --require 预加载,只影响本进程。 +// 固定 Date 与 crypto 随机源,使 today()、时间戳、ID、盐与会话令牌在两次相同运行中完全一致。 +// 环境变量: +// FAKE_CLOCK_START 起始时刻(ISO,默认 2026-11-20T02:00:00.000Z,即上海 10:00) +// FAKE_CLOCK_TICK_MS 每次读取时钟后前进的毫秒数(默认 0:时钟只在控制端设置时变化) +// FAKE_RANDOM_SEED 随机种子(默认 golden-seed) +// FAKE_CLOCK_IPC=1 通过 process.send 通道接受 {type:'fake-clock',op,ms,id} 控制消息 +const crypto=require('node:crypto'); +const RealDate=Date; +let current=RealDate.parse(process.env.FAKE_CLOCK_START||'2026-11-20T02:00:00.000Z'); +if(!Number.isFinite(current))throw new Error('FAKE_CLOCK_START 无效'); +let tick=Number(process.env.FAKE_CLOCK_TICK_MS||0); +function read(){const value=current;current+=tick;return value;} +function FakeDate(...args){ + if(!new.target)return new RealDate(read()).toString(); + return Reflect.construct(RealDate,args.length?args:[read()],new.target); +} +Object.setPrototypeOf(FakeDate,RealDate); +FakeDate.prototype=RealDate.prototype; +FakeDate.now=()=>read(); +FakeDate.parse=RealDate.parse; +FakeDate.UTC=RealDate.UTC; +Object.defineProperty(RealDate.prototype,'constructor',{value:FakeDate,writable:true,configurable:true}); +globalThis.Date=FakeDate; + +// 计数器式 SHA-256 流,按调用顺序输出确定字节。 +const seed=process.env.FAKE_RANDOM_SEED||'golden-seed'; +let counter=0,pool=Buffer.alloc(0); +function bytes(n){ + while(pool.lengthbytes(6).readUIntBE(0,6)/2**48; + +const control={ + now:()=>current, + set(ms){if(!Number.isFinite(ms))throw new Error('无效时刻');current=ms;}, + advance(ms){current+=ms;}, + setTick(ms){tick=ms;}, + RealDate, +}; +globalThis.__fakeClock=control; +if(process.env.FAKE_CLOCK_IPC==='1'&&typeof process.send==='function'){ + process.on('message',message=>{ + if(!message||message.type!=='fake-clock')return; + try{ + if(message.op==='set')control.set(message.ms); + else if(message.op==='advance')control.advance(message.ms); + else if(message.op==='tick')control.setTick(message.ms); + process.send({type:'fake-clock-ack',id:message.id,now:current}); + }catch(error){process.send({type:'fake-clock-ack',id:message.id,error:error.message});} + }); +} diff --git a/新账系统/e2e/golden-scenario.js b/新账系统/e2e/golden-scenario.js new file mode 100644 index 0000000..426f4d5 --- /dev/null +++ b/新账系统/e2e/golden-scenario.js @@ -0,0 +1,634 @@ +'use strict'; +// 黄金对照业务场景:只经 HTTP,覆盖三角色、跨三天的全部业务域。 +// 每一节是一个独立函数,按顺序执行;节内用 ctx 共享上一节产生的 ID。 +// s.get/post 默认期望 200;故意的拒绝写 expect。录制时出现非预期状态会拒绝写基线。 +const D1='2026-11-18',D2='2026-11-19',D3='2026-11-20'; +const START=D1; +const PW={owner:'golden-owner-pass-2026',assistant:'golden-assistant-pass-2026',assistant2:'golden-assistant2-pass-2026',assistant2New:'golden-assistant2-new-2026',assistantNew:'golden-assistant-new-pass',staff:'golden-staff-pass-2026'}; +const NAMES={owner:'麦麦',assistant:'娜娜',assistant2:'小昊'}; +const ROLES=['owner','assistant','assistant2']; +const ACCOUNT={owner:'麦麦微信',assistant:'助理微信',assistant2:'助理2微信'}; + +async function loginAll(s,ctx){ + for(const role of ROLES)await s.post(role,'/api/login',{name:ctx.loginName[role],password:ctx.password[role]},{label:'login-'+role}); +} +// 打开“修改”上下文并按原输入提交修改。 +async function editContext(s,actor,route){return s.get(actor,route);} +// 按当前双方应结余额登记一笔实际转账(金额取应结与 100 元的较小者)。 +async function transfer(s,date,route,note){ + const funds=await s.get('owner','/api/team-funds?date='+date,{label:'team-funds-before-transfer'}); + const pair=funds.pairs.find(row=>row.due>0); + if(!pair){s.problems.push('没有可结算的成员往来');return;} + const amount=(Math.min(pair.due,10000)/100).toFixed(2); + await s.post('owner',route,{date,fromMember:pair.fromMember,toMember:pair.toMember,amount,revision:funds.revision,verified:true,note},{label:'transfer'}); + await s.post('owner',route,{date,fromMember:pair.fromMember,toMember:pair.toMember,amount,revision:funds.revision,verified:true,note},{label:'transfer-stale-revision',expect:409}); +} + +const sections=[ + async function setupAndLogin(s,ctx){ + await s.day(D1); + await s.get(null,'/api/session',{label:'anonymous-session'}); + await s.get(null,'/api/state',{expect:401,label:'state-without-login'}); + await s.post(null,'/api/setup',{ownerPassword:'short',assistantPassword:'short'},{expect:400,label:'setup-short-password'}); + await s.post('owner','/api/setup',{ownerPassword:PW.owner,assistantPassword:PW.assistant,assistant2Password:PW.assistant2}); + await s.post(null,'/api/setup',{ownerPassword:PW.owner,assistantPassword:PW.assistant},{expect:403,label:'setup-closed'}); + await s.get('owner','/api/session',{label:'owner-session'}); + await s.post('owner','/api/logout',{}); + await s.get('owner','/api/state',{expect:401,label:'state-after-logout'}); + await s.post(null,'/api/login',{name:'麦麦',password:'wrong-password-123'},{expect:401,label:'login-wrong-password'}); + await s.post(null,'/api/demo-login',{role:'owner'},{expect:401,label:'demo-login-closed-in-trial'}); + ctx.loginName={owner:'麦麦',assistant:'助理1',assistant2:'助理2'};ctx.password={owner:PW.owner,assistant:PW.assistant,assistant2:PW.assistant2}; + await loginAll(s,ctx); + await s.post('assistant','/api/login',{name:'娜娜',password:PW.assistant},{label:'login-by-display-name'}); + await s.post('assistant2','/api/login',{member:'assistant2',password:PW.assistant2},{label:'login-by-member'}); + for(const role of ROLES)await s.get(role,'/api/state',{label:'initial-state-'+role}); + await s.get(null,'/api/session',{label:'anonymous-session-after-setup'}); + }, + + async function shopSettingsAndPrinting(s,ctx){ + const settings=await s.get('owner','/api/shop-settings'); + await s.get('assistant','/api/shop-settings',{label:'assistant-shop-settings'}); + await s.post('assistant','/api/shop-settings',{revision:settings.revision,storeName:'越权店名'},{expect:403}); + const saved=await s.post('owner','/api/shop-settings',{revision:settings.revision,storeName:'黄金对照珠宝',receiptSubtitle:'黄金对照销售单',contact:'联系电话 000-0000',creditCardRatePermille:6,feeDefaults:{shipping:'8',certificate:'4',packaging:'3',packagingPayer:'owner'}}); + await s.post('owner','/api/shop-settings',{revision:settings.revision,storeName:'过期版本'},{expect:409,label:'shop-settings-stale'}); + await s.post('owner','/api/shop-settings',{revision:saved.shopSettings.revision,creditCardRatePermille:-1},{expect:400,label:'shop-settings-invalid'}); + await s.post('owner','/api/printing',{offsetX:2,offsetY:3}); + await s.post('assistant','/api/printing',{offsetX:9},{expect:403}); + ctx.settingsRevision=(await s.get('owner','/api/shop-settings',{label:'shop-settings-after'})).revision; + }, + + async function pockets(s,ctx){ + for(const role of ROLES)await s.get(role,'/api/pockets',{label:'pockets-'+role}); + const created=await s.post('owner','/api/pockets',{name:'展柜A'});ctx.pocket=created.pocket; + await s.post('assistant','/api/pockets',{name:'越权货盘'},{expect:403}); + const renamed=await s.post('owner','/api/pockets/'+encodeURIComponent(created.pocket.key)+'/update',{revision:created.pocket.revision,name:'展柜A(主)'}); + await s.post('owner','/api/pockets/'+encodeURIComponent(created.pocket.key)+'/update',{revision:created.pocket.revision,name:'过期改名'},{expect:409,label:'pocket-stale'}); + ctx.pocket=renamed.pocket; + }, + + async function employeesAndPasswords(s,ctx){ + const list=await s.get('owner','/api/employees'); + await s.get('assistant','/api/employees',{expect:403}); + const created=await s.post('owner','/api/employees',{revision:list.revision??ctx.settingsRevision,label:'临时店员',loginName:'temp-clerk',password:PW.staff}); + ctx.staff=created.employee; + await s.post('staff','/api/login',{name:'temp-clerk',password:PW.staff},{label:'login-staff'}); + await s.get('staff','/api/state',{label:'staff-state'}); + let current=await s.get('owner','/api/employees',{label:'employees-after-create'}); + await s.post('owner','/api/employees/'+ctx.staff.member+'/update',{revision:current.revision,label:'临时店员甲'}); + current=await s.get('owner','/api/employees',{label:'employees-after-update'}); + await s.post('owner','/api/employees/'+ctx.staff.member+'/deactivate',{revision:current.revision,verified:true}); + await s.get('staff','/api/state',{expect:401,label:'staff-after-deactivate'}); + current=await s.get('owner','/api/employees',{label:'employees-after-deactivate'}); + await s.post('owner','/api/employees/'+ctx.staff.member+'/reactivate',{revision:current.revision,verified:true}); + current=await s.get('owner','/api/employees',{label:'employees-after-reactivate'}); + await s.post('owner','/api/employees/'+ctx.staff.member+'/delete',{revision:current.revision,verified:true}); + await s.get('owner','/api/employees',{label:'employees-after-delete'}); + await s.get('owner','/api/team-members'); + // 成员密码:老板为小昊设置新密码;店员修改本人密码。 + await s.post('assistant','/api/team-members/assistant2/password',{password:PW.assistant2New,verified:true},{expect:403}); + await s.post('owner','/api/team-members/assistant2/password',{password:'short',verified:true},{expect:400,label:'member-password-short'}); + await s.post('owner','/api/team-members/assistant2/password',{password:PW.assistant2New,verified:true}); + ctx.password.assistant2=PW.assistant2New; + await s.post('assistant2','/api/login',{name:'小昊',password:PW.assistant2New},{label:'login-assistant2-new-password'}); + await s.post('assistant','/api/password',{current:'wrong-current-pass',password:PW.assistantNew},{expect:400,label:'password-wrong-current'}); + await s.post('assistant','/api/password',{current:PW.assistant,password:PW.assistantNew}); + ctx.password.assistant=PW.assistantNew; + await s.get('assistant','/api/state',{expect:401,label:'state-after-own-password-change'}); + await s.post('assistant','/api/login',{name:'娜娜',password:PW.assistantNew},{label:'login-assistant-new-password'}); + }, + + async function openingStock(s,ctx){ + await s.post('owner','/api/stock',{date:D1,kind:'opening',pocket:'现货',grams:'100',note:'黄金对照起始库存'}); + await s.post('owner','/api/stock',{date:D1,kind:'opening',pocket:'金料',grams:'50',note:'黄金对照起始金料'}); + await s.post('owner','/api/stock',{date:D1,kind:'opening',pocket:ctx.pocket.key,grams:'20',note:'展柜起始'}); + await s.post('owner','/api/stock',{date:D1,kind:'transfer',pocket:'现货',to:'金料',grams:'5',note:'调拨'}); + const inc=await s.post('assistant','/api/stock',{date:D1,kind:'increase',pocket:'现货',grams:'2.5',note:'娜娜手动入库'});ctx.assistantMovement=inc; + const dec=await s.post('assistant','/api/stock',{date:D1,kind:'decrease',pocket:'现货',grams:'0.5',note:'娜娜手动出库'});ctx.assistantMovement2=dec; + await s.post('assistant2','/api/stock',{date:D1,kind:'opening',pocket:'现货',grams:'1'},{expect:403,label:'assistant-opening-denied'}); + await s.get('owner','/api/inventory',{label:'inventory-d1'}); + const movements=await s.get('owner','/api/inventory/movements',{label:'movements-d1'}); + const byGroup=group=>movements.movements.find(row=>row.group_id===group).id; + ctx.assistantMovement={id:byGroup(inc.group)};ctx.assistantMovement2={id:byGroup(dec.group)}; + }, + + async function materialPurchasesD1(s,ctx){ + const a=await s.post('assistant','/api/material-purchases',{date:D1,grams:'10',total:'9000',payer:'assistant',allocations:[{member:'assistant',amount:'9000'}],note:'娜娜购料'});ctx.purchaseA=a; + const o=await s.post('owner','/api/material-purchases',{date:D1,grams:'20',total:'18200',payer:'owner',note:'麦麦购料'});ctx.purchaseO=o; + await s.get('owner','/api/material-pools',{label:'material-pools-d1'}); + await s.get('assistant','/api/material-pools/'+D1,{label:'material-pool-detail-assistant'}); + await s.get('owner','/api/material-purchases/'+a.id,{label:'purchase-detail'}); + await s.post('assistant','/api/material-pools/quote',{member:'assistant',date:D1,entries:[{lineIndex:0,poolId:D1,mg:3000}]},{key:null,label:'material-pool-quote'}); + }, + + async function ordersD1(s,ctx){ + await s.get('assistant','/api/paper-number',{label:'paper-number'}); + await s.get('owner','/api/paper-number?date='+D1,{label:'paper-number-date'}); + // 1) 按克自动计价 + 附加项目 + 分项成本 + 直接费用(娜娜) + const perGram={date:D1,customer:'对照客户甲',internal_note:'#复购 内部备注',salesperson:'娜娜',payment_account:'助理微信',rounding_mode:'yuan',discount:'0', + lines:[{name:'足金999',unit:'g',quantity:'3.250',pocket:'现货',payer:'assistant',pricingMode:'auto',goldPrice:'950',laborRate:'30',laborMode:'gram',pieces:'1',charges:[{name:'刻字',amount:'20'},{name:'包装',amount:'5.5'}], + costParts:{material:'',labor:'40',accessories:'2',other:'0'},costMaterial:{mode:'gram',rate:'880'},costLabor:{mode:'total'},costPayers:{material:'owner',labor:'assistant'}}], + fee_items:[{key:'shipping',note:'快递',amount:'12',payer:'assistant'}],note:'客户单备注'}; + ctx.orderPerGram=(await s.post('assistant','/api/orders/issue',perGram,{label:'issue-per-gram'})).id; + // 2) 按件计价(件工费)+ 整单优惠 + 分位取整(小昊) + const perPiece={date:D1,customer:'对照客户乙',internal_note:'按件内部备注',salesperson:'小昊',payment_account:'助理2支付宝',rounding_mode:'cent',discount:'15.37', + lines:[{name:'足金999',unit:'g',quantity:'2',pocket:'现货',payer:'assistant2',pricingMode:'auto',goldPrice:'955.55',laborRate:'88',laborMode:'piece',pieces:'2',cost:'1800'}, + {name:'纯银925',unit:'件',quantity:'3',pocket:'',payer:'assistant2',sale:'99.9',cost:'30'}],fee_items:[]}; + ctx.orderPerPiece=(await s.post('assistant2','/api/orders/issue',perPiece,{label:'issue-per-piece'})).id; + // 3) 一口价 + 信用卡收款 + 元取整(麦麦为娜娜开单) + const fixed={date:D1,member:'assistant',customer:'对照客户丙',internal_note:'一口价备注',salesperson:'麦麦',payment_account:'麦麦信用卡',credit_card_fee_payer:'owner',rounding_mode:'yuan',discount:'3', + lines:[{name:'金镶玉吊坠',unit:'件',quantity:'1',pocket:'',payer:'owner',sale:'2888.4',cost:'1500',priceNote:'一口价'}],fee_items:[]}; + ctx.orderFixed=(await s.post('owner','/api/orders/issue',fixed,{label:'issue-fixed-credit-card'})).id; + // 4) 关联日购料池(娜娜) + const pooled={date:D1,customer:'对照客户丁',internal_note:'料池单备注',salesperson:'娜娜',payment_account:'助理现金',rounding_mode:'cent',discount:'0', + lines:[{name:'足金999',unit:'g',quantity:'3',pocket:'',payer:'assistant',pricingMode:'manual',sale:'3300',costParts:{material:'',labor:'0',accessories:'0',other:'0'},costMaterial:{mode:'pool',poolId:D1}}],fee_items:[]}; + ctx.orderPool=(await s.post('assistant','/api/orders/issue',pooled,{label:'issue-material-pool'})).id; + // 5) 先保存草稿再开单(麦麦) + const draft={date:D1,customer:'对照草稿客户',internal_note:'草稿单备注',salesperson:'麦麦',payment_account:'麦麦现金',lines:[{name:'足金手镯',unit:'g',quantity:'10',pocket:ctx.pocket.key,payer:'owner',sale:'9800',cost:'9000'}],fee_items:[]}; + const saved=await s.post('owner','/api/orders',draft,{label:'save-draft'});ctx.orderDraft=saved.id; + const draftDetail=await s.get('owner','/api/orders/'+saved.id,{label:'draft-detail'}); + await s.post('owner','/api/orders/issue',{...draft,id:saved.id,revision:draftDetail.revision},{label:'issue-from-draft'}); + // 6) 小昊第二单:用于取消申请 + ctx.orderCancel=(await s.post('assistant2','/api/orders/issue',{date:D1,customer:'对照取消客户',internal_note:'取消单备注',salesperson:'小昊',payment_account:'助理2现金',rounding_mode:'cent',lines:[{name:'足金戒指',unit:'g',quantity:'1.5',pocket:'现货',payer:'assistant2',sale:'1500',cost:'1300'}],fee_items:[]},{label:'issue-to-cancel'})).id; + // 6b) 小昊整单按克黄金:用于订单售后 + ctx.orderAfterSale=(await s.post('assistant2','/api/orders/issue',{date:D1,customer:'对照售后订单客户',internal_note:'售后单备注',salesperson:'小昊',payment_account:'助理2微信',rounding_mode:'cent',lines:[{name:'足金手链',unit:'g',quantity:'5',pocket:'现货',payer:'assistant2',sale:'5000',costParts:{material:'4400',labor:'100',accessories:'0',other:'0'}}],fee_items:[]},{label:'issue-for-after-sale'})).id; + // 7) 娜娜第三单:用于驳回的修改申请与归属变更 + ctx.orderReject=(await s.post('assistant','/api/orders/issue',{date:D1,customer:'对照驳回客户',internal_note:'驳回单备注',salesperson:'娜娜',payment_account:'助理支付宝',rounding_mode:'cent',lines:[{name:'足金耳钉',unit:'g',quantity:'0.8',pocket:'现货',payer:'assistant',sale:'820',cost:'700'}],fee_items:[]},{label:'issue-to-reject'})).id; + // 8) 分步生命周期:草稿 → 确认 → 部分收款 → 补收款 → 交付(麦麦) + const step={date:D1,customer:'对照分步客户',internal_note:'分步单备注',salesperson:'麦麦',payment_account:'麦麦支付宝',rounding_mode:'cent',lines:[{name:'足金项链',unit:'g',quantity:'4',pocket:'现货',payer:'owner',sale:'4000',cost:'3500'}],fee_items:[]}; + ctx.orderSteps=(await s.post('owner','/api/orders',step,{label:'save-draft-steps'})).id; + let o=await s.get('owner','/api/orders/'+ctx.orderSteps,{label:'steps-draft'}); + await s.post('owner','/api/orders/'+ctx.orderSteps+'/confirm',{date:D1},{label:'steps-confirm'}); + o=await s.get('owner','/api/orders/'+ctx.orderSteps,{label:'steps-confirmed'}); + await s.post('owner','/api/orders/'+ctx.orderSteps+'/receipt',{date:D1,amount:'1000',account:'麦麦支付宝',verified:true,reference:'定金'},{label:'steps-receipt-deposit'}); + await s.post('owner','/api/orders/'+ctx.orderSteps+'/receipt',{date:D1,amount:'99999',account:'麦麦支付宝',verified:true},{expect:400,label:'steps-receipt-too-much'}); + await s.post('owner','/api/orders/'+ctx.orderSteps+'/receipt',{date:D1,amount:'3000',account:'麦麦信用卡',credit_card_fee_payer:'owner',verified:true,reference:'尾款'},{label:'steps-receipt-balance'}); + await s.post('owner','/api/orders/'+ctx.orderSteps+'/complete',{date:D1,verified:true},{label:'steps-complete'}); + await s.get('owner','/api/orders/'+ctx.orderSteps,{label:'steps-delivered'}); + // 校验失败的开单不落库 + await s.post('assistant','/api/orders/issue',{...perGram,lines:[{...perGram.lines[0],quantity:'-1'}]},{expect:400,label:'issue-invalid-quantity'}); + for(const id of [ctx.orderPerGram,ctx.orderPerPiece,ctx.orderFixed,ctx.orderPool,ctx.orderDraft])await s.get('owner','/api/orders/'+id,{label:'order-detail'}); + await s.get('assistant','/api/orders/'+ctx.orderPerGram+'/public',{label:'order-public'}); + await s.get('owner','/api/order-note-tags'); + await s.get('assistant','/api/order-note-tags',{label:'order-note-tags-assistant'}); + }, + + async function printing(s,ctx){ + const html=await s.getRaw('assistant','/print/'+ctx.orderPerGram,{label:'print-order'}); + await s.getRaw('owner','/print/'+ctx.orderFixed+'?mode=customer',{label:'print-order-mode'}); + const status=await s.get('assistant','/api/print-status/order/'+ctx.orderPerGram); + await s.post('assistant','/api/print-status/order/'+ctx.orderPerGram,{printed:true,revision:status.revision,sourceRevision:status.sourceRevision}); + const after=await s.get('assistant','/api/print-status/order/'+ctx.orderPerGram,{label:'print-status-after'}); + await s.post('assistant','/api/print-status/order/'+ctx.orderPerGram,{printed:false,revision:after.revision,sourceRevision:after.sourceRevision},{label:'print-status-unset'}); + await s.get('assistant2','/api/print-status/order/'+ctx.orderPerGram,{expect:404,label:'print-status-foreign'}); + await s.getRaw('assistant2','/print/'+ctx.orderPerGram,{expect:404,label:'print-foreign'}); + return html; + }, + + async function priceLocksD1(s,ctx){ + const creation=(extra={})=>({date:D1,member:'assistant',customer:'对照锁价客户',salesperson:'娜娜',note:'锁价备注',line:{name:'足金999',quantity:'3.000',goldPrice:'900',laborRate:'20',laborMode:'gram',pieces:'1',charges:[]},discount:'0',payment:{amount:'2700',account:'助理微信',verified:true},material:{rate:'850',payer:'owner',verified:true},...extra}); + ctx.lockA=(await s.post('assistant','/api/price-locks',creation(),{label:'lock-create'})).id; + ctx.lockB=(await s.post('assistant','/api/price-locks',creation({customer:'对照锁价客户二',payment:{amount:'1000',account:'助理支付宝',verified:true}}),{label:'lock-create-2'})).id; + ctx.lockC=(await s.post('assistant2','/api/price-locks',creation({member:'assistant2',salesperson:'小昊',customer:'对照锁价客户三',payment:{amount:'500',account:'助理2微信',verified:true},material:{rate:'860',payer:'assistant2',verified:true}}),{label:'lock-create-3'})).id; + ctx.lockD=(await s.post('owner','/api/price-locks',creation({member:'owner',salesperson:'麦麦',customer:'对照锁价客户四',payment:{amount:'800',account:'麦麦微信',verified:true}}),{label:'lock-create-owner'})).id; + await s.get('assistant','/api/price-locks',{label:'price-locks-assistant'}); + await s.get('owner','/api/price-locks?status=all',{label:'price-locks-owner-all'}); + await s.get('assistant','/api/price-locks/'+ctx.lockA); + await s.get('assistant2','/api/price-locks/'+ctx.lockA+'/edit-context',{expect:404,label:'lock-foreign'}); + // 当天直接修改(同日店员可直改) + const context=await s.get('assistant','/api/price-locks/'+ctx.lockB+'/edit-context'); + await s.post('assistant','/api/price-locks/'+ctx.lockB+'/edit',{...context.inputs,revision:context.revision,reason:'当天更正收款',verified:true,payment:{...context.inputs.payment,amount:'1200'}},{label:'lock-edit-same-day'}); + }, + + async function afterSalesStandalone(s,ctx){ + const created=await s.post('assistant','/api/after-sales',{date:D1,project:'对照改圈',customer:'对照售后客户',amount:'8.50',payer:'assistant'}); + ctx.afterSale=created.after_sale_id; + await s.get('assistant','/api/after-sales/'+ctx.afterSale); + await s.get('assistant2','/api/after-sales/'+ctx.afterSale,{expect:404,label:'after-sale-foreign'}); + await s.post('owner','/api/after-sales',{date:D1,project:'对照清洗',customer:'对照售后客户二',amount:'0',payer:'owner'},{label:'after-sale-owner-zero'}); + await s.post('assistant','/api/after-sales',{date:D1,project:'对照改圈',customer:'对照售后客户',amount:'-1',payer:'assistant'},{expect:400,label:'after-sale-invalid'}); + }, + + async function templates(s,ctx){ + const preset={customer:'',salesperson:'娜娜',payment_account:'助理微信',discount:'0',rounding_mode:'cent',lines:[{name:'足金999',unit:'g',quantity:'1',pocket:'现货',payer:'assistant',pricingMode:'auto',goldPrice:'950',laborMode:'gram',laborRate:'30',pieces:'1',charges:[],costParts:{material:'880',labor:'20',accessories:'0',other:'0'}}],fee_items:[]}; + const t=await s.post('owner','/api/order-templates',{name:'对照常用模板',member:'assistant',preset}); + ctx.template=t.id||t.template?.id; + await s.get('owner','/api/order-templates'); + await s.get('assistant','/api/order-templates',{label:'order-templates-assistant'}); + await s.get('owner','/api/order-templates/'+ctx.template); + const current=await s.get('owner','/api/order-templates/'+ctx.template,{label:'template-before-update'}); + await s.post('owner','/api/order-templates/'+ctx.template+'/update',{name:'对照常用模板(改)',member:'assistant',preset,revision:current.revision}); + const t2=await s.post('assistant','/api/order-templates',{name:'娜娜自建模板',member:'assistant',preset},{label:'template-assistant'}); + const id2=t2.id||t2.template?.id;const c2=await s.get('assistant','/api/order-templates/'+id2,{label:'template2'}); + await s.post('assistant','/api/order-templates/'+id2+'/delete',{revision:c2.revision},{label:'template-delete'}); + await s.get('owner','/api/order-templates',{label:'order-templates-final'}); + }, + + async function fundsD1(s,ctx){ + const r=await s.post('assistant','/api/reimbursements',{date:D1,items:[{name:'对照邮寄',amount:'15',member:'owner',sourceType:'independent'},{name:'对照包装',amount:'6.5',member:'owner',sourceType:'independent'}],note:'对照报销'}); + ctx.reimbursement=r.id; + await s.get('assistant','/api/reimbursements',{label:'reimbursements-assistant'}); + await s.get('owner','/api/reimbursements?status=pending',{label:'reimbursements-pending'}); + await s.get('assistant','/api/reimbursement-funding-options?date='+D1,{label:'reimbursement-options'}); + await s.post('assistant','/api/reimbursements/'+r.id+'/update',{date:D1,items:[{name:'对照邮寄',amount:'15',member:'owner',sourceType:'independent'},{name:'对照包装',amount:'6.5',member:'owner',sourceType:'independent'}],note:'补充备注',revision:1},{label:'reimbursement-update'}); + await s.post('assistant','/api/reimbursements/'+r.id+'/approve',{revision:2,verified:true},{expect:403,label:'reimbursement-self-approve'}); + await s.post('owner','/api/reimbursements/'+r.id+'/approve',{revision:2,verified:true}); + const r2=await s.post('assistant2','/api/reimbursements',{date:D1,items:[{name:'对照快递',amount:'9',member:'owner',sourceType:'independent'}]},{label:'reimbursement-2'}); + await s.post('owner','/api/reimbursements/'+r2.id+'/reject',{revision:1,note:'凭据不全'},{label:'reimbursement-reject'}); + const daily=await s.get('owner','/api/daily-funds?date='+D1); + await s.get('assistant','/api/daily-funds?date='+D1,{label:'daily-funds-assistant'}); + await s.post('owner','/api/daily-funds/confirm',{date:D1,amount:'0',revision:daily.revision??0,sourceRevision:daily.sources?.revision,verified:true},{expect:'any',label:'daily-outlay-confirm'}); + await transfer(s,D1,'/api/team-funds/transfers','对照转账'); + await s.post('assistant','/api/team-funds/transfers',{date:D1,fromMember:'assistant',toMember:'owner',amount:'1',verified:true},{expect:403,label:'transfer-assistant-denied'}); + await s.get('owner','/api/team-funds?date='+D1); + await s.get('assistant','/api/team-funds?date='+D1,{expect:403,label:'team-funds-assistant-denied'}); + }, + + async function peopleAndPrivate(s,ctx){ + const pc=await s.get('owner','/api/people-count?date='+D1); + await s.post('owner','/api/people-count',{date:D1,count:12,assistant1Count:5,assistant2Count:3,revision:pc.revision}); + await s.get('owner','/api/people-count-history'); + await s.get('assistant','/api/people-count?date='+D1,{expect:403,label:'people-count-assistant-denied'}); + await s.post('owner','/api/private-operations/people',{date:D1,member:'assistant',total_count:100,new_count:10,revision:0}); + await s.get('owner','/api/private-operations',{label:'private-ops'}); + await s.get('owner','/api/private-operations/people?date='+D1+'&member=assistant',{label:'private-ops-entry'}); + await s.get('owner','/api/private-operations/people-history?member=assistant',{label:'private-ops-history'}); + await s.get('assistant','/api/private-operations',{expect:403,label:'private-ops-assistant-denied'}); + }, + + async function inventoryReviewAndCloseD1(s,ctx){ + const inv=await s.get('owner','/api/inventory',{label:'inventory-before-review'}); + await s.post('owner','/api/inventory/review',{date:D1,verified:true,revision:inv.revision}); + await s.get('owner','/api/inventory/snapshots'); + await s.post('assistant','/api/close',{date:D1,basis:'orderDate'},{expect:403,label:'close-assistant-denied'}); + await s.post('owner','/api/close',{date:D1,basis:'wrong'},{expect:400,label:'close-invalid-basis'}); + await s.post('owner','/api/close',{date:D1,basis:'orderDate'},{label:'close-d1'}); + await s.get('owner','/api/report?date='+D1+'&basis=orderDate',{label:'report-d1-owner'}); + }, + + // ───────── 第二天:跨天申请与审批 ───────── + async function dayTwoLogin(s,ctx){ + await s.day(D2); + await s.get('owner','/api/state',{expect:401,label:'session-expired-next-day'}); + await loginAll(s,ctx); + }, + + async function inventoryApprovals(s,ctx){ + const id=ctx.assistantMovement.id||ctx.assistantMovement.movementId; + const detail=await s.get('assistant','/api/inventory/movements/'+id); + await s.get('assistant2','/api/inventory/movements/'+id,{expect:404,label:'movement-foreign'}); + const req=await s.post('assistant','/api/inventory/movements/'+id+'/update',{...detail.values,revision:detail.revision,grams:'3',reason:'跨天更正克重'},{label:'movement-update-request'}); + ctx.inventoryRequest=req.requestId; + await s.get('assistant','/api/inventory/changes',{label:'inventory-changes-assistant'}); + const request=await s.get('owner','/api/inventory/changes/'+req.requestId); + await s.post('assistant','/api/inventory/changes/'+req.requestId+'/approve',{revision:request.revision,inventoryRevision:request.inventoryRevision,verified:true},{expect:403,label:'inventory-self-approve'}); + await s.post('owner','/api/inventory/changes/'+req.requestId+'/approve',{revision:request.revision,inventoryRevision:request.inventoryRevision,verified:true},{label:'inventory-approve'}); + const id2=ctx.assistantMovement2.id||ctx.assistantMovement2.movementId; + const d2=await s.get('assistant','/api/inventory/movements/'+id2,{label:'movement2'}); + const del=await s.post('assistant','/api/inventory/movements/'+id2+'/delete',{revision:d2.revision,reason:'跨天删除申请',verified:true},{label:'movement-delete-request'}); + const r2=await s.get('owner','/api/inventory/changes/'+del.requestId,{label:'inventory-delete-request'}); + await s.post('owner','/api/inventory/changes/'+del.requestId+'/reject',{revision:r2.revision,note:'保留原记录'},{label:'inventory-reject'}); + // 当天本人手动库存直接生效 + const today=await s.post('assistant','/api/stock',{date:D2,kind:'increase',pocket:'金料',grams:'1',note:'当天手动入库'},{label:'stock-same-day'}); + const list=await s.get('assistant','/api/inventory/movements',{label:'movements-assistant-d2'}); + const tid=list.movements.find(row=>row.group_id===today.group).id;const td=await s.get('assistant','/api/inventory/movements/'+tid,{label:'movement-same-day'}); + await s.post('assistant','/api/inventory/movements/'+tid+'/update',{...td.values,revision:td.revision,grams:'1.2',reason:'当天更正'},{label:'movement-update-direct'}); + // 老板直接删除 + const od=await s.get('owner','/api/inventory/movements/'+tid,{label:'movement-owner-view'}); + await s.post('owner','/api/inventory/movements/'+tid+'/delete',{revision:od.revision,reason:'老板删除',verified:true},{label:'movement-delete-owner'}); + await s.get('owner','/api/inventory/changes?status=all',{label:'inventory-changes-all'}); + }, + + async function orderChangesAndApprovals(s,ctx){ + const route='/api/orders/'+ctx.orderPerGram; + const info=await s.get('assistant',route+'/edit',{label:'order-edit-context'}); + const body={...info.inputs,revision:info.revision,reason:'跨天修改客户名',verified:true,customer:'对照客户甲(改)'}; + await s.post('assistant',route+'/edit',body,{expect:403,label:'order-edit-cross-day-denied'}); + const change=await s.post('assistant',route+'/change',body,{label:'order-change-request'}); + await s.get('assistant',route+'/change',{label:'order-change-context'}); + await s.get('owner','/api/order-changes',{label:'order-changes-list'}); + const req=await s.get('owner','/api/order-changes/'+change.requestId,{label:'order-change-detail'}); + await s.post('assistant','/api/order-changes/'+change.requestId+'/approve',{revision:info.revision,verified:true,note:'自批'},{expect:403,label:'order-change-self-approve'}); + await s.post('owner','/api/order-changes/'+change.requestId+'/approve',{revision:0,verified:true,note:'旧版本'},{expect:409,label:'order-change-stale'}); + await s.post('owner','/api/order-changes/'+change.requestId+'/approve',{revision:req.order_revision??info.revision,verified:true,note:'凭据已核对'},{label:'order-change-approve'}); + // 驳回的修改申请 + const r2=ctx.orderReject;const info2=await s.get('assistant','/api/orders/'+r2+'/edit',{label:'order-edit-context-2'}); + const ch2=await s.post('assistant','/api/orders/'+r2+'/change',{...info2.inputs,revision:info2.revision,reason:'想改售价',verified:true,lines:info2.inputs.lines.map(l=>({...l,sale:'800'}))},{label:'order-change-request-2'}); + await s.post('owner','/api/order-changes/'+ch2.requestId+'/reject',{note:'售价无误'},{label:'order-change-reject'}); + // 补记费用申请(action) + const info3=await s.get('assistant','/api/orders/'+ctx.orderPool+'/change',{label:'order-change-actions'}); + const exp=await s.post('assistant','/api/orders/'+ctx.orderPool+'/change',{action:'expense',date:D2,revision:info3.revision,reason:'补记快递',verified:true,amount:'10',payer:'assistant',note:'补寄快递'},{label:'order-expense-request'}); + await s.post('owner','/api/order-changes/'+exp.requestId+'/approve',{revision:info3.revision,verified:true,note:'核实'},{label:'order-expense-approve'}); + // 老板直接修改历史订单 + const oi=await s.get('owner','/api/orders/'+ctx.orderFixed+'/edit',{label:'owner-edit-context'}); + await s.post('owner','/api/orders/'+ctx.orderFixed+'/edit',{...oi.inputs,revision:oi.revision,reason:'老板更正备注',verified:true,note:'老板改备注'},{label:'owner-edit-order'}); + // 取消申请 + 批准 + const ci=await s.get('assistant2','/api/orders/'+ctx.orderCancel+'/cancellation',{label:'cancellation-context'}); + const cr=await s.post('assistant2','/api/orders/'+ctx.orderCancel+'/cancellation',{revision:ci.revision,reason:'重复录入'},{label:'cancellation-request'}); + await s.get('owner','/api/order-cancellations',{label:'cancellations-list'}); + const cd=await s.get('owner','/api/order-cancellations/'+cr.requestId,{label:'cancellation-detail'}); + await s.post('assistant2','/api/order-cancellations/'+cr.requestId+'/approve',{revision:ci.revision,verified:true,note:'自批'},{expect:403,label:'cancellation-self-approve'}); + await s.post('owner','/api/order-cancellations/'+cr.requestId+'/approve',{revision:cd.order_revision??ci.revision,verified:true,note:'核对原单后确认'},{label:'cancellation-approve'}); + // 取消后的实际退款(麦麦) + const cancelled=await s.get('owner','/api/orders/'+ctx.orderCancel,{label:'cancelled-order'}); + await s.post('owner','/api/orders/'+ctx.orderCancel+'/refund',{date:D2,amount:(cancelled.netReceived/100).toFixed(2),account:'助理2现金',verified:true,reference:'退回客户'},{expect:409,label:'refund-cancelled-voided'}); + // 归属变更:老板直接改归属到小昊 + const own=await s.get('owner','/api/orders/'+ctx.orderReject+'/ownership',{label:'ownership-context'}); + await s.post('owner','/api/orders/'+ctx.orderReject+'/ownership',{member:'assistant2',revision:own.revision,reason:'核实业务归属',verified:true},{label:'ownership-direct'}); + await s.get('assistant','/api/orders/'+ctx.orderReject,{expect:404,label:'order-after-ownership-old-owner'}); + await s.get('assistant2','/api/orders/'+ctx.orderReject,{label:'order-after-ownership-new-owner'}); + // 店员申请归属变更 → 老板驳回 + const own2=await s.get('assistant','/api/orders/'+ctx.orderFixed+'/ownership',{label:'ownership-context-assistant'}); + const or=await s.post('assistant','/api/orders/'+ctx.orderFixed+'/ownership',{member:'assistant2',revision:own2.revision,reason:'申请转给小昊',verified:true},{label:'ownership-request'}); + await s.get('owner','/api/order-ownership-changes',{label:'ownership-changes-list'}); + await s.get('owner','/api/order-ownership-changes/'+or.requestId,{label:'ownership-change-detail'}); + await s.post('owner','/api/order-ownership-changes/'+or.requestId+'/reject',{note:'不转'},{label:'ownership-reject'}); + const ci2=await s.get('assistant','/api/orders/'+ctx.orderPool+'/cancellation',{label:'cancellation-context-2'}); + const cr2=await s.post('assistant','/api/orders/'+ctx.orderPool+'/cancellation',{revision:ci2.revision,reason:'客户想退'},{label:'cancellation-request-2'}); + await s.post('owner','/api/order-cancellations/'+cr2.requestId+'/reject',{note:'已交付不取消'},{label:'cancellation-reject'}); + }, + + async function orderAfterSale(s,ctx){ + const id=ctx.orderAfterSale,route='/api/orders/'+id; + await s.get('assistant2',route+'/after-sale',{label:'order-after-sale-context'}); + const detail=await s.get('assistant2',route,{label:'order-before-after-sale'}); + const body={date:D2,revision:detail.revision,verified:true,reason:'客户退回一件',afterSale:{lines:[{lineIndex:0,quantity:'1.000',pocket:'金料',disposition:'scrap'}],refund:{amount:'900',account:'助理2支付宝',payer:'assistant2'},deductionReason:'客户确认扣费',expenses:[]}}; + await s.post('assistant2',route+'/after-sale-preview',body,{key:null,label:'after-sale-preview'}); + const req=await s.post('assistant2',route+'/change',{...body,action:'return'},{label:'after-sale-request'}); + await s.get('owner','/api/order-changes/'+req.requestId,{label:'after-sale-request-detail'}); + await s.post('owner','/api/order-changes/'+req.requestId+'/approve',{revision:detail.revision,verified:true,note:'实物已收回'},{label:'after-sale-approve'}); + await s.get('assistant2','/api/returned-stock-lots?date='+D2,{label:'returned-stock-lots'}); + await s.get('assistant2',route+'/after-sale',{label:'order-after-sale-after'}); + // 售后单修改与审批(独立售后跨天修改需申请) + const as=await s.get('assistant','/api/after-sales/'+ctx.afterSale,{label:'after-sale-detail-d2'}); + const up=await s.post('assistant','/api/after-sales/'+ctx.afterSale+'/update',{...as.values,revision:as.revision,amount:'9.50',reason:'金额录错'},{label:'after-sale-update-request'}); + await s.get('owner','/api/after-sales/changes',{label:'after-sale-changes'}); + const rid=up.requestId||up.id; + await s.get('owner','/api/after-sales/changes/'+rid,{label:'after-sale-change-detail'}); + await s.post('owner','/api/after-sales/changes/'+rid+'/approve',{revision:1,note:'核实',verified:true},{label:'after-sale-change-approve'}); + const as2=await s.get('assistant','/api/after-sales/'+ctx.afterSale,{label:'after-sale-detail-after-approve'}); + const up2=await s.post('assistant','/api/after-sales/'+ctx.afterSale+'/update',{...as2.values,revision:as2.revision,amount:'12',reason:'再次调整'},{label:'after-sale-update-request-2'}); + await s.post('owner','/api/after-sales/changes/'+(up2.requestId||up2.id)+'/reject',{revision:1,note:'金额无误'},{label:'after-sale-change-reject'}); + }, + + async function priceLocksD2(s,ctx){ + // 跨天店员修改须申请 → 老板批准 + const c=await s.get('assistant','/api/price-locks/'+ctx.lockA+'/edit-context',{label:'lock-edit-context-d2'}); + await s.post('assistant','/api/price-locks/'+ctx.lockA+'/edit',{...c.inputs,revision:c.revision,reason:'改客户名',verified:true,customer:'对照锁价客户(改)'},{expect:403,label:'lock-edit-cross-day-denied'}); + const req=await s.post('assistant','/api/price-locks/'+ctx.lockA+'/change-requests',{...c.inputs,action:'edit',revision:c.revision,reason:'改客户名',verified:true,customer:'对照锁价客户(改)'},{label:'lock-change-request'}); + await s.get('owner','/api/price-lock-changes',{label:'lock-changes-list'}); + const rd=await s.get('owner','/api/price-lock-changes/'+req.requestId,{label:'lock-change-detail'}); + await s.post('owner','/api/price-lock-changes/'+req.requestId+'/approve',{revision:rd.price_lock_revision??c.revision,verified:true,note:'核实'},{label:'lock-change-approve'}); + // 取消申请 → 驳回 + const cc=await s.get('assistant2','/api/price-locks/'+ctx.lockC+'/edit-context',{label:'lock-c-context'}); + const cr=await s.post('assistant2','/api/price-locks/'+ctx.lockC+'/change-requests',{action:'cancel',revision:cc.revision,reason:'客户不要了',verified:true},{label:'lock-cancel-request'}); + await s.post('owner','/api/price-lock-changes/'+cr.requestId+'/reject',{note:'客户仍要'},{label:'lock-cancel-reject'}); + // 老板直接取消 + const dc=await s.get('owner','/api/price-locks/'+ctx.lockD+'/edit-context',{label:'lock-d-context'}); + await s.post('owner','/api/price-locks/'+ctx.lockD+'/cancel',{revision:dc.revision,reason:'录错作废',verified:true},{label:'lock-cancel-owner'}); + // 交付 + const lock=await s.get('assistant','/api/price-locks/'+ctx.lockA,{label:'lock-before-deliver'}); + await s.post('assistant','/api/price-locks/'+ctx.lockA+'/deliver',{date:D2,revision:lock.revision,verified:true,line:{quantity:'3.100',laborRate:'20',laborMode:'gram',pieces:'1',charges:[{name:'服务',amount:'10'}],payer:'assistant',costParts:{labor:'30',accessories:'0',other:'0'},costPayers:{material:'owner',labor:'assistant'}},discount:'0',extraMaterial:{rate:'900',payer:'assistant',verified:true},inventory:{pocket:'现货',original:'receive',extra:'receive'},settlement:{amount:'162',account:'助理支付宝',verified:true},fee_items:[{key:'shipping',note:'实际快递',amount:'6',payer:'owner'}]},{label:'lock-deliver'}); + await s.get('owner','/api/price-locks?status=all',{label:'price-locks-after'}); + await s.get('assistant','/api/state',{label:'state-after-lock-deliver'}); + }, + + // 置换(以旧换新):第二天登记,第三天跨天更正走审批。 + // 直接回收放到第三天:已知问题——直接回收与订单售后同时存在时,回收次日起料池读取失败(见 knownIssue 各节与报告)。 + async function exchangesD2(s,ctx){ + const exchange=(member,extra={},ex={})=>({mode:'exchange',date:D2,customer:'对照换货客户',salesperson:member==='assistant'?'娜娜':'小昊',old_lines:[{name:'Au旧料',incoming_weight:'8',melted_weight:'8',purity:'99.9'}],buy_rate:'900',payer:member,payment_account:ACCOUNT[member],verified:true, + exchange:{name:'足金对照新货',quantity:'12',pocket:'现货',gold_price:'1000',labor_rate:'20',labor_mode:'gram',depreciation_rate:'10',cost_material:{mode:'gram',rate:'900'},cost_labor:{mode:'gram',rate:'5'},cost_payer:member,discount:'0',rounding_mode:'cent',...ex},...extra}); + await s.post('assistant2','/api/recoveries/quote',exchange('assistant2'),{key:null,label:'exchange-quote'}); + ctx.recoveryExchange=(await s.post('assistant2','/api/recoveries',exchange('assistant2'),{label:'recovery-exchange'})).id; + ctx.recoveryExchange2=(await s.post('assistant','/api/recoveries',exchange('assistant',{customer:'对照换货客户二',old_lines:[{name:'Au旧料',incoming_weight:'5',melted_weight:'4.9',purity:'99'}]},{quantity:'6',discount:'10',rounding_mode:'yuan'}),{label:'recovery-exchange-2'})).id; + await s.get('assistant2','/api/recoveries',{label:'recoveries-assistant2'}); + await s.get('owner','/api/recoveries',{label:'recoveries-owner'}); + await s.get('assistant2','/api/recoveries/'+ctx.recoveryExchange,{label:'recovery-exchange-detail'}); + await s.get('assistant','/api/recoveries/'+ctx.recoveryExchange,{expect:404,label:'recovery-foreign'}); + await s.getRaw('assistant2','/print/recoveries/'+ctx.recoveryExchange,{label:'print-exchange'}); + const st=await s.get('assistant2','/api/print-status/recovery/'+ctx.recoveryExchange,{label:'print-status-recovery'}); + await s.post('assistant2','/api/print-status/recovery/'+ctx.recoveryExchange,{printed:true,revision:st.revision,sourceRevision:st.sourceRevision},{label:'print-status-recovery-set'}); + const detail=await s.get('assistant2','/api/recoveries/'+ctx.recoveryExchange,{label:'recovery-exchange-detail-after-print'}); + if(detail.order_id)await s.getRaw('assistant2','/print/'+detail.order_id,{label:'print-exchange-order'}); + // 客户寄存料 + await s.post('assistant','/api/customer-materials',{date:D2,grams:'1.5',memo:'对照寄存袋',verified:true}); + await s.post('assistant','/api/customer-materials',{date:D2,grams:'1.5',memo:'对照寄存袋',verified:false},{expect:400,label:'customer-material-unverified'}); + for(const role of ROLES)await s.get(role,'/api/customer-materials',{label:'customer-materials-'+role}); + }, + + async function sameDayD2(s,ctx){ + const base={date:D2,customer:'当天客户',internal_note:'当天单备注',salesperson:'娜娜',payment_account:'助理微信',rounding_mode:'cent',lines:[{name:'足金吊坠',unit:'g',quantity:'2',pocket:'现货',payer:'assistant',sale:'2100',cost:'1800'}],fee_items:[]}; + const a=(await s.post('assistant','/api/orders/issue',base,{label:'issue-d2'})).id;ctx.orderD2=a; + const info=await s.get('assistant','/api/orders/'+a+'/edit',{label:'same-day-edit-context'}); + await s.post('assistant','/api/orders/'+a+'/edit',{...info.inputs,revision:info.revision,reason:'当天改客户',verified:true,customer:'当天客户(改)'},{label:'same-day-edit-direct'}); + const d=await s.get('assistant','/api/orders/'+a,{label:'order-d2-detail'}); + await s.post('assistant','/api/orders/'+a+'/expense',{date:D2,revision:d.revision,reason:'当天快递',verified:true,amount:'8',payer:'assistant',note:'当天快递'},{label:'same-day-expense'}); + // 当天店员申请转归属 → 麦麦批准 + const own=await s.get('assistant','/api/orders/'+a+'/ownership',{label:'ownership-context-same-day'}); + const or=await s.post('assistant','/api/orders/'+a+'/ownership',{member:'assistant2',revision:own.revision,reason:'实际由小昊接待',verified:true},{label:'ownership-request-same-day'}); + const ord=await s.get('owner','/api/order-ownership-changes/'+or.requestId,{label:'ownership-request-detail'}); + await s.post('owner','/api/order-ownership-changes/'+or.requestId+'/approve',{revision:ord.revision??own.revision,verified:true,note:'核实'},{label:'ownership-approve'}); + const b=(await s.post('assistant','/api/orders/issue',{...base,customer:'当天取消客户'},{label:'issue-d2-cancel'})).id; + const bd=await s.get('assistant','/api/orders/'+b,{label:'order-d2-cancel-detail'}); + await s.post('assistant','/api/orders/'+b+'/canceltoday',{date:D2,revision:bd.revision,reason:'当天录错',verified:true},{label:'cancel-today'}); + await s.post('assistant','/api/orders/'+ctx.orderPool+'/canceltoday',{date:D2,revision:1,reason:'跨天不可',verified:true},{expect:[403,409],label:'cancel-today-old-denied'}); + // 店员不能直接收款旧单(需申请) + await s.post('owner','/api/orders/'+ctx.orderFixed+'/settlement',{date:D2,amount:'1',direction:'toOwner',verified:true},{expect:400,label:'settlement-team-mode-denied'}); + await s.post('assistant','/api/orders/'+ctx.orderPool+'/receipt',{date:D2,amount:'1',account:'助理微信',verified:true},{expect:[400,403,409],label:'receipt-denied'}); + }, + + async function fundsD2(s,ctx){ + await transfer(s,D2,'/api/team-funds/transfer','对照转账二'); + await s.get('owner','/api/team-funds?date='+D2,{label:'team-funds-d2'}); + await s.get('owner','/api/team-profits?month=2026-11',{label:'team-profits'}); + await s.get('owner','/api/team-profits',{label:'team-profits-default'}); + await s.get('assistant','/api/team-profits',{expect:403,label:'team-profits-denied'}); + for(const role of ROLES)await s.get(role,'/api/daily-funds?date='+D2,{label:'daily-funds-d2-'+role}); + const pc=await s.get('owner','/api/people-count?date='+D2,{label:'people-count-d2'}); + await s.post('owner','/api/people-count',{date:D2,assistant1Count:7,assistant2Count:4,revision:pc.revision},{label:'people-count-d2-save'}); + await s.get('owner','/api/people-count-history?from='+D1+'&date='+D2,{label:'people-count-history-range'}); + }, + + async function materialChanges(s,ctx){ + const preview=await s.get('owner','/api/material-pools/rolling-preview',{label:'rolling-preview-before-enable'}); + await s.post('assistant','/api/material-pools/rolling-enable',{date:D2,revision:preview.revision,verified:true},{expect:403,label:'rolling-enable-denied'}); + await s.post('owner','/api/material-pools/rolling-enable',{date:D2,revision:preview.revision,verified:true},{label:'rolling-enable'}); + await s.post('assistant','/api/material-purchases',{date:D2,grams:'5',total:'4600',payer:'assistant',allocations:[{member:'assistant',amount:'4600'}],note:'第二天购料'},{label:'purchase-d2'}); + await s.post('assistant2','/api/material-purchases',{date:D2,grams:'4',total:'3700',payer:'assistant2',allocations:[{member:'assistant2',amount:'3700'}]},{label:'purchase-d2-xiaohao'}); + const detail=await s.get('assistant','/api/material-purchases/'+ctx.purchaseA.id,{label:'purchase-detail-d2'}); + await s.post('assistant','/api/material-purchases/'+ctx.purchaseA.id+'/edit',{date:D1,grams:'11',total:'9900',payer:'assistant',note:'直接改',revision:detail.purchase.revision},{expect:[403,409],label:'purchase-edit-cross-day-denied'}); + const req=await s.post('assistant','/api/material-purchases/'+ctx.purchaseA.id+'/change',{date:D1,grams:'11',total:'9900',payer:'assistant',allocations:[{member:'assistant',amount:'9900'}],note:'核对凭据',revision:detail.purchase.revision,action:'edit',reason:'核对原始购料凭据后申请',verified:true},{label:'purchase-change-request'}); + ctx.purchaseChange=req.id; + await s.get('owner','/api/material-purchase-changes',{label:'purchase-changes-list'}); + await s.get('assistant','/api/material-purchase-changes/'+req.id,{label:'purchase-change-detail'}); + await s.post('assistant','/api/material-purchase-changes/'+req.id+'/approve',{revision:1,verified:true,note:'自批'},{expect:403,label:'purchase-change-self-approve'}); + await s.post('owner','/api/material-purchase-changes/'+req.id+'/approve',{revision:1,verified:true,note:'已核对付款凭据'},{label:'purchase-change-approve'}); + const again=await s.get('assistant','/api/material-purchases/'+ctx.purchaseA.id,{label:'purchase-detail-after-approve'}); + const del=await s.post('assistant','/api/material-purchases/'+ctx.purchaseA.id+'/change',{revision:again.purchase.revision,action:'delete',reason:'申请删除历史购料',verified:true},{label:'purchase-delete-request'}); + await s.post('owner','/api/material-purchase-changes/'+del.id+'/reject',{note:'购料真实存在'},{label:'purchase-change-reject'}); + const od=await s.get('owner','/api/material-purchases/'+ctx.purchaseO.id,{label:'purchase-owner-detail'}); + await s.post('owner','/api/material-purchases/'+ctx.purchaseO.id+'/edit',{date:D1,grams:'20',total:'18400',payer:'owner',note:'老板改价',revision:od.purchase.revision},{expect:409,label:'purchase-edit-owner-frozen'}); + const p3=await s.post('owner','/api/material-purchases',{date:D2,grams:'1',total:'900',payer:'owner',note:'待删除'},{label:'purchase-to-delete'}); + let pd=await s.get('owner','/api/material-purchases/'+p3.id,{label:'purchase-to-delete-detail'}); + await s.post('owner','/api/material-purchases/'+p3.id+'/edit',{date:D2,grams:'1.5',total:'1380',payer:'owner',note:'当天改价',revision:pd.purchase.revision},{label:'purchase-edit-same-day'}); + pd=await s.get('owner','/api/material-purchases/'+p3.id,{label:'purchase-after-edit'}); + await s.post('owner','/api/material-purchases/'+p3.id+'/delete',{revision:pd.purchase.revision,reason:'录错',verified:true},{label:'purchase-delete'}); + await s.post('assistant','/api/material-pools/quote',{member:'assistant',date:D2,entries:[{lineIndex:0,poolId:D2,mg:2000},{lineIndex:1,poolId:D1,mg:1000}]},{key:null,expect:400,label:'material-pool-quote-rolling-old-pool'}); + await s.post('assistant','/api/material-pools/quote',{member:'assistant',date:D2,entries:[{lineIndex:0,poolId:D2,mg:2000},{lineIndex:1,poolId:D2,mg:1000}]},{key:null,expect:400,label:'known-issue-material-pool-quote-d2'}); + // 滚动料池下按当天料池开单 + await s.post('assistant','/api/orders/issue',{date:D2,customer:'滚动料池客户',internal_note:'滚动料池备注',salesperson:'娜娜',payment_account:'助理微信',rounding_mode:'cent',lines:[{name:'足金999',unit:'g',quantity:'2',pocket:'',payer:'assistant',sale:'2200',costParts:{material:'',labor:'0',accessories:'0',other:'0'},costMaterial:{mode:'pool',poolId:D2}}],fee_items:[]},{label:'issue-rolling-pool'}); + await s.get('owner','/api/material-pools',{label:'material-pools-rolling'}); + const pool=await s.get('owner','/api/material-pools/'+D1,{label:'material-pool-detail-owner'}); + await s.post('owner','/api/material-pools/'+D1+'/settlement',{date:D2,amount:'1',direction:'toOwner',verified:true,revision:pool.revision},{expect:[400,409],label:'material-pool-settlement-team'}); + await s.get('owner','/api/material-pools/rolling-preview',{label:'rolling-preview'}); + await s.get('assistant','/api/material-pools/rolling-preview',{expect:403,label:'rolling-preview-denied'}); + }, + + async function securityChecks(s,ctx){ + const body={date:D2,customer:'安全测试',internal_note:'安全测试备注',salesperson:'娜娜',payment_account:'助理微信',rounding_mode:'cent',lines:[{name:'足金转运珠',unit:'g',quantity:'0.5',pocket:'现货',payer:'assistant',sale:'500',cost:'420'}],fee_items:[]}; + await s.post('assistant','/api/orders/issue',body,{noOrigin:true,label:'csrf-missing-origin',expect:403}); + await s.post('assistant','/api/orders/issue',body,{origin:'https://evil.example',label:'csrf-wrong-origin',expect:403}); + await s.post('assistant','/api/orders/issue',body,{noXRW:true,label:'csrf-missing-header',expect:403}); + await s.post('assistant','/api/orders/issue',body,{contentType:'text/plain',label:'csrf-wrong-content-type',expect:403}); + await s.post('assistant','/api/orders/issue','{not json',{label:'invalid-json',expect:400}); + const key='golden-idempotency-replay-0001'; + const first=await s.post('assistant','/api/orders/issue',body,{key,label:'idempotent-first'}); + const again=await s.post('assistant','/api/orders/issue',body,{key,label:'idempotent-replay'}); + if(first.id!==again.id)s.problems.push('幂等重放返回了不同订单'); + await s.post('assistant','/api/orders/issue',{...body,customer:'不同内容'},{key,label:'idempotent-conflict',expect:409}); + await s.post('assistant','/api/orders/issue',body,{key:'short',label:'idempotency-key-invalid',expect:400}); + await s.post('assistant','/api/orders/issue',body,{key:null,label:'idempotency-key-missing',expect:400}); + // 跨成员访问 + for(const suffix of ['','/public','/edit','/change','/cancellation','/ownership','/after-sale'])await s.get('assistant2','/api/orders/'+ctx.orderPerGram+suffix,{expect:404,label:'foreign-order'+suffix.replace('/','-')}); + for(const suffix of ['/edit','/change','/cancellation','/canceltoday','/receipt','/expense'])await s.post('assistant2','/api/orders/'+ctx.orderPerGram+suffix,{date:D2,revision:1,reason:'越权',verified:true},{expect:404,label:'foreign-order-post'+suffix.replace('/','-')}); + await s.get('assistant','/api/order-book?member=assistant2',{expect:403,label:'order-book-foreign-member'}); + await s.get('assistant','/api/report?member=assistant2',{expect:403,label:'report-foreign-member'}); + for(const route of ['/api/export/inventory','/api/team-funds?date='+D2,'/api/employees','/api/material-pools/rolling-preview','/api/private-operations','/api/people-count','/api/people-count-history'])await s.get('assistant2',route,{expect:403,label:'owner-only-get'}); + for(const [route,b] of [['/api/backup',{}],['/api/sync',{}],['/api/shop-settings',{revision:0}],['/api/printing',{offsetX:1}],['/api/pockets',{name:'x'}],['/api/employees',{label:'x'}],['/api/team-funds/transfers',{}],['/api/people-count',{date:D2,revision:0}],['/api/private-operations/people',{date:D2,member:'assistant',total_count:1,new_count:0,revision:0}],['/api/close',{date:D2,basis:'orderDate'}],['/api/inventory/review',{date:D2,verified:true,revision:'x'}],['/api/team-members/assistant/password',{password:'x',verified:true}]])await s.post('assistant2',route,b,{expect:403,label:'owner-only-post'}); + await s.get('assistant','/api/unknown-route',{expect:404,label:'unknown-get'}); + await s.post('assistant','/api/unknown-route',{},{expect:404,label:'unknown-post'}); + await s.request('assistant','PUT','/api/state',{expect:405,label:'method-not-allowed'}); + await s.get(null,'/api/orders/'+ctx.orderPerGram,{expect:401,label:'anonymous-order'}); + await s.get('assistant','/api/state',{headers:{'X-Ledger-User':'someone-else'},expect:409,label:'account-changed-header'}); + }, + + async function reports(s,ctx){ + for(const role of ROLES){ + await s.get(role,'/api/report?date='+D2,{label:'report-d2-'+role}); + await s.get(role,'/api/report?date='+D2+'&basis=orderDate',{label:'report-d2-orderdate-'+role}); + await s.get(role,'/api/report?from='+D1+'&date='+D2+'&basis=orderDate',{label:'report-range-'+role}); + await s.get(role,'/api/order-book?date='+D2,{label:'order-book-d2-'+role}); + await s.get(role,'/api/order-book?from='+D1+'&date='+D2,{label:'order-book-range-'+role}); + await s.get(role,'/api/inventory',{label:'inventory-'+role}); + await s.get(role,'/api/inventory/movements',{label:'movements-'+role}); + await s.get(role,'/api/inventory/snapshots',{label:'snapshots-'+role}); + await s.get(role,'/api/material-pools',{label:'material-pools-'+role}); + await s.get(role,'/api/price-locks?status=all',{label:'price-locks-'+role}); + await s.get(role,'/api/recoveries',{label:'recoveries-list-'+role}); + await s.get(role,'/api/order-changes?status=all',{label:'order-changes-all-'+role}); + await s.get(role,'/api/order-cancellations?status=all',{label:'cancellations-all-'+role}); + await s.get(role,'/api/order-ownership-changes?status=all',{label:'ownership-all-'+role}); + await s.get(role,'/api/price-lock-changes?status=all',{label:'lock-changes-all-'+role}); + await s.get(role,'/api/recovery-changes?status=all',{label:'recovery-changes-all-'+role}); + await s.get(role,'/api/material-purchase-changes?status=all',{label:'purchase-changes-all-'+role}); + await s.get(role,'/api/after-sales/changes?status=all',{label:'after-sale-changes-all-'+role}); + } + const filters=['status=after_sale','status=delivered','status=cancelled','q=对照','pocket=现货','member=assistant','account=助理微信','paymentAccount=助理微信','basis=orderDate']; + for(const f of filters)await s.get('owner','/api/order-book?from='+D1+'&date='+D2+'&'+f,{label:'order-book-filter '+f,expect:[200,400]}); + await s.get('owner','/api/report?date='+D2+'&member=assistant2&basis=orderDate',{label:'report-member-filter'}); + await s.get('owner','/api/inventory/movements?from='+D1+'&date='+D2+'&pocket=现货',{label:'movements-filter',expect:[200,400]}); + await s.getRaw('owner','/api/inventory/movements/export.xlsx',{label:'movements-xlsx'}); + await s.getRaw('owner','/api/inventory/movements/export.xlsx?from='+D1+'&date='+D2,{label:'movements-xlsx-range',expect:[200,400]}); + await s.getRaw('owner','/api/export/inventory',{label:'inventory-csv'}); + await s.get('owner','/api/team-funds?date='+D2,{label:'team-funds-report'}); + }, + + async function closeAndBackup(s,ctx){ + const inv=await s.get('owner','/api/inventory',{label:'inventory-before-review-d2'}); + await s.post('owner','/api/inventory/review',{date:D2,verified:true,revision:inv.revision},{label:'inventory-review-d2'}); + await s.post('owner','/api/close',{date:D2,basis:'orderDate'},{label:'close-d2'}); + await s.get('owner','/api/report?date='+D2+'&basis=orderDate',{label:'report-after-close'}); + const backup=await s.post('owner','/api/backup',{}); + await s.getRaw('owner','/api/backup/'+backup.name,{record:'status',label:'backup-download'}); + await s.getRaw('assistant','/api/backup/'+backup.name,{record:'status',expect:403,label:'backup-download-denied'}); + await s.getRaw('owner','/api/backup/not-a-backup',{expect:400,label:'backup-invalid-name'}); + await s.post('owner','/api/sync',{},{label:'sync-disabled'}); + }, + + // ───────── 第三天:最终只读 ───────── + async function dayThreeLogin(s,ctx){ + await s.day(D3); + await loginAll(s,ctx); + }, + + async function recoveryChanges(s,ctx){ + // 小昊跨天更正置换旧料 → 申请 → 麦麦批准 + const e=await s.get('assistant2','/api/recoveries/'+ctx.recoveryExchange+'/edit',{label:'recovery-edit-context'}); + const input={...e.inputs,revision:e.revision??e.record?.revision,reason:'跨天更正旧料克重',verified:true,old_lines:[{name:'Au旧料',incoming_weight:'8.2',melted_weight:'8.1',purity:'99.9'}]}; + await s.post('assistant2','/api/recoveries/'+ctx.recoveryExchange+'/quote',input,{key:null,label:'recovery-edit-quote'}); + const up=await s.post('assistant2','/api/recoveries/'+ctx.recoveryExchange+'/update',input,{label:'recovery-update-request'}); + await s.get('owner','/api/recovery-changes',{label:'recovery-changes-list'}); + const rid=up.requestId||up.id;const rd=await s.get('owner','/api/recovery-changes/'+rid,{label:'recovery-change-detail'}); + await s.post('assistant2','/api/recovery-changes/'+rid+'/approve',{revision:rd.recovery_revision??rd.revision,verified:true,note:'自批'},{expect:403,label:'recovery-change-self-approve'}); + await s.post('owner','/api/recovery-changes/'+rid+'/approve',{revision:rd.recovery_revision??rd.revision,verified:true,note:'核实'},{label:'recovery-change-approve'}); + // 娜娜跨天取消申请 → 驳回;随后麦麦直接取消 + const e2=await s.get('assistant','/api/recoveries/'+ctx.recoveryExchange2+'/edit',{label:'recovery-edit-context-2'}); + const cancel=await s.post('assistant','/api/recoveries/'+ctx.recoveryExchange2+'/cancel',{revision:e2.revision??e2.record?.revision,reason:'客户反悔',verified:true},{label:'recovery-cancel-request'}); + const cid=cancel.requestId||cancel.id; + await s.post('owner','/api/recovery-changes/'+cid+'/reject',{revision:cancel.request?.revision,note:'需核实'},{label:'recovery-change-reject'}); + const oe=await s.get('owner','/api/recoveries/'+ctx.recoveryExchange2+'/edit',{label:'recovery-owner-edit-context'}); + await s.post('owner','/api/recoveries/'+ctx.recoveryExchange2+'/cancel',{revision:oe.revision??oe.record?.revision,reason:'录错',verified:true},{label:'recovery-cancel-owner'}); + await s.get('owner','/api/recoveries?status=all',{label:'recoveries-all'}); + await s.get('owner','/api/recovery-changes?status=all',{label:'recovery-changes-all'}); + }, + + async function directRecoveriesD3(s,ctx){ + const direct=(extra={})=>({mode:'direct',date:D3,customer:'对照回收客户',salesperson:'娜娜',old_lines:[{name:'Au旧料',incoming_weight:'10',melted_weight:'10',purity:'100'}],buy_rate:'900',payer:'assistant',payment_account:'助理微信',verified:true,...extra}); + await s.post('assistant','/api/recoveries/quote',direct(),{key:null,label:'recovery-quote'}); + await s.post('assistant','/api/recoveries',direct(),{key:null,expect:400,label:'recovery-without-key'}); + ctx.recoveryDirect=(await s.post('assistant','/api/recoveries',direct(),{label:'recovery-direct'})).id; + ctx.recoveryOwner=(await s.post('owner','/api/recoveries',direct({salesperson:'麦麦',payer:'owner',payment_account:'麦麦现金',old_lines:[{name:'Au旧料',incoming_weight:'3',melted_weight:'3',purity:'100'}]}),{label:'recovery-owner'})).id; + await s.get('assistant','/api/recoveries/'+ctx.recoveryDirect,{label:'recovery-direct-detail'}); + await s.getRaw('assistant','/print/recoveries/'+ctx.recoveryDirect,{label:'print-recovery'}); + // 当天本人直接更正 + const e=await s.get('assistant','/api/recoveries/'+ctx.recoveryDirect+'/edit',{label:'recovery-direct-edit-context'}); + await s.post('assistant','/api/recoveries/'+ctx.recoveryDirect+'/update',{...e.inputs,revision:e.revision??e.record?.revision,reason:'当天更正',verified:true,buy_rate:'905'},{label:'recovery-update-same-day'}); + const oe=await s.get('owner','/api/recoveries/'+ctx.recoveryOwner+'/edit',{label:'recovery-owner-direct-edit-context'}); + await s.post('owner','/api/recoveries/'+ctx.recoveryOwner+'/cancel',{revision:oe.revision??oe.record?.revision,reason:'录错',verified:true},{label:'recovery-cancel-owner-direct'}); + await s.get('owner','/api/material-pools/'+D3,{label:'material-pool-after-recovery'}); + }, + + // 已知问题留档:同一天先有直接回收、再办理订单售后时,售后写入因料池批次分配失败而被拒绝(见报告)。 + async function knownIssueAfterSaleAfterRecovery(s,ctx){ + const id=(await s.post('assistant','/api/orders/issue',{date:D3,customer:'留档客户',internal_note:'留档备注',salesperson:'娜娜',payment_account:'助理微信',rounding_mode:'cent',lines:[{name:'足金手链',unit:'g',quantity:'2',pocket:'现货',payer:'assistant',sale:'2000',costParts:{material:'1800',labor:'50',accessories:'0',other:'0'}}],fee_items:[]},{label:'issue-known-issue'})).id; + await s.post('assistant','/api/recoveries',{mode:'direct',date:D3,customer:'留档回收客户',salesperson:'娜娜',old_lines:[{name:'Au旧料',incoming_weight:'2',melted_weight:'2',purity:'100'}],buy_rate:'900',payer:'assistant',payment_account:'助理微信',verified:true},{label:'recovery-known-issue'}); + const d=await s.get('assistant','/api/orders/'+id,{label:'known-issue-order'}); + await s.post('assistant','/api/orders/'+id+'/return',{date:D3,revision:d.revision,verified:true,reason:'当天退回',afterSale:{lines:[{lineIndex:0,quantity:'1.000',pocket:'现货',disposition:'stock'}],refund:{amount:'900',account:'助理微信',payer:'assistant'},deductionReason:'客户确认',expenses:[]}},{expect:400,label:'known-issue-after-sale-rejected'}); + }, + + async function dayThreeReads(s,ctx){ + for(const role of ROLES){ + await s.get(role,'/api/state',{label:'final-state-'+role}); + await s.get(role,'/api/session',{label:'final-session-'+role}); + await s.get(role,'/api/report?from='+D1+'&date='+D3,{label:'final-report-'+role}); + await s.get(role,'/api/order-book?from='+D1+'&date='+D3,{label:'final-order-book-'+role}); + } + await s.get('owner','/api/inventory',{label:'final-inventory'}); + await s.get('owner','/api/daily-funds?date='+D3,{label:'final-daily-funds'}); + for(const asset of ['/','/app.js','/app.css','/print.js','/calculations.js'])await s.getRaw(null,asset,{record:'status',label:'asset'}); + await s.getRaw(null,'/missing.js',{expect:404,label:'asset-missing'}); + for(const role of ROLES)await s.post(role,'/api/logout',{},{label:'logout-'+role}); + await s.get('owner','/api/state',{expect:401,label:'state-after-final-logout'}); + }, + + // 第四天:回收次日的主读取仍可用(启用滚动料池后;未启用时见报告中的已知问题)。 + async function dayFourReads(s,ctx){ + await s.day('2026-11-21'); + await s.post('owner','/api/login',{name:ctx.loginName.owner,password:ctx.password.owner},{label:'login-owner-d4'}); + await s.get('owner','/api/state',{label:'state-d4'}); + await s.get('owner','/api/material-pools',{label:'material-pools-d4'}); + await s.get('owner','/api/report?date=2026-11-21',{label:'report-d4'}); + }, +]; + +async function run(s){const ctx={};const skip=(process.env.GOLDEN_SKIP||'').split(',').filter(Boolean);for(const section of sections){if(skip.includes(section.name))continue;s.note('section',{name:section.name});await section(s,ctx);}} +module.exports={run,START,PW,sections,D1,D2,D3}; diff --git a/新账系统/e2e/golden.js b/新账系统/e2e/golden.js new file mode 100755 index 0000000..705aa30 --- /dev/null +++ b/新账系统/e2e/golden.js @@ -0,0 +1,65 @@ +#!/usr/bin/env node +'use strict'; +// 端到端黄金对照:确定时钟 + 确定随机源下,仅经 HTTP 驱动完整业务场景,记录每个请求/状态/规范化响应与最终完整数据库。 +// 用法: +// node e2e/golden.js 录制并写入 e2e/baseline/golden/(若场景出现非预期状态码则拒绝写入,除非 --force) +// node e2e/golden.js --check 重新运行并与基线比较,打印前 N 处差异(--limit N,默认 30),有差异则退出码 1 +// node e2e/golden.js --print 只运行并把结果写到 e2e/out/golden/,不比较 +const fs=require('node:fs'),os=require('node:os'),path=require('node:path'); +const {startServer}=require('./lib/server'); +const {Session}=require('./lib/client'); +const {Normalizer}=require('./lib/normalize'); +const {dumpDatabase}=require('./lib/db-dump'); +const {compare,report}=require('./lib/diff'); +const scenario=require('./golden-scenario'); +const args=process.argv.slice(2),check=args.includes('--check'),printOnly=args.includes('--print'),force=args.includes('--force'); +const limit=Number(args[args.indexOf('--limit')+1])||30; +const BASELINE=path.join(__dirname,'baseline','golden'),OUT=path.join(__dirname,'out','golden'); +const MASKED=''; +async function run(){ + const dataDir=fs.mkdtempSync(path.join(os.tmpdir(),'ledger-golden-')); + const server=startServer({mode:'trial',dataDir,clockStart:scenario.START+'T02:00:00.000Z',seed:'golden-seed'}); + let session; + try{ + const info=await server.ready(); + session=new Session({base:info.base,server}); + await scenario.run(session); + }catch(error){ + if(session){fs.mkdirSync(OUT,{recursive:true});fs.writeFileSync(path.join(OUT,'partial-transcript.json'),JSON.stringify(session.entries,null,1));} + if(session?.problems.length)console.error('崩溃前的非预期状态:\n'+session.problems.join('\n')); + error.message+='\n'+server.output();throw error; + }finally{await server.stop();} + const dump=dumpDatabase(path.join(dataDir,'ledger.sqlite'),{mask:{users:{salt:()=>MASKED,hash:()=>MASKED},sessions:{hash:()=>MASKED}}}); + fs.rmSync(dataDir,{recursive:true,force:true}); + const n=new Normalizer();n.literal(session.base,'http://');n.literal(session.base.slice(7),'');for(const token of session.secrets)n.secret(token); + // 先按请求顺序规范化,再规范化数据库,使占位符编号由业务发生顺序决定。 + // JSON 往返,去掉 undefined 字段,使内存结果与落盘基线同形。 + const transcript=JSON.parse(JSON.stringify(session.entries.map(e=>n.value(e)))); + const db=JSON.parse(JSON.stringify(n.value(dump))); + return {transcript,db,problems:session.problems}; +} +function write(dir,result){ + fs.mkdirSync(dir,{recursive:true});fs.rmSync(path.join(OUT,'partial-transcript.json'),{force:true}); + fs.writeFileSync(path.join(dir,'transcript.json'),JSON.stringify(result.transcript,null,1)+'\n'); + fs.writeFileSync(path.join(dir,'db.json'),JSON.stringify(result.db,null,1)+'\n'); +} +function describeTranscript(transcript){return p=>{const m=p.match(/^\$\[(\d+)\]/);if(!m)return p;const e=transcript[Number(m[1])];return e?`${p} 〔#${e.seq} ${e.actor||''} ${e.method||e.note||''} ${e.path||''}${e.label?' · '+e.label:''}〕`:p;};} +(async()=>{ + const started=Date.now();const result=await run(); + const seconds=((Date.now()-started)/1000).toFixed(1); + if(result.problems.length){console.error('场景中出现非预期状态码:\n'+result.problems.join('\n'));} + if(check){ + write(OUT,result); + const expected={transcript:JSON.parse(fs.readFileSync(path.join(BASELINE,'transcript.json'),'utf8')),db:JSON.parse(fs.readFileSync(path.join(BASELINE,'db.json'),'utf8'))}; + const t=compare(expected.transcript,result.transcript),d=compare(expected.db,result.db); + const describeDb=p=>{const m=p.match(/^\$\.tables\.([^.]+)\.rows\[(\d+)\]\[(\d+)\](.*)$/);if(!m)return p;const cols=expected.db.tables[m[1]]?.columns;return `表 ${m[1]} 第 ${Number(m[2])+1} 行 列 ${cols?.[Number(m[3])]??m[3]}${m[4]}`;}; + const text=[report('请求记录',t,limit,describeTranscript(expected.transcript)),report('数据库',d,limit,describeDb)].filter(Boolean).join('\n'); + if(text)console.log(text); + const failed=t.diffs.length+d.diffs.length>0; + console.log(`golden ${failed?'FAIL':'PASS'}:${result.transcript.length} 条记录,${Object.keys(result.db.tables).length} 张表,用时 ${seconds}s(实际结果在 e2e/out/golden/)`); + process.exit(failed?1:0); + } + if(printOnly){write(OUT,result);console.log(`已写入 e2e/out/golden/(${result.transcript.length} 条记录,用时 ${seconds}s)`);process.exit(result.problems.length?1:0);} + if(result.problems.length&&!force){console.error('拒绝写入基线:请先修正场景或使用 --force');process.exit(1);} + write(BASELINE,result);console.log(`基线已写入 e2e/baseline/golden/(${result.transcript.length} 条记录,${Object.keys(result.db.tables).length} 张表,用时 ${seconds}s)`); +})().catch(error=>{console.error(error.stack||error);process.exit(2);}); diff --git a/新账系统/e2e/legacy-db.js b/新账系统/e2e/legacy-db.js new file mode 100755 index 0000000..ce16d45 --- /dev/null +++ b/新账系统/e2e/legacy-db.js @@ -0,0 +1,98 @@ +#!/usr/bin/env node +'use strict'; +// 旧库兼容检查:把用户本机旧账本快照复制到临时目录,按正式启动顺序 +// (prepareTeamStartupDatabase → createApp → prepareStartupMigrations → listen)启动, +// 以三个成员身份读取主要接口,记录完整性、结构、行数、原始列内容哈希和规范化响应哈希。 +// 基线只含计数与哈希,不含任何客户名称或金额。 +// 用法:node e2e/legacy-db.js [--check] [--fixture ] +const fs=require('node:fs'),os=require('node:os'),path=require('node:path'),crypto=require('node:crypto'); +const {DatabaseSync}=require('node:sqlite'); +const {startServer}=require('./lib/server'); +const {Session}=require('./lib/client'); +const {Normalizer}=require('./lib/normalize'); +const {compare,report}=require('./lib/diff'); +const args=process.argv.slice(2),check=args.includes('--check'); +const FIXTURE=args.includes('--fixture')?args[args.indexOf('--fixture')+1]:'/tmp/refactor-fixtures/demo-ledger.sqlite'; +const BASELINE=path.join(__dirname,'baseline','legacy.json'); +const CLOCK='2026-12-05T02:00:00.000Z',TODAY='2026-12-05'; +const sha=value=>crypto.createHash('sha256').update(value).digest('hex'); +function cell(v){return v instanceof Uint8Array?{blob:Buffer.from(v).toString('hex')}:typeof v==='bigint'?{bigint:v.toString()}:v;} +function inspect(file,originalColumns=null){ + const db=new DatabaseSync(file,{readOnly:true}); + try{ + const integrity=db.prepare('PRAGMA integrity_check').all().map(r=>r.integrity_check); + const tables=db.prepare("SELECT name,sql FROM sqlite_master WHERE type='table' ORDER BY name").all(); + const schema={},counts={},hashes={}; + for(const {name,sql} of tables){ + const q=`"${name.replace(/"/g,'""')}"`; + const columns=db.prepare(`PRAGMA table_info(${q})`).all().map(c=>({name:c.name,type:c.type,notnull:c.notnull,pk:c.pk,dflt:c.dflt_value})); + const indexes=db.prepare(`PRAGMA index_list(${q})`).all().filter(i=>!i.name.startsWith('sqlite_autoindex_')).map(i=>({name:i.name,unique:i.unique,columns:db.prepare(`PRAGMA index_info("${i.name.replace(/"/g,'""')}")`).all().map(c=>c.name)})).sort((a,b)=>a.namec.name)).filter(c=>columns.some(x=>x.name===c)); + if(originalColumns&&!originalColumns[name])continue; + const order=schema[name].withoutRowid?cols.map((_,i)=>i+1).join(','):'rowid'; + const rows=cols.length?db.prepare(`SELECT ${cols.map(c=>`"${c.replace(/"/g,'""')}"`).join(',')} FROM ${q} ORDER BY ${order}`).all().map(r=>cols.map(c=>cell(r[c]))):[]; + hashes[name]=sha(JSON.stringify({cols,rows})); + } + return {integrity,schema,counts,hashes}; + }finally{db.close();} +} +const READS=[ + '/api/session','/api/state',`/api/order-book?from=2000-01-01&date=${TODAY}`,`/api/report?from=2000-01-01&date=${TODAY}&basis=orderDate`,`/api/report?date=${TODAY}`, + '/api/inventory','/api/inventory/movements','/api/inventory/snapshots','/api/material-pools','/api/price-locks?status=all','/api/recoveries','/api/customer-materials', + `/api/team-funds?date=${TODAY}`,'/api/team-profits',`/api/daily-funds?date=${TODAY}`,'/api/shop-settings','/api/pockets','/api/order-templates','/api/reimbursements', + '/api/order-changes?status=all','/api/order-cancellations?status=all','/api/inventory/changes?status=all','/api/employees','/api/people-count-history', +]; +async function run(){ + if(!fs.existsSync(FIXTURE))throw new Error('找不到旧库快照:'+FIXTURE); + const dataDir=fs.mkdtempSync(path.join(os.tmpdir(),'ledger-legacy-')); + try{ + const file=path.join(dataDir,'ledger.sqlite');fs.copyFileSync(FIXTURE,file);fs.chmodSync(file,0o600); + const before=inspect(file); + const originalColumns=Object.fromEntries(Object.entries(before.schema).map(([t,s])=>[t,s.columns.map(c=>c.name)])); + const server=startServer({mode:'demo',dataDir,startup:'production',clockStart:CLOCK,seed:'legacy-seed'}); + const responses={};let startup; + try{ + const info=await server.ready();startup=info.startup; + const s=new Session({base:info.base,server});await s.day(TODAY); + const n=new Normalizer();n.literal(info.base,'http://');n.literal(info.base.slice(7),''); + for(const [role,body] of [['owner',{role:'owner'}],['assistant',{role:'assistant'}],['assistant2',{member:'assistant2'}]]){ + const login=await s.request(role,'POST','/api/demo-login',{body,expect:'any'}); + responses[role]={login:login.status}; + for(const route of READS){ + const r=await s.request(role,'GET',route,{expect:'any'}); + const normalized=n.value(r.body); + responses[role][route]={status:r.status,hash:sha(JSON.stringify(normalized)),keys:normalized&&typeof normalized==='object'&&!Array.isArray(normalized)?Object.keys(normalized).length:null}; + } + } + }finally{await server.stop();} + const after=inspect(file,originalColumns);const afterAll=inspect(file); + const backups=fs.existsSync(path.join(dataDir,'backups'))?fs.readdirSync(path.join(dataDir,'backups')).length:0; + return { + fixture:{sha256:sha(fs.readFileSync(FIXTURE)),bytes:fs.statSync(FIXTURE).size}, + startup:{teamBackupRequired:startup?.team?.required??null,migrationChanged:startup?.migration?.changed??null,backupFiles:backups}, + before:{integrity:before.integrity,schema:before.schema,counts:before.counts,hashes:before.hashes}, + after:{integrity:after.integrity,schema:afterAll.schema,counts:afterAll.counts,originalColumnHashes:after.hashes}, + unchangedOriginalTables:Object.keys(before.hashes).filter(t=>before.hashes[t]===after.hashes[t]).length, + changedOriginalTables:Object.keys(before.hashes).filter(t=>before.hashes[t]!==after.hashes[t]), + responses, + }; + }finally{fs.rmSync(dataDir,{recursive:true,force:true});} +} +(async()=>{ + const started=Date.now();const result=await run();const seconds=((Date.now()-started)/1000).toFixed(1); + const integrityOk=result.before.integrity.join()==='ok'&&result.after.integrity.join()==='ok'; + if(check){ + const expected=JSON.parse(fs.readFileSync(BASELINE,'utf8')); + const d=compare(expected,JSON.parse(JSON.stringify(result)));const text=report('旧库兼容',d);if(text)console.log(text); + const failed=d.diffs.length>0||!integrityOk; + if(!integrityOk)console.log('完整性检查失败:',result.before.integrity,result.after.integrity); + console.log(`legacy ${failed?'FAIL':'PASS'}:${Object.keys(result.after.counts).length} 张表,${result.unchangedOriginalTables} 张原表内容未变,用时 ${seconds}s`); + process.exit(failed?1:0); + } + if(!integrityOk){console.error('完整性检查失败,拒绝写入基线');process.exit(1);} + fs.mkdirSync(path.dirname(BASELINE),{recursive:true});fs.writeFileSync(BASELINE,JSON.stringify(result,null,1)+'\n'); + console.log(`基线已写入 e2e/baseline/legacy.json(${Object.keys(result.after.counts).length} 张表,原表内容变化:${result.changedOriginalTables.join('、')||'无'},用时 ${seconds}s)`); +})().catch(error=>{console.error(error.stack||error);process.exit(2);}); diff --git a/新账系统/e2e/lib/client.js b/新账系统/e2e/lib/client.js new file mode 100644 index 0000000..183907c --- /dev/null +++ b/新账系统/e2e/lib/client.js @@ -0,0 +1,60 @@ +'use strict'; +// HTTP 驱动与记录器:每次请求前把子进程时钟设为“当天起点 + 步数秒”,保证时间戳只取决于步骤顺序。 +const {unzip}=require('./zip'); +const SHANGHAI_OFFSET=8*3600*1000; +class Session{ + constructor({base,server,startDate,startHour=10}){ + this.base=base;this.server=server;this.cookies={};this.users={};this.entries=[];this.seq=0;this.keySeq=0;this.problems=[];this.secrets=[]; + this.dayStart=null;this.stepInDay=0;this.startHour=startHour;this.date=null;if(startDate)this.pendingDay=startDate; + } + // 把业务“今天”切换到上海时区某日的 startHour 点,之后每次请求前进 1 秒。 + async day(date,hour=this.startHour){ + this.date=date;this.dayStart=Date.parse(date+'T00:00:00Z')-SHANGHAI_OFFSET+hour*3600*1000;this.stepInDay=0; + await this.server.setTime(this.dayStart);this.note('clock',{date,hour}); + } + note(kind,data){this.entries.push({seq:++this.seq,note:kind,...data});} + key(label='op'){this.keySeq++;return ('golden-'+String(this.keySeq).padStart(5,'0')+'-'+String(label).replace(/[^A-Za-z0-9_-]/g,'').slice(0,40)).padEnd(16,'0');} + async tickClock(){this.stepInDay++;await this.server.setTime(this.dayStart+this.stepInDay*1000);} + // 通用请求。opts: {body, key, headers, noOrigin, noXRW, origin, contentType, label, expect, record:'full'|'status'} + async request(actor,method,path,opts={}){ + await this.tickClock(); + const isPost=method==='POST';const headers={}; + const cookie=actor&&this.cookies[actor];if(cookie)headers.Cookie=cookie; + let key=null; + if(isPost){ + if(!opts.noOrigin)headers.Origin=opts.origin||this.base; + if(!opts.noXRW)headers['X-Requested-With']='maimai-ledger'; + headers['Content-Type']=opts.contentType||'application/json'; + key=opts.key===undefined?this.key(opts.label||path.split('/').filter(Boolean).slice(-1)[0]):opts.key; + if(key!==null)headers['Idempotency-Key']=key; + } + Object.assign(headers,opts.headers||{}); + const response=await fetch(this.base+path,{method,headers,...(isPost?{body:typeof opts.body==='string'?opts.body:JSON.stringify(opts.body??{})}:{})}); + const type=response.headers.get('content-type')||'';const buffer=Buffer.from(await response.arrayBuffer()); + let body; + if(opts.record==='status')body={omitted:true,bytes:buffer.length>0}; + else if(type.includes('application/json')){try{body=JSON.parse(buffer.toString('utf8'));}catch{body={invalidJson:buffer.toString('utf8')};}} + else if(type.includes('spreadsheetml')||type.includes('zip')){body={zip:unzip(buffer).map(f=>({name:f.name,text:f.data.toString('utf8')}))};} + else if(type.startsWith('text/'))body={text:buffer.toString('utf8')}; + else body={binaryBytes:buffer.length}; + const setCookie=response.headers.get('set-cookie'); + if(setCookie&&actor){const token=setCookie.split(';')[0];if(/mm_session=[0-9a-f]+/.test(token)){this.cookies[actor]=token;this.secrets.push(token.slice(11));}else if(/mm_session=;/.test(setCookie+';'))delete this.cookies[actor];} + const entry={seq:++this.seq,label:opts.label||null,date:this.date,actor:actor||null,method,path,key, + request:isPost?{headers:{origin:headers.Origin??null,xrw:headers['X-Requested-With']??null,contentType:headers['Content-Type']},body:opts.body??{}}:undefined, + status:response.status,contentType:type,disposition:response.headers.get('content-disposition'),setCookie:setCookie?setCookie.replace(/mm_session=[0-9a-f]+/,'mm_session='):null,body}; + this.entries.push(entry); + if(process.env.GOLDEN_PROBE&&isPost&&this.cookies.owner&&!this.probeFailed){ + // 调试用:每次写入后以老板身份读取指定地址,报告第一次失败的步骤(不计入记录)。 + const probe=await fetch(this.base+process.env.GOLDEN_PROBE,{headers:{Cookie:this.cookies.owner}}); + if(probe.status!==200){this.probeFailed=true;console.error('探测失败于 #'+entry.seq,actor,method,path,opts.label,await probe.text());} + } + const expect=opts.expect??200; + if(expect!=='any'&&!(Array.isArray(expect)?expect:[expect]).includes(response.status))this.problems.push(`#${entry.seq} ${actor} ${method} ${path} 期望 ${expect} 实际 ${response.status} ${JSON.stringify(body).slice(0,300)}`); + return {status:response.status,body,json:type.includes('json')?body:null,headers:response.headers}; + } + get(actor,path,opts){return this.request(actor,'GET',path,opts).then(r=>r.json??r.body);} + getRaw(actor,path,opts){return this.request(actor,'GET',path,opts);} + post(actor,path,body,opts={}){return this.request(actor,'POST',path,{...opts,body}).then(r=>r.json??r.body);} + postRaw(actor,path,body,opts={}){return this.request(actor,'POST',path,{...opts,body});} +} +module.exports={Session}; diff --git a/新账系统/e2e/lib/db-dump.js b/新账系统/e2e/lib/db-dump.js new file mode 100644 index 0000000..f6c7892 --- /dev/null +++ b/新账系统/e2e/lib/db-dump.js @@ -0,0 +1,26 @@ +'use strict'; +// 完整数据库转储:每张表的建表语句、列、索引,以及按 rowid 排序的全部行和全部列。 +const {DatabaseSync}=require('node:sqlite'); +function cell(value){ + if(value instanceof Uint8Array)return {blob:Buffer.from(value).toString('hex')}; + if(typeof value==='bigint')return {bigint:value.toString()}; + return value; +} +function dumpDatabase(filename,{mask={}}={}){ + const db=new DatabaseSync(filename,{readOnly:true}); + try{ + const master=db.prepare("SELECT type,name,tbl_name,sql FROM sqlite_master WHERE name NOT LIKE 'sqlite_autoindex_%' ORDER BY type,name").all(); + const tables={}; + for(const {name,sql} of master.filter(row=>row.type==='table')){ + const columns=db.prepare(`PRAGMA table_info("${name.replace(/"/g,'""')}")`).all().map(c=>c.name); + const withoutRowid=/WITHOUT\s+ROWID/i.test(sql||''); + const order=withoutRowid?columns.map((_,i)=>i+1).join(','):'rowid'; + const rows=db.prepare(`SELECT * FROM "${name.replace(/"/g,'""')}" ORDER BY ${order}`).all().map(row=>columns.map(c=>{ + const masker=mask[name]?.[c];return masker?masker(row[c],row):cell(row[c]); + })); + tables[name]={columns,rows}; + } + return {schema:master.map(({type,name,tbl_name,sql})=>({type,name,table:tbl_name,sql})),tables}; + }finally{db.close();} +} +module.exports={dumpDatabase}; diff --git a/新账系统/e2e/lib/diff.js b/新账系统/e2e/lib/diff.js new file mode 100644 index 0000000..1219df5 --- /dev/null +++ b/新账系统/e2e/lib/diff.js @@ -0,0 +1,40 @@ +'use strict'; +// 语义比较:对象键顺序不计入差异(另行提示),数组顺序与所有值严格比较。 +function short(v){const s=JSON.stringify(v);return s===undefined?'undefined':s.length>300?s.slice(0,300)+'…':s;} +function compare(expected,actual,path='$',out={diffs:[],orderNotes:[]}){ + if(Object.is(expected,actual))return out; + const te=Array.isArray(expected)?'array':expected===null?'null':typeof expected,ta=Array.isArray(actual)?'array':actual===null?'null':typeof actual; + if(te!==ta){out.diffs.push({path,expected:short(expected),actual:short(actual)});return out;} + if(te==='array'){ + const n=Math.max(expected.length,actual.length); + if(expected.length!==actual.length)out.diffs.push({path:path+'.length',expected:String(expected.length),actual:String(actual.length)}); + for(let i=0;ik in actual),commonActual=ka.filter(k=>k in expected); + if(common.join('\u0000')!==commonActual.join('\u0000'))out.orderNotes.push(path); + return out; + } + if(te==='string'&&expected.length>120){ + // 长字符串只显示首个不同字符附近的片段 + let i=0;while(ip){ + const lines=[]; + if(result.diffs.length){ + lines.push(`${name}:发现 ${result.diffs.length} 处差异,前 ${Math.min(limit,result.diffs.length)} 处:`); + for(const d of result.diffs.slice(0,limit))lines.push(` ${describe(d.path)}\n 基线:${d.expected}\n 实际:${d.actual}`); + } + if(result.orderNotes.length)lines.push(`${name}:${result.orderNotes.length} 处对象键顺序变化(不计为失败),例如 ${result.orderNotes.slice(0,3).join('、')}`); + return lines.join('\n'); +} +module.exports={compare,report}; diff --git a/新账系统/e2e/lib/normalize.js b/新账系统/e2e/lib/normalize.js new file mode 100644 index 0000000..f3dcf39 --- /dev/null +++ b/新账系统/e2e/lib/normalize.js @@ -0,0 +1,25 @@ +'use strict'; +// 规范化:按首次出现顺序把随机标识映射为占位符,屏蔽会话令牌、密码哈希、盐和备份文件名。 +// 时钟与随机源已固定,因此只做最少屏蔽,避免掩盖真实回归。 +const UUID=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi; +const ORDER_NUMBER=/\b([A-Z]{2})(\d{8})-([0-9A-F]{8})\b/g; +const BACKUP=/ledger-(?:before-[a-z0-9-]+?-)?\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}-\d{3}Z(?:-[0-9a-f]{8})?\.sqlite/g; +class Normalizer{ + constructor(){this.maps={id:new Map(),no:new Map(),secret:new Map()};this.literals=[];} + literal(raw,masked){if(raw)this.literals.push([raw,masked]);} + token(kind,value,prefix){const map=this.maps[kind];if(!map.has(value))map.set(value,`<${prefix}${map.size+1}>`);return map.get(value);} + secret(value){return value?this.token('secret',value,'secret'):value;} + string(s){ + if(typeof s!=='string')return s; + for(const [raw,masked] of this.literals)if(s.includes(raw))s=s.split(raw).join(masked); + for(const [raw,masked] of this.maps.secret)if(raw&&s.includes(raw))s=s.split(raw).join(masked); + return s.replace(BACKUP,'').replace(UUID,m=>this.token('id',m.toLowerCase(),'id')).replace(ORDER_NUMBER,(m,prefix,date,hex)=>prefix+date+'-'+this.token('no',hex,'no')); + } + value(v){ + if(typeof v==='string')return this.string(v); + if(Array.isArray(v))return v.map(x=>this.value(x)); + if(v&&typeof v==='object'){const out={};for(const [k,x] of Object.entries(v))out[this.string(k)]=this.value(x);return out;} + return v; + } +} +module.exports={Normalizer,UUID}; diff --git a/新账系统/e2e/lib/server-child.cjs b/新账系统/e2e/lib/server-child.cjs new file mode 100644 index 0000000..9f97c61 --- /dev/null +++ b/新账系统/e2e/lib/server-child.cjs @@ -0,0 +1,29 @@ +'use strict'; +// 由 lib/server.js 以 fork + --require fake-clock.cjs 启动;只通过 IPC 接受启动/停止指令。 +// 启动参数来自环境变量 E2E_SERVER_OPTIONS(JSON):{mode,dataDir,startup:'create'|'production'} +const path=require('node:path'); +const appDir=path.join(__dirname,'..','..'); +const options=JSON.parse(process.env.E2E_SERVER_OPTIONS||'{}'); +const send=message=>process.send&&process.send(message); +let app=null; +async function start(){ + const server=require(path.join(appDir,'server.js')); + let startup={}; + if(options.startup==='production'){ + // 与 server.js 正式入口一致:先备份升级前旧库,再 createApp,再显式迁移,最后监听。 + startup.team=await server.prepareTeamStartupDatabase(options.dataDir); + app=server.createApp({mode:options.mode,dataDir:options.dataDir,host:'127.0.0.1',port:0}); + startup.migration=await server.prepareStartupMigrations(app); + }else{ + app=server.createApp({mode:options.mode||'trial',dataDir:options.dataDir,host:'127.0.0.1',port:0,inventorySnapshotLogger:()=>{}}); + } + await new Promise((resolve,reject)=>{app.server.once('error',reject);app.server.listen(0,'127.0.0.1',resolve);}); + send({type:'ready',port:app.server.address().port,startup}); +} +process.on('message',async message=>{ + if(message?.type!=='stop')return; + try{if(app){app.stop();app.ledger.close();}}catch(error){send({type:'log',message:'stop: '+error.message});} + send({type:'stopped'});setTimeout(()=>process.exit(0),20); +}); +process.on('disconnect',()=>process.exit(0)); +start().catch(error=>{send({type:'fatal',message:error.stack||String(error)});setTimeout(()=>process.exit(1),20);}); diff --git a/新账系统/e2e/lib/server.js b/新账系统/e2e/lib/server.js new file mode 100644 index 0000000..6556764 --- /dev/null +++ b/新账系统/e2e/lib/server.js @@ -0,0 +1,35 @@ +'use strict'; +// 父进程侧:以确定时钟启动应用子进程,提供时钟控制与停止。 +const {fork}=require('node:child_process'); +const path=require('node:path'); +const CLOCK=path.join(__dirname,'..','fake-clock.cjs'); +function startServer({mode='trial',dataDir,startup='create',clockStart,seed='golden-seed',tickMs=0,quiet=true}={}){ + const child=fork(path.join(__dirname,'server-child.cjs'),[],{ + // E2E_MUTATION_REQUIRE:仅用于自检,额外预加载一个故意改变行为的脚本,确认对照能发现回归。 + execArgv:['--require',CLOCK,...(process.env.E2E_MUTATION_REQUIRE?['--require',process.env.E2E_MUTATION_REQUIRE]:[]),'--disable-warning=ExperimentalWarning'], + env:{...process.env,TZ:'Asia/Shanghai',FAKE_CLOCK_IPC:'1',FAKE_CLOCK_START:clockStart||'2026-11-20T02:00:00.000Z',FAKE_RANDOM_SEED:seed,FAKE_CLOCK_TICK_MS:String(tickMs), + FEISHU_CONFIG:path.join(dataDir,'no-feishu.json'),APP_MODE:mode,E2E_SERVER_OPTIONS:JSON.stringify({mode,dataDir,startup})}, + stdio:['ignore',quiet?'pipe':'inherit',quiet?'pipe':'inherit','ipc'], + }); + let output='';if(quiet){child.stdout.on('data',d=>{output+=d;});child.stderr.on('data',d=>{output+=d;});} + let seq=0;const waiting=new Map();let readyResolve,readyReject; + const ready=new Promise((resolve,reject)=>{readyResolve=resolve;readyReject=reject;}); + let stoppedResolve;const stopped=new Promise(resolve=>{stoppedResolve=resolve;}); + child.on('message',message=>{ + if(message.type==='ready')readyResolve(message); + else if(message.type==='fatal')readyReject(new Error('应用启动失败:'+message.message+'\n'+output)); + else if(message.type==='fake-clock-ack'){const w=waiting.get(message.id);waiting.delete(message.id);if(w)message.error?w.reject(new Error(message.error)):w.resolve(message.now);} + else if(message.type==='stopped')stoppedResolve(); + }); + child.on('exit',code=>{readyReject(new Error('应用子进程退出 '+code+'\n'+output));stoppedResolve();for(const w of waiting.values())w.reject(new Error('应用子进程已退出'));}); + const clock=(op,ms)=>new Promise((resolve,reject)=>{const id=++seq;waiting.set(id,{resolve,reject});child.send({type:'fake-clock',op,ms,id});}); + return { + child, + async ready(){const info=await ready;return {...info,base:'http://127.0.0.1:'+info.port};}, + setTime:ms=>clock('set',ms), + advance:ms=>clock('advance',ms), + output:()=>output, + async stop(){if(child.exitCode!==null)return;child.send({type:'stop'});await Promise.race([stopped,new Promise(r=>setTimeout(r,5000))]);if(child.exitCode===null)child.kill();}, + }; +} +module.exports={startServer}; diff --git a/新账系统/e2e/lib/zip.js b/新账系统/e2e/lib/zip.js new file mode 100644 index 0000000..28ea498 --- /dev/null +++ b/新账系统/e2e/lib/zip.js @@ -0,0 +1,19 @@ +'use strict'; +// 最小 ZIP 读取器(xlsx 用),只支持 stored/deflate。返回 [{name,data:Buffer}],按中央目录顺序。 +const zlib=require('node:zlib'); +function unzip(buffer){ + let eocd=-1;for(let i=buffer.length-22;i>=Math.max(0,buffer.length-65557);i--)if(buffer.readUInt32LE(i)===0x06054b50){eocd=i;break;} + if(eocd<0)throw new Error('不是有效的 ZIP 文件'); + const count=buffer.readUInt16LE(eocd+10);let offset=buffer.readUInt32LE(eocd+16);const files=[]; + for(let n=0;n{throw new Error('不支持的压缩方式 '+method);})(); + files.push({name,data});offset+=46+nameLength+extraLength+commentLength; + } + return files; +} +module.exports={unzip}; diff --git a/新账系统/e2e/package-lock.json b/新账系统/e2e/package-lock.json new file mode 100644 index 0000000..8c8f30e --- /dev/null +++ b/新账系统/e2e/package-lock.json @@ -0,0 +1,42 @@ +{ + "name": "ledger-e2e-harness", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "ledger-e2e-harness", + "devDependencies": { + "playwright": "1.65.2" + } + }, + "node_modules/playwright": { + "version": "1.65.2", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.65.2.tgz", + "integrity": "sha512-Bfg9lfUnqknFzjWrvz2GMckl656TWYwDHiR+T8MQK1V+Sp1D+ODuxpcsnMQ31BYH+LBiKs6kXRMInesqO8F41w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.65.2" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/playwright-core": { + "version": "1.65.2", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.65.2.tgz", + "integrity": "sha512-aHu9F46Mx5ha9iiB+VLZMUUtex3PBw4am9MHptc0IXaJhz++6YXsH96eEyThwCwMkIUiB8TdZcwXqnb3xKDzmA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=20" + } + } + } +} diff --git a/新账系统/e2e/package.json b/新账系统/e2e/package.json new file mode 100644 index 0000000..6574945 --- /dev/null +++ b/新账系统/e2e/package.json @@ -0,0 +1,9 @@ +{ + "name": "ledger-e2e-harness", + "private": true, + "description": "验证工具(仅开发用):浏览器端到端检查依赖。应用本身保持零运行依赖。", + "type": "commonjs", + "devDependencies": { + "playwright": "1.65.2" + } +} diff --git a/新账系统/e2e/verify.sh b/新账系统/e2e/verify.sh new file mode 100755 index 0000000..52d478c --- /dev/null +++ b/新账系统/e2e/verify.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# 一键验证:黄金对照、旧库兼容、浏览器流程;--with-unit 追加全部单元测试。 +# 用法:bash e2e/verify.sh [--with-unit] [--skip-browser] +# 首次运行浏览器检查前:(cd e2e && PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm ci) +set -u +HERE="$(cd "$(dirname "$0")" && pwd)"; APP="$(dirname "$HERE")"; cd "$APP" +WITH_UNIT=0; SKIP_BROWSER=0 +for arg in "$@"; do case "$arg" in --with-unit) WITH_UNIT=1;; --skip-browser) SKIP_BROWSER=1;; *) echo "未知参数:$arg"; exit 2;; esac; done +declare -a NAMES RESULTS TIMES; FAILED=0 +run(){ local name="$1"; shift; echo; echo "════ $name ════"; local start=$SECONDS + if "$@"; then RESULTS+=("PASS"); else RESULTS+=("FAIL"); FAILED=1; fi + NAMES+=("$name"); TIMES+=("$((SECONDS-start))s"); } +run "黄金对照(golden)" node e2e/golden.js --check +run "旧库兼容(legacy)" node e2e/legacy-db.js --check +if [ "$SKIP_BROWSER" = 0 ]; then + if [ -d "$HERE/node_modules/playwright" ]; then run "浏览器流程(browser)" node e2e/browser.mjs --check + else echo "缺少 e2e/node_modules/playwright,请先执行:(cd e2e && PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm ci)"; NAMES+=("浏览器流程(browser)"); RESULTS+=("FAIL"); TIMES+=("0s"); FAILED=1; fi +fi +[ "$WITH_UNIT" = 1 ] && run "单元测试(node --test test/)" node --test test/ +echo; echo "════ 汇总 ════" +for i in "${!NAMES[@]}"; do printf '%-6s %-28s %s\n' "${RESULTS[$i]}" "${NAMES[$i]}" "${TIMES[$i]}"; done +[ "$FAILED" = 0 ] && echo "全部通过" || echo "存在失败" +exit "$FAILED"