<div class="panel-content">
    <div class="panel-title fluid">
        <div class="title-main d-flex justify-content-between">
            <div>
                <div class="btn-group" role="group" aria-label="Basic example">
                    <button type="button" class="btn btn-secondary btn-sm">全部</button>
                    <button type="button" class="btn btn-outline-secondary btn-sm">待上报</button>
                    <button type="button" class="btn btn-outline-secondary btn-sm">审批中</button>
                    <button type="button" class="btn btn-outline-secondary btn-sm">待审批</button>
                    <button type="button" class="btn btn-outline-secondary btn-sm">审批完成</button>
                </div>
            </div>
        </div>
    </div>
    <div class="content-wrap">
        <div class="c-body">
            <div class="tab-content">
                <table class="table table-bordered">
                    <thead>
                    <tr><th>计量编号</th><th>计量金额</th><th>计量月份</th><th>所属计量期</th><th>状态</th><th>当前处理人</th></tr>
                    </thead>
                    <tbody>
                    <% for (const w of works) { %>
                        <tr>
                            <td><a href="/measure/audit/<%- w.mid %>"><%- w.code %></a></td>
                            <td class="text-right"><%- (w.deal_sum + w.qc_sum).toFixed(2) %></td>
                            <td><%- w.in_time_str %></td>
                            <td><%- w.sid %></td>
                            <td>
                                <% if (w.curAuditor && w.curAuditor.audit_id === ctx.session.sessionUser.accountId) { %>
                                    <a href="/measure/audit/<%- w.mid %>" class="btn-primary btn-sm">审批</a>
                                <% } else {%>
                                    <span class="<%- auditConst.statusClass[w.status] %>"><%- auditConst.statusString[w.status] %></span>
                                <% } %>
                            </td>
                            <td>
                                <% if (w.curAuditor) { %>
                                <%- w.curAuditor.role %>-<%- w.curAuditor.name %>
                                <% } %>
                            </td>
                        </tr>
                    <% } %>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>