新增 【兑换码管理】立减金商品,“当前成本价”=“商品官方价”

This commit is contained in:
wangsongsole 2022-06-14 10:42:36 +08:00
parent 60592990d7
commit 87dcbe77da
4 changed files with 40 additions and 4 deletions

View File

@ -1159,7 +1159,7 @@ export default class acclist extends React.Component {
prop: 'cost_price', prop: 'cost_price',
name: 'cost_price', name: 'cost_price',
width: '250px', width: '250px',
type: 'normal' type: 'slot'
}, },
{ {
title: '合同价', title: '合同价',
@ -1628,6 +1628,15 @@ export default class acclist extends React.Component {
if (com == 'type') { if (com == 'type') {
return <>{rowData.type === 2 ? '立减金' : '商品'}</> return <>{rowData.type === 2 ? '立减金' : '商品'}</>
} }
if (com == 'cost_price') {
return (
<>
{rowData.type === 2
? rowData.official_price
: rowData.cost_price}
</>
)
}
if (com == 'edit') { if (com == 'edit') {
return ( return (
<span <span

View File

@ -1049,7 +1049,7 @@ export default class exchangedit extends React.Component {
prop: 'cost_price', prop: 'cost_price',
name: 'cost_price', name: 'cost_price',
width: 'auto', width: 'auto',
type: 'normal' type: 'slot'
}, },
{ {
title: '合同单价', title: '合同单价',
@ -1270,6 +1270,15 @@ export default class exchangedit extends React.Component {
if (com == 'type') { if (com == 'type') {
return <>{rowData.type === 2 ? '立减金' : '商品'}</> return <>{rowData.type === 2 ? '立减金' : '商品'}</>
} }
if (com == 'cost_price') {
return (
<>
{rowData.type === 2
? rowData.official_price
: rowData.cost_price}
</>
)
}
if (com == 'edit') { if (com == 'edit') {
return ( return (
<a <a

View File

@ -974,7 +974,7 @@ export default class acclist extends React.Component {
prop: 'cost_price', prop: 'cost_price',
name: 'cost_price', name: 'cost_price',
width: '200px', width: '200px',
type: 'normal' type: 'slot'
}, },
{ {
title: '合同价', title: '合同价',
@ -1469,6 +1469,15 @@ export default class acclist extends React.Component {
if (com == 'type') { if (com == 'type') {
return <>{rowData.type === 2 ? '立减金' : '商品'}</> return <>{rowData.type === 2 ? '立减金' : '商品'}</>
} }
if (com == 'cost_price') {
return (
<>
{rowData.type === 2
? rowData.official_price
: rowData.cost_price}
</>
)
}
if (com == 'edit') { if (com == 'edit') {
return ( return (
<a <a

View File

@ -1246,7 +1246,7 @@ export default class acclist extends React.Component {
prop: 'cost_price', prop: 'cost_price',
name: 'cost_price', name: 'cost_price',
width: 'auto', width: 'auto',
type: 'normal' type: 'slot'
}, },
{ {
title: '合同价', title: '合同价',
@ -1638,6 +1638,15 @@ export default class acclist extends React.Component {
if (com == 'type') { if (com == 'type') {
return <>{rowData.type === 2 ? '立减金' : '商品'}</> return <>{rowData.type === 2 ? '立减金' : '商品'}</>
} }
if (com == 'cost_price') {
return (
<>
{rowData.type === 2
? rowData.official_price
: rowData.cost_price}
</>
)
}
if (com == 'edit') { if (com == 'edit') {
return ( return (
<span <span