Commit 76cd9f50 by 王悦

fix 阿里直购查询需求报错

parent 1f33ff96
...@@ -665,14 +665,16 @@ class AliyunQcService { ...@@ -665,14 +665,16 @@ class AliyunQcService {
if (!ns || !ns.id) { if (!ns || !ns.id) {
return system.getResultFail(-102, "未知方案"); return system.getResultFail(-102, "未知方案");
} }
var needinfo = await this.needinfoDao.model.findOne({ if (pobj.isDirectBuy !== "true") {
where: { needNo: ns.needNo }, raw: true var needinfo = await this.needinfoDao.model.findOne({
}); where: {needNo: ns.needNo}, raw: true
if (!needinfo) { });
return system.getResultFail(-104, "未知方案需求"); if (!needinfo) {
} return system.getResultFail(-104, "未知方案需求");
if (needinfo.status == "ygb") { }
return system.getResultFail(-105, "该方案需求状态为" + needinfo.statusName + ",不能执行此操作"); if (needinfo.status == "ygb") {
return system.getResultFail(-105, "该方案需求状态为" + needinfo.statusName + ",不能执行此操作");
}
} }
// if (ns.status == "yzf" || ns.status == "ywc") { // if (ns.status == "yzf" || ns.status == "ywc") {
// return system.getResultFail(-103, "该方案状态为" + ns.statusName + ",不能执行此操作"); // 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