Browse Source

选中行设计数量,表达式可编辑调整

MaiXinRong 5 years ago
parent
commit
c50fd668dc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/public/js/ledger.js
  2. 1 1
      app/public/js/revise.js

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

@@ -99,7 +99,7 @@ $(document).ready(function() {
                 if (data) {
                     $('#bills-expr').val(data[col.field]).attr('field', col.field).attr('org', data[col.field]);
                     if (col.field.indexOf('dgn') >= 0) {
-                        $('#bills-expr').attr('readOnly', readOnly || cell.locked() || data.b_code);
+                        $('#bills-expr').attr('readOnly', readOnly || cell.locked() || (_.isString(data.b_code) && data.b_code !== ''));
                     } else {
                         $('#bills-expr').attr('readOnly', readOnly || cell.locked() || (data.children && data.children.length > 0));
                     }

+ 1 - 1
app/public/js/revise.js

@@ -62,7 +62,7 @@ $(document).ready(() => {
                     $('#bills-expr').val(data[col.field]).attr('field', col.field).attr('org', data[col.field]);
 
                     if (col.field.indexOf('dgn') >= 0) {
-                        $('#bills-expr').attr('readOnly', readOnly || cell.locked() || data.b_code);
+                        $('#bills-expr').attr('readOnly', readOnly || cell.locked() || (_.isString(data.b_code) && data.b_code !== ''));
                     } else if (col.field === 'unit_price') {
                         $('#bills-expr').attr('readOnly', readOnly || cell.locked() || (data.children && data.children.length > 0) || node.used);
                     } else {