Explorar o código

本期计量,计算合同计量按钮显示相关

MaiXinRong hai 1 ano
pai
achega
6e4bb1686a
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 1
      app/public/js/stage.js
  2. 1 0
      app/view/stage/index.ejs

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

@@ -1711,7 +1711,7 @@ $(document).ready(() => {
                     });
                 },
                 visible: function(key, opt) {
-                    return !readOnly;
+                    return !readOnly && contractExpr;
                 },
             },
             zjjlSpr: '----',

+ 1 - 0
app/view/stage/index.ejs

@@ -556,6 +556,7 @@
     const hintMinusCb = <%- hintMinusCb %>;
     let currPageFileData = [];
     const settleStatus = JSON.parse('<%- JSON.stringify(settleStatus) %>');
+    const contractExpr = <%- ctx.session.sessionProject.page_show.openContractExp r%>;
 </script>
 <style>