fix: 修复key批次绑定对象审批是否可编辑

This commit is contained in:
zhangds 2022-09-29 18:19:21 +08:00
parent 8a6709a1ff
commit 9acdabaa55
1 changed files with 17 additions and 12 deletions

View File

@ -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) => {}
);