ComplianceServer/oldcode/WEB/Views/Csvr/CustomerUC/CustomerBaseInfoUC.cshtml

280 lines
12 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model WX.CRM.Model.Entity.RES_CUSTOMER
@using WX.CRM.Model.Entity
@using WX.CRM.WebHelper;
@using WX.CRM.Model.QueryMap;
@using WX.CRM.Model;
@using WX.CRM.Model.DTO;
@{
Layout = null;
CustomerInfo info = ViewBag.CustomerInfo as CustomerInfo;
}
<script src="/layui-v2.5.4/layui.js"></script>
<style>
.boundFont {
background-color: #00b900;
padding: 3px 4px;
border-radius: 5px;
color: #fff;
}
</style>
<script type="text/javascript">
function BaseInfoLink_Click(tag, id) {
var resid = id;
var src = "";
switch (tag) {
case "fav": src = "/Csvr/FavoriteCustomer/Edit?resid=" + resid; break;
case "ec": src = "/Res/Customer/Edit?resid=" + resid; break;
}
$("#modalwindow").html(GetIframeHtml(src));
var maxwidth = $(window).width() * 0.7;
var maxheight = $(window).height() * 0.7;
$("#modalwindow").window({ title: '编辑', width: maxwidth, height: maxheight, iconCls: 'icon-edit' }).window('open');
}
function Link_Click2(tag, id) {
var resid = id;
var src = "";
switch (tag) {
case "level": src = "/Res/CustomerExtend/Edit?resid=" + resid + "&tag=" + tag; break;
}
$("#modalwindow").html(GetIframeHtml(src));
$("#modalwindow").window({ title: '编辑', width: 600, height: 450, iconCls: 'icon-edit' }).window('open');
}
$(function () {
$("#fromDeptcodeShow").html($("#deptNameFromxxx").val());
});
function GiveUp(obj, resid) {
$.messager.confirm('确认操作', '确定放弃该资源吗?', function (r) {
if (r) {
$(obj).text("执行中...").attr("disabled", "disabled");
$.r_post("/Csvr/CustomerUC/GiveUp", { resid: resid }, function (res) {
if (res.result) {
if (res.msg == "success") {
$(obj).val("已放弃");
}
else if (res.msg == "notexists") {
$.messager.alert("警告", "不是您的客户,不能执行该操作!", "error");
}
else {
$.messager.alert("警告", "执行失败,请重试!", "error");
$(obj).text("放弃").removeAttr("disabled");
};
}
else {
$.messager.alert("警告", "执行失败,请重试!", "error");
$(obj).text("放弃").removeAttr("disabled");
}
});
}
});
}
function SetZJL(resid) {
$("#modalwindow").html(GetIframeHtml("/Res/Customer/SetZJL?resid=" + resid));
var maxwidth = 400;
var maxheight = 300;
$("#modalwindow").window({ title: '设置资金量', width: maxwidth, height: maxheight, iconCls: 'icon-edit' }).window('open');
}
</script>
<script>
layui.use('layer', function () {
var cname = '@Html.Raw(Model.map_CNAME)';
if (cname != '') {
$("#cname").html(cname);
}
$('#rfmrecord').on('click', function () {
var that = this;
var appuserid = $(that).attr("data-value");
if (appuserid != "") {
var url = "http://sc.soft.dn8188.com/saleClus/cgi/getRfmHistory";
//var url = "http://192.168.11.141:10045/saleClus/cgi/getRfmHistory";
$.r_post(url, { appid: "com.dongniu", appuserid }, function (rsp) {
//console.log(rsp);
if (rsp.iRet == 0) {
var html = "<br /><div style=\"height:350px; overflow: auto;\"><ul class=\"layui-timeline\" style=\"pading:0;margin:0\">";
$.each(rsp.list, function (i, j) {
var oldbg = setbgcolor(j.oldvalue);
var newbg = setbgcolor(j.newvalue);
html += "<li class=\"layui-timeline-item\">";
html += " <i class=\"layui-icon layui-timeline-axis\" ></i >";
html += " <div class=\"layui-timeline-content layui-text\">";
html += " <h3 class=\"layui-timeline-title\" style=\"font-size:16px;\">标签从 <span class=\"layui-badge\" style=\"height: 28px; line-height: 28px; background-color: " + oldbg + "\">" + j.oldvalue + "</span> 变更 <span class=\"layui-badge\" style=\"height: 28px; line-height: 28px; background-color: " + newbg + "\">" + j.newvalue + "</span><span style=\"padding-left:50px; font-size:14px; color:#666\">" + j.ctime + "</span></h3 >";
html += " <p>" + j.reason + "</p>";
html += " </div>";
html += "</li>";
});
html += "</ul></div>";
layer.tips(html, that, { time: 0, area: '500px', tips: [2, '#f0f0f0'], closeBtn: true });
}
});
//var html = "<br /><ul class=\"layui-timeline\" style=\"pading:0;margin:0\">";
// html += "<li class=\"layui-timeline-item\">";
// html += " <i class=\"layui-icon layui-timeline-axis\" ></i >";
// html += " <div class=\"layui-timeline-content layui-text\">";
// html += " <h3 class=\"layui-timeline-title\">标签从 " + "互动" + " 变更 " + "意向" + " " + "2020-11-03" +"</h3 >";
// html += " <p>" + "打发打发安抚爱的色放" + "</p>";
// html += " </div>";
// html += "</li>";
//html += "</ul>";
//layer.tips(html, that, { time: 0, tips: [2, '#f0f0f0'], closeBtn: true });
}
});
function setbgcolor(lablename) {
var color = "#fff";
switch (lablename) {
case "复购": color = "#1E9FFF"; break;
case "升级意向": color = "#FF5722"; break;
case "购买": color = "#E400FF"; break;
case "消退": color = "#393D49"; break;
case "意向": color = "#FFB800"; break;
case "互动": color = "#800080"; break;
case "一般": color = "#009688"; break;
case "失联": color = "#999999"; break;
}
return color;
}
});
</script>
<div class="group content_title_width">
<span class="csicon UserInfoIcon"></span>
<span>客户基本信息</span>
<span class="righttitle">
@*<a href="#" onclick="BaseInfoLink_Click('fav','@Html.DisplayFor(p => p.map_ResId)')">收藏客户</a>*@
&nbsp;&nbsp;&nbsp;&nbsp;
@*<a href="#" onclick="BaseInfoLink_Click('ec','@Html.DisplayFor(p => p.map_ResId)')">修改客户资料</a>*@
</span>
</div>
<div class="content_div">
@using (Html.BeginForm("CustomerBaseInfoUC", "CustomerInfo", null, FormMethod.Post, new { Id = "CreateForm", style = "margin:0 0 5px;" }))
{
<table class="layui-table content_width">
<tr>
<td>
客户ID@Html.DisplayFor(p => p.RES_CUSTOMERDETAIL.UMID)
</td>
<td>
注册时间:@Html.DisplayFor(p => p.map_CTIME)
</td>
<td>
承受风险能力:@Html.DisplayFor(p => p.RES_CUSTOMERDETAIL.RISKTOLERANCE)
</td>
<td>
资金量:@Html.DisplayFor(p => p.map_AMOUNTTYPEID)
</td>
</tr>
<tr>
<td>
@*姓名:@Html.Raw(string.IsNullOrWhiteSpace(ViewBag.map_CNAME) ? ViewBag.CName : Html.DisplayFor(p => p.map_CNAME))*@
姓名:@Html.DisplayFor(p => p.map_CNAME)
</td>
<td>
性别:@Html.DisplayFor(p => p.map_GENDER)
</td>
<td>
投资经验:@Html.DisplayFor(p => p.map_OpenrationTypeStr)
@*股龄:@Html.DisplayFor(p => p.RES_CUSTOMERDETAIL.OPERATIONTIME)*@
</td>
<td>
债务情况:@ViewBag.ZaiWu
</td>
</tr>
<tr>
<td>
出生日期:@ViewBag.BirthDay
</td>
<td>
年龄:@Html.Raw(Html.DisplayFor(p => p.map_BIRTHDAYAREASTR))
</td>
<td>
投资期限:@ViewBag.QiXiang
</td>
<td>
品种:@ViewBag.PinZhong
</td>
</tr>
<tr>
<td>
身份证类型:@ViewBag.IdCardType
</td>
<td>
证件号码:@ViewBag.IdCard
</td>
<td>
期望收益及风险偏好:@ViewBag.QiWang
</td>
<td>
可承受的损失:@ViewBag.ShunShi
</td>
</tr>
<tr>
<td>
学历:@Html.DisplayFor(p => p.map_JOBTYPEID)
</td>
<td>
国籍:@ViewBag.Nationality
</td>
<td>
客户标签:
@{
var rfm = ViewBag.rfm as ResCustomerRfmDto;
if (rfm != null)
{
if (!string.IsNullOrEmpty(rfm.LableName))
{
<span class="layui-badge" style="height:28px; line-height:28px; background-color: @rfm.Color">@rfm.LableName</span>
}
}
var complaint = ViewBag.Complaint as ComplaintLabelDto;
if (complaint != null)
{
if (complaint.InComplaint)
{
<span class="layui-badge" style="height: 28px; line-height: 28px; background-color: red">内诉</span>
}
if (complaint.OutComplaint)
{
<span class="layui-badge" style="height: 28px; line-height: 28px; background-color: red">外诉</span>
}
}
if (rfm != null && !string.IsNullOrEmpty(rfm.AppUserId))
{
<span style="padding-left:20px;"><a href="javascript:void(0)" id="rfmrecord" data-value="@rfm.AppUserId">变更记录</a></span>
}
}
</td>
<td>
@if (!string.IsNullOrEmpty(Model.RES_CUSTOMERDETAIL.REMARK))
{
<span>备注:@Html.Raw(Model.RES_CUSTOMERDETAIL.REMARK)</span>
}
</td>
</tr>
@*<tr>
<td>
</td>
<td>
加好友:@Html.Raw(Model.isBound == 1 ? "<font class='boundFont'>是</font>" : "否")
</td>
<td>
</td>
<td>
</td>
</tr>*@
</table>
}
</div>