修改一键复制兑换码

This commit is contained in:
wangsongsole 2022-08-08 11:45:16 +08:00
parent 3e5ccf5abd
commit 97f7cdc6d9
1 changed files with 12 additions and 1 deletions

View File

@ -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,