| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437 |
- <!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>
- .childTit{
- font-size:14px;
- color:#333;
- padding:8px 5px;
- /*margin: 15px 0;*/
- border-left: 3px solid #409EFF;
- background: rgba(240,240,240,0.9);
- text-align: left;
- }
- .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;
- }
- .audit_departments{
- margin-right: 20px;
- }
- </style>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-add">
- <div class="line">基本信息</div>
- <div class="row cl">
- <div class="col-xs-6 col-sm-6">
- <label class="form-label col-xs-3 col-sm-3">投资主体名称:</label>
- <div class="formControls col-xs-9 col-sm-9">
- <input type="text" class="input-text" name = "investment_subject" th:value="${industrialLand.investment_subject}" readonly/>
- </div>
- </div>
- </div>
- <div class="row cl">
- <div class="col-xs-6 col-sm-6">
- <label class="form-label col-xs-3 col-sm-3">法定代表人姓名:</label>
- <div class="formControls col-xs-9 col-sm-9">
- <input type="text" class="input-text" name = "legal_representative" th:value="${industrialLand.legal_representative}" readonly/>
- </div>
- </div>
- <div class="col-xs-6 col-sm-6">
- <label class="form-label col-xs-3 col-sm-3">联系电话:</label>
- <div class="formControls col-xs-9 col-sm-9">
- <input type="text" class="input-text" name = "lr_phone" th:value="${industrialLand.lr_phone}" readonly/>
- </div>
- </div>
- </div>
- <div class="row cl">
- <div class="col-xs-6 col-sm-6">
- <label class="form-label col-xs-3 col-sm-3">项目联系人姓名:</label>
- <div class="formControls col-xs-9 col-sm-9">
- <input type="text" class="input-text" name = "contact" th:value="${industrialLand.contact}" readonly/>
- </div>
- </div>
- <div class="col-xs-6 col-sm-6">
- <label class="form-label col-xs-3 col-sm-3">联系电话:</label>
- <div class="formControls col-xs-9 col-sm-9">
- <input type="text" class="input-text" name = "contact_phone" th:value="${industrialLand.contact_phone}" readonly/>
- </div>
- </div>
- </div>
- <div class="row cl">
- <div class="col-xs-6 col-sm-6">
- <label class="form-label col-xs-3 col-sm-3">所属板块:</label>
- <div class="formControls col-xs-9 col-sm-9">
- <input type="test" class="input-text" name = "streetName" th:value="${industrialLand.streetName}" readonly/>
- </div>
- </div>
- <div class="col-xs-6 col-sm-6">
- <label class="form-label col-xs-3 col-sm-3">提交时间:</label>
- <div class="formControls col-xs-9 col-sm-9">
- <input type="test" class="input-text" th:value="${industrialLand.create_time}" readonly/>
- </div>
- </div>
- </div>
- <div id="template">
- <div class="line">基本资料(有多个资料时请打包上传)</div>
- <table class="table table-border table-bordered table-bg table-hover" style="margin-top: 15px">
- <thead>
- <tr class="text-c">
- <th>文件</th>
- <th>上传材料</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" >
- <td>项目用地申请报告</td>
- <td>
- <th:block th:if="${industrialLand.applyMaterial}">
- <a th:href="${fileUrl} + ${industrialLand.applyMaterial.file_url}" target="_blank" style="color: #5b98dd;">[[${industrialLand.applyMaterial.file_name}]]</a>
- </th:block>
- </td>
- </tr>
- <tr class="text-c" >
- <td>产业用地项目预审申请表</td>
- <td>
- <th:block th:if="${industrialLand.preAuditMaterial}">
- <a th:href="${fileUrl} + ${industrialLand.preAuditMaterial.file_url}" target="_blank" style="color: #5b98dd;">[[${industrialLand.preAuditMaterial.file_name}]]</a>
- </th:block>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div th:if="${industrialLand.status} == 7 or ${industrialLand.status} == 3">
- <div class="line">文件资料</div>
- <table class="table table-border table-bordered table-bg table-hover" style="margin-top: 15px">
- <thead>
- <tr class="text-c">
- <th>文件</th>
- <th>上传材料</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c">
- <td>专家意见</td>
- <td>
- <th:block th:if="${industrialLand.proOpinionMaterial}">
- <a th:href="${fileUrl} + ${industrialLand.proOpinionMaterial.file_url}" target="_blank" style="color: #5b98dd;">[[${industrialLand.proOpinionMaterial.file_name}]]</a>
- </th:block>
- </td>
- </tr>
- <tr class="text-c">
- <td>预审意见表</td>
- <td>
- <th:block th:if="${industrialLand.pretrialMaterial}">
- <a th:href="${fileUrl} + ${industrialLand.pretrialMaterial.file_url}" target="_blank" style="color: #5b98dd;">[[${industrialLand.pretrialMaterial.file_name}]]</a>
- </th:block>
- </td>
- </tr>
- <tr class="text-c">
- <td>会议文件</td>
- <td>
- <th:block th:if="${industrialLand.meetingMaterial}">
- <a th:href="${fileUrl} + ${industrialLand.meetingMaterial.file_url}" target="_blank" style="color: #5b98dd;">[[${industrialLand.meetingMaterial.file_name}]]</a>
- </th:block>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="line">流程信息</div>
- <table class="table table-border table-bordered table-bg table-hover processTb" style="margin-top: 15px">
- <thead>
- <tr class="text-c">
- <th>单位</th>
- <th>用户</th>
- <th>时间</th>
- <th>操作</th>
- <th>其他材料</th>
- <th>意见与建议</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model,iterStat:${approvals}" th:object="${model}">
- <td th:text="*{department}"></td>
- <td th:text="*{create_name}"></td>
- <td th:text="*{create_time}"></td>
- <td th:text="*{oper_type}"></td>
- <td>
- <th:block th:if="*{otherMaterial}">
- <a th:href="${fileUrl} + *{otherMaterial.file_url}" target="_blank" style="color: #5b98dd;">[[*{otherMaterial.file_name}]]</a>
- </th:block>
- </td>
- <td class="viewComment" th:data="*{approval_comment}" th:text="*{approval_comment}"></td>
- </tr>
- </tbody>
- </table>
- <div th:if="${industrialLand.status} == 7 or ${industrialLand.status} == 3">
- <div class="line">文件资料上传</div>
- <table class="table table-border table-bordered table-bg table-hover" style="margin-top: 15px">
- <thead>
- <tr class="text-c">
- <th>文件</th>
- <th>上传材料</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:if="${industrialLand.status} == 7">
- <td>专家意见</td>
- <td>
- <input class="uploadFileName input-text" name="uploadFileName" readonly="readonly" type="text" th:onclick="'javascript:addFile(\'添加文件\',\'/industrialLand/addFile/proOpinionMaterial\',\'800\',\'350\');'"/>
- <input class="uploadFileId" type="hidden" name="proOpinionMaterial.file_id" id="proOpinionMaterial"/>
- </td>
- </tr>
- <tr class="text-c" th:if="${industrialLand.status} == 3">
- <td>预审意见表</td>
- <td>
- <input class="uploadFileName input-text" name="uploadFileName" readonly="readonly" type="text" th:onclick="'javascript:addFile(\'添加文件\',\'/industrialLand/addFile/pretrialMaterial\',\'800\',\'350\');'"/>
- <input class="uploadFileId" type="hidden" name="pretrialMaterial.file_id" id="pretrialMaterial"/>
- </td>
- </tr>
- <tr class="text-c" th:if="${industrialLand.status} == 3">
- <td>会议文件</td>
- <td>
- <input class="uploadFileName input-text" name="uploadFileName" readonly="readonly" type="text" th:onclick="'javascript:addFile(\'添加文件\',\'/industrialLand/addFile/meetingMaterial\',\'800\',\'350\');'"/>
- <input class="uploadFileId" type="hidden" name="meetingMaterial.file_id" id="meetingMaterial"/>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div>
- <div class="line">意见与建议</div>
- <textarea id="approvalComment" name="approval_comment" style="height: 150px;width: 100%;" ></textarea>
- </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">
- <div class="uploader-thum-container">
- <div id="fileListPre" class="uploader-list">
- </div>
- <div id="filePicker">选择文件</div>
- </div>
- </div>
- </div>
- <div th:if="${industrialLand.status}==7 or ${industrialLand.status}==3 " class="line">分发部门</div>
- <div th:if="${industrialLand.status}==7 or ${industrialLand.status}==3 " class="row cl">
- <label class="form-label col-xs-4 col-sm-2">分发部门:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <label style="display:block" >
- <input type="checkbox" th:value="*{id}" id="allDepartment"
- th:text="全选" >
- </label>
- <label class="audit_departments" th:each="department,iterStat:${departmentList}" th:object="${department}">
- <input type="checkbox" th:value="*{id}" th:name="audit_departments"
- th:text="*{name}" >
- <!--<span class="c-red" th:if="*{isSent}">已分发</span>-->
- </label>
- </div>
- </div>
- <div class="row cl">
- <div class="col-xs-12 col-sm-9 col-xs-offset-5 col-sm-offset-5">
- <button onClick="removeIframe();" class="btn btn-default radius" type="button"> 取消 </button>
- <!--材料申报-->
- <a th:if="${userType}==4 and ${industrialLand.status}==1" class="btn btn-primary radius" onclick="reject(1)"> 退回 </a>
- <a th:if="${userType}==4 and ${industrialLand.status}==1" class="btn btn-primary radius" onclick="approve(2)"> 审核通过 </a>
- <a th:if="${userType}==4 and ${industrialLand.status}==1" class="btn btn-primary radius" onclick="approve(3)"> 不通过 </a>
- <!--待分发-->
- <a th:if="${userType}==0 and ${industrialLand.status}==7" class="btn btn-primary radius" onclick="approve(4)"> 分发 </a>
- <a th:if="${userType}==0 and ${industrialLand.status}==7" class="btn btn-primary radius" onclick="reject(1)"> 退回 </a>
- <!--项目评审-->
- <a th:if="${userType}==0 and ${industrialLand.status}==2" class="btn btn-primary radius" onclick="approve(5)"> 提交审核意见 </a>
- <!--项目认定-->
- <a th:if="${userType}==0 and ${industrialLand.status}==3" class="btn btn-primary radius" onclick="approve(2)"> 审核通过 </a>
- <a th:if="${userType}==0 and ${industrialLand.status}==3" class="btn btn-primary radius" onclick="approve(3)"> 不通过 </a>
- <a th:if="${userType}==0 and ${industrialLand.status}==3" class="btn btn-primary radius" onclick="approve(4)"> 补发 </a>
- </div>
- </div>
- </form>
- </article>
- <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
- <script th:inline="javascript">
- var fileUrl = [[${fileUrl}]];
- //添加文件
- function addFile(title, url, w, h) {
- layer_show(title, pagePath + url, w, h);
- }
- var approvalComment = [[${lastApproval.approval_comment}]];
- // $("#approvalComment").val(approvalComment);
- function reject(status) {
- var id = [[${industrialLand.id}]];
- var approvalComment = $.trim($("#approvalComment").val());
- if(approvalComment.length==0){
- errorMessage("请填写审核意见!");
- return;
- }
- $("#form-add").ajaxSubmit({
- url :pagePath+"/industrialLand/audit",
- type : "post",
- data : {
- // 'approval_comment': approvalComment,
- 'apply_id': id,
- 'status': status
- },
- dataType : "json",
- success: function (result) {
- if (result.success) {
- succeedMessage(result.message);
- setTimeClose();
- }
- else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- function getAuditDepartments(){
- if($("input[name='audit_departments']").length>0){
- var audit_departments = "";
- $("input[name='audit_departments']").each(function(){
- if($(this).is(":checked")){
- audit_departments += this.value + ",";
- }
- });
- if(audit_departments.length>0){
- audit_departments = audit_departments.substring(0,audit_departments.length-1);
- }
- return audit_departments;
- }
- }
- function approve(status) {
- var id = [[${industrialLand.id}]];
- if (status == 3){
- var approvalComment = $.trim($("#approvalComment").val());
- if(approvalComment.length==0){
- errorMessage("请填写审核意见!");
- return;
- }
- }
- var audit_departments = null;
- if(status==4){
- audit_departments = getAuditDepartments();
- if(audit_departments.length==0){
- errorMessage("请选择分发部门!");
- return;
- }
- }
- $("#form-add").ajaxSubmit({
- url :pagePath+"/industrialLand/audit",
- type : "post",
- data : {
- // 'approval_comment': approvalComment,
- 'apply_id': id,
- 'status': status
- // 'audit_departments': audit_departments
- },
- dataType : "json",
- success: function (result) {
- if (result.success) {
- succeedMessage(result.message);
- setTimeClose();
- }
- else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- })
- }
- //查看完整意见
- $(".viewComment").on("click", function () {
- layer.alert(
- $(this).attr('data'),
- {area: ['800px', '500px']}
- )
- });
- //部门全选按钮
- $("#allDepartment").on("click", function () {
- if($(this).is(":checked")){
- $("input[name='audit_departments']").each(function(){
- $(this).prop("checked", true);
- });
- }else{
- $("input[name='audit_departments']").each(function(){
- $(this).prop("checked", false);
- });
- }
- });
- /**
- * 初始化上传控件
- */
- var options = {
- uploadBtnId: '#filePicker',
- picturePreId: 'fileListPre',
- hiddenPictureUrl: 'img',
- hiddenPictureName: 'imgName',
- // accept : {
- // title : 'Images',
- // extensions : 'gif,jpg,jpeg,bmp,png',
- // mimeTypes : 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
- // },
- width: 81,
- height: 81,
- fileSizeLimit: 100 * 1024 * 1024,
- fileSingleSizeLimit: 100 * 1024 * 1024,
- // fileNumLimit: 1,
- append : true
- };
- var webUploadDoc = new $WebUploadDoc(options);
- webUploadDoc.init();
- /**
- * 取消
- */
- function removeIframe(){
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
- </script>
- </body>
- </html>
|