|
@@ -0,0 +1,120 @@
|
|
|
+<%include ./common.html %>
|
|
|
+<div class="panel-content">
|
|
|
+ <div class="panel-title">
|
|
|
+ <div class="title-main">
|
|
|
+ <h2>
|
|
|
+ <a href="javascript:void(0);" id="save-lib" class="btn btn-primary btn-sm pull-right">保存</a>
|
|
|
+ <a href="/compilation/valuation/<%= section %>/<%= valuationId %>" class="btn btn-default btn-sm pull-right">返回</a>
|
|
|
+ </h2>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="content-wrap">
|
|
|
+ <div class="c-header" style="padding:0">
|
|
|
+ <ul class="nav nav-tabs">
|
|
|
+ <li role="presentation" class="active"><a href="javascript:void(0);"><%= engineeringInfo.name %></a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="c-body">
|
|
|
+ <form method="post" action="/compilation/save-lib" enctype="application/x-www-form-urlencoded21">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label>标准清单</label>
|
|
|
+ <div class="bill-list">
|
|
|
+ <% if (Object.keys(libData).length > 0 && libData.bill_lib.length > 0) { %>
|
|
|
+ <% libData.bill_lib.forEach(function (bill, index){ %>
|
|
|
+ <p class="form-control-static">
|
|
|
+ <a class="pull-right text-danger remove-lib" data-model="bill" title="移除">
|
|
|
+ <span class="glyphicon glyphicon-remove"></span>
|
|
|
+ </a>
|
|
|
+ <input type="hidden" name="bill_lib" data-id="<%= bill.id %>" value="<%= JSON.stringify({id: bill.id, name: bill.name}) %>">
|
|
|
+ <% if (index === 0) {%><i class="glyphicon glyphicon-flag"></i> <% } %><%= bill.name %>
|
|
|
+ </p>
|
|
|
+ <% }) %>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <a class="btn btn-link btn-sm add-compilation" href="javascript:void(0)" data-model="bill">添加</a>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>定额库</label>
|
|
|
+ <div class="ration-list">
|
|
|
+ <% if (Object.keys(libData).length > 0 && libData.ration_lib.length > 0) { %>
|
|
|
+ <% libData.ration_lib.forEach(function (ration, index){ %>
|
|
|
+ <p class="form-control-static">
|
|
|
+ <a class="pull-right text-danger remove-lib" data-model="ration" title="移除" data-id="<%= ration.id %>">
|
|
|
+ <span class="glyphicon glyphicon-remove"></span>
|
|
|
+ </a>
|
|
|
+ <input type="hidden" name="ration_lib" data-id="<%= ration.id %>" value="<%= JSON.stringify({id: ration.id, name: ration.name}) %>">
|
|
|
+ <% if (index === 0) {%><i class="glyphicon glyphicon-flag"></i> <% } %><%= ration.name %>
|
|
|
+ </p>
|
|
|
+ <% }) %>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <a href="#" class="btn btn-link btn-sm add-compilation" data-model="ration">添加</a>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>工料机库</label>
|
|
|
+ <div class="glj-list">
|
|
|
+ <% if (Object.keys(libData).length > 0 && libData.glj_lib.length > 0) { %>
|
|
|
+ <% libData.glj_lib.forEach(function (glj, index){ %>
|
|
|
+ <p class="form-control-static">
|
|
|
+ <a class="pull-right text-danger remove-lib" data-model="glj" title="移除" data-id="<%= glj.id %>">
|
|
|
+ <span class="glyphicon glyphicon-remove"></span>
|
|
|
+ </a>
|
|
|
+ <input type="hidden" name="glj_lib" data-id="<%= glj.id %>" value="<%= JSON.stringify({id: glj.id, name: glj.name}) %>">
|
|
|
+ <% if (index === 0) {%><i class="glyphicon glyphicon-flag"></i> <% } %><%= glj.name %>
|
|
|
+ </p>
|
|
|
+ <% }) %>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <a href="#" class="btn btn-link btn-sm add-compilation" data-model="glj">添加</a>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>费率标准</label>
|
|
|
+ <div class="fee-list">
|
|
|
+ <% if (Object.keys(libData).length > 0 && libData.fee_lib.length > 0) { %>
|
|
|
+ <% libData.fee_lib.forEach(function (fee, index){ %>
|
|
|
+ <p class="form-control-static">
|
|
|
+ <a class="pull-right text-danger remove-lib" data-model="fee" title="移除" data-id="<%= fee.id %>">
|
|
|
+ <span class="glyphicon glyphicon-remove"></span>
|
|
|
+ </a>
|
|
|
+ <input type="hidden" name="fee_lib" data-id="<%= fee.id %>" value="<%= JSON.stringify({id: fee.id, name: fee.name}) %>">
|
|
|
+ <% if (index === 0) {%><i class="glyphicon glyphicon-flag"></i> <% } %><%= fee.name %>
|
|
|
+ </p>
|
|
|
+ <% }) %>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <a href="#" class="btn btn-link btn-sm add-compilation" data-model="fee">添加</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-8">
|
|
|
+ <legend>
|
|
|
+ 清单模板 / 造价书列
|
|
|
+ <a href="javascript:void(0)" data-toggle="modal" data-target="#set-column" class="btn btn-primary btn-sm pull-right">设置</a>
|
|
|
+ <a href="/compilation/template/<%= section %>/<%= valuationId %>" data-toggle="modal" data-target="" class="btn btn-primary btn-sm pull-right" style="margin-right:5px">模板设置</a>
|
|
|
+ <input type="hidden" name="main_tree_col" value="<%= mainTreeCol %>">
|
|
|
+ <div id="main-tree-col">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input type="hidden" name="engineering" value="<%= engineeringInfo.id %>" id="engineering">
|
|
|
+ <input type="hidden" name="section" value="<%= section %>" id="section">
|
|
|
+ <input type="hidden" name="id" value="<%= valuationId %>">
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<script type="text/javascript">
|
|
|
+ let billList = '<%- billList %>';
|
|
|
+ let rationList = '<%- rationList %>';
|
|
|
+ let gljList = '<%- gljList %>';
|
|
|
+ let feeRateList = '<%- feeRateList %>';
|
|
|
+ let mainTreeCol = '<%- mainTreeCol %>';
|
|
|
+ let billsTemplateData = '<%- billsTemplateData %>';
|
|
|
+ let colSpread = null;
|
|
|
+ let colEditSpread = null;
|
|
|
+</script>
|
|
|
+<script type="text/javascript" src="/public/web/id_tree.js"></script>
|
|
|
+<script type="text/javascript" src="/public/web/tree_sheet/tree_sheet_helper.js"></script>
|
|
|
+<script type="text/javascript" src="/web/users/js/compilation.js"></script>
|
|
|
+<%include ../compilation/modal.html %>
|