将助理成员显示名称统一为娜娜和小昊

This commit is contained in:
summer committed 2026-11-03 01:15:41 +08:00
1 parent f4ac7502d3
commit 518513e630
28 files changed
+120 -96

No files matched your search

@@ -85,7 +85,7 @@ test('补收与正向收款更正展示6‰,退款和费用更正不新增卡
test('锁价首收按实际付款预览而非预计报价,付款人进入payment,原卡费只读留存',()=>{
const h=harness(),root=preview(),form=fieldsForm({date:D,customer:'合成客户',salesperson:'麦麦',note:'',discount:'0',name:'足金999',quantity:'1.000',goldPrice:'1000',laborRate:'0',laborMode:'gram',pieces:'1',received_amount:'500',payment_recipient:'助理',payment_method:'信用卡',credit_card_fee_payer:'assistant',material_rate:'800',material_payer:'owner',payment_verified:input('on',{checked:true}),material_verified:input('on',{checked:true})});
h.nodes.set('#price-lock-create-form',form);h.nodes.set('#lock-create-card-fee',root);for(const id of ['#lock-create-total','#lock-sale-estimate','#lock-material-estimate'])h.nodes.set(id,{textContent:''});h.run('syncPriceLockCreate()');assert.equal(root.fields['[data-credit-card-amount]'].value,'3.00');assert.equal(h.json('collectPriceLockCreate().payment').credit_card_fee_payer,'assistant');assert.equal(h.nodes.get('#lock-create-total').textContent,'¥1,000');
h.context.__lock={credit_card_fees:[{date:'2026-10-21',amount:200,payer:'owner'},{date:D,amount:80,payer:'assistant'}],credit_card_fee_total:280};const html=h.run('priceLockCardFeesHTML(__lock)');for(const text of ['2.80','2.00','0.80','麦麦支付','助理支付','交付时沿用,不重复'])assert.ok(html.includes(text));assert.doesNotMatch(html,/<input|<select|remove-/);
h.context.__lock={credit_card_fees:[{date:'2026-10-21',amount:200,payer:'owner'},{date:D,amount:80,payer:'assistant'}],credit_card_fee_total:280};const html=h.run('priceLockCardFeesHTML(__lock)');for(const text of ['2.80','2.00','0.80','麦麦支付','娜娜支付','交付时沿用,不重复'])assert.ok(html.includes(text));assert.doesNotMatch(html,/<input|<select|remove-/);
});
test('交付仅正补收产生新费,已付卡费和其他费用始终留在已知合计',()=>{