|
@@ -35,8 +35,9 @@
|
|
|
.update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
|
|
|
.msg-phone{height: 35px;line-height: 35px;}
|
|
|
.all_down{text-decoration: underline;color: #00c;}
|
|
|
+ .form-label{}
|
|
|
</style>
|
|
|
- <title>渠道添加 - 客户管理 - RST</title>
|
|
|
+ <title>对接人添加 - 客户管理 - RST</title>
|
|
|
</head>
|
|
|
<body>
|
|
|
|
|
@@ -47,37 +48,57 @@
|
|
|
<input type="hidden" class="input-text" value="${dealerChannel.dealChannelId!0}" id="dealChannelId" name="dealChannelId" >
|
|
|
<input type="hidden" class="input-text" value="${dealerChannel.dealChannelIdStr!""}" id="dealChannelIdStr" name="dealChannelIdStr" >
|
|
|
|
|
|
- <div class="row cl" id="" style="">
|
|
|
- <label class="form-label col-xs-3 col-sm-3" style="text-align: right;"><span class="c-red">*</span>渠道类型:</label>
|
|
|
- <div class="formControls col-xs-8 col-sm-8">
|
|
|
+ <div class="ulc_contact" code="returnCode" msg="resultMsg" data="returnMsg" urlPrefix="${path}">
|
|
|
+ <div class="row cl ulc_contact" id="" style="">
|
|
|
+ <label class="form-label col-xs-3 col-sm-3" style="text-align: right;"><span class="c-red">*</span>渠道大类:</label>
|
|
|
+ <div class="formControls col-xs-8 col-sm-8" >
|
|
|
<span class="select-box">
|
|
|
- <select name="dealerType" class="select" id="complaint">
|
|
|
- <option value="1">个人</option>
|
|
|
- <option value="2">企业</option>
|
|
|
- <option value="2">企业</option>
|
|
|
- <option value="2">企业</option>
|
|
|
+ <select name="channelTypeId" class="select ulc_select" id="channelTypeId"
|
|
|
+ ulcId="${dealerChannel.channelTypeId!''}"
|
|
|
+ ulcValName="channelTypeName" ulcValId="channelTypeId" ulcURL="/admin/dmchannel/get_channel_type" ulcMsg="" ulcList="dmChannelTypeList"
|
|
|
+ >
|
|
|
</select>
|
|
|
</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl ulc_contact" id="" style="">
|
|
|
+ <label class="form-label col-xs-3 col-sm-3" style="text-align: right;"><span class="c-red">*</span>渠道类型:</label>
|
|
|
+ <div class="formControls col-xs-8 col-sm-8">
|
|
|
+ <span class="select-box">
|
|
|
+ <select name="channelId" class="select ulc_select" id="channelId"
|
|
|
+ ulcId="${dealerChannel.channelId!''}"
|
|
|
+ ulcValName="channelName" ulcValId="channelId" ulcURL="/admin/dmchannel/get_channel?channelTypeId=" ulcMsg="" ulcList="dmChannelList"
|
|
|
+ >
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="row cl" id="" style="">
|
|
|
- <label class="form-label col-xs-3 col-sm-3" style="text-align: right;"><span class="c-red">*</span>职位:</label>
|
|
|
+ <div class="row cl " id="" style="">
|
|
|
+ <label class="form-label col-xs-3 col-sm-3" style="text-align: right;"><span class="c-red">*</span>渠道类型:</label>
|
|
|
<div class="formControls col-xs-8 col-sm-8">
|
|
|
- <input type="text" class="input-text add_form" value="${dealerChannel.dealContactType!""}" placeholder="填写职位" id="dealContactType" name="dealContactType" myMinlength="1" myMaxlength="20" errormsg="职位格式不正确!" >
|
|
|
+ <select class="chosen select" name="storeId" id="storeId" >
|
|
|
+ <#if storeInfoList?? && (storeInfoList?size > 0) >
|
|
|
+ <#list storeInfoList as store>
|
|
|
+ <option value="${store.storeId}" <#if dealerChannel.channelId??><#if dealerChannel.storeId==store.storeId>selected</#if></#if>>${store.storeName}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="row cl" id="" style="">
|
|
|
- <label class="form-label col-xs-3 col-sm-3" style="text-align: right;"><span class="c-red">*</span>手机号:</label>
|
|
|
+ <label class="form-label col-xs-3 col-sm-3" style="text-align: right;"><span class="c-red">*</span>账期:</label>
|
|
|
<div class="formControls col-xs-8 col-sm-8">
|
|
|
- <input type="text" class="input-text add_form" value="${dealerChannel.dealContactPhone!""}" placeholder="填写手机号" id="dealContactPhone" name="dealContactPhone" myMinlength="1" myMaxlength="20" errormsg="手机号格式不正确!" >
|
|
|
+ <input type="text" class="input-text add_form" value="${dealerChannel.dealChannelAccountPeriod!""}" placeholder="填写账期" id="dealChannelAccountPeriod" name="dealChannelAccountPeriod" myMinlength="1" myMaxlength="30" errormsg="账期不正确!" >
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="row cl">
|
|
|
+ <div class="row cl" style="margin-top: 30px">
|
|
|
<div class="col-2 col-sm-2 col-offset-3">
|
|
|
- <input type="text" class="btn btn-primary " onclick="save()" value="保存">
|
|
|
+ <input type="text" class="btn btn-primary " onclick="save_contact()" value="保存">
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -91,19 +112,46 @@
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
-
|
|
|
+ var ulc = $(".ulc_contact").initUlcByHtml({
|
|
|
+ urlPrefix: root_path,
|
|
|
+ ulcLevel:null
|
|
|
+ });
|
|
|
+
|
|
|
+ var storeNode = $('.chosen').chosen({
|
|
|
+ no_results_text: "没有找到结果!",//搜索无结果时显示的提示
|
|
|
+ search_contains:true, //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
|
|
|
+ allow_single_deselect:true, //单选下拉框是否允许取消选择。如果允许,选中选项会有一个x号可以删除选项
|
|
|
+ disable_search: false, //禁用搜索。设置为true,则无法搜索选项。
|
|
|
+ disable_search_threshold: 0, //当选项少等于于指定个数时禁用搜索。
|
|
|
+ inherit_select_classes: true, //是否继承原下拉框的样式类,此处设为继承
|
|
|
+ placeholder_text_single: '选择店铺', //单选选择框的默认提示信息,当选项为空时会显示。如果原下拉框设置了data-placeholder,会覆盖这里的值。
|
|
|
+ width: '100%', //设置chosen下拉框的宽度。即使原下拉框本身设置了宽度,也会被width覆盖。
|
|
|
+ max_shown_results: 1000, //下拉框最大显示选项数量
|
|
|
+ display_disabled_options: false,
|
|
|
+ single_backstroke_delete: false, //false表示按两次删除键才能删除选项,true表示按一次删除键即可删除
|
|
|
+ case_sensitive_search: false, //搜索大小写敏感。此处设为不敏感
|
|
|
+ group_search: false, //选项组是否可搜。此处搜索不可搜
|
|
|
+ include_group_label_in_selected: true //选中选项是否显示选项分组。false不显示,true显示。默认false。
|
|
|
+ });
|
|
|
|
|
|
/**
|
|
|
* 保存
|
|
|
*/
|
|
|
- function save() {
|
|
|
+ function save_contact() {
|
|
|
if(!verification()){
|
|
|
return false;
|
|
|
}
|
|
|
- var contact = new Object();
|
|
|
- contact.dealChannelId=$("#dealChannelId").val();
|
|
|
- contact.dealChannelIdStr=$("#dealChannelIdStr").val();
|
|
|
- parent.showContact(contact);
|
|
|
+ var channel = new Object();
|
|
|
+ channel.dealChannelId=$("#dealChannelId").val();
|
|
|
+ channel.dealChannelIdStr=$("#dealChannelIdStr").val();
|
|
|
+ channel.channelId=$("#channelId").val();
|
|
|
+ channel.channelTypeId=$("#channelTypeId").val();
|
|
|
+ channel.channelName=$("#channelId").find("option:selected").text();
|
|
|
+ channel.channelTypeName=$("#channelTypeId").find("option:selected").text();
|
|
|
+ channel.storeId= $('#storeId').val();
|
|
|
+ channel.storeName=$("#storeId").find("option:selected").text();
|
|
|
+ channel.dealChannelAccountPeriod=$("#dealChannelAccountPeriod").val();
|
|
|
+ parent.showChannel(channel);
|
|
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
|
|
}
|
|
|
|
|
@@ -133,8 +181,6 @@
|
|
|
return flag;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
|