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) //总库