<% if (auditStatus === 1 || auditStatus === 2) { %>
            
            <% } else { %>
            
                
                
                    
                 
                
                    
                 
             
            <% } %>
            
 
         
        
            
            
            <% if (auditStatus === 1 || auditStatus === 2) { %>
            
                
                
                    | 清单编号 | 
                    名称 | 
                    变更部位 | 
                    变更详情 | 
                    单位 | 
                    单价 | 
                    原设计 | 
                    申报变更增(+)减(-) | 
                    操作 | 
                
                
                    | 数量 | 
                    金额 | 
                    数量 | 
                    金额 | 
                
                
                
                <% let windex = 0; %>
                <% for (const [index,cl] of changeList.entries()) { %>
                    <% if (cl.lid !== '0') { %>
                    
                        | <%= cl.code %> | 
                        <%= cl.name %> | 
                        <%= cl.bwmx %> | 
                         | 
                        <%= cl.unit %> | 
                        <%= ctx.helper.roundNum(cl.unit_price, upUnit) %> | 
                        <%= ctx.helper.roundNum(cl.oamount, ctx.helper.findDecimal(cl.unit)) %> | 
                        <%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %> | 
                         | 
                        <%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %> | 
                        移除
                         | 
                    
                    <% } else { %>
                    
                         | 
                         | 
                         | 
                         | 
                        
                            
                         | 
                         | 
                         | 
                        <%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %> | 
                         | 
                        <%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %> | 
                        移除
                         | 
                    
                        <% windex++ %>
                    <% } %>
                <% } %>
                
                
                
                    | 合计 |  |  |  |  |  |  | 
                    <%= ctx.helper.roundNum(ototalCost, tpUnit) %> |  | 
                    <%= ctx.helper.roundNum(ctotalCost, tpUnit) %> |  | 
                
                
            
            <% } else if (auditStatus === 3 || auditStatus === 4 || auditStatus === 5 || auditStatus === 7) { %>
                
                    
                    
                        | 清单编号 | 
                        名称 | 
                        变更部位 | 
                        变更详情 | 
                        单位 | 
                        单价 | 
                        原设计 | 
                        申报变更增(+)减(-) | 
                        审批后变更 | 
                    
                    
                        | 数量 | 
                        金额 | 
                        数量 | 
                        金额 | 
                        数量 | 
                        金额 | 
                    
                    
                    
                    <% for (const cl of changeList) { %>
                        
                            | <%= cl.code %> | 
                            <%= cl.name %> | 
                            <%= cl.bwmx %> | 
                            <%= cl.detail %> | 
                            <%= cl.unit %> | 
                            <%= ctx.helper.roundNum(cl.unit_price, upUnit) %> | 
                            <%= ctx.helper.roundNum(cl.oamount, ctx.helper.findDecimal(cl.unit)) %> | 
                            <%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %> | 
                            <%= ctx.helper.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %> | 
                            <%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %> | 
                            <%= cl.samount !== '' ? ctx.helper.roundNum(cl.samount, ctx.helper.findDecimal(cl.unit)) : '' %> | 
                            <%= cl.samount !== '' ? ctx.helper.mul(cl.unit_price, cl.samount, tpUnit) : '' %> | 
                            
                        
                    <% } %>
                    
                    
                    
                        | 合计 |  |  |  |  |  |  | 
                        <%= ctx.helper.roundNum(ototalCost, tpUnit) %> |  | 
                        <%= ctx.helper.roundNum(ctotalCost, tpUnit) %> |  | 
                        <%= stotalCost !== 0 ? ctx.helper.roundNum(stotalCost, tpUnit) : '' %> | 
                    
                    
                
                
                    
                    
                        | 清单编号 | 
                        名称 | 
                        变更部位 | 
                        变更详情 | 
                        单位 | 
                        单价 | 
                        原设计 | 
                        申报变更增(+)减(-) | 
                        <% for (const audit of auditList2) { %>
                        <% if (audit.usite !== 0) { %>
                        <%= audit.name %> 审批 | 
                        <% } %>
                        <% } %>
                    
                    
                        | 数量 | 
                        金额 | 
                        数量 | 
                        金额 | 
                        <% for (const audit of auditList2) { %>
                            <% if (audit.usite !== 0) { %>
                        数量 | 
                        金额 | 
                            <% } %>
                        <% } %>
                    
                    
                    
                    <% const audittotalCost = []; %>
                    <% for (const [cindex,cl] of changeList.entries()) { %>
                        
                            | <%= cl.code %> | 
                            <%= cl.name %> | 
                            <%= cl.bwmx %> | 
                            <%= cl.detail %> | 
                            <%= cl.unit %> | 
                            <%= ctx.helper.roundNum(cl.unit_price, upUnit) %> | 
                            <%= ctx.helper.roundNum(cl.oamount, ctx.helper.findDecimal(cl.unit)) %> | 
                            <%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %> | 
                            <%= ctx.helper.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %> | 
                            <%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %> | 
                            <% for (const audit of auditList2) { %>
                                <% if (audit.usite !== 0) { %>
                                <%= audit.list_amount[cindex] !== undefined ? ctx.helper.roundNum(audit.list_amount[cindex], ctx.helper.findDecimal(cl.unit)) : '' %> | 
                                <%= audit.list_amount[cindex] !== undefined ? ctx.helper.mul(cl.unit_price,  audit.list_amount[cindex], tpUnit) : '' %> | 
                                <% } %>
                            <% } %>
                            
                        
                    <% } %>
                    
                    
                    
                        | 合计 |  |  |  |  |  |  | 
                        <%= ctx.helper.roundNum(ototalCost, tpUnit) %> |  | 
                        <%= ctx.helper.roundNum(ctotalCost, tpUnit) %> | 
                        <% for (const audit of auditList2) { %>
                            <% if (audit.usite !== 0) { %>
                         | <%=audit.totalCost !== 0 ? ctx.helper.roundNum(audit.totalCost, tpUnit) : '' %> | 
                            <% } %>
                        <% } %>
                    
                    
                
            <% } else if (auditStatus === 6) { %>
                
                    
                    
                        | 清单编号 | 
                        名称 | 
                        变更部位 | 
                        变更详情 | 
                        单位 | 
                        单价 | 
                        原设计 | 
                        申报变更增(+)减(-) | 
                        <% for (const audit of auditList) { %>
                            <% if (audit.usite !== 0) { %>
                                <%= audit.name %> 审批 | 
                            <% } %>
                        <% } %>
                    
                    
                        | 数量 | 
                        金额 | 
                        数量 | 
                        金额 | 
                        <% for (const audit of auditList) { %>
                            <% if (audit.usite !== 0) { %>
                                数量 | 
                                金额 | 
                            <% } %>
                        <% } %>
                    
                    
                    
                    <% const audittotalCost = []; %>
                    <% for (const [cindex,cl] of changeList.entries()) { %>
                        
                            | <%= cl.code %> | 
                            <%= cl.name %> | 
                            <%= cl.bwmx %> | 
                            <%= cl.detail %> | 
                            <%= cl.unit %> | 
                            <%= ctx.helper.roundNum(cl.unit_price, upUnit) %> | 
                            <%= ctx.helper.roundNum(cl.oamount, ctx.helper.findDecimal(cl.unit)) %> | 
                            <%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %> | 
                            <%= ctx.helper.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %> | 
                            <%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %> | 
                            <% for (const audit of auditList) { %>
                                <% if (audit.usite !== 0) { %>
                                    <% if (uid === audit.uid && audit.status === 2) { %>
                                    
                                        
                                     | 
                                    <% } else { %>
                                    <%= audit.list_amount[cindex] !== undefined ? ctx.helper.roundNum(audit.list_amount[cindex], ctx.helper.findDecimal(cl.unit)) : '' %> | 
                                    <% } %>
                                     class="amount_cost"<% } %>><%= audit.list_amount[cindex] !== undefined ? ctx.helper.mul(cl.unit_price, audit.list_amount[cindex], tpUnit) : '' %> | 
                                <% } %>
                            <% } %>
                            
                        
                    <% } %>
                    
                    
                    
                        | 合计 |  |  |  |  |  |  | 
                        <%= ctx.helper.roundNum(ototalCost, tpUnit) %> |  | 
                        <%= ctx.helper.roundNum(ctotalCost, tpUnit) %> | 
                        <% for (const audit of auditList) { %>
                            <% if (audit.usite !== 0) { %>
                             | class="amount_totalcost"<% } %>><%=audit.totalCost !== 0 ? ctx.helper.roundNum(audit.totalCost, tpUnit) : '' %> | 
                            <% } %>
                        <% } %>
                    
                    
                
            <% } %>