|
|
@@ -78,10 +78,10 @@
|
|
|
[[${landApply.apply_type_str}]]
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row cl" >
|
|
|
- <label class="form-label col-xs-4 col-sm-2">厂房所在属地:</label>
|
|
|
+ <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.building_street_name}]]
|
|
|
+ [[${landApply.building_street_name}]]
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
|
@@ -98,137 +98,232 @@
|
|
|
</div>
|
|
|
<div class="line">基准材料</div>
|
|
|
<div class="row cl">
|
|
|
- <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
- <table class="table table-border table-bordered table-bg table-hover">
|
|
|
- <thead>
|
|
|
- <tr class="text-c">
|
|
|
- <th>编号</th>
|
|
|
- <th>内容</th>
|
|
|
- <th>下载材料</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <tr class="text-c" th:each="model,iterStat:${applyMaterials}" th:object="${model}">
|
|
|
- <td th:text="${iterStat.index+1}"></td>
|
|
|
- <td th:text="*{content}"></td>
|
|
|
- <td class="td_material" >
|
|
|
- <div th:if="*{fileDown}">
|
|
|
- <a download th:href="${fileUrl} + *{fileDown.file_url}" target="_blank" style="color: #5b98dd;">[[*{fileDown.file_name}]]</a>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+ <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th>编号</th>
|
|
|
+ <th>内容</th>
|
|
|
+ <th>下载材料</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr class="text-c" th:each="model,iterStat:${applyMaterials}" th:object="${model}">
|
|
|
+ <td th:text="${iterStat.index+1}"></td>
|
|
|
+ <td th:text="*{content}"></td>
|
|
|
+ <td class="td_material">
|
|
|
+ <div th:if="*{fileDown}">
|
|
|
+ <a download th:href="${fileUrl} + *{fileDown.file_url}" target="_blank"
|
|
|
+ style="color: #5b98dd;">[[*{fileDown.file_name}]]</a>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div th:if="${landApply.summary_procedure}" class="line">简易程序材料</div>
|
|
|
<div th:if="${landApply.summary_procedure}" class="row cl" id="summaryMaterials">
|
|
|
- <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
- <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">
|
|
|
- <tr class="text-c" th:each="model,iterStat:${summaryMaterials}" th:object="${model}" >
|
|
|
- <td th:text="${iterStat.index+1}"></td>
|
|
|
- <td class="td_material">
|
|
|
- <div th:if="*{fileDown}">
|
|
|
- <a download th:href="${fileUrl} + *{fileDown.file_url}" target="_blank" style="color: #5b98dd;">[[*{fileDown.file_name}]]</a>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+ <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
+ <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">
|
|
|
+ <tr class="text-c" th:each="model,iterStat:${summaryMaterials}" th:object="${model}">
|
|
|
+ <td th:text="${iterStat.index+1}"></td>
|
|
|
+ <td class="td_material">
|
|
|
+ <div th:if="*{fileDown}">
|
|
|
+ <a download th:href="${fileUrl} + *{fileDown.file_url}" target="_blank"
|
|
|
+ style="color: #5b98dd;">[[*{fileDown.file_name}]]</a>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="line">其他材料</div>
|
|
|
<div class="row cl" id="otherMaterials">
|
|
|
- <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
- <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">
|
|
|
- <tr class="text-c" th:each="model,iterStat:${otherMaterials}" th:object="${model}" >
|
|
|
- <td th:text="${iterStat.index+1}"></td>
|
|
|
- <td class="td_material">
|
|
|
- <div th:if="*{fileDown}">
|
|
|
- <a download th:href="${fileUrl} + *{fileDown.file_url}" target="_blank" style="color: #5b98dd;">[[*{fileDown.file_name}]]</a>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+ <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
+ <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">
|
|
|
+ <tr class="text-c" th:each="model,iterStat:${otherMaterials}" th:object="${model}">
|
|
|
+ <td th:text="${iterStat.index+1}"></td>
|
|
|
+ <td class="td_material">
|
|
|
+ <div th:if="*{fileDown}">
|
|
|
+ <a download th:href="${fileUrl} + *{fileDown.file_url}" target="_blank"
|
|
|
+ style="color: #5b98dd;">[[*{fileDown.file_name}]]</a>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <th:block th:if="${isRent}">
|
|
|
+
|
|
|
+ <div class="line">合同基本信息</div>
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>所属园区:</label>
|
|
|
+ <div class="formControls col-xs-4 col-sm-2">
|
|
|
+ <span class="select-box">
|
|
|
+ <select class="select" th:id="park">
|
|
|
+ <option value='0'>请选择</option>
|
|
|
+ <option th:each="item : ${parkList}" th:value="${item.id}" th:text="${item.name}">
|
|
|
+ </option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>楼栋:</label>
|
|
|
+ <div class="formControls col-xs-4 col-sm-2">
|
|
|
+ <span class="select-box">
|
|
|
+ <select class="select" th:id="building">
|
|
|
+ <option value='0'>请选择</option>
|
|
|
+ <option th:each="item : ${buildingList}" th:value="${item.id}" th:text="${item.name}">
|
|
|
+ </option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>楼层:</label>
|
|
|
+ <div class="formControls col-xs-4 col-sm-2">
|
|
|
+ <span class="select-box">
|
|
|
+ <select class="select" th:id="floor">
|
|
|
+ <option value='0'>请选择</option>
|
|
|
+ <option th:each="item : ${floorList}" th:value="${item.id}" th:text="${item.name}">
|
|
|
+ </option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>租赁面积:</label>
|
|
|
+ <div class="formControls col-xs-4 col-sm-2">
|
|
|
+ <input type="text" class="input-text" th:id="area" th:value="${contract_area}"
|
|
|
+ th:name="contract_area"/>
|
|
|
+ </div>
|
|
|
+ <a class="btn btn-primary radius" onclick="addFloor()"> 新增 </a>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>租住生效日期:</label>
|
|
|
+ <div class="formControls col-xs-4 col-sm-2">
|
|
|
+ <!-- <input type="text" class="input-text" id="contract_starttime" name="contract_starttime"-->
|
|
|
+ <!-- th:id="contract_starttime" th:name="contract_starttime" style="float:left; width: 150px;"/>-->
|
|
|
+ <input class="Wdate input-text" type="text" th:id="contract_start"
|
|
|
+ th:name="contract.contract_start"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'contract_end\')}',isShowClear:true,readOnly:true})"/>
|
|
|
+ </div>
|
|
|
+ <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>租住到期日期:</label>
|
|
|
+ <div class="formControls col-xs-4 col-sm-2">
|
|
|
+ <!-- <input type="text" class="input-text pull-left" id="contract_endtime" name="contract_endtime"-->
|
|
|
+ <!-- th:id="contract_endtime" th:name="contract_endtime" style="float:left; width: 150px;"/>-->
|
|
|
+ <input class="Wdate input-text" type="text" th:id="contract_end"
|
|
|
+ th:name="contract.contract_end"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'contract_start\')}',isShowClear:true,readOnly:true})"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>备注:</label>
|
|
|
+ <div class="formControls col-xs-8 col-sm-8">
|
|
|
+ <textarea class="textarea" id="contract_remark" th:name="contract.remark"
|
|
|
+ placeholder=""></textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>关联载体:</label>
|
|
|
+ <div class="col-xs-8 col-sm-8">
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover ">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th>所属园区</th>
|
|
|
+ <th>楼栋</th>
|
|
|
+ <th>楼层</th>
|
|
|
+ <td>面积</td>
|
|
|
+ <th>操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody class="add-floor" th:id="'floor-table'">
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </th:block>
|
|
|
+
|
|
|
<div class="line">流程信息</div>
|
|
|
<div class="row cl">
|
|
|
- <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
- <table class="table table-border table-bordered table-bg table-hover processTb">
|
|
|
- <thead>
|
|
|
- <tr class="text-c">
|
|
|
- <th style="width:15%;">时间</th>
|
|
|
- <th style="width:15%;">审核状态</th>
|
|
|
- <th style="width:10%;">部门</th>
|
|
|
- <th style="width:10%;">操作人</th>
|
|
|
- <th style="width:10%;">操作</th>
|
|
|
- <th style="width:15%;">材料</th>
|
|
|
- <th style="width:25%;">审核意见</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <tr class="text-c" th:each="model,iterStat:${approvalList}" th:object="${model}">
|
|
|
- <td th:text="*{create_time}"></td>
|
|
|
- <td th:text="*{before_approvalstatus_str}"></td>
|
|
|
- <td th:text="*{department}"></td>
|
|
|
- <td th:text="*{create_name}"></td>
|
|
|
- <td th:text="*{oper_type}"></td>
|
|
|
- <td class="td_material" >
|
|
|
- <div th:if="*{fileDowns}" >
|
|
|
- <a download th:each="filedown,iterStat:*{fileDowns}" th:object="${filedown}" th:href="${fileUrl} + *{file_url}" target="_blank" style="color: #5b98dd;">[[*{file_name}]]<br/></a>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="viewComment" th:data="*{approval_comment}" th:text="*{approval_comment}"></td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+ <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover processTb">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th style="width:15%;">时间</th>
|
|
|
+ <th style="width:15%;">审核状态</th>
|
|
|
+ <th style="width:10%;">部门</th>
|
|
|
+ <th style="width:10%;">操作人</th>
|
|
|
+ <th style="width:10%;">操作</th>
|
|
|
+ <th style="width:15%;">材料</th>
|
|
|
+ <th style="width:25%;">审核意见</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr class="text-c" th:each="model,iterStat:${approvalList}" th:object="${model}">
|
|
|
+ <td th:text="*{create_time}"></td>
|
|
|
+ <td th:text="*{before_approvalstatus_str}"></td>
|
|
|
+ <td th:text="*{department}"></td>
|
|
|
+ <td th:text="*{create_name}"></td>
|
|
|
+ <td th:text="*{oper_type}"></td>
|
|
|
+ <td class="td_material">
|
|
|
+ <div th:if="*{fileDowns}">
|
|
|
+ <a download th:each="filedown,iterStat:*{fileDowns}" th:object="${filedown}"
|
|
|
+ th:href="${fileUrl} + *{file_url}" target="_blank" style="color: #5b98dd;">[[*{file_name}]]<br/></a>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="viewComment" th:data="*{approval_comment}" th:text="*{approval_comment}"></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="line">审核意见</div>
|
|
|
<div class="row cl">
|
|
|
- <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
- <textarea class="textarea" id="approval_comment" th:name="approval_comment" placeholder="请输入审核意见"></textarea>
|
|
|
- </div>
|
|
|
+ <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
|
|
|
+ <textarea class="textarea" id="approval_comment" th:name="approval_comment"
|
|
|
+ placeholder="请输入审核意见"></textarea>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="line">审核材料上传</div>
|
|
|
<div class="row cl">
|
|
|
- <label class="form-label col-xs-4 col-sm-2">上传材料:</label>
|
|
|
+ <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 class="uploader-thum-container">
|
|
|
+ <div id="fileListPre" class="uploader-list">
|
|
|
+ </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">
|
|
|
- <input id="status" type="hidden" name="status"/>
|
|
|
- <input id="isRent" type="hidden" th:value="${isRent}"/>
|
|
|
- <input id="isLeader" type="hidden" th:value="${isLeader}"/>
|
|
|
- <a th:unless="${isLeader}" class="btn btn-primary radius" onclick="audit(4)"> 提交审核意见 </a>
|
|
|
- <!-- <a th:if="${isLeader}" class="btn btn-primary radius" onclick="audit(2)"> 通过 </a>
|
|
|
+ <input id="status" type="hidden" name="status"/>
|
|
|
+ <input id="isRent" type="hidden" th:value="${isRent}"/>
|
|
|
+ <input id="isLeader" type="hidden" th:value="${isLeader}"/>
|
|
|
+ <a th:unless="${isLeader}" class="btn btn-primary radius" onclick="audit(4)"> 提交审核意见 </a>
|
|
|
+ <!-- <a th:if="${isLeader}" class="btn btn-primary radius" onclick="audit(2)"> 通过 </a>
|
|
|
<a th:if="${isLeader}" class="btn btn-primary radius" onclick="audit(3)" > 不通过 </a>
|
|
|
<a th:if="${isLeader}" class="btn btn-primary radius" onclick="audit(1)"> 退回 </a>
|
|
|
-->
|
|
|
<a th:if="${isLeader}" class="btn btn-primary radius" onclick="audit(2)"> 通过 </a>
|
|
|
- <a th:if="${isLeader}" class="btn btn-primary radius" onclick="audit(3)" > 不通过 </a>
|
|
|
+ <a th:if="${isLeader}" class="btn btn-primary radius" onclick="audit(3)"> 不通过 </a>
|
|
|
<a class="btn btn-primary radius" onclick="audit(1)"> 退回 </a>
|
|
|
<button onClick="removeIframe();" class="btn btn-default radius" type="button"> 取消 </button>
|
|
|
</div>
|
|
|
@@ -238,97 +333,105 @@
|
|
|
|
|
|
</article>
|
|
|
<script th:inline="javascript">
|
|
|
-
|
|
|
- //status 1退回,2通过,3不通过,4提交审核意见
|
|
|
- function audit(status){
|
|
|
- $("#status").val(status);
|
|
|
- //所有审核意见必填-2018-06-04
|
|
|
- //if(status==1 || status==3){
|
|
|
- //退回、不通过审核意见必填
|
|
|
- if($.trim($("#approval_comment").val())==""){
|
|
|
- errorMessage('请填写审核意见!');
|
|
|
- return false;
|
|
|
- }
|
|
|
- //}
|
|
|
- $("#form-land-approve").submit();
|
|
|
- }
|
|
|
-
|
|
|
-$(function () {
|
|
|
- $("#form-land-approve").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/approve",
|
|
|
- dataType: "json",
|
|
|
- success: function (data) {
|
|
|
- if (data.success) {
|
|
|
- succeedMessage(data.message);
|
|
|
- //setTimeClose();
|
|
|
- //退回 或者 房屋出租街道通过或者不通过
|
|
|
- if($("#status").val()=="1" || $("#status").val()=="3" ||
|
|
|
- ( $("#isRent").val()=="true" && $("#status").val()=="2" )){
|
|
|
- layer.confirm(
|
|
|
- '审核成功,确认现在就通知企业吗?',
|
|
|
- function(index){
|
|
|
- var url = "/stockLand/confirmPage/"+$("#apply_id").val();
|
|
|
- open_dialog("通知企业",url,800,500);
|
|
|
- },
|
|
|
- function(){
|
|
|
- setTimeClose();
|
|
|
- }
|
|
|
- );
|
|
|
- }else{
|
|
|
- setTimeClose();
|
|
|
+
|
|
|
+ //status 1退回,2通过,3不通过,4提交审核意见
|
|
|
+ function audit(status) {
|
|
|
+ $("#status").val(status);
|
|
|
+ //所有审核意见必填-2018-06-04
|
|
|
+ //if(status==1 || status==3){
|
|
|
+ //退回、不通过审核意见必填
|
|
|
+ if ($.trim($("#approval_comment").val()) == "") {
|
|
|
+ errorMessage('请填写审核意见!');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ //}
|
|
|
+ $("#form-land-approve").submit();
|
|
|
+ }
|
|
|
+
|
|
|
+ $(function () {
|
|
|
+ $("#form-land-approve").validate({
|
|
|
+ rules: {},
|
|
|
+ messages: {},
|
|
|
+ onkeyup: false,
|
|
|
+ focusCleanup: true,
|
|
|
+ success: "valid",
|
|
|
+ submitHandler: function (form) {
|
|
|
+ // $(form).find(":submit").attr("disabled", true);
|
|
|
+ setDocNames();
|
|
|
+ if ($("#contract_start").val() == "") {
|
|
|
+ errorMessage("请选择租住生效日期!")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if ($("#contract_end").val() == "") {
|
|
|
+ errorMessage("请选择租住到期日期!")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (floorList.length <= 0) {
|
|
|
+ errorMessage("请选择关联载体!")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ $(form).ajaxSubmit({
|
|
|
+ type: 'post',
|
|
|
+ url: pagePath + "/stockLand/approve",
|
|
|
+ dataType: "json",
|
|
|
+ success: function (data) {
|
|
|
+ if (data.success) {
|
|
|
+ succeedMessage(data.message);
|
|
|
+ //setTimeClose();
|
|
|
+ //退回 或者 房屋出租街道通过或者不通过
|
|
|
+ if ($("#status").val() == "1" || $("#status").val() == "3" ||
|
|
|
+ ($("#isRent").val() == "true" && $("#status").val() == "2")) {
|
|
|
+ layer.confirm(
|
|
|
+ '审核成功,确认现在就通知企业吗?',
|
|
|
+ function (index) {
|
|
|
+ var url = "/stockLand/confirmPage/" + $("#apply_id").val();
|
|
|
+ open_dialog("通知企业", url, 800, 500);
|
|
|
+ },
|
|
|
+ function () {
|
|
|
+ setTimeClose();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ setTimeClose();
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // $(form).find(":submit").attr("disabled", false);
|
|
|
+ errorMessage(data.message);
|
|
|
}
|
|
|
- } else {
|
|
|
- // $(form).find(":submit").attr("disabled", false);
|
|
|
- errorMessage(data.message);
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ errorMessage('系统错误!');
|
|
|
}
|
|
|
- },
|
|
|
- error: function () {
|
|
|
- errorMessage('系统错误!');
|
|
|
- }
|
|
|
- });
|
|
|
- return false; // 非常重要,如果是false,则表明是不跳转,在本页上处理,也就是ajax,如果是非false,则传统的form跳转。
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- //查看完整意见
|
|
|
- $(".viewComment").on("click", function () {
|
|
|
- layer.alert(
|
|
|
- $(this).attr('data'),
|
|
|
- {area: ['800px', '500px']}
|
|
|
- )
|
|
|
+ });
|
|
|
+ return false; // 非常重要,如果是false,则表明是不跳转,在本页上处理,也就是ajax,如果是非false,则传统的form跳转。
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ //查看完整意见
|
|
|
+ $(".viewComment").on("click", function () {
|
|
|
+ layer.alert(
|
|
|
+ $(this).attr('data'),
|
|
|
+ {area: ['800px', '500px']}
|
|
|
+ )
|
|
|
+ });
|
|
|
});
|
|
|
-});
|
|
|
-
|
|
|
-//修改上传文件的name域,改成数组形式
|
|
|
-function setDocNames(){
|
|
|
- $("#fileListPre").find("input[id$='DocUrl']").each(function(i,item){
|
|
|
- $(this).attr("name","fileDowns["+i+"].file_id");
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-/*管理员-详情*/
|
|
|
-function open_dialog(title,url,w,h){
|
|
|
- layer_show(title,pagePath+url,w,h);
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
-* 初始化上传控件
|
|
|
-*/
|
|
|
-var options = {
|
|
|
+
|
|
|
+ //修改上传文件的name域,改成数组形式
|
|
|
+ function setDocNames() {
|
|
|
+ $("#fileListPre").find("input[id$='DocUrl']").each(function (i, item) {
|
|
|
+ $(this).attr("name", "fileDowns[" + i + "].file_id");
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /*管理员-详情*/
|
|
|
+ function open_dialog(title, url, w, h) {
|
|
|
+ layer_show(title, pagePath + url, w, h);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 初始化上传控件
|
|
|
+ */
|
|
|
+ var options = {
|
|
|
uploadBtnId: '#filePicker',
|
|
|
picturePreId: 'fileListPre',
|
|
|
hiddenPictureUrl: 'img',
|
|
|
@@ -343,19 +446,248 @@ var options = {
|
|
|
fileSizeLimit: 100 * 1024 * 1024,
|
|
|
fileSingleSizeLimit: 100 * 1024 * 1024,
|
|
|
// fileNumLimit: 1,
|
|
|
- append : true
|
|
|
+ append: true
|
|
|
};
|
|
|
|
|
|
var webUploadDoc = new $WebUploadDoc(options);
|
|
|
webUploadDoc.init();
|
|
|
-
|
|
|
+
|
|
|
+ $("#park").change(function () {
|
|
|
+ var parkId = $("#park").val();
|
|
|
+ var buildingId = $("#building").val();
|
|
|
+ if (parkId == '') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var url = pagePath + "/stockLand/contract_building_data";
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: 'get',
|
|
|
+ url: url,
|
|
|
+ dataType: "json",
|
|
|
+ data: {
|
|
|
+ 'parkId': parkId
|
|
|
+ },
|
|
|
+ success: function (result) {
|
|
|
+ if (result.success) {
|
|
|
+
|
|
|
+ var buildingList = result.obj.buildingList;
|
|
|
+ var building = $("#building").empty();
|
|
|
+ building.append("<option value='0'>请选择</option>");
|
|
|
+ var floor = $("#floor").empty();
|
|
|
+ floor.append("<option value='0'>请选择</option>");
|
|
|
+ $("#area").val("");
|
|
|
+
|
|
|
+ if (buildingList.length > 0) {
|
|
|
+ for (var i = 0; i < buildingList.length; i++) {
|
|
|
+ building.append("<option value='" + buildingList[i].id + "'>" + buildingList[i].build_name + "</option>")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ errorMessage(result.message);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ errorMessage('系统错误!');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ $("#building").change(function () {
|
|
|
+ var parkId = $("#park").val();
|
|
|
+ var buildingId = $("#building").val();
|
|
|
+ if (buildingId == '') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var url = pagePath + "/stockLand/contract_floor_data";
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: 'get',
|
|
|
+ url: url,
|
|
|
+ dataType: "json",
|
|
|
+ data: {
|
|
|
+ 'buildingId': buildingId
|
|
|
+ },
|
|
|
+ success: function (result) {
|
|
|
+ if (result.success) {
|
|
|
+
|
|
|
+ var floorList = result.obj.floorList;
|
|
|
+ var floor = $("#floor").empty();
|
|
|
+ floor.append("<option value='0'>请选择</option>");
|
|
|
+ $("#area").val("");
|
|
|
+
|
|
|
+ if (floorList.length > 0) {
|
|
|
+ for (var i = 0; i < floorList.length; i++) {
|
|
|
+ floor.append("<option value='" + floorList[i].id + "'>" + floorList[i].floor + "</option>")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ errorMessage(result.message);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ errorMessage('系统错误!');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ $("#floor").change(function () {
|
|
|
+ $("#area").val("");
|
|
|
+ })
|
|
|
+
|
|
|
+ var floorList = new Array();
|
|
|
+
|
|
|
+ function addFloor() {
|
|
|
+
|
|
|
+ var parkId = $("#park").val();
|
|
|
+ var buildingId = $("#building").val();
|
|
|
+ var floorId = $("#floor").val();
|
|
|
+ var area = $("#area").val();
|
|
|
+
|
|
|
+ var parkName = $("#park option:selected").text();
|
|
|
+ var buildingName = $("#building option:selected").text();
|
|
|
+ var floorName = $("#floor option:selected").text();
|
|
|
+
|
|
|
+ if (parkId == "" || parkId == undefined || parkId == null) {
|
|
|
+ errorMessage("请填选择园区!");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (buildingId == "" || buildingId == undefined || buildingId == null) {
|
|
|
+ errorMessage("请填选择楼栋!");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (floorId == "" || floorId == undefined || floorId == null) {
|
|
|
+ errorMessage("请填选择楼层!");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (area == "" || area == undefined || area == null) {
|
|
|
+ errorMessage("请填写租赁面积!");
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ if (floorList.length > 0) {
|
|
|
+ for (var i = 0; i < floorList.length; i++) {
|
|
|
+ if (parkId != floorList[i].parkId) {
|
|
|
+ errorMessage("请选择同一园区!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (floorId == floorList[i].floorId) {
|
|
|
+ errorMessage("楼层重复!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ floorList.push({
|
|
|
+ parkId: parkId,
|
|
|
+ buildingId: buildingId,
|
|
|
+ floorId: floorId,
|
|
|
+ parkName: parkName,
|
|
|
+ buildingName: buildingName,
|
|
|
+ floorName: floorName,
|
|
|
+ area: area
|
|
|
+ })
|
|
|
+ renderFloorTable(floorList);
|
|
|
+ }
|
|
|
+
|
|
|
+ function renderFloorTable(floorList) {
|
|
|
+
|
|
|
+ var str = "";
|
|
|
+ if (floorList.length > 0) {
|
|
|
+ for (var i = 0; i < floorList.length; i++) {
|
|
|
+
|
|
|
+ str += "<tr class='text-c'>"
|
|
|
+ str += "<td>" + floorList[i].parkName + "</td>"
|
|
|
+ str += "<td>" + floorList[i].buildingName + "</td>"
|
|
|
+ str += "<td>" + floorList[i].floorName + "</td>"
|
|
|
+ str += "<td>" + floorList[i].area + "</td>"
|
|
|
+ str += "<td class='icon_font'><i class='Hui-iconfont' onclick='removeLine(this)'> 删除</i>"
|
|
|
+ str += "<input hidden name='contract.floors[" + i + "].floor_id' value='" + floorList[i].floorId + "'/>"
|
|
|
+ str += "<input hidden name='contract.floors[" + i + "].area' value='" + floorList[i].area + "'/>"
|
|
|
+ str += "<input hidden name='contract.park_id' value='" + floorList[i].parkId + "'/>"
|
|
|
+ str += "</td>"
|
|
|
+ str += "</tr>"
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $("#floor-table").html(str);
|
|
|
+ }
|
|
|
+
|
|
|
+ function removeLine(obj) {
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 取消
|
|
|
*/
|
|
|
- function removeIframe(){
|
|
|
+ function removeIframe() {
|
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
|
parent.layer.close(index);
|
|
|
}
|
|
|
+
|
|
|
+ // $(function () {
|
|
|
+ //
|
|
|
+ // var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
|
|
|
+ // var isOpera = userAgent.indexOf("Opera") > -1;
|
|
|
+ // //判断是否IE浏览器
|
|
|
+ // if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera) {
|
|
|
+ // $("#contract_starttime").remove();
|
|
|
+ // $("#contract_endtime").remove();
|
|
|
+ // } else {
|
|
|
+ // $("#contract_starttimeIE").remove();
|
|
|
+ // $("#contract_endtimeIE").remove();
|
|
|
+ // var startDate = laydate.render({
|
|
|
+ // elem: '#contract_starttime',
|
|
|
+ // type: 'datetime',
|
|
|
+ // format: 'yyyy-MM-dd',
|
|
|
+ // done: function (value, date) {
|
|
|
+ // setTimeout(function () {
|
|
|
+ // $("#form-land-approve").validate().element($("#contract_starttime"));
|
|
|
+ // }, 100)
|
|
|
+ // if (value !== '') {
|
|
|
+ // endDate.config.min.year = date.year;
|
|
|
+ // endDate.config.min.month = date.month - 1;
|
|
|
+ // endDate.config.min.date = date.date;
|
|
|
+ // // endDate.config.min.hours = date.hours;
|
|
|
+ // // endDate.config.min.minutes = date.minutes;
|
|
|
+ // // endDate.config.min.seconds = date.seconds;
|
|
|
+ // } else {
|
|
|
+ // endDate.config.min.year = '1900';
|
|
|
+ // endDate.config.min.month = '0';
|
|
|
+ // endDate.config.min.date = '1';
|
|
|
+ // // endDate.config.min.hours = '0';
|
|
|
+ // // endDate.config.min.minutes = '0';
|
|
|
+ // // endDate.config.min.seconds = '0';
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ //
|
|
|
+ // var endDate = laydate.render({
|
|
|
+ // elem: '#contract_endtime',
|
|
|
+ // type: 'datetime',
|
|
|
+ // format: 'yyyy-MM-dd',
|
|
|
+ // done: function (value, date) {
|
|
|
+ // setTimeout(function () {
|
|
|
+ // $("#form-land-approve").validate().element($("#contract_endtime"));
|
|
|
+ // }, 100)
|
|
|
+ // if (value !== '') {
|
|
|
+ // startDate.config.max.year = date.year;
|
|
|
+ // startDate.config.max.month = date.month - 1;
|
|
|
+ // startDate.config.max.date = date.date;
|
|
|
+ // // startDate.config.max.hours = date.hours;
|
|
|
+ // // startDate.config.max.minutes = date.minutes;
|
|
|
+ // // startDate.config.max.seconds = date.seconds;
|
|
|
+ // } else {
|
|
|
+ // startDate.config.max.year = '2100';
|
|
|
+ // startDate.config.max.month = '0';
|
|
|
+ // startDate.config.max.date = '1';
|
|
|
+ // // startDate.config.max.hours = '0';
|
|
|
+ // // startDate.config.max.minutes = '0';
|
|
|
+ // // startDate.config.max.seconds = '0';
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // });
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|