| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519 | 
							- <!DOCTYPE html>
 
- <html lang="en">
 
- <head>
 
-     <meta charset="utf-8">
 
-     <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
 
-     <meta http-equiv="x-ua-compatible" content="ie=edge">
 
-     <title>标段概况-计量支付</title>
 
-     <link rel="stylesheet" href="/public/css/bootstrap/bootstrap.min.css">
 
-     <link rel="stylesheet" href="/public/css/wap/main.css">
 
-     <link rel="stylesheet" href="/public/css/toast.css">
 
-     <link rel="stylesheet" href="/public/css/font-awesome/font-awesome.min.css">
 
-     <link rel="stylesheet" href="/public/css/toastr.css">
 
-     <script src=/public/js/echarts/echarts.min.js></script>
 
-     <link rel="shortcut icon" href="/public/images/favicon.ico">
 
-     <style>
 
-         body {
 
-             padding: 0;
 
-         }
 
-         .tab-content > .tab-pane,.pill-content > .pill-pane {
 
-             display: block;
 
-             height: 0;
 
-             overflow-y: hidden;
 
-         }
 
-         .tab-content > .active,.pill-content > .active {
 
-             height: auto;
 
-         }
 
-     </style>
 
- </head>
 
- <body>
 
- <div class="container">
 
-     <!--顶部-->
 
-     <nav class="fixed-top bg-dark">
 
-         <div class="my-2 d-flex justify-content-between">
 
-             <span class="text-white ml-3"><a href="/wap/list" class="mr-2 text-white show-loading"><i class="fa fa-chevron-left"></i>标段概况</a></span>
 
-             <a tabindex="0" href="javascript:void(0)" class="text-white text-truncate text-center"
 
-                style="width:150px" data-toggle="popover" data-placement="top"
 
-                data-content="<%- tender.name %>" data-trigger="focus"><%- tender.name %></a>
 
-             <div class="mr-3">
 
-                 <div class="dropdown">
 
-                     <button class="btn btn-sm btn-light dropdown-toggle" type="button" data-toggle="dropdown">
 
-                         <%- ctx.session.sessionUser.name.substr(ctx.session.sessionUser.name.length > 2 ? ctx.session.sessionUser.name.length - 2 : 0) %>
 
-                     </button>
 
-                     <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
 
-                         <a class="dropdown-item" href="/wap/logout">退出登录</a>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </nav>
 
-     <!--标段概况-->
 
-     <div class="py-6">
 
-         <!--标签-->
 
-         <ul class="nav nav-tabs nav-fill">
 
-             <li class="nav-item">
 
-                 <a class="px-1 nav-link active" data-toggle="tab" href="#gaikuang" role="tab">概况</a>
 
-             </li>
 
-             <li class="nav-item">
 
-                 <a class="px-1 nav-link" data-toggle="tab" href="#yufukuan" role="tab">预付款</a>
 
-             </li>
 
-             <li class="nav-item">
 
-                 <a class="px-1 nav-link" data-toggle="tab" href="#tzxiuding" role="tab">台账修订</a>
 
-             </li>
 
-             <li class="nav-item">
 
-                 <a class="px-1 nav-link" data-toggle="tab" href="#jlqi" role="tab">计量期</a>
 
-             </li>
 
-             <li class="nav-item">
 
-                 <a class="px-1 nav-link" data-toggle="tab" href="#biangeng" role="tab">工程变更</a>
 
-             </li>
 
-         </ul>
 
-         <div class="tab-content">
 
-             <div class="tab-pane active" id="gaikuang">
 
-                 <!--图表-->
 
-                 <div class="card mb-3 mr-1 mt-3">
 
-                     <div class="card-body">
 
-                         <h5 class="card-title">期进度表</h5>
 
-                         <div style="overflow-x:scroll;padding-bottom: 10px">
 
-                             <div id="chartContainer4" style="height: 300px; width: 250%;">
 
-                             </div>
 
-                         </div>
 
-                         <p class="text-center text-muted m-0">左右滑动</p>
 
-                     </div>
 
-                 </div>
 
-                 <div class="card mb-3 mr-1">
 
-                     <div class="card-body">
 
-                         <h5 class="card-title">月进度表</h5>
 
-                         <div style="overflow-x:scroll;padding-bottom: 10px">
 
-                             <div id="chartContainer3" style="height: 300px; width: 320%;">
 
-                             </div>
 
-                         </div>
 
-                         <p class="text-center text-muted m-0">左右滑动</p>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-             <div class="tab-pane" id="yufukuan">
 
