Explorar o código

导入文件,屏蔽预付款

MaiXinRong %!s(int64=2) %!d(string=hai) anos
pai
achega
c7a48c6dc1
Modificáronse 1 ficheiros con 10 adicións e 8 borrados
  1. 10 8
      app/controller/file_controller.js

+ 10 - 8
app/controller/file_controller.js

@@ -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 };