feat: fix#325
This commit is contained in:
parent
44e550a0eb
commit
c7b45440a0
@ -271,6 +271,7 @@ export class RecordService {
|
|||||||
});
|
});
|
||||||
const product_id = product.id;
|
const product_id = product.id;
|
||||||
const exist = priceRuleArr.findIndex((rule) => rule.id === product_id) > -1;
|
const exist = priceRuleArr.findIndex((rule) => rule.id === product_id) > -1;
|
||||||
|
// 规则去重
|
||||||
!exist && priceRuleArr.push({ id: product_id, unit_price: porduct_item.price });
|
!exist && priceRuleArr.push({ id: product_id, unit_price: porduct_item.price });
|
||||||
const fee = values.data.complements.filter(
|
const fee = values.data.complements.filter(
|
||||||
(item) => item.associate.name === porduct_item.name && item.associate.size === porduct_item.size,
|
(item) => item.associate.name === porduct_item.name && item.associate.size === porduct_item.size,
|
||||||
|
Loading…
Reference in New Issue
Block a user