add.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <%include ./common.html %>
  2. <div class="panel-content">
  3. <div class="panel-title">
  4. <div class="title-main">
  5. <h2>
  6. <a href="javascript:void(0);" id="save-valuation" class="btn btn-primary btn-sm pull-right">保存</a>
  7. <a href="/compilation" class="btn btn-default btn-sm pull-right">返回</a>
  8. </h2>
  9. </div>
  10. </div>
  11. <div class="content-wrap">
  12. <div class="c-header" style="padding:0">
  13. <ul class="nav nav-tabs">
  14. <% valuationList.forEach(function(valuation) { %>
  15. <li role="presentation" <% if (valuation._id.toString() === valuationId) { %>class="active"<% } %>><a href="/compilation/valuation/<%= section %>/<%= valuation._id %>"><%= valuation.name %></a></li>
  16. <% }) %>
  17. </ul>
  18. </div>
  19. <div class="c-body">
  20. <form action="/compilation/save-valuation" method="post" enctype="application/x-www-form-urlencoded">
  21. <div class=" row">
  22. <div class="col-md-4">
  23. <div class="form-group">
  24. <label>名称</label>
  25. <input type="text" class="form-control" name="name" value="<%= valuationData.name %>">
  26. </div>
  27. </div>
  28. <div class="col-md-12">
  29. <legend>
  30. 工程专业
  31. </legend>
  32. <table class="table">
  33. <thead>
  34. <tr>
  35. <th>工程名称</th>
  36. <th>标准清单</th>
  37. <th>定额库</th>
  38. <th>工料机库</th>
  39. <th>费率标准</th>
  40. <th>人工系数</th>
  41. <th>操作</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <% engineeringList.forEach(function(engineering) {%>
  46. <tr>
  47. <td><%= engineering.name %></td>
  48. <td><%= libCount !== null && libCount[engineering.value + ''] !== undefined ?
  49. libCount[engineering.value + ''].bill_count : 0 %></td>
  50. <td><%= libCount !== null && libCount[engineering.value + ''] !== undefined ?
  51. libCount[engineering.value + ''].ration_count : 0 %></td>
  52. <td><%= libCount !== null && libCount[engineering.value + ''] !== undefined ?
  53. libCount[engineering.value + ''].glj_count : 0 %></td>
  54. <td><%= libCount !== null && libCount[engineering.value + ''] !== undefined ?
  55. libCount[engineering.value + ''].fee_count : 0 %></td>
  56. <td><%= libCount !== null && libCount[engineering.value + ''] !== undefined ?
  57. libCount[engineering.value + ''].artificial_count : 0 %></td>
  58. <td><a href="/compilation/<%= section %>/<%= valuationId %>/<%= engineering.value %>">编辑</a></td>
  59. </tr>
  60. <% }) %>
  61. </tbody>
  62. </table>
  63. </div>
  64. </div>
  65. <input type="hidden" name="section" value="<%= section %>" id="section">
  66. <input type="hidden" name="id" value="<%= valuationId %>">
  67. </form>
  68. </div>
  69. </div>
  70. </div>
  71. <script type="text/javascript" src="/web/users/js/compilation.js"></script>
  72. <%include ../compilation/modal.html %>