From 97f7cdc6d9770a09a7a21da56510a3e1dfe5c68a Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Mon, 8 Aug 2022 11:45:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E9=94=AE=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E5=85=91=E6=8D=A2=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/copyCode/index.jsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/pages/exchangecode/copyCode/index.jsx b/src/pages/exchangecode/copyCode/index.jsx index ce618df0..9bf8a1b6 100644 --- a/src/pages/exchangecode/copyCode/index.jsx +++ b/src/pages/exchangecode/copyCode/index.jsx @@ -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,