فهرست منبع

报表,中间计量相关

MaiXinRong 2 سال پیش
والد
کامیت
941de9897e
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      app/lib/stage_im.js

+ 3 - 2
app/lib/stage_im.js

@@ -351,6 +351,7 @@ class StageIm {
     }
     }
 
 
     _getCalcMemo(im) {
     _getCalcMemo(im) {
+
         if (im.gclBills && im.gclBills.length > 0) {
         if (im.gclBills && im.gclBills.length > 0) {
             const self = this;
             const self = this;
             im.gclBills.sort(function (x, y) {
             im.gclBills.sort(function (x, y) {
@@ -364,7 +365,7 @@ class StageIm {
         if (im.calc_memo !== undefined && im.calc_memo !== null && im.calc_memo !== '') return;
         if (im.calc_memo !== undefined && im.calc_memo !== null && im.calc_memo !== '') return;
 
 
         if (im.leafXmjs && im.leafXmjs.length > 0) {
         if (im.leafXmjs && im.leafXmjs.length > 0) {
-            const memo = ['本期计量:' + (checkZero(im.jl) ? 0 : im.jl) + (im.qc_minus_jl ? (` (不计价 ${im.qc_minus_jl}) `) : ' ') + im.unit];
+            const memo = ['本期计量:' + (im.jl ? 0 : im.jl) + (im.qc_minus_jl ? (` (不计价 ${im.qc_minus_jl}) `) : ' ') + im.unit];
             for (const lx of im.leafXmjs) {
             for (const lx of im.leafXmjs) {
                 for (const p of lx.pos) {
                 for (const p of lx.pos) {
                     memo.push(p.name + ':' + p.jl + (p.qc_minus_jl ? (` (不计价 ${p.qc_minus_jl}) `) : ' ') + im.unit);
                     memo.push(p.name + ':' + p.jl + (p.qc_minus_jl ? (` (不计价 ${p.qc_minus_jl}) `) : ' ') + im.unit);
@@ -380,7 +381,7 @@ class StageIm {
                         memo.push(p.name + ':' + p.jl + (p.qc_minus_jl ? (` (不计价 ${p.qc_minus_jl}) `) : ' ') + b.unit);
                         memo.push(p.name + ':' + p.jl + (p.qc_minus_jl ? (` (不计价 ${p.qc_minus_jl}) `) : ' ') + b.unit);
                     }
                     }
                 } else {
                 } else {
-                    memo.push('清单' + (i+1) + ':' + b.b_code + ' ' + b.name + ':' + (checkZero(b.jl) ? 0 : b.jl) + (b.qc_minus_jl ? (` (不计价 ${b.qc_minus_jl}) `) : ' ') + b.unit);
+                    memo.push('清单' + (i+1) + ':' + b.b_code + ' ' + b.name + ':' + (b.jl ? 0 : b.jl) + (b.qc_minus_jl ? (` (不计价 ${b.qc_minus_jl}) `) : ' ') + b.unit);
                 }
                 }
             }
             }
             im.calc_memo = memo.join('\n');
             im.calc_memo = memo.join('\n');