From af665be8ba1d3edb872e09edba5eb7250a4ed9a5 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 14 Jun 2022 17:12:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=AB=8B=E5=87=8F=E9=87=91=EF=BC=8C=E7=AB=8B=E5=87=8F=E9=87=91?= =?UTF-8?q?=E7=9A=84=E5=AE=98=E6=96=B9=E4=BB=B7=E5=BA=94=E8=AF=A5=E5=8F=96?= =?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/add/add.js | 2 +- src/pages/exchangecode/commodity/commodity.js | 2 +- src/pages/exchangecode/edit/edit.js | 4 ++-- src/pages/plan/add/edit.js | 4 ++-- src/pages/plan/add/step2.js | 2 +- src/pages/plan/key/edit.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index 8513f980..c1ad6973 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -462,7 +462,7 @@ export default class acclist extends React.Component { : item.price //单价 newObj.official_price = item.official_price ? item.official_price - : item.denomination //官方价 + : item.reduce_amount //官方价 newObj.quantity = item.quantity ? item.quantity : Math.trunc(item.all_budget / item.reduce_amount) //总库 diff --git a/src/pages/exchangecode/commodity/commodity.js b/src/pages/exchangecode/commodity/commodity.js index ab02c1e5..909d7e8c 100644 --- a/src/pages/exchangecode/commodity/commodity.js +++ b/src/pages/exchangecode/commodity/commodity.js @@ -174,7 +174,7 @@ export default class commoditylist extends React.Component { code_batch_id: item.code_batch_id, contract_price: item.entity.price, create_time: item.create_time, - official_price: item.entity.denomination, + official_price: item.entity.reduce_amount, channel_activity_id: item.entity.channel_activity_id, product_name: item.entity.batch_goods_name, quantity: item.stock, diff --git a/src/pages/exchangecode/edit/edit.js b/src/pages/exchangecode/edit/edit.js index 309a4531..ff68d44c 100644 --- a/src/pages/exchangecode/edit/edit.js +++ b/src/pages/exchangecode/edit/edit.js @@ -334,7 +334,7 @@ export default class exchangedit extends React.Component { code_batch_id: item.code_batch_id, contract_price: item.entity.price, create_time: item.create_time, - official_price: item.entity.denomination, + official_price: item.entity.reduce_amount, channel_activity_id: item.entity.channel_activity_id, product_name: item.entity.batch_goods_name, quantity: item.entity.stock, @@ -732,7 +732,7 @@ export default class exchangedit extends React.Component { : item.price //单价 newObj.official_price = item.official_price ? item.official_price - : item.denomination //官方价 + : item.reduce_amount //官方价 newObj.quantity = item.quantity ? item.quantity : Math.trunc(item.all_budget / item.reduce_amount) //总库 diff --git a/src/pages/plan/add/edit.js b/src/pages/plan/add/edit.js index a41d3b26..d48771e3 100644 --- a/src/pages/plan/add/edit.js +++ b/src/pages/plan/add/edit.js @@ -230,8 +230,8 @@ export default class add extends React.Component { ' 至 ' + item3.time_limit.effect_time.end_time //有效时间 obj.contract_price = item3.price //单价 - obj.official_price = item3.denomination //官方价 - obj.quantity = Math.trunc(item3.all_budget / item3.denomination) //总库存 + obj.official_price = item3.reduce_amount //官方价 + obj.quantity = Math.trunc(item3.all_budget / item3.reduce_amount) //总库存 obj.origin = item3 item1.products.push(obj) }) diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 7eefe9dd..f7ab801e 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -357,7 +357,7 @@ export default class acclist extends React.Component { : item.price //单价 newObj.official_price = item.official_price ? item.official_price - : item.denomination //官方价 + : item.reduce_amount //官方价 newObj.quantity = item.quantity ? item.quantity : Math.trunc(item.all_budget / item.reduce_amount) //总库 diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index 4371c743..e867ba2b 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -472,7 +472,7 @@ export default class acclist extends React.Component { : item.price //单价 newObj.official_price = item.official_price ? item.official_price - : item.denomination //官方价 + : item.reduce_amount //官方价 newObj.quantity = item.quantity ? item.quantity : Math.trunc(item.all_budget / item.reduce_amount) //总库