|
@@ -90,23 +90,6 @@
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="form-group col-md-3">
|
|
|
- <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 class="form-group col-md-3">
|
|
|
<label>人工系数</label>
|
|
|
<div class="artificial-list">
|
|
|
<% if (Object.keys(libData).length > 0 && libData.artificial_lib.length > 0) { %>
|
|
@@ -128,7 +111,7 @@
|
|
|
<a data-toggle="modal" data-target="#other_setting" class="btn btn-primary btn-sm " style="margin-right:5px">显示设置</a>
|
|
|
</div>
|
|
|
<div class="col-md-12" style="padding-top:20px">
|
|
|
- <legend>计算程序/清单模板/列设置</legend>
|
|
|
+ <legend>计算程序/清单模板/列设置/费率标准</legend>
|
|
|
<a data-toggle="modal" data-target="#addTaxGroup" class="btn btn-link btn-sm " id="addTaxGroupBtn" style="margin-right:5px">添加</a>
|
|
|
<table class="table engineer_table">
|
|
|
<thead>
|
|
@@ -137,46 +120,53 @@
|
|
|
<th>计算程序</th>
|
|
|
<th>清单模板</th>
|
|
|
<th>列设置</th>
|
|
|
+ <th>费率标准</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="tax_group_tbody">
|
|
|
<% if (Object.keys(libData).length > 0 && libData.tax_group.length > 0) { %>
|
|
|
- <% for(let tax of libData.tax_group) {%>
|
|
|
- <% let groupIndex = "";%>
|
|
|
- <tr class='taxGroup_tr'>
|
|
|
- <td>
|
|
|
- <% if(tax.taxType === "1") { %>
|
|
|
- <% groupIndex = groupIndex + tax.taxType;%>
|
|
|
- <span>一般计税</span>
|
|
|
- <% } else if(tax.taxType === "2"){%>
|
|
|
- <% groupIndex = groupIndex + tax.taxType;%>
|
|
|
- <span>简易计税</span>
|
|
|
- <% } %>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <% if(tax.program_lib) { %>
|
|
|
- <% groupIndex = groupIndex + tax.program_lib.id;%>
|
|
|
- <span><%= tax.program_lib.displayName%></span>
|
|
|
- <% } %>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <% if(tax.template_lib) { %>
|
|
|
- <% groupIndex = groupIndex + tax.template_lib.id;%>
|
|
|
- <span><%= tax.template_lib.name%></span>
|
|
|
- <% } %>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <% if(tax.col_lib) { %>
|
|
|
- <% groupIndex = groupIndex + tax.col_lib.id;%>
|
|
|
- <span><%= tax.col_lib.name%></span>
|
|
|
- <% } %>
|
|
|
- </td>
|
|
|
- <td><a class='btn btn-link btn-sm ' style="padding: 0px" onclick='editTaxGroup(this)'>编辑</a>/<a class='btn btn-link btn-sm ' style="padding: 0px" onclick='deleteTaxGroup(this)'>删除</a>
|
|
|
- <input type='hidden' name='tax_group' data-id ="<%= groupIndex%>" value="<%= JSON.stringify(tax) %>">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
+ <% for(let tax of libData.tax_group) {%>
|
|
|
+ <% let groupIndex = "";%>
|
|
|
+ <tr class='taxGroup_tr'>
|
|
|
+ <td>
|
|
|
+ <% if(tax.taxType === "1") { %>
|
|
|
+ <% groupIndex = groupIndex + tax.taxType;%>
|
|
|
+ <span>一般计税</span>
|
|
|
+ <% } else if(tax.taxType === "2"){%>
|
|
|
+ <% groupIndex = groupIndex + tax.taxType;%>
|
|
|
+ <span>简易计税</span>
|
|
|
+ <% } %>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <% if(tax.program_lib && tax.program_lib.id) { %>
|
|
|
+ <% groupIndex = groupIndex + tax.program_lib.id;%>
|
|
|
+ <span><%= tax.program_lib.displayName%></span>
|
|
|
+ <% } %>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <% if(tax.template_lib && tax.template_lib.id) { %>
|
|
|
+ <% groupIndex = groupIndex + tax.template_lib.id;%>
|
|
|
+ <span><%= tax.template_lib.name%></span>
|
|
|
+ <% } %>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <% if(tax.col_lib && tax.col_lib.id) { %>
|
|
|
+ <% groupIndex = groupIndex + tax.col_lib.id;%>
|
|
|
+ <span><%= tax.col_lib.name%></span>
|
|
|
+ <% } %>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <% if(tax.fee_lib && tax.fee_lib.id) { %>
|
|
|
+ <% groupIndex = groupIndex + tax.fee_lib.id;%>
|
|
|
+ <span><%= tax.fee_lib.name%></span>
|
|
|
+ <% } %>
|
|
|
+ </td>
|
|
|
+ <td><a class='btn btn-link btn-sm ' style="padding: 0px" onclick='editTaxGroup(this)'>编辑</a>/<a class='btn btn-link btn-sm ' style="padding: 0px" onclick='deleteTaxGroup(this)'>删除</a>
|
|
|
+ <input type='hidden' name='tax_group' data-id ="<%= groupIndex%>" value="<%= JSON.stringify(tax) %>">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <% } %>
|
|
|
<% } %>
|
|
|
</tbody>
|
|
|
</table>
|