秒杀成本价计算售价

This commit is contained in:
faiz 2024-11-21 15:36:49 +08:00
parent 941202c180
commit eb7ae34837
1 changed files with 4 additions and 3 deletions

View File

@ -1346,10 +1346,11 @@ export default {
) {
return this.$message.warning("成本价过高请重新调整!!!");
}
row.price =
row.price = toFixedNoRounding(
row.original_price *
(1 -
toFixedNoRounding(1 - Number(row.cost) / Number(row.original_cost)));
toFixedNoRounding(1 - Number(row.cost) / Number(row.original_cost)))
);
},
//
addTem() {