feat: 支持待分配/待抢单修改付款金额并增加价格历史

This commit is contained in:
2026-11-03 10:31:46 +08:00
parent 232ef6ce79
commit 96676841b5
22 changed files with 626 additions and 78 deletions
@@ -0,0 +1,19 @@
import assert from 'node:assert/strict'
import { readFile } from 'node:fs/promises'
import test from 'node:test'
test('价格历史入口只在 hasPaymentAmountHistory 为真时显示,并调用专用接口', async () => {
const cell = await readFile(
new URL('../src/pages/admin/panels/WorkOrderTableCells.tsx', import.meta.url),
'utf8',
)
assert.ok(cell.includes('order.hasPaymentAmountHistory ?'))
assert.ok(cell.includes('fetchAdminWorkOrderPaymentAmountHistory'))
assert.ok(cell.includes('价格历史记录'))
const service = await readFile(
new URL('../src/services/admin/worker-platform.ts', import.meta.url),
'utf8',
)
assert.ok(service.includes('/payment-amount-history'))
})