fix: 修改立减金库存数量

This commit is contained in:
zhangds 2022-10-24 11:42:27 +08:00
parent dd6110e4d6
commit 12bf112c20
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ export const knockGoldFun = (item) => {
table_obj.product_name = item.batch_goods_name; // 商品名 table_obj.product_name = item.batch_goods_name; // 商品名
table_obj.official_price = item.reduce_amount; // 官方价 table_obj.official_price = item.reduce_amount; // 官方价
table_obj.contract_price = item.price; // 合同价格 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.channel_activity_id = item.channel_activity_id; // 批次号
table_obj.all_budget = Number(item.all_budget); // 总预算 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}`; // 有效时间段 table_obj.effectDate = `${item.time_limit.effect_time.start_time}${item.time_limit.effect_time.end_time}`; // 有效时间段