Ver código fonte

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

MaiXinRong 2 anos atrás
pai
commit
dc3a4093b6
1 arquivos alterados com 1 adições e 0 exclusões
  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 });