1-客户信息
2-开店预期
3-资金预算
4-位置要求
5-店面要求
6-配套要求
7-其他信息
-[1-客户信息]-
客户电话:
其他联系方式:
客户姓名:
性别:
男
女
客户来源:
请选择
不可办照
客户类别:
个人
品牌
是否开过店:
是
否
-[2-开店预期]-
计划经营:
经营业态:
租期要求:
客单价:
-[3-资金预算]-
开启预算:
月租金:
-
日租金:
-
年租金:
-
转让费:
-
不接受转让费
-[4-位置要求]-
区域商圈:
[[${crmCustomer.businessArea}]]
关闭
-[5-店面要求]-
面积范围:
-
面宽:
层高:
商铺类型:
楼层:
一层
二层
三层
四层
高层
半地下
-[-配套要求]-
是否需要办照:
需要
不需要
是否需要明火:
需要
不需要
配套:
分时出租:
否
是-早间出租
是-晚间出租
是-早、晚出租
-[-其他信息]-
需求分析(人群分析):
[[${crmCustomer.reqAnalysis}]]
说明(其他要求):
[[${crmCustomer.introduce}]]
var crmCustomer = {}; $("#form-company-add").validator({ rules:{ number1 : [ /^\d+(\.?\d{2})?$/, "请填写有效的数字(保留两位)" ], number2 : [ /^\d+(\.?\d{2})?$/, "请填写有效的数字(保留两位)" ], }, fields : { }, valid : function(form) { /* ------ 1 ------ */ crmCustomer.phone = $('input[name="phone"]').val(); crmCustomer.contactWay = $('input[name="contactWay"]').val(); crmCustomer.name = $('input[name="name"]').val(); crmCustomer.gender = $("input[name=gender]:checked").val(); crmCustomer.createType = $('select[name="createType"]').val(); crmCustomer.cusType = $("input[name=cusType]:checked").val(); crmCustomer.isOpen = $("input[name=isOpen]:checked").val(); /* ------ 2 ------ */ crmCustomer.marketing = $('input[name="marketing"]').val(); crmCustomer.parentManageTypeId = $('select[name="parentManageTypeId"]').val() crmCustomer.sonManageTypeId = $('select[name="sonManageTypeId"]').val() crmCustomer.lease = $('input[name="lease"]').val(); crmCustomer.customerPrice = $('input[name="customerPrice"]').val(); /* ------ 3 ------ */ crmCustomer.budget = $('input[name="budget"]').val(); crmCustomer.monthlyRentUpper = $('input[name="monthlyRentUpper"]').val(); crmCustomer.monthlyRentLower = $('input[name="monthlyRentLower"]').val(); crmCustomer.dailyRentUpper = $('input[name="dailyRentUpper"]').val(); crmCustomer.dailyRentLower = $('input[name="dailyRentLower"]').val(); crmCustomer.yearlyRentUpper = $('input[name="yearlyRentUpper"]').val(); crmCustomer.yearlyRentLower = $('input[name="yearlyRentLower"]').val(); crmCustomer.transferFeeUpper = $('input[name="transferFeeUpper"]').val(); crmCustomer.transferFeeLower = $('input[name="transferFeeLower"]').val(); crmCustomer.noTransferFee = $('input[name="noTransferFee"]:checked').val(); /* ------ 4 ------ */ crmCustomer.businessArea = $('input[name="businessArea"]').val(); /* ------ 5 ------ */ crmCustomer.areaUpper = $('input[name="areaUpper"]').val(); crmCustomer.areaLower = $('input[name="areaLower"]').val(); $.ajax({ url : ctx + "crm/customer/saveEdit", cache : true, type : "POST", dataType : "json", contentType : "application/json", data : JSON.stringify(crmCustomer), async : false, error : function(request) { $.modal.alertError("系统错误"); }, success : function(data) { //$.operate.saveSuccess(data); //document.getElementsByName("refresh").click(); //临时处理 修改数据后返回首页问题 var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index); //window.parent.document.getElementsByName('refresh')[0].click(); } }); } }); $("input").attr('disabled',true); $("select").attr('disabled',true); function closeX(){ /* window.opener.location.href=window.opener.location.href; window.close(); */ newwin = window.open("","_parent",""); newwin.close(); } $(function(){ var parentManageTypeParam = "[[${crmCustomer.parentManageTypeId}]]"; var sonManageTypeParam = "[[${crmCustomer.sonManageTypeId}]]"; $.getJSON('/shop/findParent', function(data) { var option = '
请选择
'; if(data.length > 0) { $.each(data, function(index, temp) { option += "
" + temp.name + "
" }); } $("select[name=parentManageTypeId]").html(option); if(parentManageTypeParam) { $("select[name=parentManageTypeId]").val(parentManageTypeParam); $.getJSON('/shop/findSon?pid=' + parentManageTypeParam, function(data) { var option = '
请选择
'; if(data.length > 0) { $.each(data, function(index, temp) { option += "
" + temp.name + "
" }); } $("select[name=sonManageTypeId]").html(option); if(sonManageTypeParam){ $("select[name=sonManageTypeId]").val(sonManageTypeParam); } }); }; }); })