Explorar el Código

合同支付,附件,下载问题

MaiXinRong hace 3 años
padre
commit
e5cfb41e24
Se han modificado 2 ficheros con 1 adiciones y 3 borrados
  1. 0 2
      app/controller/stage_controller.js
  2. 1 1
      app/router.js

+ 0 - 2
app/controller/stage_controller.js

@@ -857,11 +857,9 @@ module.exports = app => {
                 const renderData = await this._getDefaultRenderData(ctx);
                 renderData.dealPay = await ctx.service.stagePay.getStagePays(ctx.stage);
                 const payAtt = await ctx.service.payAtt.getStageData({ sid: ctx.stage.id });
-                console.log(payAtt);
                 // 附件不取下载地址
                 for (const dp of renderData.dealPay) {
                     dp.attachment = payAtt.filter(x => { return x.pid === dp.pid });
-                    console.log(dp.attachment);
                 }
                 renderData.calcBase = await ctx.service.stage.getStagePayCalcBase(ctx.stage, ctx.tender.info);
                 renderData.jsFiles = this.app.jsFiles.common.concat(this.app.jsFiles.stage.pay);

+ 1 - 1
app/router.js

@@ -288,7 +288,7 @@ module.exports = app => {
     app.post('/tender/:id/measure/stage/:order/pay/detail', sessionAuth, tenderCheck, uncheckTenderCheck, stageCheck, 'stageController.chapterDetail');
     app.post('/tender/:id/measure/stage/:order/pay/save', sessionAuth, tenderCheck, uncheckTenderCheck, stageCheck, 'stageController.savePayData');
     app.post('/tender/:id/measure/stage/:order/pay/upload/file', sessionAuth, tenderCheck, uncheckTenderCheck, stageCheck, 'stageController.payUploadFile');
-    app.get('/tender/:id/measure/stage/:order/pay/download/file/:pid/:index', sessionAuth, 'stageController.payDownloadFile');
+    app.get('/tender/:id/measure/stage/:order/pay/download/file/:pid', sessionAuth, 'stageController.payDownloadFile');
     app.post('/tender/:id/measure/stage/:order/pay/delete/file', sessionAuth, tenderCheck, uncheckTenderCheck, stageCheck, 'stageController.payDeleteFile');
 
     // 变更概况