From 9e9f07ed4f9b25c77eec0df389bed5cef360bf8d Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Thu, 29 Jun 2023 15:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=8A=20fix:=20=E3=80=90=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=85=91=E6=8D=A2=E7=A0=81=E3=80=91=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E4=B8=AD=EF=BC=8C=E9=9A=8F=E6=9C=BA=E7=BA=A2?= =?UTF-8?q?=E5=8C=85=E7=9A=84=E6=88=90=E6=9C=AC=E4=BB=B7=E6=A0=BC=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=BA=A2=E5=8C=85=E7=9A=84=E5=8C=BA=E9=97=B4=E5=80=BC?= =?UTF-8?q?=EF=BC=8C=E5=9B=BA=E9=A2=9D=E7=BA=A2=E5=8C=85=E7=9A=84=E6=88=90?= =?UTF-8?q?=E6=9C=AC=E4=BB=B7=E5=B1=95=E7=A4=BA=E7=BA=A2=E5=8C=85=E7=9A=84?= =?UTF-8?q?=E9=9D=A2=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/exchangecodeAdd/utils.js | 2 +- src/tools/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 // 批次号