Commit b5e69f11 by felix

每日一更

parent 97a51cd8
...@@ -318,10 +318,12 @@ class newHouseList extends UGEN_List_Table ...@@ -318,10 +318,12 @@ class newHouseList extends UGEN_List_Table
if (isset($_REQUEST["organization"]) && $_REQUEST["organization"] != -1) { if (isset($_REQUEST["organization"]) && $_REQUEST["organization"] != -1) {
$params[] = $_REQUEST["organization"]; $params[] = $_REQUEST["organization"];
$sql = $sql . " and subsidiaryId=%d "; $sql = $sql . " and subsidiaryId=%d ";
} else if (trim($_REQUEST["searchText"]) != NULL) { }
if (trim($_REQUEST["searchText"]) != NULL) {
$params[] = '%' . $_REQUEST['searchText'] . '%'; $params[] = '%' . $_REQUEST['searchText'] . '%';
$sql = $sql . " and name like %s"; $sql = $sql . " and name like %s";
} else if (trim($_REQUEST["stuff"]) != NULL) { }
if (trim($_REQUEST["stuff"]) != NULL) {
$params[] = '%' . $_REQUEST['stuff'] . '%'; $params[] = '%' . $_REQUEST['stuff'] . '%';
$sql = $sql . " and consul_name like %s"; $sql = $sql . " and consul_name like %s";
} }
......
...@@ -349,10 +349,12 @@ class rentHouseList extends UGEN_List_Table ...@@ -349,10 +349,12 @@ class rentHouseList extends UGEN_List_Table
if (isset($_REQUEST["organization"]) && $_REQUEST["organization"] != -1 && $_REQUEST["organization"] != 0) { if (isset($_REQUEST["organization"]) && $_REQUEST["organization"] != -1 && $_REQUEST["organization"] != 0) {
$params[] = $_REQUEST["organization"]; $params[] = $_REQUEST["organization"];
$sql = $sql . " and subsidiaryId=%d "; $sql = $sql . " and subsidiaryId=%d ";
} else if (trim($_REQUEST["searchText"] != NULL)) { }
if (trim($_REQUEST["searchText"] != NULL)) {
$params[] = '%' . $_REQUEST['searchText'] . '%'; $params[] = '%' . $_REQUEST['searchText'] . '%';
$sql = $sql . " and name like %s"; $sql = $sql . " and name like %s";
} else if (trim($_REQUEST["stuff"] != NULL)) { }
if (trim($_REQUEST["stuff"] != NULL)) {
$params[] = '%' . $_REQUEST['stuff'] . '%'; $params[] = '%' . $_REQUEST['stuff'] . '%';
$sql = $sql . " and consul_name like %s"; $sql = $sql . " and consul_name like %s";
} }
......
...@@ -375,10 +375,12 @@ class secHandHouseList extends UGEN_List_Table ...@@ -375,10 +375,12 @@ class secHandHouseList extends UGEN_List_Table
if (isset($_REQUEST["organization"]) && $_REQUEST["organization"] != -1 && $_REQUEST["organization"] != 0) { if (isset($_REQUEST["organization"]) && $_REQUEST["organization"] != -1 && $_REQUEST["organization"] != 0) {
$params[] = $_REQUEST["organization"]; $params[] = $_REQUEST["organization"];
$sql = $sql . " and subsidiaryId=%d "; $sql = $sql . " and subsidiaryId=%d ";
} else if (trim($_REQUEST["searchText"] != NULL)) { }
if (trim($_REQUEST["searchText"] != NULL)) {
$params[] = '%' . $_REQUEST['searchText'] . '%'; $params[] = '%' . $_REQUEST['searchText'] . '%';
$sql = $sql . " and name like %s"; $sql = $sql . " and name like %s";
} else if (trim($_REQUEST["stuff"] != NULL)) { }
if (trim($_REQUEST["stuff"] != NULL)) {
$params[] = '%' . $_REQUEST['stuff'] . '%'; $params[] = '%' . $_REQUEST['stuff'] . '%';
$sql = $sql . " and consul_name like %s"; $sql = $sql . " and consul_name like %s";
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</select> </select>
</div><br/><br/> </div><br/><br/>
<div class="form-group"> <div class="form-group">
<input type="submit" value="同步" class="btn btn-success"> <input type="submit" value="同步" class="btn btn-info">
</div> </div>
</form> </form>
</body> </body>
\ No newline at end of file
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
init_modal_myConsultantList(addConsultant); init_modal_myConsultantList(addConsultant);
$("#consultantImg").on("click",".consultantCancel",function(){ $("#consultantImg").on("click",".consultantCancel",function(){
$(this).parents("p").remove(); $(this).parent().parent().remove();
if( $("#consultantImg > p").length == 0){ if( $("#consultantImg > div").length == 0){
$("#subsidiaryId").remove(); $("#subsidiaryId").remove();
} }
}); });
...@@ -46,29 +46,28 @@ ...@@ -46,29 +46,28 @@
}); });
//点击模态框中的置业顾问后显示 //点击模态框中的置业顾问后显示
function addConsultant(data){ function addConsultant(data){
var row = $("<div>").addClass("row").css("margin-bottom","10px"); var div = $("<div>").css({"display":"inline-block","margin-right":"10px"});
var left = $("<div>").addClass("col-md-3"); var p1 = $("<p>");
var img = $("<img>").attr({"src":data.imageUrl,"height":100,"width":100,"style":"margin-right:50px"}); var img = $("<img>").attr({"src":data.imageUrl,"height":100,"width":100});
left.append(img); p1.append(img);
var mid = $("<div>").addClass("col-md-3"); div.append(p1);
var label = $("<label>").append(data.name); var p2 = $("<p>").css({"margin-top":"3px"});
mid.append(label); var label = $("<label>").html(data.name);
var right = $("<div>").addClass("col-md-3"); p2.append(label);
if ('{{role}}' == 'jl') { if ('{{role}}' == 'jl') {
var cancel = $("<input>").attr({ var cancel = $("<input>").attr({
"type": "button", "type": "button",
"value": "删除" "value": "删除"
}).addClass("btn btn-info consultantCancel"); }).addClass("btn btn-info btn-xs consultantCancel").css({"float":"right"});
right.append(cancel); p2.append(cancel);
} }
div.append(p2);
var recommendConsultant = $("<input>").attr({"type":"hidden","name":"data[recConsultant][]","value":data.id}); var recommendConsultant = $("<input>").attr({"type":"hidden","name":"data[recConsultant][]","value":data.id});
row.append(left).append(mid).append(right); div.append(recommendConsultant);
var p = $("<p>").append(row).append(recommendConsultant);
var subsidiaryId = $("<input>").attr({"type":"hidden","value":data.subsidiaryId,"id":"subsidiaryId"}); var subsidiaryId = $("<input>").attr({"type":"hidden","value":data.subsidiaryId,"id":"subsidiaryId"});
if($("#consultantImg > p").length == 0){ $("#consultantImg").append(div);
$("#consultantImg").append(p).append(subsidiaryId); if($("#consultantImg > div").length == 0){
}else{ $("#consultantImg").append(subsidiaryId);
$("#consultantImg").append(p);
} }
{% if (house_type == 1 or house_type == 2 or page == 'customer' or page == 'view_house') %} {% if (house_type == 1 or house_type == 2 or page == 'customer' or page == 'view_house') %}
controlCommand("consultantImg",1,1); controlCommand("consultantImg",1,1);
......
<table class="form-table" style="margin-bottom: 15px;"> <div class="row form-group">
<tbody> <div class="col-xs-6">
<tr> <div class="input-group">
<td style="width: 75px;padding: 10px 0;"> <span class="input-group-addon color-red">特色</span>
<label class="control-label color-red">特色筛选:</label> <input type="button" class="btn btn-success" id="addFeatureBtn" value="添加特色" />
</td> </div>
<td> <div id="feature" class="input-group" style="margin-left: 68px;margin-top: 10px;">
<div id="feature"></div> </div>
</td> </div>
</tr> </div>
<tr>
<td style="display: inline;padding: 10px 0;margin-left: 75px;">
<button type="button" class="btn btn-success" id="addFeatureBtn">
添加特色
</button>
</td>
</tr>
</tbody>
</table>
<script> <script>
$(document).ready(function () { $(document).ready(function () {
...@@ -42,12 +33,21 @@ ...@@ -42,12 +33,21 @@
} }
}); });
}); });
$("#feature").on("click",".featureCancel",function(){
var removeItem = $(this).parent().parent().find("input").val();
$.grep(featureArray, function(value) {
return value != removeItem;
});
$(this).parent().parent().parent().remove();
});
}); });
function addFeature(id, value) { function addFeature(id, value) {
var houseFeature = $("<input>").attr({"type": "hidden", "name": "data[houseFeature][]", "value": id}); var houseTag = $("<input>").attr({"type": "hidden", "name": "data[houseTag][]", "value": id});
var cancel = $("<span>").attr("aria-hidden", "true").addClass("glyphicon glyphicon-remove featureCancel "); var cancel = $("<span>").attr("aria-hidden", "true").addClass("glyphicon glyphicon-remove featureCancel ").css({"top":"3px","margin-left":"10px"});
var span = $("<span>").attr("style", "margin-right:5px").append(value); var span = $("<span>").attr("style", "margin-right:5px").addClass("label label-info").append(value);
var divCol = $("<div>").append(houseFeature).append(span).append(cancel).addClass("col-md-3").attr("style", "margin-bottom:10px"); var h = $("<h4>");
h.append(span.append(cancel));
var divCol = $("<div>").append(houseTag).append(h).addClass("col-md-2").attr("style", "margin-bottom:10px");
$("#feature").append(divCol); $("#feature").append(divCol);
} }
</script> </script>
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<h4 class="modal-title"></h4> <h4 class="modal-title"></h4>
</div> </div>
<div id="featureTable"> <div id="featureTable">
<table class="table" id="tagList"> <table class="table" id="tagList" style="table-layout:fixed;">
</table> </table>
</div> </div>
</div> </div>
...@@ -42,19 +42,25 @@ ...@@ -42,19 +42,25 @@
url: "/tospur/wp-admin/admin-ajax.php", url: "/tospur/wp-admin/admin-ajax.php",
data: "action=searchTagOrFeature&type=" + search_type, data: "action=searchTagOrFeature&type=" + search_type,
success: function (data) { success: function (data) {
var tr; var tr,lastIndex;
$.each(data, function (index, item) { $.each(data, function (index, item) {
if (index % 4 == 0) { if (index % 4 == 0) {
tr = $('<tr>'); tr = $('<tr>');
} }
tr.append('<td><span id="' + item.id + '">' + item.value + '</span></td>'); tr.append('<td><span id="' + item.id + '">' + item.value + '</span></td>');
tagList.append(tr); tagList.append(tr);
lastIndex = index;
}); });
for(var i = 0;i<=4-tr.find("td").length;i++){
tr.append('<td></td>');
}
} }
}); });
}); });
tagList.on("click", "tr > td > span", function () { tagList.on("click", "tr > td > span", function () {
if($(this).attr('id') != null){
search_callback($(this).attr('id'), $(this).text()); search_callback($(this).attr('id'), $(this).text());
}
}); });
existsCancel(); existsCancel();
}); });
......
<div class="wrap"> <div class="wrap">
<h2>收佣进度表</h2> <h2>收佣进度表</h2>
<form method="get"> <form method="get" class="form-horizontal">
<input type="hidden" name="page" value="commissionList"> <input type="hidden" name="page" value="commissionList">
{% import "selectOrganization.html" as macro %} {% import "selectOrganization.html" as macro %}
{{ macro.selectOrganization("commission") }} {{ macro.selectOrganization("commission") }}
<div id="search_form"> <div class="row" id="search_form">
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">年份</span>
<label for="year" class="hidden"></label> <label for="year" class="hidden"></label>
<select name="year" id="year"> <select name="year" id="year" class="form-control widthAuto">
<option value="2015">2015</option> <option value="2015">2015</option>
<option value="2016">2016</option> <option value="2016">2016</option>
</select> </select>
<label for="month" class="hidden"></label> </div>
<select name="month" id="month"> </div>
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">月份</span>
<select name="month" id="month" class="form-control widthAuto">
<option value="-1">请选择月份</option> <option value="-1">请选择月份</option>
<option value="1">一月</option> <option value="1">一月</option>
<option value="2">二月</option> <option value="2">二月</option>
...@@ -26,9 +33,17 @@ ...@@ -26,9 +33,17 @@
<option value="11">十一月</option> <option value="11">十一月</option>
<option value="12">十二月</option> <option value="12">十二月</option>
</select> </select>
<label for="month" class="hidden"></label>
</div>
</div>
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">置业顾问</span>
<label for="search_consultant_name" class="hidden"></label> <label for="search_consultant_name" class="hidden"></label>
<input type="text" placeholder="请输入置业顾问" name="search_consultant_name" id="search_consultant_name" <input type="text" class="form-control" name="search_consultant_name" id="search_consultant_name"
value="{{ req.search_consultant_name }}"> value="{{ req.search_consultant_name }}">
</div>
</div>
<input type="submit" id="submit" class="btn btn-success" value="搜索"> <input type="submit" id="submit" class="btn btn-success" value="搜索">
</div> </div>
</form> </form>
......
...@@ -42,13 +42,20 @@ p[class^=col-]{ ...@@ -42,13 +42,20 @@ p[class^=col-]{
/*#the-list > tr >.column-id{*/ /*#the-list > tr >.column-id{*/
/*border-left: 0px;*/ /*border-left: 0px;*/
/*}*/ /*}*/
.wp-list-table > thead > tr > th > a > span,
.wp-list-table > tfoot > tr > th > a > span{
font-weight:bold;
}
.striped>tbody> {
background-color: #fff;
}
/*#cb,.wp-list-table > tfoot > tr > .column-cb{*/ /*#cb,.wp-list-table > tfoot > tr > .column-cb{*/
/*border-right: 0px;*/ /*border-right: 0px;*/
/*}*/ /*}*/
.color-red{ .color-red{
color: red; color: red;
font-weight: bold;
} }
.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover{ .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover{
...@@ -79,3 +86,23 @@ p[class^=col-]{ ...@@ -79,3 +86,23 @@ p[class^=col-]{
th.sortable a span, th.sorted a span{ th.sortable a span, th.sorted a span{
float: none; float: none;
} }
#wpcontent,body{
background-color: #fff;
}
select.form-control{
height:34px;
}
span.input-group-addon{
width:83px;
}
div.input-group{
width:100%;
}
.widthAuto.widthAuto,
span.widthAuto{
width:auto;
}
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<body> <body>
<h2 class="title">{{ title }}</h2> <h2 class="title">{{ title }}</h2>
<div class="alert alert-danger" role="alert" id="error" style="display:none;"></div> <div class="alert alert-danger" role="alert" id="error" style="display:none;"></div>
<form action="" method="POST" enctype="multipart/form-data" id="customerForm" class="form-inline"> <form action="" method="POST" enctype="multipart/form-data" id="customerForm" class="form-horizontal">
<div class="row"> <div class="row">
<div class="col-md-11"> <div class="col-md-11">
<ul class="nav nav-tabs" role="tablist"> <ul class="nav nav-tabs" role="tablist">
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<a href="#customer" aria-controls="customer" role="tab" data-toggle="tab">客户信息</a> <a href="#customer" aria-controls="customer" role="tab" data-toggle="tab">客户信息</a>
</li> </li>
<li role="presentation"> <li role="presentation">
<a href="#customer_tracking" aria-controls="customer_tracking" role="tab" data-toggle="tab">房源跟进</a> <a href="#customer_tracking" aria-controls="customer_tracking" role="tab" data-toggle="tab">客户跟进</a>
</li> </li>
{% if role != 'zygw' %} {% if role != 'zygw' %}
<li role="presentation"> <li role="presentation">
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
errorLabelContainer: error, errorLabelContainer: error,
submitHandler: function (form) { submitHandler: function (form) {
var consultantImg = $('#consultantImg'); var consultantImg = $('#consultantImg');
if (consultantImg.length == 1 && consultantImg.find('p').length == 0) { if (consultantImg.length == 1 && consultantImg.find('div').length == 0) {
error.html('<label class="my-error-class">请选择置业顾问</label>'); error.html('<label class="my-error-class">请选择置业顾问</label>');
error.show(); error.show();
} else { } else {
......
<br> <br>
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-10" id="demand_type"> <div class="col-md-4" id="demand_type">
<label for="character" class="color-red">需求类型:</label> <div class="input-group">
<span class="input-group-addon color-red">需求类型</span>
<input type="hidden" name="demand_type_require"> <input type="hidden" name="demand_type_require">
<span class="input-group-addon widthAuto">
<input type="checkbox" name="new_house" id="new_house" value="{{ result.new_house }}" style="margin: 0;"{% if <input type="checkbox" name="new_house" id="new_house" value="{{ result.new_house }}" style="margin: 0;"{% if
result.new_house == 1 %} checked {% endif %}> result.new_house == 1 %} checked {% endif %}>
<label for="new_house">新房</label> <span>新房</span>
</span>
<span class="input-group-addon widthAuto">
<input type="checkbox" name="secondHand_house" id="secondHand_house" value="{{ result.secondHand_house }}" <input type="checkbox" name="secondHand_house" id="secondHand_house" value="{{ result.secondHand_house }}"
style="margin: 0;"{% if result.secondHand_house == 1 %} checked {% endif %}> style="margin: 0;"{% if result.secondHand_house == 1 %} checked {% endif %}>
<label for="secondHand_house">二手房</label> <span>二手房</span>
</span>
<span class="input-group-addon widthAuto">
<input type="checkbox" name="rent_house" id="rent_house" value="{{ result.rent_house }}" style="margin: 0;"{% if <input type="checkbox" name="rent_house" id="rent_house" value="{{ result.rent_house }}" style="margin: 0;"{% if
result.rent_house == 1 %} checked {% endif %}> result.rent_house == 1 %} checked {% endif %}>
<label for="rent_house">租房</label> <span>租房</span>
</span>
</div> </div>
</div> </div>
<br> <div class="col-md-4">
<div class="row addBorder"> <div class="input-group">
<div class="col-md-6"> <span class="input-group-addon">性质</span>
<label for="character">性质:</label>
<select name="character" id="character" class="form-control"> <select name="character" id="character" class="form-control">
<option value="公客">公客</option> <option value="公客">公客</option>
<option value="私客">私客</option> <option value="私客">私客</option>
</select> </select>
</div> </div>
<div class="col-md-6"> </div>
<label for="origin">来源:</label> <div class="col-md-4">
<div class="input-group">
<span class="input-group-addon">来源</span>
<select name="origin" id="origin" class="form-control"> <select name="origin" id="origin" class="form-control">
<option value="来电">来电</option> <option value="来电">来电</option>
<option value="来访">来访</option> <option value="来访">来访</option>
...@@ -43,12 +51,14 @@ ...@@ -43,12 +51,14 @@
<option value="其他">其他</option> <option value="其他">其他</option>
</select> </select>
</div> </div>
</div>
</div> </div>
<br> <br>
<div id="new_secondHand_house_input"> <div id="new_secondHand_house_input">
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-6"> <div class="col-md-4">
<label for="payment_mode">付款:</label> <div class="input-group">
<span class="input-group-addon">付款</span>
<select name="payment_mode" id="payment_mode" class="form-control" disabled="disabled"> <select name="payment_mode" id="payment_mode" class="form-control" disabled="disabled">
<option value="其它">其它</option> <option value="其它">其它</option>
<option value="商业贷款">商业贷款</option> <option value="商业贷款">商业贷款</option>
...@@ -57,59 +67,64 @@ ...@@ -57,59 +67,64 @@
<option value="全款">全款</option> <option value="全款">全款</option>
</select> </select>
</div> </div>
<br>
</div> </div>
<br> <div class="col-md-4">
<div class="input-group">
<div class="row addBorder"> <span class="input-group-addon">总价</span>
<div class="col-md-6">
<label>总价:</label>
<label for="min_totalPrice" class="hidden"></label> <label for="min_totalPrice" class="hidden"></label>
<input type="text" name="min_totalPrice" id="min_totalPrice" value="{{ result.min_totalPrice }}" <input type="text" name="min_totalPrice" id="min_totalPrice" value="{{ result.min_totalPrice }}"
class="form-control" disabled="disabled" style="width:35%"> class="form-control" disabled="disabled">
<span class="input-group-addon"></span>
<label for="max_totalPrice" class="hidden"></label> <label for="max_totalPrice" class="hidden"></label>
<input type="text" name="max_totalPrice" id="max_totalPrice" value="{{ result.max_totalPrice }}" <input type="text" name="max_totalPrice" id="max_totalPrice" value="{{ result.max_totalPrice }}"
class="form-control" disabled="disabled" style="width:35%"> class="form-control" disabled="disabled">
<span class="input-group-addon"></span>
</div> </div>
<div class="col-md-6"> </div>
<label>单价:</label> <div class="col-md-4">
<div class="input-group">
<span class="input-group-addon">单价</span>
<label for="min_unitPrice" class="hidden"></label> <label for="min_unitPrice" class="hidden"></label>
<input type="text" name="min_unitPrice" id="min_unitPrice" value="{{ result.min_unitPrice }}" <input type="text" name="min_unitPrice" id="min_unitPrice" value="{{ result.min_unitPrice }}"
class="form-control" disabled="disabled" style="width:35%"> class="form-control" disabled="disabled">
<span class="input-group-addon">~</span>
<label for="max_unitPrice" class="hidden"></label> <label for="max_unitPrice" class="hidden"></label>
<input type="text" name="max_unitPrice" id="max_unitPrice" value="{{ result.max_unitPrice }}" <input type="text" name="max_unitPrice" id="max_unitPrice" value="{{ result.max_unitPrice }}"
class="form-control" disabled="disabled" style="width:35%"> class="form-control" disabled="disabled">
元/m² <span class="input-group-addon">元/m²</span>
</div>
</div> </div>
</div> </div>
</div> </div>
<br> <br>
<div id="rent_house_input"> <div id="rent_house_input">
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-6"> <div class="col-md-4">
<label>月租:</label> <div class="input-group">
<span class="input-group-addon">月租</span>
<label for="min_rent" class="hidden"></label> <label for="min_rent" class="hidden"></label>
<input type="text" name="min_rent" id="min_rent" value="{{ result.min_rent }}" class="form-control" <input type="text" name="min_rent" id="min_rent" value="{{ result.min_rent }}" class="form-control"
disabled="disabled" style="width:35%"> disabled="disabled">
<span class="input-group-addon">~</span>
<label for="max_rent" class="hidden"></label> <label for="max_rent" class="hidden"></label>
<input type="text" name="max_rent" id="max_rent" value="{{ result.max_rent }}" class="form-control" <input type="text" name="max_rent" id="max_rent" value="{{ result.max_rent }}" class="form-control"
disabled="disabled" style="width:35%"> disabled="disabled">
元/月 <span class="input-group-addon">元/月</span>
</div>
</div> </div>
<div class="col-md-3"> <div class="col-md-4">
<label for="rent">整租:</label> <div class="input-group">
<span class="input-group-addon">整租</span>
<select name="rent" id="rent" class="form-control" disabled="disabled"> <select name="rent" id="rent" class="form-control" disabled="disabled">
<option value="不限">不限</option> <option value="不限">不限</option>
<option value="整租">整租</option> <option value="整租">整租</option>
<option value="合租">合租</option> <option value="合租">合租</option>
</select> </select>
</div> </div>
<div class="col-md-3"> </div>
<label for="tenancy">租期:</label> <div class="col-md-4">
<div class="input-group">
<span class="input-group-addon">租期</span>
<select name="tenancy" id="tenancy" class="form-control" disabled="disabled"> <select name="tenancy" id="tenancy" class="form-control" disabled="disabled">
<option value="不限">不限</option> <option value="不限">不限</option>
<option value="一个月">一个月</option> <option value="一个月">一个月</option>
...@@ -120,6 +135,7 @@ ...@@ -120,6 +135,7 @@
</select> </select>
</div> </div>
</div> </div>
</div>
</div> </div>
<script> <script>
(function ($) { (function ($) {
......
<br> <br>
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-12"> <div class="col-md-6">
<label class="color-red">城市:</label> <div class="input-group">
<label for="baseCity"></label> <span class="input-group-addon color-red">城市</span>
<select id="baseCity" name="baseCity" class="form-control"> <span>
<option value="-1">城市</option> <select id="baseCity" name="baseCity" class="form-control" style="width: 75px;">
<option value="-1"> 城市</option>
{% for item in city %} {% for item in city %}
<option {{ item.id == result.city_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option> <option {% if result.city_id %}{{ item.id == result.city_id ?"selected":"" }}{% else %}{{ item.id == 2 ?"selected" }}{% endif %} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
</select> </select>
<label for="baseAreaId"></label> </span>
<select id="baseAreaId" name="baseAreaId" class="form-control"> <span>
<option value="-1">区域</option> <select id="baseAreaId" name="baseAreaId" class="form-control" style="width: 100px;">
<option value = "-1">区域</option>
{% if district %} {% if district %}
{% for item in district %} {% for item in district %}
<option {{ item.id == result.district_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option> <option {{ item.id == result.district_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</select> </select>
<label for="basePlateId"></label> </span>
<select id="basePlateId" name="basePlateId" class="form-control"> <span>
<option value="-1">板块</option> <select id="basePlateId" name="basePlateId" class="form-control" style="width: 100px;">
<option value = "-1">板块</option>
{% if district %} {% if district %}
{% for item in plate %} {% for item in plate %}
<option {{ item.id == result.plate_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option> <option {{ item.id == result.plate_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</select> </select>
</span>
</div>
</div> </div>
</div> </div>
<br> <br>
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-6"> <div class="col-md-6">
<label for="community_name">小区名称:</label> <div class="input-group">
<span class="input-group-addon">小区名称</span>
<input type="text" name="community_name" id="community_name" value="{{ result.community_name }}" class="form-control"> <input type="text" name="community_name" id="community_name" value="{{ result.community_name }}" class="form-control">
</div> </div>
</div>
<div class="col-md-6"> <div class="col-md-6">
<label for="baseRoom">建筑类型:</label> <div class="input-group">
<span class="input-group-addon">建筑类型</span>
<select id="baseRoom" name="baseRoom" class="form-control"> <select id="baseRoom" name="baseRoom" class="form-control">
{% for item in room %} {% for item in room %}
<option {{ item.id == result.room_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option> <option {{ item.id == result.room_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
</div>
</div> </div>
<br> <br>
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-4"> <div class="col-md-4">
<label for="check_in_time">入住时间:</label> <div class="input-group">
<span class="input-group-addon">入住时间</span>
<input type="date" name="check_in_time" id="check_in_time" value="{{ result.check_in_time }}" class="form-control"> <input type="date" name="check_in_time" id="check_in_time" value="{{ result.check_in_time }}" class="form-control">
</div> </div>
</div> </div>
<br> <div class="col-md-4">
<div class="row addBorder"> <div class="input-group">
<div class="col-md-10"> <span class="input-group-addon">面积</span>
<label>面积:</label>
<label for="min_coveredArea" class="hidden"></label> <label for="min_coveredArea" class="hidden"></label>
<input type="text" name="min_coveredArea" id="min_coveredArea" value="{{ result.min_coveredArea }}" class="form-control"> <input type="text" name="min_coveredArea" id="min_coveredArea" value="{{ result.min_coveredArea }}" class="form-control">
<span class="input-group-addon">~</span>
<label for="max_coveredArea" class="hidden"></label> <label for="max_coveredArea" class="hidden"></label>
<input type="text" name="max_coveredArea" id="max_coveredArea" value="{{ result.max_coveredArea }}" class="form-control"> <input type="text" name="max_coveredArea" id="max_coveredArea" value="{{ result.max_coveredArea }}" class="form-control">
<span class="input-group-addon"></span>
</div> </div>
</div> </div>
<br> <div class="col-md-4">
<div class="row addBorder"> <div class="input-group">
<div class="col-md-10"> <span class="input-group-addon">楼层</span>
<label>楼层:</label>
<label for="min_floor" class="hidden"></label> <label for="min_floor" class="hidden"></label>
<input type="text" name="min_floor" id="min_floor" value="{{ result.min_floor }}" class="form-control"> <input type="text" name="min_floor" id="min_floor" value="{{ result.min_floor }}" class="form-control">
<span class="input-group-addon">~</span>
<label for="max_floor" class="hidden"></label> <label for="max_floor" class="hidden"></label>
<input type="text" name="max_floor" id="max_floor" value="{{ result.max_floor }}" class="form-control"> <input type="text" name="max_floor" id="max_floor" value="{{ result.max_floor }}" class="form-control">
<span class="input-group-addon"></span>
</div>
</div> </div>
</div> </div>
<br> <br>
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-6"> <div class="col-md-4">
<label for="propertyRight">产权:</label> <div class="input-group">
<span class="input-group-addon">产权</span>
<select name="propertyRight" id="propertyRight" class="form-control"> <select name="propertyRight" id="propertyRight" class="form-control">
<option value="不限" selected="selected">不限</option> <option value="不限" selected="selected">不限</option>
<option value="个人产权">个人产权</option> <option value="个人产权">个人产权</option>
...@@ -94,8 +105,10 @@ ...@@ -94,8 +105,10 @@
<option value="其他">其他</option> <option value="其他">其他</option>
</select> </select>
</div> </div>
<div class="col-md-6"> </div>
<label for="decoration">装修:</label> <div class="col-md-4">
<div class="input-group">
<span class="input-group-addon">装修</span>
<select name="decoration" id="decoration" class="form-control"> <select name="decoration" id="decoration" class="form-control">
<option value="不限" selected="selected">不限</option> <option value="不限" selected="selected">不限</option>
<option value="毛坯">毛坯</option> <option value="毛坯">毛坯</option>
...@@ -105,11 +118,10 @@ ...@@ -105,11 +118,10 @@
<option value="豪华装修">豪华装修</option> <option value="豪华装修">豪华装修</option>
</select> </select>
</div> </div>
</div> </div>
<br> <div class="col-md-4">
<div class="row addBorder"> <div class="input-group">
<div class="col-md-6"> <span class="input-group-addon">年代</span>
<label for="age">年代:</label>
<select name="age" id="age" class="form-control"> <select name="age" id="age" class="form-control">
<option value="不限" selected="selected">不限</option> <option value="不限" selected="selected">不限</option>
{% for item in age %} {% for item in age %}
...@@ -117,8 +129,13 @@ ...@@ -117,8 +129,13 @@
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
<div class="col-md-6"> </div>
<label for="faceto">朝向:</label> </div>
<br>
<div class="row form-group">
<div class="col-md-4">
<div class="input-group">
<span class="input-group-addon">朝向</span>
<select name="faceto" id="faceto" class="form-control"> <select name="faceto" id="faceto" class="form-control">
<option value="不限" selected="selected">不限</option> <option value="不限" selected="selected">不限</option>
<option value="其他">其他</option> <option value="其他">其他</option>
...@@ -135,11 +152,10 @@ ...@@ -135,11 +152,10 @@
<option value="西北">西北</option> <option value="西北">西北</option>
</select> </select>
</div> </div>
</div> </div>
<br> <div class="col-md-8">
<div class="row addBorder"> <div class="input-group">
<div class="col-md-6"> <span class="input-group-addon">户型</span>
<label>户型:</label>
<select name="bedroom" id="bedroom" class="form-control"> <select name="bedroom" id="bedroom" class="form-control">
<option value="-1" selected="selected">不限</option> <option value="-1" selected="selected">不限</option>
<option value="0">0</option> <option value="0">0</option>
...@@ -152,7 +168,7 @@ ...@@ -152,7 +168,7 @@
<option value="7">7</option> <option value="7">7</option>
<option value="8">8</option> <option value="8">8</option>
</select> </select>
<label for="bedroom"></label> <span class="input-group-addon"></span>
<select name="hall" id="hall" class="form-control"> <select name="hall" id="hall" class="form-control">
<option value="-1" selected="selected">不限</option> <option value="-1" selected="selected">不限</option>
<option value="0">0</option> <option value="0">0</option>
...@@ -161,7 +177,7 @@ ...@@ -161,7 +177,7 @@
<option value="3">3</option> <option value="3">3</option>
<option value="4">4</option> <option value="4">4</option>
</select> </select>
<label for="hall"></label> <span class="input-group-addon"></span>
<select name="bathroom" id="bathroom" class="form-control"> <select name="bathroom" id="bathroom" class="form-control">
<option value="-1" selected="selected">不限</option> <option value="-1" selected="selected">不限</option>
<option value="0">0</option> <option value="0">0</option>
...@@ -170,13 +186,16 @@ ...@@ -170,13 +186,16 @@
<option value="3">3</option> <option value="3">3</option>
<option value="4">4</option> <option value="4">4</option>
</select> </select>
<label for="bathroom"></label> <span class="input-group-addon"></span>
</div>
</div> </div>
</div> </div>
<br> <br>
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-8"> <div class="col-md-6">
<label for="origin_remark">客源备注:</label><br> <div class="input-group">
<span class="input-group-addon">客源备注</span>
<textarea name="origin_remark" id="origin_remark" rows="5" cols="50" class="form-control">{{ result.origin_remark }}</textarea> <textarea name="origin_remark" id="origin_remark" rows="5" cols="50" class="form-control">{{ result.origin_remark }}</textarea>
</div> </div>
</div>
</div> </div>
\ No newline at end of file
<br> <br>
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-6"> <div class="col-md-4">
<label for="name" class="color-red">姓名:</label> <div class="input-group">
<span class="input-group-addon color-red">姓名</span>
<input type="text" name="name" id="name" value="{{ result.name }}" class="form-control"> <input type="text" name="name" id="name" value="{{ result.name }}" class="form-control">
</div> </div>
<div class="col-md-6"> </div>
<label for="customer_type">等级:</label> <div class="col-md-4">
<div class="input-group">
<span class="input-group-addon color-red">电话</span>
<input type="text" name="phone" id="phone" value="{{ result.phone }}" class="form-control">
</div>
</div>
<div class="col-md-4">
<div class="input-group">
<span class="input-group-addon">等级</span>
<select name="customer_type" id="customer_type" class="form-control"> <select name="customer_type" id="customer_type" class="form-control">
{% for item in customer_type %} {% for item in customer_type %}
<option{% if(item.id == result.customer_type) %} selected="selected"{% endif %} value="{{ item.id }}">{{ item.value }}</option> <option{% if(item.id == result.customer_type) %} selected="selected"{% endif %} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
</div>
<br>
<div class="row addBorder">
<div class="col-md-8">
<label for="phone" class="color-red">电话:</label>
<input type="text" name="phone" id="phone" value="{{ result.phone }}" class="form-control">
</div> </div>
</div> </div>
<br> <br>
<div class="row addBorder"> <div class="row form-group">
<div class="col-md-8"> <div class="col-md-6">
<label for="customer_remark">客户备注:</label><br> <div class="input-group">
<span class="input-group-addon">客户备注</span>
<textarea name="customer_remark" id="customer_remark" rows="5" cols="50" class="form-control">{{ result.customer_remark }}</textarea> <textarea name="customer_remark" id="customer_remark" rows="5" cols="50" class="form-control">{{ result.customer_remark }}</textarea>
</div> </div>
</div>
</div> </div>
<div class="wrap"> <div class="wrap">
<h2>客户列表</h2> <h2>客户列表</h2>
<form method="get" id="search_form"> <form method="get" id="search_form" class="form-horizontal">
<input type="hidden" name="page" value="customerList"> <input type="hidden" name="page" value="customerList">
<div>
<input type="hidden" name="hasSearch" value="1"/> <input type="hidden" name="hasSearch" value="1"/>
{% if role != 'zygw' %} {% if role != 'zygw' %}
{% import "selectOrganization.html" as macro %} {% import "selectOrganization.html" as macro %}
{{ macro.selectOrganization("customer") }} {{ macro.selectOrganization("customer") }}
{% endif %} {% endif %}
<div class="row">
<div class="col-md-12">
<div class="input-group">
<span class="input-group-addon">筛选</span>
<label for="status" class="hidden"></label> <label for="status" class="hidden"></label>
<select name="status" id="status"> <select name="status" id="status">
<option value="-1">状态</option> <option value="-1">状态</option>
...@@ -99,20 +102,45 @@ ...@@ -99,20 +102,45 @@
{% endif %} {% endif %}
</select> </select>
</div> </div>
<div style="margin-top: 10px;">
<input type="text" placeholder="请输入姓名" name="search_name" value="{{ req.search_name }}">
<input type="text" placeholder="请输入置业顾问" name="search_consultant_name" value="{{ req.search_consultant_name }}">
<input type="text" placeholder="请输入电话" name="search_phone" value="{{ req.search_phone }}">
</div> </div>
<div style="margin-top: 10px;"> </div>
<label>日期:</label> <br />
<div class="row">
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">姓名</span>
<input type="text" class="form-control" name="search_name" value="{{ req.search_name }}">
</div>
</div>
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">置业顾问</span>
<input type="text" class="form-control" name="search_consultant_name" value="{{ req.search_consultant_name }}">
</div>
</div>
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">电话</span>
<input type="text" class="form-control" name="search_phone" value="{{ req.search_phone }}">
</div>
</div>
</div>
<br />
<div class="row">
<div class="col-md-6">
<div class="input-group">
<span class="input-group-addon">日期</span>
<label for="search_min_time" class="hidden"></label> <label for="search_min_time" class="hidden"></label>
<input type="date" name="search_min_time" id="search_min_time" value="{{ req.search_min_time }}"> <input type="date" class="form-control" name="search_min_time" id="search_min_time" value="{{ req.search_min_time }}">
<span class="input-group-addon"></span>
<label for="search_max_time" class="hidden"></label> <label for="search_max_time" class="hidden"></label>
<input type="date" name="search_max_time" id="search_max_time" value="{{ req.search_max_time }}"> <input type="date" class="form-control" name="search_max_time" id="search_max_time" value="{{ req.search_max_time }}">
</div>
</div>
<div class="col-md-2">
<input type="submit" id="submit" class="btn btn-success" value="搜索"> <input type="submit" id="submit" class="btn btn-success" value="搜索">
</div> </div>
</div>
</form> </form>
<form method="post"> <form method="post">
{{ function("addCustomerTable") }} {{ function("addCustomerTable") }}
......
...@@ -3,29 +3,43 @@ ...@@ -3,29 +3,43 @@
<form method="get" id="search_form"> <form method="get" id="search_form">
<input type="hidden" name="page" value="customerTrackingList"> <input type="hidden" name="page" value="customerTrackingList">
<div>
{% if role != 'zygw' %} {% if role != 'zygw' %}
{% import "selectOrganization.html" as macro %} {% import "selectOrganization.html" as macro %}
{{ macro.selectOrganization("customerTracking") }} {{ macro.selectOrganization("customerTracking") }}
{% endif %} {% endif %}
<div class="row">
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">跟进类型</span>
<label for="status_type" class="hidden"></label> <label for="status_type" class="hidden"></label>
<select name="status_type" id="status_type"> <select name="status_type" id="status_type" class="form-control widthAuto">
<option value="-1">跟进类型</option> <option value="-1">请选择</option>
{% for item in status %} {% for item in status %}
<option <option
{{ item.id == (req.status_type) ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option> {{ item.id == (req.status_type) ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div>
</div>
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">置业顾问</span>
<label for="status_type" class="hidden"></label>
<label for="search_consultant_name" class="hidden"></label> <label for="search_consultant_name" class="hidden"></label>
<input type="text" placeholder="请输入置业顾问" name="search_consultant_name" id="search_consultant_name" <input class="form-control" type="text" name="search_consultant_name" id="search_consultant_name"
value="{{ req.search_consultant_name }}"> value="{{ req.search_consultant_name }}">
<label>日期:</label> </div>
</div>
<div class="col-md-4">
<div class="input-group">
<span class="input-group-addon">日期</span>
<label for="search_min_time" class="hidden"></label> <label for="search_min_time" class="hidden"></label>
<input type="date" name="search_min_time" id="search_min_time" value="{{ req.search_min_time }}"> <input class="form-control" type="date" name="search_min_time" id="search_min_time" value="{{ req.search_min_time }}">
<span class="input-group-addon">~</span>
<label for="search_max_time" class="hidden"></label> <label for="search_max_time" class="hidden"></label>
<input type="date" name="search_max_time" id="search_max_time" value="{{ req.search_max_time }}"> <input class="form-control" type="date" name="search_max_time" id="search_max_time" value="{{ req.search_max_time }}">
</div>
</div>
<input type="submit" id="submit" class="btn btn-success" value="搜索"> <input type="submit" id="submit" class="btn btn-success" value="搜索">
</div> </div>
</form> </form>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
} }
function existsCancel(){ function existsCancel(){
$("#preview,#houseImg,#feature,#mark").on("click",".existsCancel,.featureCancel",function(){ $("#preview,#houseImg").on("click",".existsCancel,.featureCancel",function(){
$(this).parent().remove(); $(this).parent().remove();
}); });
} }
...@@ -93,14 +93,14 @@ ...@@ -93,14 +93,14 @@
//控制推荐房源与置业顾问的个数 //控制推荐房源与置业顾问的个数
function controlCommand(id,number,type){ function controlCommand(id,number,type){
var num = $("#"+id+" > p").length; var num = $("#"+id+" > div").length;
if(num>number){ if(num>number){
if(type==0){ if(type==0){
alert("最多只能推荐3个房源"); alert("最多只能推荐3个房源");
}else if(type==1){ }else if(type==1){
alert("您只能推荐一位置业顾问"); alert("您只能推荐一位置业顾问");
} }
$("#"+id).find("p:last-child").remove(); $("#"+id).find("div:last-child").remove();
} }
} }
......
{% block listBlock %} {% block listBlock %}
<div class="wrap"> <div class="wrap">
<h2> {% if house_type == 0%}新房列表{% elseif house_type == 1 %}二手房列表{% else %}租房房列表{% endif %}</h2> <h2> {% if house_type == 0%}新房列表{% elseif house_type == 1 %}二手房列表{% else %}租房房列表{% endif %}</h2>
<form id="scores-filter" method="GET" class="form-inline"> <form id="scores-filter" method="GET" class="form-horizontal">
<br /> <br />
{% if role != "zygw" %} {% if role != "zygw" %}
{% import "selectOrganization.html" as macro %} {% import "selectOrganization.html" as macro %}
{{ macro.selectOrganization("list") }} {{ macro.selectOrganization("list") }}
{% endif %} {% endif %}
<!-- For plugins, we also need to ensure that the form posts back to our current page --> <div class="row">
<div style="margin-bottom: 10px;"> <div class="col-md-12">
<div class="input-group">
<span class="input-group-addon">筛选</span>
<input type="hidden" name="page" value="{{page}}"/> <input type="hidden" name="page" value="{{page}}"/>
<select id="listCity" name="listCity" class="form-control"> <select id="listCity" name="listCity" class="form-control widthAuto">
<option value="-1"> 城市</option> <option value="-1"> 城市</option>
{% for item in city %} {% for item in city %}
<option {% if cityId %}{{ item.id == cityId ?"selected":"" }}{% else %}{{ item.id == 2 ?"selected" }}{% endif %} value="{{ item.id }}">{{ item.value }}</option> <option {% if cityId %}{{ item.id == cityId ?"selected":"" }}{% else %}{{ item.id == 2 ?"selected" }}{% endif %} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
</select> </select>
<select id="listDistrict" name="listDistrict" class="form-control"> <select id="listDistrict" name="listDistrict" class="form-control widthAuto">
<option value="-1">区域</option> <option value="-1">区域</option>
{% if district %} {% if district %}
{% for item in district %} {% for item in district %}
...@@ -24,7 +26,7 @@ ...@@ -24,7 +26,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="listPlate" name="listPlate" class="form-control"> <select id="listPlate" name="listPlate" class="form-control widthAuto">
<option value="-1">板块</option> <option value="-1">板块</option>
{% if plate %} {% if plate %}
{% for item in plate %} {% for item in plate %}
...@@ -33,7 +35,7 @@ ...@@ -33,7 +35,7 @@
{% endif %} {% endif %}
</select> </select>
{% if house_type == 2%} {% if house_type == 2%}
<select id="rentalPrice" name="rentalPrice" class="form-control"> <select id="rentalPrice" name="rentalPrice" class="form-control widthAuto">
<option value ="">租金</option> <option value ="">租金</option>
{% if dicRentalPrice %} {% if dicRentalPrice %}
{% for item in dicRentalPrice %} {% for item in dicRentalPrice %}
...@@ -42,7 +44,7 @@ ...@@ -42,7 +44,7 @@
{% endif %} {% endif %}
</select> </select>
{% elseif house_type == 0 %} {% elseif house_type == 0 %}
<select id="averagePrice" name="averagePrice" class="form-control"> <select id="averagePrice" name="averagePrice" class="form-control widthAuto">
<option value ="">单价</option> <option value ="">单价</option>
{% if dicUnitPriceRange %} {% if dicUnitPriceRange %}
{% for item in dicUnitPriceRange %} {% for item in dicUnitPriceRange %}
...@@ -51,7 +53,7 @@ ...@@ -51,7 +53,7 @@
{% endif %} {% endif %}
</select> </select>
{% else%} {% else%}
<select id="totalPrice" name="totalPrice" class="form-control"> <select id="totalPrice" name="totalPrice" class="form-control widthAuto">
<option value ="">价格</option> <option value ="">价格</option>
{% if dicTotalPrice %} {% if dicTotalPrice %}
{% for item in dicTotalPrice %} {% for item in dicTotalPrice %}
...@@ -61,20 +63,20 @@ ...@@ -61,20 +63,20 @@
</select> </select>
{% endif %} {% endif %}
{% if house_type == 0%} {% if house_type == 0%}
<select id="room" name="room" class="form-control"> <select id="room" name="room" class="form-control widthAuto">
<option value="-1">类型</option> <option value="-1">类型</option>
{% for item in room %} {% for item in room %}
<option {{ item.id == roomId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option> <option {{ item.id == roomId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
</select> </select>
{% endif %} {% endif %}
<select id="buildProperty" name="buildProperty" class="form-control"> <select id="buildProperty" name="buildProperty" class="form-control widthAuto">
<option value="-1"> 房型</option> <option value="-1"> 房型</option>
{% for item in buildProperty %} {% for item in buildProperty %}
<option {{ item.id == buildPropertyId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option> <option {{ item.id == buildPropertyId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
</select> </select>
<select id="acreage" name="acreage" class="form-control"> <select id="acreage" name="acreage" class="form-control widthAuto">
<option value ="">面积</option> <option value ="">面积</option>
{% if dicArea %} {% if dicArea %}
{% for item in dicArea %} {% for item in dicArea %}
...@@ -82,26 +84,43 @@ ...@@ -82,26 +84,43 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</select> </select>
<select name="status" name="status" class="form-control"> <select name="status" name="status" class="form-control widthAuto">
<option value="-3">状态</option> <option value="-3">状态</option>
{% for item in status%} {% for item in status%}
<option {{ item.id == statusId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option> <option {{ item.id == statusId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
<div id="organization" style="margin-bottom: 10px;"> </div>
<label for="endDate">楼盘名:</label> </div>
<input type="text" name="searchText" class="form-control"> <br />
<label for="beginDate" >开始日期:</label> <div class="row" id="organization">
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">楼盘名</span>
<input type="text" name="searchText" class="form-control" {% if req %}value="{{req.searchText}}"{% endif %}>
</div>
</div>
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">置业顾问</span>
<input type="text" name="stuff" class="form-control" {% if req %}value="{{req.stuff}}"{% endif %}>
</div>
</div>
<div class="col-md-4">
<div class="input-group">
<span class="input-group-addon">日期</span>
<input type="date" name="beginDate" class="form-control" {% if req %}value="{{req.beginDate}}"{% endif %}> <input type="date" name="beginDate" class="form-control" {% if req %}value="{{req.beginDate}}"{% endif %}>
<label for="endDate">结束日期:</label> <span class="input-group-addon"></span>
<input type="date" name="endDate" class="form-control" {% if req %}value="{{req.endDate}}"{% endif %}> <input type="date" name="endDate" class="form-control" {% if req %}value="{{req.endDate}}"{% endif %}>
<label for="stuff">员工:</label> </div>
<input type="text" name="stuff" class="form-control" {% if req %}value="{{req.stuff}}"{% endif %}> </div>
<div class="col-md-2">
<input type="hidden" name="hasSearch" value="1"/> <input type="hidden" name="hasSearch" value="1"/>
<input type="hidden" id="house_type" value="{{house_type}}"/> <input type="hidden" id="house_type" value="{{house_type}}"/>
<input type="submit" id="submit" class="btn btn-success" value="搜索"> <input type="submit" id="submit" class="btn btn-success" value="搜索">
</div> </div>
</div>
</form> </form>
<form method="post"> <form method="post">
<!-- Now we can render the completed list table --> <!-- Now we can render the completed list table -->
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{% for item in list %} {% for item in list %}
<tr> <tr>
<td class="col-md-2 text-center">{{ item.status_name }}</td> <td class="col-md-2 text-center">{{ item.status_name }}</td>
<td class="col-md-3 text-center">{{ item.name }}</td> <td class="col-md-3 text-center">{% if item.name %}{{item.name}}{% else %}{{ item.display_name }}{% endif %}</td>
<td class="col-md-3 text-center">{{ item.time }}</td> <td class="col-md-3 text-center">{{ item.time }}</td>
<td class="col-md-4 text-center">{{ item.description }}</td> <td class="col-md-4 text-center">{{ item.description }}</td>
</tr> </tr>
......
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
alert("请选择房源相册"); alert("请选择房源相册");
return false; return false;
} }
if($("#consultantImg > p").length == 0){ if($("#consultantImg > div").length == 0){
alert("请选择置业顾问"); alert("请选择置业顾问");
return false; return false;
} }
......
...@@ -65,8 +65,8 @@ ...@@ -65,8 +65,8 @@
<input type="hidden" name="week" id="week" style="display: none"> <input type="hidden" name="week" id="week" style="display: none">
</div> </div>
</div> </div>
<input type="submit" id="submit" class="button action" value="搜索"> <input type="submit" id="submit" class="btn btn-success" value="搜索">
<a class="button action" href="{{ url }}&action=statistics">即时统计</a> <a class="btn btn-success" href="{{ url }}&action=statistics">即时统计</a>
</form> </form>
{{ function("addProgressTable") }} {{ function("addProgressTable") }}
</div> </div>
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
consultantArray.push(Number($(item).val())); consultantArray.push(Number($(item).val()));
}); });
if($.inArray(Number($(this).data().id),consultantArray) == -1){ if($.inArray(Number($(this).data().id),consultantArray) == -1){
if (confirm('是否确定选择职业顾问')) { if (confirm('设置'+$(this).data().name+'为置业顾问吗?')) {
callback($(this).data()); callback($(this).data());
} }
}else{ }else{
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<select id="myModal_cityId" class="form-control"> <select id="myModal_cityId" class="form-control">
<option value="-1"> 城市</option> <option value="-1"> 城市</option>
{% for item in city %} {% for item in city %}
<option value="{{ item.id }}">{{ item.value }}</option> <option {% if cityId %}{{ item.id == cityId ?"selected":"" }}{% else %}{{ item.id == 2 ?"selected" }}{% endif %} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
...@@ -103,6 +103,9 @@ ...@@ -103,6 +103,9 @@
//增加!=null 时因为在添加合同模块中调用这个方法,合同模块没有这个baseCity的Id //增加!=null 时因为在添加合同模块中调用这个方法,合同模块没有这个baseCity的Id
if( $("#baseCity").val() != null && $("#baseCity").val()!= -1){ if( $("#baseCity").val() != null && $("#baseCity").val()!= -1){
var cityId = $("#baseCity").val(); var cityId = $("#baseCity").val();
}else{
var cityId = city.val();
}
searchCity(cityId,area); searchCity(cityId,area);
searchAcreage(cityId, acreage); searchAcreage(cityId, acreage);
//城市联动房子价格 //城市联动房子价格
...@@ -113,9 +116,6 @@ ...@@ -113,9 +116,6 @@
{% else %} {% else %}
searchRentalPrice(cityId,price); searchRentalPrice(cityId,price);
{% endif %} {% endif %}
}else{
var cityId = city.val();
}
city.val(cityId); city.val(cityId);
city.change(function(){ city.change(function(){
var cityId = city.val(); var cityId = city.val();
......
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
errorContainer: "#messageBox1", errorContainer: "#messageBox1",
errorLabelContainer: "#messageBox1", errorLabelContainer: "#messageBox1",
submitHandler: function (form) { submitHandler: function (form) {
if($("#consultantImg > p").length == 0){ if($("#consultantImg > div").length == 0){
alert("请选择置业顾问"); alert("请选择置业顾问");
return false; return false;
} }
......
{% if function('current_user_can', 'zygw') %}
<style> <style>
.customer_tracking h2 { .customer_tracking h2 {
margin-bottom: 30px; margin-bottom: 30px;
...@@ -19,7 +18,6 @@ ...@@ -19,7 +18,6 @@
} }
</style> </style>
<div class="customer_tracking"> <div class="customer_tracking">
<h2>新增客户跟踪</h2>
<h4 class="addBorder">跟进记录</h4> <h4 class="addBorder">跟进记录</h4>
<p class="addBorder"> <p class="addBorder">
<span class="color-red">跟进类型:</span> <span class="color-red">跟进类型:</span>
...@@ -41,4 +39,3 @@ ...@@ -41,4 +39,3 @@
</span> </span>
</p> </p>
</div> </div>
\ No newline at end of file
{% endif %}
\ No newline at end of file
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
errorContainer: "#messageBox1", errorContainer: "#messageBox1",
errorLabelContainer: "#messageBox1", errorLabelContainer: "#messageBox1",
submitHandler: function (form) { submitHandler: function (form) {
if($("#consultantImg > p").length == 0){ if($("#consultantImg > div").length == 0){
alert("请选择置业顾问"); alert("请选择置业顾问");
return false; return false;
} }
......
{% macro selectOrganization(prefix) %} {% macro selectOrganization(prefix) %}
{% set organization = function('SearchDao::searchOrganization')|json_encode() %} {% set organization = function('SearchDao::searchOrganization')|json_encode() %}
<div id="{{ prefix }}_organization" style="margin-bottom: 10px;"> {% set quyu = function('SearchDao::searchOrganization',1) %}
<label>部门:</label> <div class="row" id="{{ prefix }}_organization">
<div class="col-md-12">
<div class="input-group">
<span class="input-group-addon">部门</span>
<label for="{{ prefix }}_depth_1" class="hidden"></label> <label for="{{ prefix }}_depth_1" class="hidden"></label>
<select data-depth="1" id="{{ prefix }}_depth_1"> <select data-depth="1" id="{{ prefix }}_depth_1" class="form-control widthAuto">
<option value="-1">请选择</option> <option value="-1">请选择</option>
</select> </select>
<label for="{{ prefix }}_depth_2" class="hidden"></label> <label for="{{ prefix }}_depth_2" class="hidden"></label>
<select data-depth="2" id="{{ prefix }}_depth_2" class="hidden"> <select data-depth="2" id="{{ prefix }}_depth_2" class="form-control widthAuto">
<option value="-1">请选择</option> <option value="-1">请选择</option>
</select> </select>
<label for="{{ prefix }}_depth_3" class="hidden"></label> <label for="{{ prefix }}_depth_3" class="hidden"></label>
<select data-depth="3" id="{{ prefix }}_depth_3" class="hidden"> <select data-depth="3" id="{{ prefix }}_depth_3" class="form-control widthAuto">
<option value="-1">请选择</option> <option value="-1">请选择</option>
</select> </select>
<label for="{{ prefix }}_depth_4" class="hidden"></label> <label for="{{ prefix }}_depth_4" class="hidden"></label>
<select data-depth="4" id="{{ prefix }}_depth_4" class="hidden"> <select data-depth="4" id="{{ prefix }}_depth_4" class="form-control widthAuto hidden">
<option value="-1">请选择</option> <option value="-1">请选择</option>
</select> </select>
</div>
</div>
</div> </div>
<br />
<script> <script>
$(document).ready(function () { $(document).ready(function () {
var organization = eval('{{ organization }}'); var organization = eval('{{ organization }}');
...@@ -30,6 +36,9 @@ ...@@ -30,6 +36,9 @@
} }
select.append('<option value="' + item.Id + '" data-parent="' + item.ParentId + '" ' + css + '>' + item.Name + '</option>'); select.append('<option value="' + item.Id + '" data-parent="' + item.ParentId + '" ' + css + '>' + item.Name + '</option>');
}); });
$("#{{ prefix }}_depth_1").find("option[value='1']").attr("selected","selected").show();
$("#{{ prefix }}_depth_2").find("option[value='6']").attr("selected","selected").show();
$("#{{ prefix }}_depth_3").find("option[value='28']").attr("selected","selected").show();
$.each($('#{{ prefix }}_organization select[data-depth]:not(:last)'), function (index, item) { $.each($('#{{ prefix }}_organization select[data-depth]:not(:last)'), function (index, item) {
var next_depth = Number($(item).data('depth')) + 1; var next_depth = Number($(item).data('depth')) + 1;
......
<div class="row form-group"> <div class="row form-group">
<div class="col-xs-4"> <div class="col-xs-4">
<label for="housename" class="control-label color-red">微信标题:</label> <div class="input-group">
<p class="col-xs-7"> <span class="input-group-addon color-red">微信标题</span>
<input name="housename" id="housename" type="text" value="{{result.name}}" class="form-control" > <input name="housename" id="housename" type="text" value="{{result.name}}" class="form-control" >
</p> </div>
</div> </div>
{% if house_type == 0 %} {% if house_type == 0 %}
<div class="col-xs-4"> <div class="col-xs-4">
<label for="average_price" class="control-label color-red">均价:</label> <div class="input-group">
<p class="col-xs-6"> <span class="input-group-addon color-red">均价</span>
<input name="average_price" id="average_price" type="text" value="{{result.average_price}}" class="form-control"> <input name="average_price" id="average_price" type="text" value="{{result.average_price}}" class="form-control">
</p> <span class="input-group-addon"></span>
<p class="col-xs-1" style="margin-top: 10px"> </div>
&nbsp;
</p>
</div> </div>
{% endif %} {% endif %}
</div> </div>
<table class="form-table" style="margin-bottom: 15px;"> <div class="row form-group">
<tbody> <div class="col-xs-6">
<tr> <div class="input-group">
<td style="width: 75px;padding: 10px 0;"> <span class="input-group-addon">标签</span>
<label class="control-label">标签:</label> <input type="button" class="btn btn-success" id="addTagBtn" value="添加" />
</td> </div>
<td> <div id="mark" class="input-group" style="margin-left: 68px;margin-top: 10px;">
<div id="mark"></div> </div>
</td> </div>
</tr> </div>
<tr>
<td style="display: inline;padding: 10px 0;margin-left: 75px;">
<button type="button" class="btn btn-success" id="addTagBtn">
标签
</button>
</td>
</tr>
</tbody>
</table>
<script> <script>
$(document).ready(function () { $(document).ready(function () {
...@@ -61,12 +50,21 @@ ...@@ -61,12 +50,21 @@
} }
}); });
}); });
$("#mark").on("click",".featureCancel",function(){
var removeItem = $(this).parent().parent().find("input").val();
$.grep(tagArray, function(value) {
return value != removeItem;
});
$(this).parent().parent().parent().remove();
});
}); });
function addTag(id, value) { function addTag(id, value) {
var houseTag = $("<input>").attr({"type": "hidden", "name": "data[houseTag][]", "value": id}); var houseTag = $("<input>").attr({"type": "hidden", "name": "data[houseTag][]", "value": id});
var cancel = $("<span>").attr("aria-hidden", "true").addClass("glyphicon glyphicon-remove featureCancel "); var cancel = $("<span>").attr("aria-hidden", "true").addClass("glyphicon glyphicon-remove featureCancel ").css({"top":"3px","margin-left":"10px"});
var span = $("<span>").attr("style", "margin-right:5px").append(value); var span = $("<span>").attr("style", "margin-right:5px").addClass("label label-info").append(value);
var divCol = $("<div>").append(houseTag).append(span).append(cancel).addClass("col-md-3").attr("style", "margin-bottom:10px"); var h = $("<h4>");
h.append(span.append(cancel));
var divCol = $("<div>").append(houseTag).append(h).addClass("col-md-2").attr("style", "margin-bottom:10px");
$("#mark").append(divCol); $("#mark").append(divCol);
} }
</script> </script>
\ No newline at end of file
...@@ -41,9 +41,10 @@ class CustomerTrackingDao ...@@ -41,9 +41,10 @@ class CustomerTrackingDao
public static function search($house_id, $origin) public static function search($house_id, $origin)
{ {
$sql = 'SELECT tct.*,ts.status_name,tc.name FROM ' . Config::TOSPUR_CUSTOMER_TRACKING_TABLE . ' tct' . $sql = 'SELECT tct.*,ts.status_name,tc.name,wu.display_name FROM ' . Config::TOSPUR_CUSTOMER_TRACKING_TABLE . ' tct' .
' left join (SELECT * FROM ' . Config::TOSPUR_STATUS_TABLE . ' where status_type = 3) as ts on tct.status_type = ts.status_id' . ' left join (SELECT * FROM ' . Config::TOSPUR_STATUS_TABLE . ' where status_type = 3) as ts on tct.status_type = ts.status_id' .
' left join ' . Config::TOSPUR_CONSULTANT . ' tc on tct.consultant_id = tc.id' . ' left join ' . Config::TOSPUR_CONSULTANT . ' tc on tct.consultant_id = tc.id' .
' left join wp_users wu on wu.id = tct.consultant_id '.
' where tct.house_id = ' . $house_id . ' and tct.origin = ' . $origin; ' where tct.house_id = ' . $house_id . ' and tct.origin = ' . $origin;
$result = DBManager::get_results($sql); $result = DBManager::get_results($sql);
return $result; return $result;
......
...@@ -17,7 +17,7 @@ class InsertDao{ ...@@ -17,7 +17,7 @@ class InsertDao{
public static function setHouseNumber($houseId,$houseType,$cityId){ public static function setHouseNumber($houseId,$houseType,$cityId){
switch($houseType){ switch($houseType){
case 0: case 0:
$prefix = "xf"; $prefix = "XF";
break; break;
case 1: case 1:
$prefix = "CS"; $prefix = "CS";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment