Tony Kang 1 rok pred
rodič
commit
05be1f71b1

+ 1 - 0
app/controller/payment_controller.js

@@ -791,6 +791,7 @@ module.exports = app => {
                 if (trInfo.uid === ctx.session.sessionUser.accountId && trInfo.is_del === 0 && trInfo.rpt_id) {
                     const rptTpl = await ctx.service.rptTpl.getDataById(trInfo.rpt_id);
                     if (rptTpl) {
+                        rptTpl.source_type = 101;
                         const pageRst = await ctx.service.jpcReport.getAllPreviewPagesCommon(rptTpl, 'A4');
                         // const pageRst = await ctx.service.jpcReport.getPreviewPagesWithDiscreteDataCommon(ctx, rptTpl, 'A4', this.app.baseDir, null);
                         renderData.rptMsg = pageRst.items[0];

+ 1 - 0
app/service/payment_detail.js

@@ -70,6 +70,7 @@ module.exports = app => {
                 const preDetail = await this.addCommomCheck(trInfo, code);
                 const rptTpl = await this.ctx.service.rptTpl.getDataById(trInfo.rpt_id);
                 const pageRst = await this.ctx.service.jpcReport.getAllPreviewPagesCommon(rptTpl, 'A4');
+                // rptTpl.source_type = 101;
                 // const pageRst = await ctx.service.jpcReport.getPreviewPagesWithDiscreteDataCommon(ctx, rptTpl, 'A4', this.app.baseDir, null);
                 const newDetail = {
                     tender_id: this.ctx.paymentTender.id,