This commit is contained in:
2026-10-27 17:39:28 +08:00
parent b913a931ff
commit dd64f443cf
12 changed files with 277 additions and 144 deletions
@@ -150,7 +150,7 @@ test('truck requires both contacts vehicle and minute times without inheriting l
truck.form.pickupAt = '2026-10-20T09:30:00'
let failure
truck.rules.value.deliveryAt[1].validator({}, '2026-10-20T09:29:00', error => { failure = error })
assert.equal(failure.message, '送货时间不能早于取货时间')
assert.equal(failure.message, 'C点送达时间不能早于B点取货时间')
})
test('truck retry submits the complete new contract with identical local times and idempotency key', async () => {
@@ -176,8 +176,8 @@ test('truck details render saved minute times and unknown pool demand without ti
current.detail.value = { summary: { vehicleType: null, pickupAt: '2026-10-20T09:30:00', deliveryAt: null }, originAddress: null, destinationAddress: null, remark: null }
const fields = new Map(current.detailFields.value)
assert.equal(fields.get('车辆类型'), '—')
assert.equal(fields.get('取货时间'), '2026-10-20 09:30')
assert.equal(fields.get('送货时间'), '—')
assert.equal(fields.get('B点取货时间'), '2026-10-20 09:30')
assert.equal(fields.get('C点送达时间'), '—')
assert.equal(fields.has('柜型'), false)
assert.equal(fields.has('托盘数'), false)
})