Преглед изворни кода

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

MaiXinRong пре 5 година
родитељ
комит
65fc8b8304
1 измењених фајлова са 1 додато и 1 уклоњено
  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));
                     }