416 lines
15 KiB
Plaintext
416 lines
15 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@using WX.CRM.Model.QueryMap;
|
|
@using WX.CRM.WEB.Handler;
|
|
@model WX.CRM.Model.Entity.RES_CUSTOMERDETAIL
|
|
|
|
@{
|
|
ViewBag.Title = Model.CNAME + "-客户工单信息";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
CustomerInfo info = ViewBag.CustomerInfo as CustomerInfo;
|
|
var isCanopenorder = (ViewBag.IsCanopenorder).ToString() == "False" ? 1 : 0;
|
|
}
|
|
<style>
|
|
.ToolBarClick {
|
|
/*background: none repeat scroll 0 0 red;
|
|
color: white;*/
|
|
border: 1px red solid;
|
|
-moz-box-shadow: 0px 0px 6px #B00329;
|
|
-webkit-box-shadow: 0px 0px 6px #B00329;
|
|
box-shadow: 0px 0px 6px #B00329;
|
|
}
|
|
|
|
.tablePanel {
|
|
/*height: 96%;*/
|
|
position: relative;
|
|
background-color: white;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-color: rgb(206, 208, 212);
|
|
border-image: initial;
|
|
margin: 10px 20px 10px 20px;
|
|
box-shadow: 1px 1px 5px rgba(156, 152, 152, 0.3);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
body {
|
|
background-color: #eff0f4;
|
|
}
|
|
|
|
.Customer_module_style {
|
|
background-color: #eff0f4;
|
|
}
|
|
|
|
.WelComeIcon {
|
|
display: inline-block;
|
|
position: relative;
|
|
width: 25px;
|
|
height: 25px;
|
|
background: url(/Content/Images/icon/kehuguanli.png) no-repeat center;
|
|
vertical-align: middle;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.mvctool {
|
|
font-size: 0px;
|
|
}
|
|
|
|
.bodyDiv .mvctool .layui-btn-sm {
|
|
margin-left: 8px;
|
|
padding: 0 6px;
|
|
}
|
|
|
|
.boundFont {
|
|
background-color: #00b900;
|
|
padding: 3px 4px;
|
|
border-radius: 5px;
|
|
color: #fff;
|
|
}
|
|
</style>
|
|
<link href="~/Content/main.css" rel="stylesheet" />
|
|
<style>
|
|
.MyXianLu {
|
|
margin:0 20px;
|
|
}
|
|
|
|
.Chosea {
|
|
background-color: chocolate;
|
|
}
|
|
</style>
|
|
<script>
|
|
$(function () {
|
|
var isCanopenorder = "@ViewBag.IsCanopenorder";
|
|
console.log(isCanopenorder)
|
|
var customername = "@Model.CNAME";
|
|
var windowUrl = window.location.href;
|
|
//if (top.location != location)
|
|
//window.parent.SetTabsTitle(windowUrl, customername);
|
|
|
|
$(window).resize(function () {//自动适应大小
|
|
$('.Customer_module_style').height($(window).height() - 75);
|
|
});
|
|
$('.Customer_module_style').height($(window).height() - 75);
|
|
//大模块切换功能
|
|
$(".mvctool [id^='btn']").click(function () {
|
|
var btnId = $(this).attr("id");
|
|
$(".ToolBarClick").removeClass("ToolBarClick");
|
|
$(this).addClass("ToolBarClick");
|
|
$(".Customer_module_style").removeClass("Content_hidden").addClass("Content_hidden");
|
|
$("[xfor='" + btnId + "']").removeClass("Content_hidden");
|
|
if (btnId == "btn_18" && $("[xfor='" + btnId + "']").attr("mygald") == "false") {
|
|
var cinfigurl = "@Html.Raw(ViewBag.WwMessage_Url)";
|
|
var urlSplit = cinfigurl.split('$');
|
|
var urlX = "";
|
|
var newURL = "";
|
|
var firstUrl = "";
|
|
$(urlSplit).each(function (a, url) {
|
|
if (url.indexOf("|") > -1) {//分内外网
|
|
var ssw = window.location.href;
|
|
if (ssw.indexOf("192.168.") > -1 || ssw.indexOf("localhost") > -1) {//内网无疑
|
|
newURL = url.split('|')[0];
|
|
} else {
|
|
newURL = url.split('|')[1];
|
|
}
|
|
} else {
|
|
newURL = url;
|
|
}
|
|
if (a == 0) {
|
|
firstUrl = newURL;
|
|
urlX += "<a class='MyXianLu Chosea' id='woxs_" + a + "' href='javascript:ShowMsgg(" + a + ",\"" + newURL + "\");'>查看线路" + (a + 1) + "</a>";
|
|
} else {
|
|
urlX += "<a class='MyXianLu ' id='woxs_" + a + "' href='javascript:ShowMsgg(" + a + ",\"" + newURL + "\");'>查看线路" + (a + 1) + "</a>";
|
|
}
|
|
|
|
});
|
|
var src = firstUrl + "/Admin/OutHHuser/User_extuserList3?exuserid=@Html.Raw((string)ViewBag.extuserids)&isHg=@Html.Raw(ViewBag.IsHg)&resid=@Html.Raw(ViewBag.resid)" +"&eid=@Html.Raw(ViewBag.eid)"+"&ext_flag=@Html.Raw(System.Web.HttpUtility.UrlEncode(WX.CRM.Common.Utility.Encrypt(WX.CRM.Common.DateTimeTool.ConvertDateTimeLong(DateTime.Now).ToString())))";
|
|
$("#fufeiqiyeweixinif").html(urlX + "<iframe id='wwIframe' width='100%' height='98%' style='overflow-x:hidden; overflow-y:auto;' frameborder='0'' src='" + src + "'></iframe>").attr("mygald", "true");
|
|
|
|
}
|
|
});
|
|
//小模块折叠功能
|
|
//$(".group").click(function () {
|
|
// var zd = $(this).find(".togglebtn");
|
|
// if ($(zd).hasClass("togglebtn-down")) {
|
|
// $(zd).removeClass("togglebtn-down");
|
|
// $(this).next(".content_div").css("display", "");
|
|
// } else {
|
|
// $(zd).addClass("togglebtn-down");
|
|
// $(this).next(".content_div").css("display", "none");
|
|
// }
|
|
//});
|
|
$("#bt_Reload").click(function () {
|
|
window.location.href = window.location.href;
|
|
});
|
|
});
|
|
function ShowMsgg(id,newUrl) {
|
|
var src = newUrl + "/Admin/OutHHuser/User_extuserList3?exuserid=@Html.Raw((string)ViewBag.extuserids)&isHg=@Html.Raw(ViewBag.IsHg)&resid=@Html.Raw(ViewBag.resid)"+"&eid=@Html.Raw(ViewBag.eid)"+"&ext_flag=@Html.Raw(System.Web.HttpUtility.UrlEncode(WX.CRM.Common.Utility.Encrypt(WX.CRM.Common.DateTimeTool.ConvertDateTimeLong(DateTime.Now).ToString())))";
|
|
$("#wwIframe").attr("src", src);
|
|
$(".Chosea").removeClass("Chosea");
|
|
$("#woxs_" + id).addClass("Chosea");
|
|
}
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
|
|
</script>
|
|
<div class="content_interval"></div>
|
|
<div class="mvctool">
|
|
<div class="mvctool_mytitle">
|
|
<span class="WelComeIcon"></span>
|
|
<span>姓名:<span id="cname">@Html.Raw(string.IsNullOrEmpty(Model.CNAME) ? "<font class='wxsTitle'>未设置</font>" : Model.CNAME)</span></span>
|
|
@{
|
|
if (ViewBag.IsFx)
|
|
{
|
|
<span style="background-color: red; color:#fff; font-size:14px; padding:2px 10px; margin-left:10px;">风险</span>
|
|
}
|
|
}
|
|
@{
|
|
if (ViewBag.IsCanopenorder == 0)
|
|
{
|
|
<span style="background-color: red; color:#fff; font-size:14px; padding:2px 10px; margin-left:10px;">合规要求,禁止营销</span>
|
|
}
|
|
}
|
|
<font color="red">@Html.Raw(Model.SPECIALMEMO != null && Model.SPECIALMEMO.Trim() != "" ? "<br />" + Model.SPECIALMEMO : Model.SPECIALMEMO)</font>
|
|
</div>
|
|
@*<span class="mvctool_title">
|
|
|
|
</span>*@
|
|
<span class="tool-btn-separator"></span>
|
|
@*@{string isShowFxh = ViewBag.isShowFxh as string;}*@
|
|
@*@Html.ToolButtonPlain("btn_1", "icon-group", "客户信息", true, "")*@
|
|
<button class="layui-btn layui-btn-sm layui-btn-primary ToolBarClick" data-method="btn_1 " id="btn_1">
|
|
<span class="csicon UserInfoIcon"></span>
|
|
客户信息
|
|
</button>
|
|
<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="btn_risk" id="btn_risk">
|
|
<span class="csicon RiskIcon"></span>
|
|
风险测评
|
|
</button>
|
|
@*<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="btn_19 " id="btn_19">
|
|
<span class="csicon ReloationIcon"></span>
|
|
销售线索
|
|
</button>*@
|
|
@if (string.IsNullOrEmpty(ViewBag.isMiniCustomerInfo) || ViewBag.isMiniCustomerInfo == "0")
|
|
{
|
|
@*@Html.ToolButtonPlain("btn_2", "icon-clear", "工单信息", true, "")*@
|
|
<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="btn_2 " id="btn_2">
|
|
<span class="csicon MemoIcon"></span>
|
|
工单信息
|
|
</button>
|
|
|
|
}
|
|
|
|
<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="btn_13 " id="btn_13">
|
|
<span class="csicon OrderIcon"></span>
|
|
客户订单
|
|
</button>
|
|
<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="btn_16 " id="btn_16">
|
|
<span class="csicon LuyinIcon"></span>
|
|
录音
|
|
</button>
|
|
@*<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="btn_9 " id="btn_9">
|
|
<span class="csicon WeiXinIcon"></span>
|
|
微信
|
|
</button>*@
|
|
@*<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="btn_17 " id="btn_17">
|
|
<span class="csicon QWIcon"></span>
|
|
企微
|
|
</button>*@
|
|
<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="btn_18 " id="btn_18">
|
|
<span class="csicon QWIcon"></span>
|
|
企微
|
|
</button>
|
|
|
|
<button class="layui-btn layui-btn-sm layui-btn-primary" data-method="bt_Reload " id="bt_Reload" onclick="location.reload()">
|
|
<span class="csicon RefreshIcon"></span>
|
|
刷新
|
|
</button>
|
|
<span class="mvctool_title" style="display:none;">未查看的资源:<font color="red">0</font></span>
|
|
</div>
|
|
<div id="modalwindow" class="easyui-window" data-options="modal:true,closed:true,minimizable:false,shadow:false"></div>
|
|
<div xfor="btn_1" class="Customer_module_style ">
|
|
@foreach (var iterm in ViewBag.customerMessage_UC as List<string>)
|
|
{
|
|
<div id="@iterm" class="tablePanel">
|
|
@Html.Action(iterm, "CustomerUC", info)
|
|
</div>
|
|
}
|
|
</div>
|
|
@*<div xfor="btn_19" class="Customer_module_style Content_hidden">
|
|
<div id="SalesLeadsUC" class="tablePanel">
|
|
@Html.Action("SalesLeadsUC", "CustomerUC", info)
|
|
</div>
|
|
</div>*@
|
|
<div xfor="btn_2" class="Customer_module_style Content_hidden">
|
|
@foreach (var iterm in ViewBag.memoMessage_UC as List<string>)
|
|
{
|
|
<div id="@iterm" class="tablePanel">
|
|
@Html.Action(iterm, "CustomerUC", info)
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
@*<div xfor="btn_3" class="Customer_module_style Content_hidden">
|
|
@foreach (var iterm in ViewBag.ordeMessage_UC as List<string>)
|
|
{
|
|
<div id="@iterm">
|
|
@Html.Action(iterm, "CustomerUC", info)
|
|
</div>
|
|
}
|
|
</div>*@
|
|
|
|
@*<div xfor="btn_6" class="Customer_module_style Content_hidden">
|
|
@foreach (var iterm in ViewBag.ActivityMessage_UC as List<string>)
|
|
{
|
|
<div id="@iterm" class="tablePanel">
|
|
@Html.Action(iterm, "CustomerUC", info)
|
|
|
|
</div>
|
|
}
|
|
</div>*@
|
|
@*<div xfor="btn_7" class="Customer_module_style Content_hidden">
|
|
@foreach (var iterm in ViewBag.SalememoMessage_UC as List<string>)
|
|
{
|
|
<div id="@iterm">
|
|
@Html.Action(iterm, "CustomerUC", info)
|
|
</div>
|
|
}
|
|
</div>*@
|
|
@*<div xfor="btn_8" class="Customer_module_style Content_hidden">
|
|
@if (ViewBag.TGCRMUrl != "")
|
|
{
|
|
<iframe width="100%" height="100%" id="ghrzFrame" frameborder="0" scrolling="auto" name="ghrzFrame" src="@(ViewBag.TGCRMUrl)"></iframe>
|
|
}
|
|
</div>*@
|
|
|
|
@*<div xfor="btn_9" class="Customer_module_style Content_hidden">
|
|
<div id="CustomerWxUserUC" class="tablePanel">
|
|
@Html.Action("CustomerWxUserUC", "CustomerUC", info)
|
|
</div>
|
|
</div>*@
|
|
@*<div xfor="btn_17" class="Customer_module_style Content_hidden">
|
|
<div id="CustomerQwUserUC" class="tablePanel">
|
|
@Html.Action("CustomerQwUserUC", "CustomerUC", info)
|
|
</div>
|
|
</div>*@
|
|
<div xfor="btn_18" mygald="false" class="Customer_module_style Content_hidden">
|
|
<div id="CoreQW" class="tablePanel" style="height:85%">
|
|
<div class="group content_title_width">
|
|
<span class="csicon QWIcon"></span>
|
|
<span>企业微信</span>
|
|
</div>
|
|
<div class="content_div" id="fufeiqiyeweixinif" style="height:100%">
|
|
</div>
|
|
@*<iframe id="onlyeyou" frameborder="0" />*@
|
|
</div>
|
|
</div>
|
|
@if (ViewBag.ProjectType == "1")
|
|
{
|
|
<div xfor="btn_10" class="Customer_module_style Content_hidden">
|
|
<div id="CustomerZxOrder" class="tablePanel">
|
|
@Html.Action("CustomerZxOrder", "CustomerUC", info)
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (ViewBag.ProjectType == "2")
|
|
{
|
|
<div xfor="btn_11" class="Customer_module_style Content_hidden">
|
|
<div id="CustomerTDOrder" class="tablePanel">
|
|
@Html.Action("CustomerTDOrder", "CustomerUC", info)
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (ViewBag.ProjectType == "2" || ViewBag.ProjectType == "3")
|
|
{
|
|
<div xfor="btn_12" class="Customer_module_style Content_hidden">
|
|
@foreach (var iterm in ViewBag.Level2orderMessage_UC as List<string>)
|
|
{
|
|
<div id="@iterm" class="tablePanel">
|
|
@Html.Action(iterm, "CustomerUC", info)
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
@if (ViewBag.ProjectType == "3")
|
|
{
|
|
<div xfor="btn_13" class="Customer_module_style Content_hidden">
|
|
<div id="CustomerJZOrder" class="tablePanel">
|
|
@Html.Action("CustomerJZOrder", "CustomerUC", info)
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (ViewBag.ProjectType == "4")
|
|
{
|
|
<div xfor="btn_14" class="Customer_module_style Content_hidden">
|
|
<div id="CustomerCommonOrder" class="tablePanel">
|
|
@Html.Action("CustomerCommonOrder", "CustomerUC", info)
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (ViewBag.QHType == "1")
|
|
{
|
|
@*<div xfor="btn_15" class="Customer_module_style Content_hidden">
|
|
@Html.Action(ViewBag.CustomerQH_UC as string, "CustomerQH", info)
|
|
</div>*@<div xfor="btn_15" class="Customer_module_style Content_hidden">
|
|
</div>
|
|
|
|
<div xfor="btn_15" class="Customer_module_style Content_hidden">
|
|
<div id="CustomerFutureUC" class="tablePanel">
|
|
@Html.Action("CustomerFutureUC", "CustomerQH", info)
|
|
</div>
|
|
</div>
|
|
}
|
|
<div xfor="btn_16" class="Customer_module_style Content_hidden">
|
|
<div id="CustomerCallRecord" class="tablePanel">
|
|
@Html.Action("CustomerCallRecord", "CustomerUC", info)
|
|
</div>
|
|
</div>
|
|
|
|
<div id="modulewindow" class="easyui-window" data-options="modal:true,closed:true,minimizable:false,shadow:false"></div>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
var isMiniCustomerInfo = '@ViewBag.isMiniCustomerInfo';
|
|
if (isMiniCustomerInfo == "1") {
|
|
MemoloadAll(7);
|
|
ShowMemo(7);
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
function GetIframeHtml(src) {
|
|
var newsrc = src;
|
|
let nowurl = window.location.href
|
|
let p = nowurl.split('?')[1]
|
|
if (p) {
|
|
let keyValue = p.split('&');
|
|
let obj = {};
|
|
for (let i = 0; i < keyValue.length; i++) {
|
|
let item = keyValue[i].split('=');
|
|
let key = item[0];
|
|
let value = item[1];
|
|
obj[key] = value;
|
|
}
|
|
console.log(obj);
|
|
if (obj["mytoken"]) {
|
|
if (newsrc.indexOf("?") > -1) {
|
|
newsrc = newsrc + "&mytoken=" + obj["mytoken"];
|
|
} else {
|
|
newsrc = newsrc + "?mytoken=" + obj["mytoken"];
|
|
}
|
|
}
|
|
}
|
|
|
|
return "<iframe width='100%' height='98%' scrolling='auto' frameborder='0'' src='" + newsrc + "'></iframe>";
|
|
}
|
|
</script>
|
|
|
|
<div xfor="btn_risk" class="Customer_module_style Content_hidden">
|
|
<div id="CustomerRiskUC" class="tablePanel">
|
|
@Html.Action("NewRisk", "CustomerUC", info)
|
|
</div>
|
|
</div> |