|
|
@@ -230,11 +230,12 @@ module.exports = app => {
|
|
|
const rela_tender = await ctx.subProject.rela_tender.split(',');
|
|
|
const result = tenderList.filter(x => { return rela_tender.indexOf(x.id + '') >= 0});
|
|
|
for (const r of result) {
|
|
|
- r.advance = await ctx.service.advance.getAllDataByCondition({ columns: ['id', 'order', 'type'], where: { tid: r.id }});
|
|
|
- r.advance.forEach(a => {
|
|
|
- const type = advanceConst.typeCol.find(x => { return x.type === a.type });
|
|
|
- if (type) a.type_str = type.name;
|
|
|
- });
|
|
|
+ // 预付款附件未上传oss,暂不导入
|
|
|
+ // r.advance = await ctx.service.advance.getAllDataByCondition({ columns: ['id', 'order', 'type'], where: { tid: r.id }});
|
|
|
+ // r.advance.forEach(a => {
|
|
|
+ // const type = advanceConst.typeCol.find(x => { return x.type === a.type });
|
|
|
+ // if (type) a.type_str = type.name;
|
|
|
+ // });
|
|
|
r.stage = await ctx.service.stage.getAllDataByCondition({ columns: ['id', 'order'], where: { tid: r.id, status: auditConst.stage.status.checked } });
|
|
|
}
|
|
|
ctx.body = {err: 0, msg: '', data: result };
|
|
|
@@ -272,9 +273,10 @@ module.exports = app => {
|
|
|
case 'stage':
|
|
|
files = await this._loadStageAtt(data);
|
|
|
break;
|
|
|
- case 'advance':
|
|
|
- files = await this._loadAdvanceAtt(data);
|
|
|
- break;
|
|
|
+ // 预付款附件未上传oss,暂不导入
|
|
|
+ // case 'advance':
|
|
|
+ // files = await this._loadAdvanceAtt(data);
|
|
|
+ // break;
|
|
|
default: throw '未知文件类型';
|
|
|
}
|
|
|
ctx.body = {err: 0, msg: '', data: files };
|