Browse Source

台账分解,工程量清单模式,批量插入清单部位,灰选

MaiXinRong 6 years ago
parent
commit
6d6d533e45
2 changed files with 2 additions and 1 deletions
  1. 1 0
      app/public/js/ledger.js
  2. 1 1
      app/service/stage_pos_final.js

+ 1 - 0
app/public/js/ledger.js

@@ -636,6 +636,7 @@ $(document).ready(function() {
                     name: '批量插入清单-部位',
                     icon: 'fa-sign-in',
                     disabled: function (key, opt) {
+                        if (!checkTzMeasureType()) return true;
                         const sheet = ledgerSpread.getActiveSheet();
                         const selection = sheet.getSelections();
                         const row = selection[0].row;

+ 1 - 1
app/service/stage_pos_final.js

@@ -73,7 +73,7 @@ module.exports = app => {
                     if (!p) continue;
                     c.contract_qty = this.ctx.helper.add(c.contract_qty, p.contract_qty);
                     c.qc_qty = this.ctx.helper.add(c.qc_qty, p.qc_qty);
-                    pre.splice(pre.index(p), 1);
+                    pre.splice(pre.indexOf(p), 1);
                 }
                 await transaction.insert(this.tableName, cur);
                 //await transaction.insert(this.tableName, cur.concat(pre));