| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <!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>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-land-feedback">
- <input type="hidden" th:id="id" th:name="id" th:value="${feedback.id}"/>
- <input type="hidden" th:id="apply_id" th:name="apply_id" th:value="${landApply.id}"/>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 申请单编号:</label>
- <div class="formControls col-xs-8 col-sm-9">
- [[${landApply.apply_no}]]
- </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-9">
- [[${landApply.apply_type_str}]]
- </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-9">
- [[${landApply.company_name}]]
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>线下办理状态:</label>
- <div th:if="${feedback.isLastFeedback==1}" class="formControls col-xs-8 col-sm-9">
- <span class="select-box">
- <select class="select" th:name="process_status" >
- <option th:each="item : ${processStatusList}" th:value="${item.value}"
- th:text="${item.name}" th:selected="${item.value==landApply.process_status}">
- </option>
- </select>
- </span>
- </div>
- <div th:unless="${feedback.isLastFeedback==1}" class="formControls col-xs-8 col-sm-9">
- <span class="select-box">
- <select class="select" disabled>
- <option th:each="item : ${processStatusList}" th:value="${item.value}"
- th:text="${item.name}" th:selected="${item.value==feedback.process_status}">
- </option>
- </select>
- </span>
- <input type="hidden" th:value="${feedback.process_status}" th:name="process_status" />
- </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-9">
- <textarea class="textarea" id="process_content" th:name="process_content" placeholder="请输入办理内容">
- [[${feedback.process_content}]]
- </textarea>
- </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-9">
- <textarea class="textarea" id="process_result" th:name="process_result" placeholder="请输入办理结果">
- [[${feedback.process_result}]]
- </textarea>
- </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-9">
- <div class="uploader-thum-container">
- <div id="fileListPre" class="uploader-list">
- <th:block th:unless="${feedback.fileDowns} == null">
- <div th:each="filedown,iterStat:${feedback.fileDowns}" th:object="${filedown}">
- <a th:href="${fileUrl} + *{file_url}" target="_blank" style="color: #5b98dd;">[[*{file_name}]]</a>
- <a onclick="delDoc(this)">删除<br/></a>
- <input type="hidden" name="fileDown.file_id" th:value="*{file_id}"/>
- </div>
- </th:block>
- </div>
- <div id="filePicker">选择文件</div>
- </div>
- </div>
- </div>
- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <button class="btn btn-primary radius" type="submit"> 上传 </button>
- <button onClick="removeIframe();" class="btn btn-default radius" type="button"> 返回 </button>
- </div>
- </div>
- </form>
- </article>
- <script th:inline="javascript">
- $(function () {
- $("#form-land-feedback").validate({
- rules: {
-
- },
- messages: {
-
- },
- onkeyup: false,
- focusCleanup: true,
- success: "valid",
- submitHandler: function (form) {
- // $(form).find(":submit").attr("disabled", true);
- setDocNames();
- $(form).ajaxSubmit({
- type: 'post',
- url: pagePath + "/stockLand/processFeedback",
- dataType: "json",
- success: function (data) {
- if (data.success) {
- succeedMessage(data.message);
- setTimeClose();
- } else {
- // $(form).find(":submit").attr("disabled", false);
- errorMessage(data.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- return false; // 非常重要,如果是false,则表明是不跳转,在本页上处理,也就是ajax,如果是非false,则传统的form跳转。
- }
- });
-
- });
-
- //修改上传文件的name域,改成数组形式
- function setDocNames(){
- $("#fileListPre").find("input[name='fileDown.file_id']").each(function(i,item){
- $(this).attr("name","fileDowns["+i+"].file_id");
- });
- }
-
- /**
- * 初始化上传控件
- */
- 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>
|