|
|
@@ -440,11 +440,16 @@ test('payment detail presents every web field and nested transfer field with Chi
|
|
|
test('payment cards reproduce the Web Excel columns and operation labels', () => {
|
|
|
const presenter = source('./list-presenter.js')
|
|
|
const card = source('./components/MarketListCard.vue')
|
|
|
+ const paymentCardSource = presenter.match(/function paymentCard\([\s\S]*?\n\}\n\nfunction freightSampleBlock/)?.[0] || ''
|
|
|
+ assert.ok(paymentCardSource.includes("field('姓名'"))
|
|
|
for (const label of [
|
|
|
- '姓名', '手机号', '样本编码', '签署日期', '存储年限', '存储项目', '合同总额',
|
|
|
- '缴费方式', '优惠金额', '应收总额', '应缴费时间',
|
|
|
+ '姓名', '手机号', '样本编码', '签署日期', '存储项目', '合同总额',
|
|
|
+ '缴费方式', '应收总额', '应缴费时间',
|
|
|
'已缴费时间', '欠缴费金额', '累计实缴', '待缴金额', '备注'
|
|
|
]) assert.match(presenter, new RegExp(label))
|
|
|
+ assert.doesNotMatch(paymentCardSource, /field\('协议号'/)
|
|
|
+ assert.doesNotMatch(paymentCardSource, /field\('存储年限'/)
|
|
|
+ assert.doesNotMatch(paymentCardSource, /field\('优惠金额'/)
|
|
|
assert.match(presenter, /periodBlocks:/)
|
|
|
assert.match(presenter, /footerFields:/)
|
|
|
assert.match(card, /应缴费金额/)
|