修改一键复制兑换码
This commit is contained in:
parent
3e5ccf5abd
commit
97f7cdc6d9
|
@ -683,6 +683,11 @@ export default class acclist extends React.Component {
|
|||
}
|
||||
|
||||
onSubmit() {
|
||||
let selection = this.refs.bindObj.getSelectData()
|
||||
if (selection.filter((item) => !item.disabled).length == 0) {
|
||||
return Notify.error('请绑定对象')
|
||||
}
|
||||
|
||||
this.setState({ audit_visible: true })
|
||||
}
|
||||
|
||||
|
@ -691,6 +696,9 @@ export default class acclist extends React.Component {
|
|||
let formdata = selection.filter((item) => {
|
||||
return !item.hasOwnProperty('disabled') || item.disabled == false
|
||||
})
|
||||
|
||||
/* 被复制得兑换码id */
|
||||
let copy_code_id = ~~sessionStorage.getItem('copy_code_id')
|
||||
// 转换数据
|
||||
let dataCopy = _.cloneDeep(formdata)
|
||||
dataCopy.map((item) => {
|
||||
|
@ -735,6 +743,7 @@ export default class acclist extends React.Component {
|
|||
reseller_name: this.state.reseller.name,
|
||||
company_name: this.state.reseller.company_name,
|
||||
receive_email: this.state.reseller.contact_email[0],
|
||||
copy_code_id,
|
||||
payment_direction:
|
||||
this.state.payment_direction[this.state.paytype - 1]
|
||||
}
|
||||
|
@ -769,6 +778,7 @@ export default class acclist extends React.Component {
|
|||
reseller_name: this.state.reseller?.name,
|
||||
company_name: this.state.reseller?.company_name,
|
||||
receive_email: this.state.reseller?.contact_email[0],
|
||||
copy_code_id,
|
||||
payment_direction:
|
||||
this.state.payment_direction[this.state.paytype - 1]
|
||||
}
|
||||
|
@ -803,6 +813,7 @@ export default class acclist extends React.Component {
|
|||
reseller_name: this.state.reseller.name,
|
||||
company_name: this.state.reseller.company_name,
|
||||
receive_email: this.state.reseller.contact_email[0],
|
||||
copy_code_id,
|
||||
payment_direction:
|
||||
this.state.payment_direction[this.state.paytype - 1]
|
||||
}
|
||||
|
@ -847,6 +858,7 @@ export default class acclist extends React.Component {
|
|||
mobile_excel: this.state.mobile_excel,
|
||||
mobile_repeat: this.state.mobile_repeat,
|
||||
code_batch: dataCopy,
|
||||
copy_code_id,
|
||||
reseller_id: this.state.reseller.id,
|
||||
reseller_name: this.state.reseller.name,
|
||||
company_name: this.state.reseller.company_name,
|
||||
|
@ -928,7 +940,6 @@ export default class acclist extends React.Component {
|
|||
}
|
||||
|
||||
rowItemClick(row, rowIndex) {
|
||||
debugger
|
||||
let codeInfo = {
|
||||
//数据模型不可少
|
||||
code_name: row.title,
|
||||
|
|
Loading…
Reference in New Issue