From 9acdabaa55d2d292a7dbbebcabba7a3d3f0badba Mon Sep 17 00:00:00 2001 From: zhangds Date: Thu, 29 Sep 2022 18:19:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dkey=E6=89=B9=E6=AC=A1?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=AF=B9=E8=B1=A1=E5=AE=A1=E6=89=B9=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=8F=AF=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/key/edit.js | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) 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) => {} );