修改 立减金兼容老数据修改
This commit is contained in:
parent
5a78d55033
commit
541857aeab
|
@ -519,14 +519,18 @@ export default class acclist extends React.Component {
|
|||
if (com == 'opearo') {
|
||||
return (
|
||||
<div>
|
||||
{rowData.status != 4 && rowData.status != 5 ? (
|
||||
{rowData.status != 4 &&
|
||||
rowData.status != 5 &&
|
||||
rowData.status != 6 ? (
|
||||
<span
|
||||
className='grid-link'
|
||||
onClick={(e) => this.editinfo(e, rowData)}>
|
||||
编辑
|
||||
</span>
|
||||
) : (
|
||||
<span style={{ color: '#d8dbdd' }}>编辑</span>
|
||||
<span style={{ color: '#d8dbdd', marginRight: '5px' }}>
|
||||
编辑
|
||||
</span>
|
||||
)}
|
||||
{rowData.status != 4 && rowData.status != 5 ? (
|
||||
<span
|
||||
|
|
|
@ -46,7 +46,7 @@ const receiveTypeList = [
|
|||
{ key: 'dey', text: '每天' }
|
||||
]
|
||||
//预警百分比
|
||||
const earlyPerList = ['70', '50', '30', '20']
|
||||
const earlyPerList = [70, 50, 30, 20]
|
||||
const initArray = (targetNum) => {
|
||||
return Array.from({ length: targetNum }, (_, index) => index)
|
||||
}
|
||||
|
@ -157,6 +157,7 @@ export default class addKnockGold extends Component {
|
|||
if (item.mobile === items.key) return items
|
||||
}).filter((item1) => item1)[0]
|
||||
})
|
||||
model.origin = this.props.data
|
||||
/* 以下操作 筛选出输入框的预警值并经行填充 */
|
||||
const copy_early_per = this.props.data?.early_per || []
|
||||
copy_early_per.map((item) => {
|
||||
|
@ -272,7 +273,6 @@ export default class addKnockGold extends Component {
|
|||
) {
|
||||
if (this.props.data) {
|
||||
let temp = []
|
||||
|
||||
if (sessionStorage.getItem('knockGoldData')) {
|
||||
temp = JSON.parse(sessionStorage.getItem('knockGoldData'))
|
||||
|
||||
|
@ -281,13 +281,18 @@ export default class addKnockGold extends Component {
|
|||
item.channel_activity_id === this.props.data.channel_activity_id
|
||||
)
|
||||
})
|
||||
|
||||
/* 校验表单 */
|
||||
if (this.limitFunction() === false) {
|
||||
return false
|
||||
}
|
||||
|
||||
temp[index] = this.transformDataCode()
|
||||
if (this.props.data?.goods_id) {
|
||||
temp[index] = Object.assign({
|
||||
...this.state.model.origin,
|
||||
...this.transformDataCode()
|
||||
})
|
||||
} else {
|
||||
temp[index] = this.transformDataCode()
|
||||
}
|
||||
|
||||
sessionStorage.setItem('knockGoldData', JSON.stringify(temp))
|
||||
|
||||
|
|
Loading…
Reference in New Issue