-                 <% for (const t of advanceConst.typeCol) { %>
 
-                 <div class="card my-3">
 
-                     <div class="card-body">
 
-                         <a href="/wap/tender/<%- tender.id %>/advance#<%- t.key %>"><h5 class="card-title d-flex justify-content-between"><%- t.name %><span><% if (advanceList[t.type]) { %>第<%- advanceList[t.type].order %>期<% } %></span></h5></a>
 
-                     </div>
 
-                 </div>
 
-                 <% } %>
 
-             </div>
 
-             <div class="tab-pane" id="tzxiuding">
 
-                 <dl class="mb-2 mt-3">
 
-                     <% for (const lr of revises) { %>
 
-                     <dt class="bg-light p-2 d-flex justify-content-between"><span>第<%- lr.corder %>次修订</span>
 
-                         <% if (!lr.valid) {%>
 
-                         <span class="text-danger">
 
-                             作废
 
-                         </span>
 
-                         <% } else { %>
 
-                         <span class="<%- auditReviseConst.auditStringClass[lr.status] %>">
 
-                             <% if (lr.curAuditor && lr.status !== auditReviseConst.status.checked) { %>
 
-                                 <%- lr.curAuditor.name %><%if (lr.curAuditor.role !== '' && lr.curAuditor.role !== null) { %>-<%- lr.curAuditor.role %><% } %>
 
-                             <% } %>
 
-                             <%- lr.status === auditReviseConst.status.checked ? '审批完成' : auditReviseConst.auditProgress[lr.status] %>
 
-                         </span>
 
-                         <% } %>
 
-                     </dt>
 
-                     <dd>
 
-                         <table class="table table-hover">
 
-                             <tr><td width="90">修订时间</td><td><%- ctx.moment(lr.in_time).format('YYYY-MM-DD') %></td></tr>
 
-                             <tr><td>修订人</td><td><%- lr.user_name %></td></tr>
 
-                             <tr><td>修订详情</td><td><% if (lr.content) { %><% if (lr.content.length <= 22) { %><%- lr.content %><% } else { %><%- lr.content.substring(0,22) %><a class="show-content" data-content="<%- lr.content %>" href="javascript:void(0);">展开更多</a><% } %><% } %></td></tr>
 
-                             <% if (lr.curAuditor && lr.status == auditReviseConst.status.checking && lr.curAuditor.audit_id === ctx.session.sessionUser.accountId) { %>
 
-                             <tr>
 
-                                 <td colspan="2">
 
-                                     <a class="btn btn-block btn-success" href="/wap/tender/<%- tender.id %>/revise/<%- lr.id %>/info">审批</a>
 
-                                 </td>
 
-                             </tr>
 
-                             <% } %>
 
-                         </table>
 
-                     </dd>
 
-                     <% } %>
 
-                 </dl>
 
-             </div>
 
-             <div class="tab-pane" id="jlqi">
 
-                 <!--期列表-->
 
-                 <dl class="mb-2 mt-3">
 
-                     <% for (const s of stages) { %>
 
-                     <dt class="bg-light p-2 d-flex justify-content-between"><span>第<%- s.order %>期</span>
 
-                         <span class="<%- auditConst.auditStringClass[s.status] %>">
 
-                             <% if (s.curAuditors.length > 0 && s.status !== auditConst.status.checked) { %>
 
-                                 <% if (s.curAuditors[0].audit_type === auditType.key.common) { %>
 
-                                 <%- s.curAuditors[0].name %><%if (s.curAuditors[0].role !== '' && s.curAuditors[0].role !== null) { %>-<%- s.curAuditors[0].role %><% } %>
 
-                                 <% } else { %>
 
-                                 <%- ctx.helper.transFormToChinese(s.curAuditors[0].audit_order) + '审' %>
 
-                                 <% } %>
 
-                             <% } %>
 
-                                 <%- s.status === auditConst.status.checked ? '审批完成' : auditConst.auditProgress[s.status] %>
 
-                         </span>
 
-                     </dt>
 
-                     <dd>
 
-                         <table class="table table-hover">
 
-                             <tbody><tr>
 
-                                 <td>
 
-                                     <p class="mb-0">本期合同计量</p>
 
-                                     <b>¥<%- s.contract_tp ? s.contract_tp : 0 %></b>
 
-                                 </td>
 
-                                 <td>
 
-                                     <p class="mb-0">本期数量变更计量</p>
 
-                                     <b>¥<%- s.qc_tp ? s.qc_tp : 0 %></b>
 
-                                 </td>
 
-                             </tr>
 
-                             <tr>
 
-                                 <td>
 
-                                     <p class="mb-0">本期完成计量</p>
 
-                                     <b>¥<%- s.tp ? s.tp : 0 %></b>
 
-                                 </td>
 
-                                 <td>
 
-                                     <p class="mb-0">截止上期完成计量</p>
 
-                                     <b>¥<%- s.pre_tp ? s.pre_tp : 0 %></b>
 
-                                 </td>
 
-                             </tr>
 
-                             <tr>
 
-                                 <td>
 
-                                     <p class="mb-0">截止本期完成计量</p>
 
-                                     <b>¥<%- s.end_tp ? s.end_tp : 0 %></b>
 
-                                 </td>
 
-                                 <% if (!ctx.session.sessionProject.page_show.closeWapYfSf) { %>
 
-                                 <td>
 
-                                     <p class="mb-0">本期应付</p>
 
-                                     <b>¥<%- s.yf_tp ? s.yf_tp : 0 %></b>
 
-                                 </td>
 
-                                 <% } %>
 
-                             </tr>
 
-                             <% if (!ctx.session.sessionProject.page_show.closeWapYfSf) { %>
 
-                             <tr>
 
-                                 <td>
 
-                                     <p class="mb-0">本期实付</p>
 
-                                     <b>¥<%- s.sf_tp ? s.sf_tp : 0 %></b>
 
-                                 </td>
 
-                                 <td>
 
-                                 </td>
 
-                             </tr>
 
-                             <% } %>
 
-                             <% if (s.curAuditors.length > 0 && s.status == auditConst.status.checking && s.curAuditors.find(x => { return x.aid === ctx.session.sessionUser.accountId})) { %>
 
-                             <tr>
 
-                                 <td colspan="2">
 
-                                     <a class="btn btn-block btn-success" href="/wap/tender/<%- s.tid %>/measure/stage/<%- s.order %>">审批本期</a>
 
-                                 </td>
 
-                             </tr>
 
-                             <% } %>
 
-                             </tbody></table>
 
-                     </dd>
 
-                     <% } %>
 
-                 </dl>
 
-             </div>
 
-             <div class="tab-pane" id="biangeng">
 
-                 <% if (ctx.subProject.page_show.openChangeProject) { %>
 
-                 <div class="card my-3">
 
-                     <div class="card-body">
 
-                         <a href="/wap/tender/<%- tender.id %>/change#changeProject"><h5 class="card-title d-flex justify-content-between">变更立项</h5></a>
 
-                     </div>
 
-                 </div>
 
-                 <% } %>
 
-                 <% if (ctx.subProject.page_show.openChangeApply) { %>
 
-                     <div class="card my-3">
 
-                         <div class="card-body">
 
-                             <a href="/wap/tender/<%- tender.id %>/change#changeApply"><h5 class="card-title d-flex justify-content-between">变更申请</h5></a>
 
-                         </div>
 
-                     </div>
 
-                 <% } %>
 
-                 <% if (ctx.subProject.page_show.openChangePlan) { %>
 
-                     <div class="card my-3">
 
-                         <div class="card-body">
 
-                             <a href="/wap/tender/<%- tender.id %>/change#changePlan"><h5 class="card-title d-flex justify-content-between">变更方案</h5></a>
 
-                         </div>
 
-                     </div>
 
-                 <% } %>
 
-                 <div class="card my-3">
 
-                     <div class="card-body">
 
-                         <a href="/wap/tender/<%- tender.id %>/change#change"><h5 class="card-title d-flex justify-content-between">变更令</h5></a>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
-     <!--底栏菜单-->
 
-     <nav class="fixed-bottom navbar-dark bg-light border-top">
 
-         <ul class="nav nav-fill my-2">
 
-             <li class="nav-item">
 
-                 <a class="nav-link text-muted show-loading" href="/wap/dashboard"><i class="fa fa-check-square-o"></i> 待审批</a>
 
-             </li>
 
-             <li class="nav-item">
 
-                 <a class="nav-link active show-loading" href="/wap/list"><i class="fa fa-list-ul"></i> 项目</a>
 
-             </li>
 
-         </ul>
 
-     </nav>
 
- </div>
 
- <!-- JS. -->
 
- <script src="/public/js/jquery/jquery-3.2.1.min.js"></script>
 
- <script src="/public/js/popper/popper.min.js"></script>
 
- <script src="/public/js/bootstrap/bootstrap.min.js"></script>
 
- <script src="/public/js/cookies.js"></script>
 
- <script src="/public/js/toastr.min.js"></script>
 
- <script src="/public/js/wap/global.js"></script>
 
- <script type="text/javascript">
 
-     //4 标段期数计量进度//
 
-     var myChart = echarts.init(document.getElementById('chartContainer4'));
 
-     var option = {
 
-         color: ['#e9af68','#57b7b6','#e4575a','#959eac','#6699FF',
 
-             '#d38b70','#8fb7cf','#cd5c5c','#ffa500','#40e0d0',
 
-             '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
 
-             '#5c616b','#ff6666','#3cb371','#b8860b','#30e0e0'],
 
-         title : {
 
-             text: ''
 
-         },
 
-         tooltip : {
 
-             trigger: 'axis'
 
-         },
 
-         calculable : true,
 
-         legend: {
 
-             data:['本期合同计量','本期数量变更计量','截止上期累计完成','本期完成计量','完成度']
 
-         },
 
-         dataZoom: [
 
-             {show: true,start: 0, end: 100}
 
-         ],
 
-         xAxis : [
 
-             {
 
-                 type : 'category',
 
-                 splitLine : {show : true},
 
-                 data : [
 
-                     <% for (const s of stagesEcharts) {%>
 
-                     '第<%- s.order %>期',
 
-                     <% } %>
 
-                 ]
 
-             }
 
-         ],
 
-         yAxis : [
 
-             {
 
-                 type : 'value',
 
-                 name : '金额',
 
-                 position:'left',
 
-                 axisLabel : {
 
-                     formatter: '{value} 元'
 
-                 },
 
-                 splitArea : {show : true},
 
-                 splitLine : {show : true},
 
-             },
 
-             {
 
-                 type : 'value',
 
-                 name:'完成度',
 
-                 axisLabel : {
 
-                     formatter: '{value} %'
 
-                 },
 
-                 position: 'right',
 
-                 splitArea : {show : false},
 
-                 splitLine : {show : false},
 
-             }
 
-         ],
 
-         series : [
 
-             {
 
-                 name:'本期合同计量',
 
-                 type:'bar',
 
-                 tooltip : {trigger: 'item',formatter: "{b}  <br/>{a}:{c}元"},
 
-                 stack: '合同',
 
-                 data:[
 
-                     <% for (const s of stagesEcharts) {%>
 
-                     <%- s.contract_tp %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'本期数量变更计量',
 
-                 type:'bar',
 
-                 tooltip : {trigger: 'item',formatter: "{b}  <br/>{a}:{c}元"},
 
-                 stack: '变更',
 
-                 data:[
 
-                     <% for (const s of stagesEcharts) {%>
 
-                     <%- s.qc_tp %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'截止上期累计完成',
 
-                 type:'bar',
 
-                 tooltip : {trigger: 'item',formatter: "{b}  <br/>{a}:{c}元"},
 
-                 stack: '完成',
 
-                 data:[
 
-                     <% for (const s of stagesEcharts) {%>
 
-                     <%- ctx.helper.add(s.pre_contract_tp, s.pre_qc_tp) %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'本期完成计量',
 
-                 type:'bar',
 
-                 tooltip : {trigger: 'item',formatter: "{b}  <br/>{a}:{c}元"},
 
-                 stack: '完成',
 
-                 data:[
 
-                     <% for (const s of stagesEcharts) {%>
 
-                     <%- ctx.helper.sum([s.contract_tp, s.qc_tp, s.pc_tp]) %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'完成度',
 
-                 type:'line',
 
-                 tooltip : {trigger: 'axis',formatter: "{b}占总标段<br/>{a}:{c} %"},
 
-                 yAxisIndex: 1,
 
-                 data:[
 
-                     <% for (const s of stagesEcharts) {%>
 
-                     <%- ctx.helper.mul(ctx.helper.div(ctx.helper.sum([s.contract_tp, s.qc_tp, s.pc_tp]), tender.sum, 2), 100) %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-         ]
 
-     };
 
-     // 为echarts对象加载数据
 
-     myChart.setOption(option);
 
-     //4 标段期数计量进度//
 
-     //3 标段月进度//
 
-     // 基于准备好的dom,初始化echarts图表
 
-     var myChart = echarts.init(document.getElementById('chartContainer3'));
 
-     var option = {
 
-         color:["#e9af68","#57b7b6"],
 
-         title : {
 
-             text: ''
 
-         },
 
-         tooltip : {
 
-             trigger: 'axis',
 
-             formatter: function (params, ticket, callback) {
 
-                 let sHint = '';
 
-                 for (const param of params) {
 
-                     if (sHint !== '') {
 
-                         sHint += '<br>';
 
-                     }
 
-                     if (sHint === '' && param.name !== '') {
 
-                         sHint = param.name + '<br>';
 
-                     }
 
-                     sHint += '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + param.color +'"></span>';
 
-                     if (param.data) {
 
-                         sHint += param.seriesName + ': ' + param.data + ' %';
 
-                     } else {
 
-                         sHint += param.seriesName + ': -';
 
-                     }
 
-                 }
 
-                 return sHint;
 
-             },
 
-         },
 
-         legend: {
 
-             data:['截止本月完成','本月完成']
 
-         },
 
-         toolbox: {
 
-             show : true,
 
-             feature : {
 
-                 magicType : {show: true, type: ['line', 'bar']}
 
-             }
 
-         },
 
-         dataZoom : {
 
-             show : true,
 
-             start : 50,
 
-             end : 100
 
-         },
 
-         xAxis : [
 
-             {
 
-                 type : 'category',
 
-                 boundaryGap : true,
 
-                 data : [
 
-                     <% for (const mp of monthProgress) { %>
 
-                     '<%- mp.month %>',
 
-                     <% } %>
 
-                 ]
 
-             }
 
-         ],
 
-         yAxis : [
 
-             {
 
-                 type : 'value',
 
-                 axisLabel : {
 
-                     formatter: '{value} %'
 
-                 },
 
-                 splitArea : {show : true}
 
-             }
 
-         ],
 
-         series : [
 
-             {
 
-                 name:'截止本月完成',
 
-                 type:'line',
 
-                 itemStyle: {
 
-                     normal: {
 
-                         lineStyle: {
 
-                             shadowColor : 'rgba(0,0,0,0.4)',
 
-                             shadowBlur: 5,
 
-                             shadowOffsetX: 3,
 
-                             shadowOffsetY: 3
 
-                         }
 
-                     }
 
-                 },
 
-                 data:[
 
-                     <% for (const mp of monthProgress) { %>
 
-                     <%- mp.end_ratio %>,
 
-                     <% } %>
 
-                 ]
 
-             },
 
-             {
 
-                 name:'本月完成',
 
-                 type:'line',
 
-                 itemStyle: {
 
-                     normal: {
 
-                         lineStyle: {
 
-                             shadowColor : 'rgba(0,0,0,0.4)',
 
-                             shadowBlur: 5,
 
-                             shadowOffsetX: 3,
 
-                             shadowOffsetY: 3
 
-                         }
 
-                     }
 
-                 },
 
-                 data:[
 
-                     <% for (const mp of monthProgress) { %>
 
-                     <%- mp.ratio %>,
 
-                     <% } %>
 
-                 ]
 
-             }
 
-         ]
 
-     };
 
-     // 为echarts对象加载数据
 
-     myChart.setOption(option);
 
-     //3 标段月进度//
 
- </script>
 
- <script>
 
-     $(document).ready(function () {
 
-         if (window.location.hash && window.location.hash === '#yufukuan') {
 
-             $('#gaikuang').removeClass('active');
 
-             $('.nav-item a[href="#gaikuang"]').removeClass('active');
 
-             $('#yufukuan').addClass('active');
 
-             $('.nav-item a[href="#yufukuan"]').addClass('active');
 
-         } else if (window.location.hash && window.location.hash === '#tzxiuding') {
 
-             $('#gaikuang').removeClass('active');
 
-             $('.nav-item a[href="#gaikuang"]').removeClass('active');
 
-             $('#tzxiuding').addClass('active');
 
-             $('.nav-item a[href="#tzxiuding"]').addClass('active');
 
-         } else if (window.location.hash && window.location.hash === '#jlqi') {
 
-             $('#gaikuang').removeClass('active');
 
-             $('.nav-item a[href="#gaikuang"]').removeClass('active');
 
-             $('#jlqi').addClass('active');
 
-             $('.nav-item a[href="#jlqi"]').addClass('active');
 
-         } else if (window.location.hash && window.location.hash === '#biangeng') {
 
-             $('#gaikuang').removeClass('active');
 
-             $('.nav-item a[href="#gaikuang"]').removeClass('active');
 
-             $('#biangeng').addClass('active');
 
-             $('.nav-item a[href="#biangeng"]').addClass('active');
 
-         }
 
-         $('.show-content').on('click', function () {
 
-             $(this).parents('td').html($(this).data('content'));
 
-         });
 
-     });
 
- </script>
 
- </body>
 
- </html>
 
 
  |