Browse Source

台账修订,单价,表达式,调整

MaiXinRong 5 years ago
parent
commit
65fc8b8304
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/public/js/revise.js

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

@@ -64,7 +64,7 @@ $(document).ready(() => {
                     if (col.field.indexOf('dgn') >= 0) {
                         $('#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);
+                        $('#bills-expr').attr('readOnly', readOnly || cell.locked() || (data.children && data.children.length > 0) || (_.isBoolean(data.used) && data.used === true));
                     } else {
                         $('#bills-expr').attr('readOnly', readOnly || cell.locked() || (data.children && data.children.length > 0));
                     }