1) 修复兑换编辑,无法提交问题

This commit is contained in:
zhangds 2022-04-24 11:00:29 +08:00
parent c98f2e2dcc
commit 59d4cabb79
1 changed files with 3 additions and 2 deletions

View File

@ -243,7 +243,7 @@ export default class exchangedit extends React.Component {
getReseller(req.plan.reseller_id).then((res) => { getReseller(req.plan.reseller_id).then((res) => {
handelResponse(res, (req1, msg) => { handelResponse(res, (req1, msg) => {
console.log("req ==>1", req1); console.log("req ==>1", req1);
req.receive_email = req1.contact_email[0]; req1.receive_email = req1.contact_email[0];
this.setState({ reseller: req1 }); this.setState({ reseller: req1 });
this.setState({ phone_list: req1.contact_phone }); this.setState({ phone_list: req1.contact_phone });
this.setState({ email_list: req1.contact_email }); this.setState({ email_list: req1.contact_email });
@ -443,8 +443,9 @@ export default class exchangedit extends React.Component {
let data = this.buildData(); let data = this.buildData();
let approval_id = sessionStorage.getItem("approval_id"); let approval_id = sessionStorage.getItem("approval_id");
console.log("approval_id ==>", approval_id);
if (approval_id <= 0) { if (Number(approval_id) <= 0) {
getIsRequireApproval(code_batch_id, data).then((res) => { getIsRequireApproval(code_batch_id, data).then((res) => {
handelResponse( handelResponse(
res, res,