diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index 38414daa..0c3e87d0 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -252,7 +252,9 @@ export default class acclist extends React.Component { } else { let temp = _.map(data.coupon, (o) => { o.checked = true; - o.disabled = true; + if (o.status && o.status !== 7) { + o.disabled = true; + } return o; }); this.setState({ couponData: temp }); @@ -312,18 +314,21 @@ export default class acclist extends React.Component { this.setState({ begintime: req.begin_time }); this.setState({ mobile_excel: req.mobile_excel }); this.setState({ mobile_repeat: req.mobile_repeat }); - + console.log("详情 =>", req); + this.keyFormat(req); // 如果有审批单的数据 - if (approval_id > 0) { - console.log("获取审批单数据"); - getApprovalsInfo(approval_id).then((res) => { - handelResponse(res, (appReq, msg) => { - this.keyFormat(appReq); - }); - }); - } else { - this.keyFormat(req); - } + // if (approval_id > 0) { + // console.log("获取审批单数据"); + // getApprovalsInfo(approval_id).then((res) => { + // handelResponse(res, (appReq, msg) => { + // let appReqs = appReq; + // appReqs.bind_object = req.bind_object; + // this.keyFormat(appReq); + // }); + // }); + // } else { + // this.keyFormat(req); + // } }, (err) => {} );