| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>详情</title>
- <style>
- .line {
- display: block;
- text-align: left;
- background-color: #fff;
- color: #333;
- border-bottom: 1px solid #0a6999;
- border-color: #fff;
- border-bottom: 1px solid #0a6999;
- margin-top: 10px;
- vertical-align: middle;
- padding: 4px 12px;
- height: 31px;
- line-height: 31px;
- font-size: 14px;
- font-weight: bold;
- }
- </style>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal">
- <div class="line">基本信息 <span style="float:right">项目来源:[[${data?.resource}]]</span></div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">项目标题:</label>
- <div class="formControls col-xs-4 col-sm-2">
- <p>[[${data?.title}]]</p>
- </div>
- <label class="form-label col-xs-2 col-sm-2">项目阶段:</label>
- <div class="formControls col-xs-4 col-sm-2">
- <p>[[${data?.process_stage_desc}]]</p>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">项目用地:</label>
- <div class="formControls col-xs-8 col-sm-2">
- <p>[[${data?.location}]]</p>
- </div>
- <label class="form-label col-xs-2 col-sm-2">项目状态:</label>
- <div class="formControls col-xs-4 col-sm-2">
- <p>[[${data?.approve_status_desc}]]</p>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>项目介绍:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div th:utext="${data.content}">
- </div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>附件:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <!-- <div class="uploader-list">-->
- <!-- <th:block th:unless="${data.fileDown==null || data.fileDown.file_url== null}">-->
- <!-- <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.fileDown.file_url}" target="_blank">[[${data.fileDown.file_name}]]</a>-->
- <!-- </th:block>-->
- <!-- </div>-->
- <div class="uploader-list">
- <th:block th:unless="${data.fileList==null}"
- th:each="item,itemStat: ${data.fileList}">
- <p><a style="color: #0c80fe;" th:href="${fileUrl} + ${item.file_url}" target="_blank">[[${item.file_name}]]</a>
- </p>
- </th:block>
- </div>
- </div>
- </div>
- <div class="line">项目信息补充</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>补充信息:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div th:utext="${data.supplement}">
- </div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>补充附件:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-list">
- <th:block th:unless="${data.supplement_file==null || data.supplement_file.file_url== null}">
- <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.supplement_file.file_url}"
- target="_blank">[[${data.supplement_file.file_name}]]</a>
- </th:block>
- </div>
- </div>
- </div>
- <div class="line">咨询问题</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"></label>
- <div class="formControls col-xs-8 col-sm-9">
- <table class="table table-border table-bordered table-bg table-hover processTb">
- <thead>
- <tr class="text-c">
- <th>咨询部门</th>
- <th>咨询问题</th>
- <th>反馈内容</th>
- <th>反馈文件</th>
- <th>剩余答复时间</th>
- <th>答复时间</th>
- <th>咨询时间</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="item : ${data.consultationList}">
- <td th:text="${item.department_name}"></td>
- <td th:text="${item.consultation}" class="viewComment" th:data="*{item.consultation}"></td>
- <td th:text="${item.feedback}" class="viewComment" th:data="*{item.feedback}"></td>
- <td>
- <th:block th:unless="${item.fileDown==null || item.fileDown.file_url== null}">
- <a style="color: #0c80fe;" th:href="${fileUrl} + ${item.fileDown.file_url}"
- target="_blank">[[${item.fileDown.file_name}]]</a>
- </th:block>
- </td>
- <td th:text="${item.remain_time}"></td>
- <td th:text="${item.feedback_time}"></td>
- <td th:text="${item.consultation_time}"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="line">咨询汇总</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>汇总意见:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div th:utext="${data.consultation_summary}">
- </div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>附件:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-list">
- <th:block
- th:unless="${data.consultation_summary_file==null || data.consultation_summary_file.file_url== null}">
- <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.consultation_summary_file.file_url}"
- target="_blank">[[${data.consultation_summary_file.file_name}]]</a>
- </th:block>
- </div>
- </div>
- </div>
- <!--<div class="line">会签</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>会签说明:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div th:utext="${data.countersign_comment}">
- </div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>文件:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-list">
- <th:block
- th:unless="${data.countersign_file==null || data.countersign_file.file_url== null}">
- <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.countersign_file.file_url}"
- target="_blank">[[${data.countersign_file.file_name}]]</a>
- </th:block>
- </div>
- </div>
- </div>-->
- <div class="line">预审审批</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"></label>
- <div class="formControls col-xs-8 col-sm-9">
- <table class="table table-border table-bordered table-bg table-hover processTb">
- <thead>
- <tr class="text-c">
- <th>审批角色</th>
- <th>审批结果</th>
- <th>审批意见</th>
- <th>文件</th>
- </tr>
- </thead>
- <tbody>
- <!-- <tr class="text-c">-->
- <!-- <td>商务局分管领导</td>-->
- <!-- <td th:text="${data.commerce_leader_pre_approve_operate}" class="viewComment"-->
- <!-- th:data="*{data.commerce_leader_pre_approve_operate}"></td>-->
- <!-- <td th:text="${data.commerce_leader_pre_approve_comment}" class="viewComment"-->
- <!-- th:data="*{data.commerce_leader_pre_approve_comment}"></td>-->
- <!-- <td>-->
- <!-- <th:block-->
- <!-- th:unless="${data.commerce_leader_pre_approve_file==null || data.commerce_leader_pre_approve_file.file_url== null}">-->
- <!-- <a style="color: #0c80fe;"-->
- <!-- th:href="${fileUrl} + ${data.commerce_leader_pre_approve_file.file_url}"-->
- <!-- target="_blank">[[${data.commerce_leader_pre_approve_file.file_name}]]</a>-->
- <!-- </th:block>-->
- <!-- </td>-->
- <!-- </tr>-->
- <tr class="text-c">
- <td>产业项目供地推进协调工作领导小组</td>
- <td th:text="${data.committee_leader_pre_approve_operate}" class="viewComment"
- th:data="*{data.committee_leader_pre_approve_operate}"></td>
- <td th:text="${data.committee_leader_pre_approve_comment}" class="viewComment"
- th:data="*{data.committee_leader_pre_approve_comment}"></td>
- <td>
- <th:block
- th:unless="${data.committee_leader_pre_approve_file==null || data.committee_leader_pre_approve_file.file_url== null}">
- <a style="color: #0c80fe;"
- th:href="${fileUrl} + ${data.committee_leader_pre_approve_file.file_url}"
- target="_blank">[[${data.committee_leader_pre_approve_file.file_name}]]</a>
- </th:block>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </form>
- <form class="form form-horizontal" id="form-add">
- <input id="id" name="id" type="hidden" th:value="${data.id}"/>
- <div class="line">分发文件</div>
- <div class="row cl" th:id=" 'department0'">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span><span>部门提报资料说明:</span></label>
- <!-- <div class="formControls col-xs-8 col-sm-9">-->
- <!-- <div class="uploader-thum-container">-->
- <!-- <input class="uploadFileName btn btn-upload radius" name="uploadFileName" readonly="readonly"-->
- <!-- type="text" value="上传文件"-->
- <!-- th:onclick="'javascript:addFileByName(\'/land_supply/addApplyFile'+'\',this);'"/>-->
- <!-- <input class="uploadFileId" type="hidden"-->
- <!-- th:name="'distributionList[20].distribution_file.file_id'"/>-->
- <!-- <input class="departmentId" type="hidden" value="0"-->
- <!-- th:name="'distributionList[20].department_id'"/>-->
- <!-- <a style="color: #0c80fe;" th:onclick="'javascript:deleteFile(this)'">删除</a>-->
- <!-- </div>-->
- <!-- </div>-->
- <div class="formControls col-xs-8 col-sm-9">
- <textarea id="description_of_submitted" name="description_of_submitted" required>[[${data.description_of_submitted}]]</textarea>
- </div>
- <label class="form-label col-xs-4 col-sm-2"></label>
- <div class="formControls col-xs-8 col-sm-9" style="margin-top: 40px;">
- <div><i class="Hui-iconfont" style="cursor: pointer;"
- th:onclick="'javascript:addFileLineS(\'department0\')'"> 添加</i></div>
- <table class="table table-border table-bordered table-bg table-hover ">
- <thead>
- <tr class="text-c">
- <th>文件</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody class="add_file_line" th:id="'tbody_department0'">
- <!-- <tr class="text-c"-->
- <!-- th:each="landSupplyCons,landSupplyConsStat: ${industrialLandSupplyConsultationList}"-->
- <!-- th:if="*{item.id+''==landSupplyCons.department_id}">-->
- <tr class="text-c">
- <td class="td_material">
- <div>
- <input class="uploadFileName btn btn-upload radius" name="uploadFileName"
- readonly="readonly"
- type="text" value="上传文件"
- th:onclick="'javascript:addFileByName(\'/land_supply/addApplyFile\',this);'"/>
- <input class="uploadFileId distribution" type="hidden"
- th:name="'distributionList[99].distribution_file.file_id'"/>
- <input class="department_id" type="hidden" value="0"
- th:name="'distributionList[99].department_id'"/>
- </div>
- </td>
- <td class="icon_font"><i class='Hui-iconfont' onclick='removeLine(this)'> 删除</i>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <!--注释了 现在只把department=0的这个公共文件给所有部门看-->
- <th:block th:each="item,itemStat : ${distDepartmentList}">
- <div hidden class="row cl" th:id="'department'+${item.id}">
- <label class="form-label col-xs-4 col-sm-2"><span>[[${item.name}]]可见:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <!-- <div class="uploader-thum-container">-->
- <!-- <input class="uploadFileName btn btn-upload radius" name="uploadFileName" readonly="readonly"-->
- <!-- type="text" value="上传文件"-->
- <!-- th:onclick="'javascript:addFileByName(\'/land_supply/addApplyFile'+'\',this);'"/>-->
- <!-- <input class="uploadFileId" type="hidden"-->
- <!-- th:name="'distributionList['+${itemStat.index}+'].distribution_file.file_id'"/>-->
- <!-- <input class="departmentId" type="hidden" th:value="${item.id}"-->
- <!-- th:name="'distributionList['+${itemStat.index}+'].department_id'"/>-->
- <!-- <a style="color: #0c80fe;" th:onclick="'javascript:deleteFile(this)'">删除</a>-->
- <!-- </div>-->
- <div><i class="Hui-iconfont" style="cursor: pointer;"
- th:onclick="'javascript:addFileLine(\''+'department'+${item.id}+'\')'"> 添加</i></div>
- <table class="table table-border table-bordered table-bg table-hover ">
- <thead>
- <tr class="text-c">
- <th>文件</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody class="add_file_line" th:id="'tbody_department'+${item.id}">
- <!-- <tr class="text-c"-->
- <!-- th:each="landSupplyCons,landSupplyConsStat: ${industrialLandSupplyConsultationList}"-->
- <!-- th:if="*{item.id+''==landSupplyCons.department_id}">-->
- <tr class="text-c">
- <td class="td_material">
- <div>
- <input class="uploadFileName btn btn-upload radius" name="uploadFileName"
- readonly="readonly"
- type="text" value="上传文件"
- th:onclick="'javascript:addFileByName(\'/land_supply/addApplyFile\',this);'"/>
- <input class="uploadFileId distribution" type="hidden"
- th:name="'distributionList[10'+${itemStat.index}+'].distribution_file.file_id'"/>
- <input class="department_id" type="hidden" th:value="${item.id}"
- th:name="'distributionList[10'+${itemStat.index}+'].department_id'"/>
- </div>
- </td>
- <td class="icon_font"><i class='Hui-iconfont' onclick='removeLine(this)'> 删除</i>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </th:block>
- <div class="row cl text-c" style="background-color: white">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <a onclick="save()" class="btn btn-secondary radius"><i class="Hui-iconfont"></i>提交</a>
- <a onClick="removeIframe();" class="btn btn-default radius" type="button"> 返回 </a>
- </div>
- </div>
- </form>
- </article>
- <script type="text/javascript" th:src="@{/h-ui/lib/webuploader/0.1.5/webuploader.min.js}"></script>
- <script th:inline="javascript">
- //富文本kindeditor初始化
- var editor;
- KindEditor.ready(function (K) {
- editor = K.create('#description_of_submitted', {
- uploadJson: pagePath + '/upload/kindEditorUpload',
- cssData: 'body {font-family: "微软雅黑"; font-size: 14px}',
- allowFileManager: false,
- allowUpload: true,
- width: "100%",
- height: "350px",
- items: array,
- syncType: "auto",
- filterMode: false,
- afterBlur: function () {
- this.sync();
- }
- });
- });
- function save() {
- if (editor.isEmpty()) {
- errorMessage('请填写部门提报资料说明');
- return false;
- }
- $("#form-add").ajaxSubmit({
- type: 'post',
- url: pagePath + "/land_supply/distribute",
- dataType: "json",
- data: {
- "description_of_submitted_text": editor.text()
- },
- success: function (data) {
- if (data.success) {
- succeedMessage(data.message);
- setTimeClose();
- } else {
- // $(form).find(":submit").attr("disabled", false);
- errorMessage(data.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- //添加相应name的文件
- function addFileByName(url, obj) {
- var name = $(obj).next().attr("name");
- url += "?fileIdName=" + name;
- layer_show('添加文件', pagePath + url, 800, 350);
- }
- function deleteFile(item) {
- $(item).parent().find(".uploadFileName").val("上传文件")
- $(item).parent().find(".uploadFileId").val(null)
- // console.log($(item).parent().find(".uploadFileName").val("上传文件"))
- // console.log($(item).parent().find(".uploadFileId").val(null))
- // console.log($(item).parent().find(".departmentId"))
- }
- $(function () {
- //查看完整意见
- $(".viewComment").on("click", function () {
- layer.alert(
- $(this).attr('data'),
- {area: ['800px', '500px']}
- )
- });
- });
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
- var distDepartmentList = [[${distDepartmentList}]];
- var index = distDepartmentList.length;
- function addFileLine(divId) {
- var length = index;
- if ($("#" + divId).find('.add_file_line>tr').length > 0) {
- var html = "<i class='Hui-iconfont' onclick='removeLine(this)'> 删除</i>";
- $("#" + divId).find(".add_file_line tr:eq(0)").clone().insertAfter($("#" + divId).find('.add_file_line>tr').eq(-1))
- .find(".distribution").removeAttr("name").attr("name", "distributionList[" + length + "].distribution_file.file_id").val("").end()
- .find(".department_id").removeAttr("name").attr("name", "distributionList[" + length + "].department_id").end()
- .find(".uploadFileName").val("上传文件").end()
- .find(".icon_font").html(html).end();
- } else {
- var str = "";
- str += "<tr class='text-c'>"
- str += "<td class='td_material'>"
- str += "<div>"
- str += "<input class='uploadFileName btn btn-upload radius' name='uploadFileName' readonly='readonly' type='text' value='上传文件' onclick=\"addFileByName('/land_supply/addApplyFile',this);\"/>"
- str += "<input class='uploadFileId distribution' hidden name='distributionList[" + length + "].distribution_file.file_id'/>"
- str += "<input class='department_id' hidden value='" + divId.split("department")[1] + "' name='distributionList[" + length + "].department_id' />"
- str += "</div>"
- str += "</td>"
- str += "<td class='icon_font'><i class='Hui-iconfont' onclick='removeLine(this)'> 删除</i>"
- str += "</td>"
- str += "</tr>"
- $("#tbody_" + divId).html(str);
- }
- $('#layui-layer2').height(48);
- index++;
- }
- function addFileLineS(divId) {
- var length = index;
- if ($("#" + divId).find('.add_file_line>tr').length > 0) {
- var html = "<i class='Hui-iconfont' onclick='removeLine(this)'> 删除</i>";
- $("#" + divId).find(".add_file_line tr:eq(0)").clone().insertAfter($("#" + divId).find('.add_file_line>tr').eq(-1))
- .find(".distribution").removeAttr("name").attr("name", "distributionList[" + length + "].distribution_file.file_id").val("").end()
- .find(".department_id").removeAttr("name").attr("name", "distributionList[" + length + "].department_id").end()
- .find(".uploadFileName").val("上传文件").end()
- .find(".icon_font").html(html).end();
- } else {
- var str = "";
- str += "<tr class='text-c'>"
- str += "<td class='td_material'>"
- str += "<div>"
- str += "<input class='uploadFileName btn btn-upload radius' name='uploadFileName' readonly='readonly' type='text' value='上传文件' onclick=\"addFileByName('/land_supply/addApplyFile',this);\"/>"
- str += "<input class='uploadFileId distribution' hidden name='distributionList[" + length + "].distribution_file.file_id'/>"
- str += "<input class='department_id' hidden value='0' name='distributionList[" + length + "].department_id' />"
- str += "</div>"
- str += "</td>"
- str += "<td class='icon_font'><i class='Hui-iconfont' onclick='removeLine(this)'> 删除</i>"
- str += "</td>"
- str += "</tr>"
- $("#tbody_" + divId).html(str);
- }
- $('#layui-layer2').height(48);
- index++;
- }
- function removeLine(obj) {
- $(obj).parent().parent().remove();
- }
- </script>
- </body>
- </html>
|