فهرست منبع

总额计量单位限制调整

MaiXinRong 1 سال پیش
والد
کامیت
f8a43509d3
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      app/public/js/stage.js

+ 2 - 1
app/public/js/stage.js

@@ -1267,9 +1267,10 @@ $(document).ready(() => {
                 const node = SpreadJsObj.getSelectObject(info.sheet);
                 const col = info.sheet.zh_setting.cols[info.col];
                 const posRange = stagePos.getLedgerPos(node.id);
+                const tpUnit = ['总额', '元', '台', '个', '处', '月', '棵', '套', '组', '辆'];
                 if (node.pre_used === 1 ||
                     (node.children && node.children.length > 0) ||
-                    (node.unit !== '总额' && node.unit !== '元') ||
+                    (tpUnit.indexOf(node.unit) < 0) ||
                     (posRange && posRange.length > 0) /*|| !checkZero(node.qc_qty)*/) {
                     SpreadJsObj.reLoadRowData(info.sheet, info.row);
                     return;