修改 营销计划 意外的错误

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: '有效时间段', title: '有效时间段',
width: '575px', width: '450px',
prop: 'effectDate', prop: 'effectDate',
name: 'effectDate', name: 'effectDate',
type: 'normal' type: 'normal'

View File

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