123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <% include ../tender/tender_sub_menu.ejs %>
- <div class="panel-content">
- <div class="panel-title"><!--收起详解目录添加类名 fluid -->
- <div class="title-main d-flex"><!--工具-->
- <% include ../tender/tender_sub_mini_menu.ejs %>
- <div>
- <div class="d-inline-block">
- <div class="btn-group btn-group-toggle group-tab">
- <a class="btn btn-sm btn-light" href="/tender/<%- ctx.tender.id %>/change/<%- ctx.change.cid %>/information">变更详情</a>
- <a class="btn btn-sm btn-light" href="/tender/<%- ctx.tender.id %>/change/<%- ctx.change.cid %>/report">输出报表</a>
- <a class="btn btn-sm btn-light active" href="javascript:void(0);">关联数据</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="content-wrap">
- <div class="c-body">
- <div class="sjs-height-0">
- <table class="table table-bordered">
- <thead>
- <tr class="text-center">
- <th>变更类型</th>
- <th>编号</th>
- <th>变更工程名称</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <tbody>
- <% if (ctx.subProject.page_show.openChangeProject) { %>
- <tr id="project">
- <td class="text-center">变更立项</td>
- <td><% if (changeProjectInfo) { %><%- changeProjectInfo.code %><% } %></td>
- <td><% if (changeProjectInfo) { %><%- changeProjectInfo.name %><% } %></td>
- <td class="text-center"><% if (changeProjectInfo) { %><a target="_blank" href="/tender/<%- tender.id %>/change/project/<%- changeProjectInfo.id %>/information">查看详情</a><% } %></td>
- </tr>
- <% } %>
- <% if (ctx.subProject.page_show.openChangeApply) { %>
- <tr id="apply">
- <td class="text-center">变更申请</td>
- <td><% if (changeApplyInfo) { %><%- changeApplyInfo.code %><% } %></td>
- <td><% if (changeApplyInfo) { %><%- changeApplyInfo.name %><% } %></td>
- <td class="text-center"><% if (changeApplyInfo) { %><a target="_blank" href="/tender/<%- tender.id %>/change/apply/<%- changeApplyInfo.id %>/information">查看详情</a><% } %></td>
- </tr>
- <% } %>
- <% if (ctx.subProject.page_show.openChangePlan) { %>
- <tr id="plan">
- <td class="text-center">变更方案</td>
- <td><% if (ctx.session.sessionUser.accountId === ctx.change.uid) { %><input id="plan_code" class="form-control form-control-sm" type="text" value="<% if (changePlanInfo) { %><%- changePlanInfo.code %><% } %>" data-name="plan_code" <% if (ctx.session.sessionUser.accountId !== change.uid) { %>readonly<% } %> placeholder="自动读取,没有就为空,可编辑"><% } else { %><% if (changePlanInfo) { %><%- changePlanInfo.code %><% } %><% } %></td>
- <td><% if (changePlanInfo) { %><%- changePlanInfo.name %><% } %></td>
- <td class="text-center"><% if (changePlanInfo) { %><a target="_blank" href="/tender/<%- tender.id %>/change/plan/<%- changePlanInfo.id %>/information">查看详情</a><% } %></td>
- </tr>
- <% } %>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <script>
- autoFlashHeight();
- <% if (ctx.session.sessionUser.accountId === ctx.change.uid) { %>
- $(function () {
- $('#plan input').change(function () {
- postData('/tender/' + window.location.pathname.split('/')[2] + '/change/' + window.location.pathname.split('/')[4] + '/information/save', { type: 'plan_code', plan_code: $(this).val() }, function (data) {
- if (data.projectInfo) {
- $('#project td').eq(1).text(data.projectInfo.code);
- $('#project td').eq(2).text(data.projectInfo.name);
- $('#project td').eq(3).html('<a target="_blank" href="/tender/' + window.location.pathname.split('/')[2] + '/change/project/' + data.projectInfo.id + '/information">查看详情</a>')
- } else {
- $('#project td').eq(1).text('');
- $('#project td').eq(2).text('');
- $('#project td').eq(3).html('');
- }
- if (data.applyInfo) {
- $('#apply td').eq(1).text(data.applyInfo.code);
- $('#apply td').eq(2).text(data.applyInfo.name);
- $('#apply td').eq(3).html('<a target="_blank" href="/tender/' + window.location.pathname.split('/')[2] + '/change/apply/' + data.applyInfo.id + '/information">查看详情</a>')
- } else {
- $('#apply td').eq(1).text('');
- $('#apply td').eq(2).text('');
- $('#apply td').eq(3).html('');
- }
- if (data.planInfo) {
- $('#plan td').eq(2).text(data.planInfo.name);
- $('#plan td').eq(3).html('<a target="_blank" href="/tender/' + window.location.pathname.split('/')[2] + '/change/plan/' + data.planInfo.id + '/information">查看详情</a>')
- } else {
- $('#plan td').eq(2).text('');
- $('#plan td').eq(3).html('');
- }
- });
- });
- });
- <% } %>
- </script>
|