修正 新增立减金,立减金的官方价应该取面额
This commit is contained in:
parent
2f5c7a80a6
commit
af665be8ba
|
@ -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) //总库
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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) //总库
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
|
|
@ -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) //总库
|
||||
|
|
|
@ -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) //总库
|
||||
|
|
Loading…
Reference in New Issue