Procházet zdrojové kódy

公式位置调整

laiguoran před 4 roky
rodič
revize
f3def9240d

+ 1 - 0
app/public/js/material_exponent.js

@@ -21,6 +21,7 @@ function resetExTpTable() {
     $('#rate_set').find('td').eq(3).text(bqhs !== 0 ? bqhs : '');
     $('#rate_set').find('td').eq(4).text(jzbqhs !== 0 ? jzbqhs : '');
     $('#ex_expr').html(ex_expr);
+    $('#ex_expr').attr('title', '本期价差:' + ex_expr);
 }
 $(document).ready(() => {
     autoFlashHeight();

+ 7 - 4
app/view/material/exponent.ejs

@@ -13,9 +13,9 @@
                 <div class="d-inline-block ml-3">
                     本期调差计量期:第<span class="mx-2"><%= material.s_order.split(',').join(',') %></span>期
                 </div>
-                <div class="d-inline-block ml-3">
-                    本期价差:<b id="ex_expr"><%- material.ex_expr %></b>
-                </div>
+                <!--<div class="d-inline-block ml-3" style="display: none!important;">-->
+                    <!--本期价差:<b id="ex_expr"><%- material.ex_expr %></b>-->
+                <!--</div>-->
             </div>
             <div class="ml-auto">
             </div>
@@ -51,7 +51,10 @@
                         <div class="col-7 p-0">
                             <table class="table table-sm table-bordered">
                                 <tr><th rowspan="2"></th><th colspan="2" class="text-center">信息价</th><th colspan="2" class="text-center">价格指数</th></tr>
-                                <tr class="text-center"><th>本期金额</th><th>截止本期金额</th><th>本期金额</th><th>截止本期金额</th></tr>
+                                <tr class="text-center"><th>本期金额</th><th>截止本期金额</th>
+                                    <th>本期金额
+                                        <a href="javascript:void(0);" id="ex_expr" data-toggle="tooltip" data-placement="bottom" title="本期价差:<%- material.ex_expr %>"><i class="fa fa-question-circle-o"></i></a></th>
+                                    <th>截止本期金额</th></tr>
                                 <tr id="tp_set"><td>材料价差费用</td>
                                     <td class="text-center"><%= material.m_tp !== null ? ctx.helper.round(material.m_tp, 2) : null %></td>
                                     <td class="text-center"><%= material.m_tp !== null || material.pre_tp !== null ? ctx.helper.round(ctx.helper.add(material.pre_tp, material.m_tp), 2) : null %></td>

+ 4 - 1
app/view/material/info.ejs

@@ -53,7 +53,10 @@
                         <div class="col-7 p-0">
                             <table class="table table-sm table-bordered">
                                 <tr><th rowspan="2"></th><th colspan="2" class="text-center">信息价</th><th colspan="2" class="text-center">价格指数</th></tr>
-                                <tr class="text-center"><th>本期金额</th><th>截止本期金额</th><th>本期金额</th><th>截止本期金额</th></tr>
+                                <tr class="text-center"><th>本期金额</th><th>截止本期金额</th>
+                                    <th>本期金额
+                                        <a href="javascript:void(0);" id="ex_expr" data-toggle="tooltip" data-placement="bottom" title="本期价差:<%- material.ex_expr %>"><i class="fa fa-question-circle-o"></i></a></th>
+                                    <th>截止本期金额</th></tr>
                                 <tr id="tp_set"><td>材料价差费用</td>
                                     <td class="text-center"><%= material.m_tp !== null ? ctx.helper.round(material.m_tp, 2) : null %></td>
                                     <td class="text-center"><%= material.m_tp !== null || material.pre_tp !== null ? ctx.helper.round(ctx.helper.add(material.pre_tp, material.m_tp), 2) : null %></td>