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