瀏覽代碼

导入Excel时,导入后计算最底层清单数量

MaiXinRong 2 年之前
父節點
當前提交
dc3a4093b6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/service/ledger.js

+ 1 - 0
app/service/ledger.js

@@ -686,6 +686,7 @@ module.exports = app => {
             const analysisExcel = new AnalysisExcel(this.ctx, this.setting);
             const tempData = await this.ctx.service.tenderNodeTemplate.getData(templateId, true);
             const cacheTree = analysisExcel.analysisData(excelData, tempData, { filterZeroGcl: filter });
+            cacheTree.calculateLeafWithPos();
             const transaction = await this.db.beginTransaction();
             try {
                 await transaction.delete(this.tableName, { tender_id: this.ctx.tender.id });