修复生产环境折扣价显示错误问题

This commit is contained in:
2024-05-16 13:07:10 +08:00
parent 100744cfaf
commit 62c9994444
7 changed files with 25 additions and 12 deletions

View File

@@ -85,7 +85,7 @@ const show = async (goodsId: string, fn: Function) => {
callback = fn;
goodsDetailBean.value = await getGoodsDetail(goodsId);
goodsDetailBean.value.consumePrice = Number((goodsDetailBean.value?.price * ((userInfo?.value?.levelEntity?.discount || 100) / 100)).toFixed(2));
goodsDetailBean.value.consumePrice = Number((goodsDetailBean.value?.price * userInfo?.value.userDiscount).toFixed(2));
if((goodsDetailBean.value?.stocks?.length || 0) <= 0) {
showToast('暂无库存');