From 12bf112c208b10b1a21e1e6224d95c44b73d5b94 Mon Sep 17 00:00:00 2001 From: zhangds Date: Mon, 24 Oct 2022 11:42:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=AB=8B=E5=87=8F?= =?UTF-8?q?=E9=87=91=E5=BA=93=E5=AD=98=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/index.js b/src/tools/index.js index 14bbe7d1..af4d5845 100644 --- a/src/tools/index.js +++ b/src/tools/index.js @@ -9,7 +9,7 @@ export const knockGoldFun = (item) => { table_obj.product_name = item.batch_goods_name; // 商品名 table_obj.official_price = item.reduce_amount; // 官方价 table_obj.contract_price = item.price; // 合同价格 - table_obj.quantity = Math.trunc(item.all_budget / item.reduce_amount); // 库存数量 + table_obj.quantity = item.total_stock; // 库存数量 table_obj.channel_activity_id = item.channel_activity_id; // 批次号 table_obj.all_budget = Number(item.all_budget); // 总预算 table_obj.effectDate = `${item.time_limit.effect_time.start_time} 至 ${item.time_limit.effect_time.end_time}`; // 有效时间段