Commit 76cd9f50 by 王悦

fix 阿里直购查询需求报错

parent 1f33ff96
......@@ -665,8 +665,9 @@ class AliyunQcService {
if (!ns || !ns.id) {
return system.getResultFail(-102, "未知方案");
}
if (pobj.isDirectBuy !== "true") {
var needinfo = await this.needinfoDao.model.findOne({
where: { needNo: ns.needNo }, raw: true
where: {needNo: ns.needNo}, raw: true
});
if (!needinfo) {
return system.getResultFail(-104, "未知方案需求");
......@@ -674,6 +675,7 @@ class AliyunQcService {
if (needinfo.status == "ygb") {
return system.getResultFail(-105, "该方案需求状态为" + needinfo.statusName + ",不能执行此操作");
}
}
// if (ns.status == "yzf" || ns.status == "ywc") {
// return system.getResultFail(-103, "该方案状态为" + ns.statusName + ",不能执行此操作");
// }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment