修改 营销计划 意外的错误

This commit is contained in:
wangsongsole 2022-05-27 14:20:39 +08:00
parent 36d29a8a92
commit f93b5dfebb
2 changed files with 41 additions and 41 deletions

View File

@ -955,7 +955,7 @@ export default class exchangedit extends React.Component {
},
{
title: '有效时间段',
width: '575px',
width: '450px',
prop: 'effectDate',
name: 'effectDate',
type: 'normal'

View File

@ -914,7 +914,7 @@ export default class acclist extends React.Component {
width: 'auto',
prop: 'product_name',
name: 'product_name',
type: 'slot'
type: 'normal'
},
{
title: '立减金平台批次号',
@ -948,14 +948,14 @@ export default class acclist extends React.Component {
title: '当前成本价格',
prop: 'cost_price',
name: 'cost_price',
width: 'auto',
width: '200px',
type: 'normal'
},
{
title: '合同价',
name: 'contract_price',
prop: 'contract_price',
type: 'slot',
type: 'normal',
width: 'auto'
},
{
@ -968,7 +968,7 @@ export default class acclist extends React.Component {
title: '库存总数量',
prop: 'quantity',
name: 'quantity',
type: 'slot',
type: 'normal',
width: 'auto'
},
{
@ -1441,45 +1441,45 @@ export default class acclist extends React.Component {
this.setState({ rank: arr })
}}
ComponentHandler={(com, rowData, rowIndex) => {
if (com == 'product_name') {
return (
<Input
width={100}
placeholder='请输入商品名称'
value={rowData.product_name}
onChange={(e) => {
this.onNameChange(e, rowData, rowIndex)
}}
/>
)
}
if (com == 'quantity') {
return (
<Input
width={100}
placeholder='请输入数量'
value={rowData.quantity}
onChange={(e) => {
this.onQuantityChange(e, rowData, rowIndex)
}}
/>
)
}
// if (com == 'product_name') {
// return (
// <Input
// width={100}
// placeholder='请输入商品名称'
// value={rowData.product_name}
// onChange={(e) => {
// this.onNameChange(e, rowData, rowIndex)
// }}
// />
// )
// }
// if (com == 'quantity') {
// return (
// <Input
// width={100}
// placeholder='请输入数量'
// value={rowData.quantity}
// onChange={(e) => {
// this.onQuantityChange(e, rowData, rowIndex)
// }}
// />
// )
// }
if (com == 'type') {
return <>{rowData.type === 2 ? '立减金' : '商品'}</>
}
if (com == 'contract_price') {
return (
<Input
width={100}
placeholder='请输入合同价'
value={rowData.contract_price}
onChange={(e) => {
this.onPriceChange(e, rowData, rowIndex)
}}
/>
)
}
// if (com == 'contract_price') {
// return (
// <Input
// width={100}
// placeholder='请输入合同价'
// value={rowData.contract_price}
// onChange={(e) => {
// this.onPriceChange(e, rowData, rowIndex)
// }}
// />
// )
// }
if (com == 'edit') {
return (