467 lines
13 KiB
Plaintext
467 lines
13 KiB
Plaintext
<#ftl attributes={"content_type":"text/html; charset=UTF-8"}>
|
|
<#compress>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title><#if op == 'update'>地块信息编辑<#else>地块信息添加</#if></title>
|
|
<link rel="stylesheet" type="text/css" href="../style/main.css?v=${version}" />
|
|
<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
|
|
<style>
|
|
.inp {width:400px;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<#include "/common_js.ftl" />
|
|
<#include "/layout/header.ftl" />
|
|
<div class="main-content">
|
|
|
|
<#setting number_format="0.###########">
|
|
<font color="red">${msg!''}</font>
|
|
|
|
<div id = "save">
|
|
<h1><#if op == 'update'>地块信息编辑<#else>地块信息添加</#if></h1>
|
|
<div style="color:#ff0000; padding:5px;">${errMsg!}</div>
|
|
<form id="lineForm" action="../dikuai/save" method = "post">
|
|
<input type="hidden" name="id" value="${id!}" />
|
|
<input type="hidden" name="op" value="${op!}" />
|
|
<table class = "saveTable">
|
|
<tr>
|
|
<td class = "t1" width="150">
|
|
城市<font color="red">*</font></td>
|
|
<td>
|
|
<@d_city defaultValue="${cityDisplay!}" name="cityDisplay" callback="changeCity" id="districtCity" callbackField="display" />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">
|
|
区域<font color="red">*</font></td>
|
|
<td>
|
|
<#if regionList?? && regionList?size gt 0>
|
|
<select id="region" name="region">
|
|
<#list regionList! as region2>
|
|
<option value="${region2!}"<#if diKuai.region! == region2> selected</#if>>${region2!}</option>
|
|
</#list>
|
|
</select>
|
|
<#else>
|
|
<select id="region" name="region">
|
|
</select>
|
|
</#if>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">
|
|
地块编号<font color="red">*</font></td>
|
|
<td>
|
|
<input name="did" type="text" value="${diKuai.did!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">
|
|
地块名称<font color="red">*</font></td>
|
|
<td>
|
|
<input name="name" type="text" value="${diKuai.name!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">
|
|
地块位置<font color="red">*</font></td>
|
|
<td>
|
|
<input name="location" type="text" value="${diKuai.location!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">
|
|
规划用途<font color="red">*</font></td>
|
|
<td>
|
|
<input name="purpose" type="text" value="${diKuai.purpose!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">土地面积<font color="red">*</font></td>
|
|
<td>
|
|
<input name="area" type="number" value="${diKuai.area!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">成交状态</td>
|
|
<td>
|
|
<select name="status">
|
|
<#if op == 'update'>
|
|
<option value="已成交" <#if diKuai.status == "已成交">selected="selected"</#if>>已成交</option>
|
|
<option value="未成交" <#if diKuai.status == "未成交">selected="selected"</#if>>未成交</option>
|
|
<option value="流拍" <#if diKuai.status == "流拍">selected="selected"</#if>>流拍</option>
|
|
<#else>
|
|
<option value="已成交">已成交</option>
|
|
<option value="未成交">未成交</option>
|
|
<option value="流拍">流拍</option>
|
|
</#if>
|
|
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">土地级别</td>
|
|
<td>
|
|
<input name="level" type="text" value="${diKuai.level!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">使用年限</td>
|
|
<td>
|
|
<input name="useLife" type="text" value="${diKuai.useLife!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">四至范围</td>
|
|
<td>
|
|
<input name="range" type="text" value="${diKuai.range!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">建设用地面积</td>
|
|
<td>
|
|
<input name="buildLandArea" type="number" value="${diKuai.buildLandArea!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">净用地面积</td>
|
|
<td>
|
|
<input name="netLandArea" type="number" value="${diKuai.netLandArea!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">规划建筑面积</td>
|
|
<td>
|
|
<input name="plannArea" type="number" value="${diKuai.plannArea!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">代征面积</td>
|
|
<td>
|
|
<input name="generSignArea" type="number" value="${diKuai.generSignArea!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">建筑密度</td>
|
|
<td>
|
|
<input name="buildDensity" type="text" value="${diKuai.buildDensity!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">限制高度</td>
|
|
<td>
|
|
<input name="heightLimit" type="text" value="${diKuai.heightLimit!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">容积率</td>
|
|
<td>
|
|
<input name="volumeRate" type="text" value="${diKuai.volumeRate!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">绿化率</td>
|
|
<td>
|
|
<input name="greenRate" type="text" value="${diKuai.greenRate!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">绿地率</td>
|
|
<td>
|
|
<input name="greenSpaceRate" type="text" value="${diKuai.greenSpaceRate!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">起始价</td>
|
|
<td>
|
|
<input name="startPrice" type="number" value="${diKuai.startPrice!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">保证金</td>
|
|
<td>
|
|
<input name="bond" type="number" value="${diKuai.bond!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">增价幅度</td>
|
|
<td>
|
|
<input name="rateOfIncrease" type="number" value="${diKuai.rateOfIncrease!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">成交价</td>
|
|
<td>
|
|
<input name="transactionPrice" type="number" value="${diKuai.transactionPrice!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">起始日期</td>
|
|
<td>
|
|
<input name="startDate" type="text" value="${diKuai.startDate!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">截止日期</td>
|
|
<td>
|
|
<input name="endDate" type="text" value="${diKuai.endDate!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">成交日期</td>
|
|
<td>
|
|
<input name="dealDate" type="text" value="${diKuai.dealDate!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">竞得单位</td>
|
|
<td>
|
|
<input name="competitiveUnit" type="text" value="${diKuai.competitiveUnit!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">出让形式</td>
|
|
<td>
|
|
<input name="assignmentForm" type="text" value="${diKuai.assignmentForm!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">商业比率</td>
|
|
<td>
|
|
<input name="commercialRate" type="text" value="${diKuai.commercialRate!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">溢价率</td>
|
|
<td>
|
|
<input name="premiumRate" type="text" value="${diKuai.premiumRate!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">楼面地价</td>
|
|
<td>
|
|
<input name="floorPrice" type="number" value="${diKuai.floorPrice!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">批准单位</td>
|
|
<td>
|
|
<input name="approvedUnit" type="text" value="${diKuai.approvedUnit!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">电子监管号</td>
|
|
<td>
|
|
<input name="controlNumber" type="text" value="${diKuai.controlNumber!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">交易地点</td>
|
|
<td>
|
|
<input name="tradingPlace" type="text" value="${diKuai.tradingPlace!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class = "t1">批准文号</td>
|
|
<td>
|
|
<input name="approvalNumber" type="text" value="${diKuai.approvalNumber!}" class="inp"/>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
<table class = "saveTable">
|
|
<tr>
|
|
<td colspan="2" >
|
|
<input id="submitForm" type="button" value="<#if op == 'update'>确认修改<#else>确认添加</#if>" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="mapContainer" style="position:absolute;bottom:0px;right:0px;border:1px solid #DADADA;padding:8px;z-index:999999;background:#F5F5F5;display:none;">
|
|
<div id="mapDiv" style="min-width:550px;height: 500px;"></div>
|
|
<div class="mapInfo">
|
|
经度:<span id="mapLng">0</span> 纬度:<span id="mapLat">0</span>
|
|
<button id="resetLatlng">还原</button>
|
|
<button id="applyLatlng">应用</button>
|
|
<input type="text" name="searchKey" placeholder="请输入查询关键字"/><button id="searchInMap">搜索</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript" src="../js/kindeditor-4.0/kindeditor.js"></script>
|
|
<script type="text/javascript" src="../js/kindeditor-4.0/lang/zh_CN.js"></script>
|
|
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=3E63A744012f88c9a73a2f051aece58b"></script>
|
|
<script charset="utf-8" src="http://map.qq.com/api/js?v=2.exp&key=5fc2a1dec61fbd1df575a0967b87aa20"></script>
|
|
<script type="text/javascript">
|
|
|
|
function changeCity(display){
|
|
if (display) {
|
|
$("#display").val(display);
|
|
}
|
|
jQuery.ajax({
|
|
type: 'POST',
|
|
url: '../district/getRegions',
|
|
data: encodeURI("cityDisplay=" + display),
|
|
dataType: 'json',
|
|
timeout: 100000,
|
|
success: function(model) {
|
|
$("#region option").remove();
|
|
if (model.regionList.length > 0) {
|
|
$.each(model.regionList, function(i, region){
|
|
if ('${region!}' == region) {
|
|
$("<option value='" + region + "' selected>" + region + "</option>").appendTo($("#region"));
|
|
} else {
|
|
$("<option value='" + region + "'>" + region + "</option>").appendTo($("#region"));
|
|
}
|
|
});
|
|
}
|
|
},
|
|
error : function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
$("#submitForm").click(function(){
|
|
var reg_num = /^\d+(\.\d+)?$/;
|
|
var form = $("#lineForm");
|
|
var f = $("#lineForm")[0];
|
|
var city = $("#districtCity").val();
|
|
if (city == '' || city == undefined) {
|
|
alert('城市不能为空!');
|
|
return false;
|
|
}
|
|
|
|
var region = $("#region").val();
|
|
if (region == '') {
|
|
alert('区域不能为空!');
|
|
return false;
|
|
}
|
|
|
|
var did = f.did.value;
|
|
if (did == '') {
|
|
alert('地块编号不能为空!');
|
|
return false;
|
|
}
|
|
|
|
var name = f.name.value;
|
|
if (name == '') {
|
|
alert('地块名称不能为空!');
|
|
return false;
|
|
}
|
|
|
|
var location = f.location.value;
|
|
if (location == '') {
|
|
alert('地块位置不能为空!');
|
|
return false;
|
|
}
|
|
|
|
var purpose = f.purpose.value;
|
|
if (purpose == '') {
|
|
alert('规划用途不能为空!');
|
|
return false;
|
|
}
|
|
|
|
var area = f.area.value;
|
|
if (area == '') {
|
|
alert('土地面积不能为空!');
|
|
return false;
|
|
}
|
|
|
|
jQuery.ajax({
|
|
type: 'POST',
|
|
url: '../dikuai/save',
|
|
data: form.serialize(),
|
|
dataType: 'json',
|
|
timeout: 100000,
|
|
success: function(model) {
|
|
if("${op}" == "update") {
|
|
window.location.reload();
|
|
} else {
|
|
window.location.href = "../dikuai/list?cityDisplay=${cityDisplay}";
|
|
}
|
|
},
|
|
error : function() {
|
|
alert("操作失败!");
|
|
}
|
|
});
|
|
})
|
|
|
|
|
|
function changeCity(display){
|
|
if (display) {
|
|
$("#display").val(display);
|
|
}
|
|
loadRegion(display);
|
|
}
|
|
var selectRegion = '${region!}';
|
|
function loadRegion(display){
|
|
jQuery.ajax({
|
|
type: 'POST',
|
|
url: '../district/getRegions',
|
|
data: encodeURI("cityDisplay=" + display),
|
|
dataType: 'json',
|
|
timeout: 100000,
|
|
success: function(model) {
|
|
$("#region option").remove();
|
|
if (model.regionList.length > 0) {
|
|
var regions=model.regionList;
|
|
$.each(regions, function(i, region){
|
|
var orgRegion=model.regionMap[region];
|
|
if(selectRegion == region){
|
|
$("<option value='" + region + "' selected>" + orgRegion + "</option>").appendTo($("#region"));
|
|
}else{
|
|
$("<option value='" + region + "' >" + orgRegion + "</option>").appendTo($("#region"));
|
|
}
|
|
|
|
});
|
|
}
|
|
},
|
|
error : function() {
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
</#compress> |