add.html 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <%include ./common.html %>
  2. <div class="panel-content">
  3. <div class="panel-title">
  4. <div class="title-main">
  5. <h2>
  6. <span><%= selectedCompilation.name%></span>
  7. <a href="javascript:void(0);" id="save-valuation" class="btn btn-primary btn-sm pull-right">保存</a>
  8. <a href="/compilation" class="btn btn-default btn-sm pull-right">返回</a>
  9. </h2>
  10. </div>
  11. </div>
  12. <div class="content-wrap">
  13. <div class="c-header" style="padding:0">
  14. <ul class="nav nav-tabs">
  15. <% valuationList.forEach(function(valuation) { %>
  16. <li role="presentation" <% if (valuation.id.toString() === valuationId) { %>class="active"<% } %>><a href="/compilation/valuation/<%= section %>/<%= valuation.id %>"><%= valuation.name %></a></li>
  17. <% }) %>
  18. </ul>
  19. </div>
  20. <div class="c-body">
  21. <form action="/compilation/save-valuation" method="post" enctype="application/x-www-form-urlencoded">
  22. <div class=" row">
  23. <div class="col-md-4">
  24. <div class="form-group">
  25. <label>名称</label>
  26. <input type="text" class="form-control" name="name" value="<%= valuationData.name %>">
  27. </div>
  28. </div>
  29. <div class="col-md-12">
  30. <legend>
  31. 工程专业
  32. </legend>
  33. <table class="table engineer_table">
  34. <thead>
  35. <tr>
  36. <th>工程名称</th>
  37. <th>标准清单</th>
  38. <th>定额库</th>
  39. <th>人材机库</th>
  40. <th>费率标准</th>
  41. <th>人工系数</th>
  42. <th>前台显示</th>
  43. <th>操作</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <% engineeringList.forEach(function(engineering) {%>
  48. <tr >
  49. <td>
  50. <div><span><%= engineering.name %></span> <a onclick='editEngineerName(this)'><i class="glyphicon glyphicon-pencil"></i></a></div>
  51. <div class="input-group input-group-sm input_group_div" style="width:200px;display: none">
  52. <input class="form-control">
  53. <div class="input-group-btn">
  54. <button type="button" class="btn btn-success" onclick='confirmName(this,"<%= engineering._id.toString()%>")'>
  55. <span class="glyphicon glyphicon-ok"></span></button>
  56. </div>
  57. </div>
  58. </td>
  59. <td><%= engineering.bill_lib.length %></td>
  60. <td><%= engineering.ration_lib.length %></td>
  61. <td><%= engineering.glj_lib.length %></td>
  62. <td><%= engineering.fee_lib.length %></td>
  63. <td><%= engineering.artificial_lib.length %></td>
  64. <td><label><input type="checkbox" <% if (engineering.visible) { %>checked<% } %> onclick='engineerVisibleChange(this,"<%= engineering._id.toString()%>")'> 显示</label></td>
  65. <td><a href="/compilation/<%= section %>/<%= valuationId %>/<%= engineering._id.toString()%>">编辑</a></td>
  66. </tr>
  67. <% }) %>
  68. </tbody>
  69. </table>
  70. </div>
  71. </div>
  72. <input type="hidden" name="section" value="<%= section %>" id="section">
  73. <input type="hidden" name="id" value="<%= valuationId %>">
  74. </form>
  75. </div>
  76. </div>
  77. </div>
  78. <script type="text/javascript" src="/public/web/common_ajax.js"></script>
  79. <script type="text/javascript" src="/web/users/js/compilation.js"></script>
  80. <%include ../compilation/modal.html %>