diff --git a/src/pages/exchangecode/exchangecodeAdd/utils.js b/src/pages/exchangecode/exchangecodeAdd/utils.js index aca22019..14ff4dcf 100644 --- a/src/pages/exchangecode/exchangecodeAdd/utils.js +++ b/src/pages/exchangecode/exchangecodeAdd/utils.js @@ -203,7 +203,7 @@ export function redPacketsDataFn(params) { newObj.all_budget = params.all_budget newObj.effectDate = params.begin_time + " 至 " + params.end_time //有效时间 newObj.contract_price = params.total_contract_price / params.num //合同单价 - newObj.cost_price = "-" //单价 + newObj.cost_price = price //单价 newObj.official_price = price //官方价 newObj.quantity = params.total_stock || params.num //总库 newObj.stock = params.stock || params.num //剩余 diff --git a/src/tools/index.js b/src/tools/index.js index 4886a9d9..5d12e07d 100644 --- a/src/tools/index.js +++ b/src/tools/index.js @@ -48,7 +48,7 @@ export const redPacketsFun = (item) => { table_obj.product_name = item.batch_goods_name // 商品名 table_obj.official_price = price // 官方价 table_obj.contract_price = item.total_contract_price / item.num // 合同价格 - table_obj.cost_price = "-" //单价 + table_obj.cost_price = price //单价 table_obj.quantity = item.num // 库存数量 table_obj.stock = item.stock || item.num // 剩余库存数量 table_obj.channel_activity_id = item.cash_activity_id // 批次号