修正 新增立减金,立减金的官方价应该取面额

This commit is contained in:
wangsongsole 2022-06-14 17:12:00 +08:00
parent 2f5c7a80a6
commit af665be8ba
6 changed files with 8 additions and 8 deletions

View File

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

View File

@ -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,

View File

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

View File

@ -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)
})

View File

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

View File

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