瀏覽代碼

导入计量台账Excel相关Bug

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

+ 1 - 1
app/service/stage_stash.js

@@ -70,9 +70,9 @@ class loadStageExcelTree {
 
                 contract_qty = this.ctx.helper.add(contract_qty, p.contract_qty);
                 let ssp = sourceStagePos.find(x => { return x.pid === sp.id; });
-                sourceStagePos.splice(sourceStagePos.indexOf(ssp), 1);
                 if (ssp) {
                     this.updatePos.push({ id: ssp.id, contract_qty: p.contract_qty, postil: p.postil || ssp.postil || '' });
+                    sourceStagePos.splice(sourceStagePos.indexOf(ssp), 1);
                 } else {
                     this.insertPos.push({
                         tid: this.default.tid, sid: this.default.sid, said: this.default.said, times: 1, order: 0,