| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216 |
- @using YTSoft.BaseCallCenter.MVCWeb.Models;
- @using YTSoft.BaseCallCenter.Model;
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>郑州市轨道交通全媒体客服平台</title>
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta http-equiv="Access-Control-Allow-Origin" content="*">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="format-detection" content="telephone=no">
- <link rel="icon" href="../favicon.ico">
- <link type="text/css" href="/Content/layui/css/layui.css" rel="stylesheet" />
- <link href="/Content/css/public.css" rel="stylesheet" />
-
- <link type="text/css" href="/Content/layui/css/modules/layui-icon-extend/iconfont.css" rel="stylesheet" />
- <link type="text/css" href="/Content/css/index.css" rel="stylesheet" />
- <link href="/Content/css/callscreen/callscreen.css" rel="stylesheet" />
- <link type="text/css" href="/Content/css/myindex.css" rel="stylesheet" />
- <link type="text/css" href="/Content/css/font-awesome/css/font-awesome.css" rel="stylesheet" />
- <script src="/Content/js/jquery.min.js"></script>
- <script src="/Content/js/ytsoft.config.js"></script>
- <script src="~/Content/js/ytsoft.http.js"></script>
- <script src="/Content/seatformjs/ocxopt.js"></script>
- <script src="/Content/js/callSocket.js"></script>
- <script type="text/javascript">
- //监控获取指定坐席状态结果事件
- function IframeSetAgentState(agentid, state) {
- try {
- window.frames["frame_zxjkgl"].GetState(agentid, state);
- }
- catch (e) {
- }
- }
- ///转移
- function PhoneCallZY(tel) {
- try {
- var callinphone = document.getElementById("forZYnumber").value;
- OCX_TransferToPhone(tel, "");
- }
- catch (e) {
- //$.ligerDialog.error(e.message);
- }
- }
- ///多方通话
- function PhoneCallDFTH(tel) {
- try {
- var callinphone = document.getElementById("forZYnumber").value;
- OCX_ThirdParty(tel, "");
- }
- catch (e) {
- //$.ligerDialog.error(e.message);
- }
- }
- ///工单接单时候调用的外呼方法
- function PhoneCallOutJD(type, tel, workorderid) {
- }
- function addCallOutInfo() {
- var tel = OCX_GetCalleeNumber(document.getElementById("txtAgentId").value);
- becallout = true;
- becallcome = false;
- CallOutRecordIsWrite = true;
- //添加外呼记录
- var userid = document.getElementById("txtAgentId").value;
- var usercode = document.getElementById("txtLabourwork").value;
- var username = document.getElementById("txtAgentName").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- var timeno = new Date().getTime();
- username = encodeURI(username);
- $.ajax({
- type: 'get',
- url: '/OCXOpt/OCXOptCallAjax/?optaction=callout&callernum=' + tel + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber" + extnumber + "&timeno=" + timeno,
- dataType: 'html',
- success: function (res) {
- try {
- var DialIsOK = false;
- var arr = res.split('|');
- document.getElementById("CallHjbh").value = arr[2];
- telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=zhaijiEvent&callid=" + parent.document.getElementById("CallHjbh").value); //更新摘机事件
- } catch (e) {
- }
- }
- });
- }
- ///外呼
- function PhoneCallOut(type, tel) {
- var usercode = document.getElementById("txtLabourwork").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- $.ajax({
- type: 'get',
- url: '/CallRecord/GetCallOutprefix/?phone=' + tel,
- dataType: 'html',
- success: function (res) {
- //"Type":"MakeCall","AgentID":"8002","AgentExten":"1001","DestinationNumber":"9018937726571"
- obj = {};
- obj.Type = "MakeCall";
- obj.AgentID = usercode;
- obj.AgentExten = extnumber;
- obj.AgentGroup = "12";
- obj.Header = res.toString();
- obj.DestinationNumber = res.toString() + tel.toString();
- Send();
- }
- });
- }
- var hfcallstate = false;
- var outtype = "";
- function SetCallState(state) {
- hfcallstate = state;
- }
- function GetCallOutHFRes() {
- if (hfcallstate) {
- hfcallstate = false;
- return true;
- }
- else {
- return false;
- }
- }
- ///外呼
- function PhoneCallOutHF(type, tel, hfid) {
- becallout = true;
- becallcome = false;
- hfcallstate = false;
- CallOutRecordIsWrite = true;
- outtype = "hf";
- //添加外呼记录
- var userid = document.getElementById("txtAgentId").value;
- var usercode = document.getElementById("txtLabourwork").value;
- var username = document.getElementById("txtAgentName").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- var timeno = new Date().getTime();
- username = encodeURI(username);
- layui.layer
- //$.ligerDialog.waitting('开始呼叫...');
- $.ajax({
- type: 'get',
- url: '/OCXOpt/OCXOptCallAjax/?optaction=callouthf&callid=' + hfid + '&callernum=' + tel + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber" + extnumber + "&timeno=" + timeno,
- dataType: 'html',
- success: function (res) {
- try {
- var DialIsOK = false;
- var arr = res.split('|');
- document.getElementById("CallHjbh").value = arr[2];
- //成功执行外呼叫
- if (arr[0] == "1") { //呼叫内部(座席)电话
- //2015-04-20
- becallout = true;
- becallcome = false;
- DialIsOK = OCX_CallOut(5, "", arr[1]);
- }
- else { //呼叫外部电话
- DialIsOK = OCX_CallOut(5, "", arr[1]);
- }
- if (DialIsOK != true) {
- alert('外呼失败');
- //$.ligerDialog.error('外呼失败');
- }
- } catch (e) {
- //$.ligerDialog.error(e.message);
- }
- //$.ligerDialog.closeWaitting();
- }
- });
- }
- function OptClick(name) {
- var obj = document.getElementById(name);
- if (obj.attributes["ostate"].value != 0) {
- switch (name) {
- case "gd":
- button_ReleaseAnswer();
- //挂断
- break;
- case "wh":
- //外呼先示忙
- //AgentBusy();
- //otype 1外呼 2转移 3多方通话
- OpenWindowShow1('telmanage/calloutopt.aspx?otype=1', '电话外呼', 800, 500);
- break;
- case "zm":
- //示忙
- AgentBusy();
- break;
- case "zx":
- AgentFree();
- break;
- case "dfth":
- //多方会话
- OpenWindowShow1('telmanage/calloutopt.aspx?otype=3', '多方通话', 800, 500);
- break;
- case "zy":
- //转移
- OpenWindowShow1('telmanage/calloutopt.aspx?otype=2', '电话转移', 800, 500);
- break;
- case "bc":
- //保持
- button_KeepCall(); //保持方法
- break;
- case "jh":
- //接回
- button_GetKeepCall();
- break;
- case "qr":
- //签入
- button_QRCall();
- break;
- case "qc":
- //签出
- button_QCCall();
- break;
- }
- }
- }
- //转移
- function ZYhj(callnumber) {
- //var zyzj = document.getElementById("forZYnumber").value;
- var usercode = document.getElementById("txtLabourwork").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- if (callnumber != "") {
- obj = {};
- obj.Type = "Transfer";
- obj.TaskType = "0"; //0:拨号外呼;1:未接来电外呼;2:回访外呼
- obj.TaskPhoneID = ""; //回访的电话ID
- obj.AgentID = usercode;
- obj.AgentExten = extnumber;
- obj.DestinationNumber = callnumber;
- Send();
- //Form_setWinfromenble("false", "false", "false", "false", "false", "false", "false", "false", "false", "false");
- }
- else {
- alert("转移失败!");
- }
- }
- //释放呼叫 2.1.8
- function button_ReleaseAnswer() {//挂机
- var usercode = document.getElementById("txtLabourwork").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- obj = {};
- obj.Type = "DropCall";
- obj.AgentID = usercode;
- obj.AgentExten = extnumber;
- Send();
- try {
- //MydTransToIVR();
- }
- catch (e) { }
- try {
- //var rtn = OCX_Hangup();
- }
- catch (e) { }
- }
- //满意度
- function MydTransToIVR() {
- var cid = document.getElementById("CallHjbh").value;
- var rtn = OCX_TransferToIVR("2", cid);
- }
- //转回IVR
- function AgentTransToIVR() {
- var usercode = document.getElementById("txtLabourwork").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- obj = {};
- obj.Type = "TurnIvr";
- obj.AgentID = usercode;
- obj.AgentExten = extnumber;
- obj.AgentGroup = "12";
- obj.IvrName = "THZIVR";
- obj.IvrPos = "1";
- ivrState = true;
- Send();
- //var cid=document.getElementById("CallHjbh").value;
- //var rtn = OCX_TransferToIVR("2", cid);
- }
- //座席示忙 2.1.12
- function AgentBusy() {
- //将座席状态设置为忙态。
- //var rtn = OCX_SetBusy();
- //2014-10-22
- //becallout = true;
- //becallcome = false;
- //rgmstate = true;
- /*2020-09-24miaofuhao注释*/
- var usercode = document.getElementById("txtLabourwork").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- if ($(".fa-pause").hasClass("selectClass")) {
- obj = {};
- obj.Type = "SayBusy";
- obj.AgentID = usercode;
- obj.AgentExten = extnumber;
- obj.AgentGroup = "12";
- obj.AgentType = "0";
- Send();
- } else {
- layer.msg('当前是置忙状态', { icon: 5, time: 2000 });
- }
- /*2020-09-24miaofuhao注释*/
- }
- //座席示闲 2.1.13
- function AgentFree() {
- //将座席状态设置为闲态。
- //var rtn = OCX_SetFree();
- //2014-10-22
- //becallout = false;
- //becallcome = true;
- //rgmstate = false;
- //return rtn;
- /*2020-09-24miaofuhao注释*/
- var usercode = document.getElementById("txtLabourwork").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- if ($(".fa-play").hasClass("selectClass")) {
- obj = {};
- obj.Type = "SayFree";
- obj.AgentID = usercode;
- obj.AgentExten = extnumber;
- obj.AgentGroup = "12";
- obj.AgentType = "0";
- Send();
- } else {
- //layer.msg('当前是置闲状态', { icon: 5, time: 2000 });
- }
- /*2020-09-24miaofuhao注释*/
- }
- //保持呼叫 2.1.17
- function button_KeepCall() {
- //该方法把座席正在通话的普通语音呼叫保持(只对语音呼叫有效)。
- var usercode = document.getElementById("txtLabourwork").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- obj = {};
- obj.Type = "Hold";
- obj.AgentID = usercode;
- obj.AgentExten = extnumber;
- Send();
- }
- //取保持 2.1.18
- function button_GetKeepCall() {
- //查询座席当前保持的所有语音呼叫
- var usercode = document.getElementById("txtLabourwork").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- obj = {};
- obj.Type = "Retrieve";
- obj.AgentID = usercode;
- obj.AgentExten = extnumber;
- Send();
- }
- function buttonCallNew(telNum) {
- becallout = true;
- becallcome = false;
- var strHjbhout = AjaxPost("../WinIVR/GetAjaxPageInf.aspx?PgType=3&tel=" + telNum); //呼叫编号
- document.getElementById("CallHjbh").value = strHjbhout;
- //判断电话是本地还是外地的
- var callNumberNew = "";
- var res = _framepage_headframe.getPhone(telNum);
- if (res != "") {
- callNumberNew = res.value;
- }
- button_CallOut(callNumberNew, strHjbhout);
- }
- //外呼事件 2.1.7
- function button_CallOut(callnumber, hjbh) {
- var res = true;
- var cssok = 0;
- cssok = OCX_CallOut(5, "", callnumber);
- if (cssok == "0") {
- res = true;
- }
- else {
- res = false;
- }
- return res;
- }
- //重新登录
- function resetlogin() {
- var bol = window.confirm("确定要重新登录吗?");
- if (bol) {
- if (document.getElementById("txtIsAgent").value == "true") {
- //button_QCCallNew();
- }
- window.open("../SignIn.aspx", "_top");
- }
- }
- //退出方法
- function relogout() {
- var bol = window.confirm("确定要退出登录吗?");
- if (bol) {
- AjaxPost("../WinIVR/GetAjaxPageInf.aspx?PgType=14");
- _framepage_headframe.UpdateLoginOutInfo(document.getElementById("hfUserId").value);
- top.close();
- }
- }
-
- </script>
- <script language="javascript" type="text/javascript">
- //退出系统
- function logout() {
- $.post("/Default/LoginOut/", function (data, states) {
- if (states == "success") {
- if (data == "success") {
- layer.confirm('确定退出系统?', { icon: 3, title: '提示' }, function (index) {
- try {
- if (document.getElementById("txtIsAgent").value == "true") {
- OCX_AgentLogOut();
- }
- }
- catch (e) {
- }
- //do something
- location.href = "/Default/Login";
- layer.close(index);
- });
- }
- }
- })
- }
- </script>
- <script type="text/javascript">
- //电话操作
- var becallout = false; //呼出
- var LogoutState;
- var becallcome = false; //来电
- var CallOutRecordIsWrite = false; //呼出记录是否已写入
- var rgmstate = false;//人工忙状态
- function ToIndex() {
- //document.getElementById("mainframe").src = "/Main/IndexCenter";
- //<i class="layui-icon"></i> <cite openid="-1">首页</cite>
- var tabIndex = -1;
- $(".layui-tab-title.top_tab li").each(function () {
- if ($(this).attr("lay-id") == 'maintab_index') {
- tabIndex = 1;
- }
- })
- if (tabIndex != 1) {
- var timeno = new Date().getTime();
- //新增一个Tab项
- element.tabAdd('bodyTab', {
- title: '<i class=\"layui-icon\"></i> <cite openid=\"-1\">首页</cite>'
- , content: '<iframe id=\"mainframe_index\" src=\"/Main/IndexCenter?timeno=' + timeno + '\"></iframe>'
- , id: 'maintab_index' //实际使用一般是规定好的id,这里以时间戳模拟下
- })
- }
- element.tabChange('bodyTab', 'maintab_index');
- element.tabMove(); //顶部窗口是否可滚动
- }
- //初始化页面
- function Init() {
- try {
- //禁止后退键 作用于Firefox、Opera
- document.onkeypress = banBackSpace;
- //禁止后退键 作用于IE、Chrome
- document.onkeydown = banBackSpace;
- }
- catch (e) { }
- //show();
- }
- //签出
- function button_QCCall() {
- try {
- var result = OCX_AgentLogOut();
- }
- catch (e) {
- document.getElementById("spanServerRes").innerHTML = e.message;
- }
- }
- function AgentQR() {
- var usercode = document.getElementById("txtLabourwork").value;
- var extnumber = document.getElementById("txtPhoneNum").value;
- var typed = document.getElementById("HdIswin"); //是否是坐席用户
- //var typed.value = true; //是否是坐席用户
- if (typed.value == "true") {
- var timeno = new Date().getTime();
-
- /*2020-09-24miaofuhao注释*/
- if (!$(".fa-phone").hasClass("selectClass")) {
- LogoutState = 1;
- Connect()
- } else {
- LogoutState = 0;
- obj = {};
- obj.Type = "Logout";
- obj.AgentID = usercode;
- obj.AgentExten = extnumber;
- Send();
- //layer.msg('您已签入,无需重新签入', { icon: 5, time: 2000 });
- }
- /*2020-09-24miaofuhao注释*/
- InitPhoneBack();
- }
- else {
- document.getElementById("spanServerRes").innerHTML = "非坐席登录";
- }
- }
- function InitPhoneBack() {
- Initialize();
- }
- function Initialize() {
- try {
- var result = OCX_AgentLogin(document.getElementById("txtMostlyAddress").value, document.getElementById("txtServerPort").value, document.getElementById("txtLabourNo").value, document.getElementById("txtAgentGroup").value + "_" + document.getElementById("txtAgentRight").value, document.getElementById("txtPhoneNum").value);
- }
- catch (e) {
- document.getElementById("spanServerRes").innerHTML = e.message;
- }
- }
- //处理键盘事件 禁止后退键(Backspace)密码或单行、多行文本框除外
- function banBackSpace(e) {
- try {
- var ev = e || window.event; //获取event对象
- var obj = ev.target || ev.srcElement; //获取事件源
- var t = obj.type || obj.getAttribute('type'); //获取事件源类型
- //获取作为判断条件的事件类型
- var vReadOnly = obj.getAttribute('readonly');
- //处理null值情况
- vReadOnly = (vReadOnly == "") ? false : vReadOnly;
- //当敲Backspace键时,事件源类型为密码或单行、多行文本的,
- //并且readonly属性为true或enabled属性为false的,则退格键失效
- var flag1 = (ev.keyCode == 8 && (t == "password" || t == "text" || t == "textarea")
- && vReadOnly == "readonly") ? true : false;
- //当敲Backspace键时,事件源类型非密码或单行、多行文本的,则退格键失效
- var flag2 = (ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea")
- ? true : false;
- //判断
- if (flag2) {
- return false;
- }
- if (flag1) {
- return false;
- }
- }
- catch (e) {
- return false;
- }
- }
- </script>
- <script type="text/javascript">
- function setLinkStatus(str) {
- //var imgServerState = document.getElementById("imgServerState");
- if (str == "True") {
- $('#imgServerState').attr('src', '/Content/images/server1.png');
- $('#imgServerState').attr('alt', '签入');
- // imgServerState.src = "/Content/images/server1.png";
- //imgServerState.alt = "签入";
- }
- else {
- $('#imgServerState').attr('src', '/Content/images/server0.png');
- $('#imgServerState').attr('alt', '未签入');
- //imgServerState.src = "/Content/images/server0.png";
- //imgServerState.alt = "未签入";
- }
- }
- function setAgentStatus(str) {
- //var imgAgentState = document.getElementById("imgAgentState");
- switch (str) {
- case "离席":
- $('#imgAgentState').attr('src', '/Content/images/zx2.png');
- $('#imgAgentState').attr('alt', '未登录');
- //imgAgentState.src = "/Content/images/zx2.png";
- //imgAgentState.alt = "未登录";
- break;
- case "空闲":
- $('#imgAgentState').attr('src', '/Content/images/zx1.png');
- $('#imgAgentState').attr('alt', '空闲');
- //imgAgentState.src = "/Content/images/zx1.png";
- //imgAgentState.alt = "空闲";
- break;
- case "忙":
- $('#imgAgentState').attr('src', '/Content/images/zx3.png');
- $('#imgAgentState').attr('alt', '忙');
- //imgAgentState.src = "/Content/images/zx3.png";
- //imgAgentState.alt = "忙";
- break;
- case "业务处理":
- $('#imgAgentState').attr('src', '/Content/images/zx4.png');
- $('#imgAgentState').attr('alt', '业务处理');
- //imgAgentState.src = "/Content/images/zx4.png";
- //imgAgentState.alt = "业务处理";
- break;
- }
- }
- //变换图标
- function Form_setWinfromenble(bl) {
- }
- function Form_setHW(bl) {
- if (bl == "True") {
- document.getElementById("txt_1").value = "1";
- document.getElementById("i_1").style.color = "#395E67";
- }
- else {
- document.getElementById("i_1").style.color = "#cccccc";
- document.getElementById("txt_1").value = "0";
- }
- }
- function Form_setZX(bl) {
- if (bl == "True") {
- document.getElementById("txt_7").value = "1";
- document.getElementById("i_7").style.color = "#395E67";
- }
- else {
- document.getElementById("i_7").style.color = "#cccccc";
- document.getElementById("txt_7").value = "0";
- }
- }
- function Form_setZM(bl) {
- if (bl == "True") {
- document.getElementById("txt_8").value = "1";
- document.getElementById("i_8").style.color = "#395E67";
- }
- else {
- document.getElementById("i_8").style.color = "#cccccc";
- document.getElementById("txt_8").value = "0";
- }
- }
- function OptNull() {
- }
- function OptNullByName(name) {
- var obj = document.getElementById(name);
- obj.src = "../images/totle/" + name + "3.png";
- obj.attributes["ostate"].value = 0;
- //obj.ostate = 0;
- obj.style.cursor = "default";
- }
- function OptByName(name) {
- var obj = document.getElementById(name);
- obj.src = "../images/totle/" + name + "1.png";
- obj.attributes["ostate"].value = 1;
- //obj.ostate = 1;
- obj.style.cursor = "hand";
- }
- </script>
- <style type="text/css">
- .defaultClass {
- color: #ffffff;
- }
- .selectClass {
- color: #83d944 !important;
- }
- .callScreen{
- width: 100%;
- height:100%;
- display: none;
- background: #dddddd;
- position: absolute;
- z-index: 111;
- }
- .F_ScaleResume2,.F_ScaleResume3,.F_ScaleResume4{
- display: none;
- }
- .sexParamNan,.sexParamNv,.sexParam{
- display: none;
- }
- .maskTask {
- width: 100%;
- position: fixed;
- opacity: .5;
- left: 0;
- top: 0;
- height: 100%;
- z-index: 1;
- background-color: #000;
- display: none;
- }
- .telLine {
- display: none;
- position: fixed;
- text-align: center;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- margin: auto;
- background: #ffffff;
- width: 1000px;
- height: 300px;
- font-size: 16px;
- z-index: 11;
- color: #000000;
- border: 1px solid #cccccc;
- overflow: hidden;
- top: -400px;
- }
- .closeBtn {
- font-size: 26px;
- font-weight: bold;
- color: #000000;
- position: absolute;
- top: 0px;
- right: 15px;
- z-index: 12;
- }
- .telLine li {
- width: 120px;
- margin: 30px 30px 0px 30px;
- line-height: 40px !important;
- float: left;
- height: 70px;
- cursor: pointer;
- color: #ffffff;
- }
- .telLine li a {
- background: #1E9FFF;
- color: #ffffff;
- }
- .telLine li dl dd a {
- background: #ffffff;
- color: #000000;
- }
- .telLine li dl{
- height: 500px;
- overflow-y: auto;
- }
- .title {
- width: 100%;
- height: 40px;
- line-height: 40px;
- text-align: center;
- background-color: #F8F8F8;
- border-bottom: 1px solid #eee;
- font-size: 20px;
- font-weight: bold;
- position: relative;
- }
- .telLine li a:hover {
-
- background: #00FFFF;
- }
- .telLine ul {
- position: fixed;
- width: 1000px;
- z-index: 12;
- background: #ffffff;
- }
- .fastReply {
- position: fixed;
- top: 50%;
- right: 0px;
- background: #01a1cb;
- padding: 10px 15px;
- color: #ffffff;
- cursor: pointer;
- }
- .quick-head .tag {
- cursor: pointer;
- padding: 0 20px;
- height: 30px;
- display: inline-block;
- border-bottom: 3px solid transparent;
- }
- .quick-head .tag .countNum{
- margin-left: 10px;
- color: #ffffff;
- background: #ff0000;
- height: 20px;
- line-height: 20px;
- padding: 0px 5px;
- border-radius: 5px;
- }
- .quick-head .action {
- border-color: #2196f3;
- }
- .quick-item {
- padding: 13px 13px 0px 13px;
- cursor: pointer;
- border-bottom: 1px solid #ccc;
- word-break: break-all;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- }
- #inputs {
- width: 0;
- height: 0;
- }
- .bookBtn{
- width: 70px;
- height: 50px;
- line-height: 65px;
-
- }
- .bookChildBtn{
- width: 60px;
- height: 50px;
- line-height:65px;
-
- }
- .F_CustomerCode{
- display: none;
- }
- .layui-table td{
- padding: 3px 0 !important;
-
- }
- .quick-list{
- height: 280px;
- overflow-y: auto;
- }
- .clickpanle{
- height: 420px;
- overflow: auto;
- }
- .popRemind{
- position:fixed;
- width:200px;
- height:120px;
- line-height:120px;
- font-size:16px;
- text-align:center;
- right:20px;
- bottom:44px;
- background:#048aad;
- color:#ffffff;
- z-index:1111;
- display:none;
- }
- </style>
- </head>
- <body onload="Init()" class="main_body blue" onbeforeunload="closeSocket()">
- <div class="layui-layout layui-layout-admin">
- <!-- 顶部 -->
- <div class="layui-header header">
- <div class="layui-main mag0">
- <a class="logo" style=" text-align:left; padding-left:15px;"><img style="height:55px;"
- src="/Content/images/logo1.png" /><span> </span>全媒体客服平台</a>
- <!-- 功能模块Id -->
- <input id="HdModuleFunIdCount" type="hidden" value="0" />
- <input id="ismonitoring" type="hidden" value="false" />
- <input id="HdIswin" type="hidden" value="@Model.IsSeat" />
- <input id="UserID" type="hidden" value="@Model.UserAccountModel.F_UserId" />
- <input id="Password" type="hidden" value="@Model.UserAccountModel.F_Password" />
- <input id="hfUserId" type="hidden" value="@Model.UserAccountModel.F_UserId" />
- <iframe src="/Main/iframeocx" name="iframeocx" frameborder="0" height="0" width="0"
- style="display: none;"></iframe>
- @*--(用于初始化用的信息)--*@
- <input id="txtMostlyAddress" type="hidden" value="@Model.CTIserverIP" />@*--(主用CTI服务器IP)*@
- <input id="ServerType" type="hidden" value="20" />@*--(服务器类型)--*@
- <input id="txtLabourNo" type="hidden"
- value="@Model.UserAccountModel.F_WorkNumber" />@*--<%=Request.Cookies["ID"].Value %>(工号)--*@
- <input id="pwd" type="hidden" value="" />@*--<%=Request.Cookies["ID"].Value %>(密码)--*@
- <input id="txtPhoneID" type="hidden" value="@Model.UserAccountModel.F_UserCode" />@*--(通讯进程号)--*@
- <input id="txtSubordinationAddress" type="hidden" value="@Model.CTIserverIP" />@*--(备用CTI服务器IP)--*@
- <input id="txtIsAgent" type="hidden" value="@Model.UserAccountModel.F_SeatFlag" />
- <!-- 是否具有话务功能,是否坐席登录 -->
- <input id="txtAgentId" type="hidden" value="@Model.UserAccountModel.F_UserId" /><!-- 坐席ID -->
- <input id="txtAgentName" type="hidden" value="@Model.UserAccountModel.F_UserName" />
- <input id="txtAgentRight" type="hidden" value="@Model.UserAccountModel.F_SeatRight" />
- <input id="txtAgentGroup" type="hidden" value="@Model.UserAccountModel.F_GroupId" />
- <input id="txtServerPort" type="hidden" value="@Model.CTIserverPort" />
- <!-- 坐席权限 -->
- @*--(用于登录的信息)--*@
- <input id="SeatType" type="hidden"
- value="@Model.UserAccountModel.F_SeatRight" />@*--<%=Request.Cookies["SkillSet"].Value %>(坐席类型)--*@
- <input id="txtPhoneNum" type="hidden"
- value="@Model.UserAccountModel.F_ExtensionNumber" />@*--<%=Request.Cookies["ExtNum"].Value %>(分机号)--*@
- <input id="keepcall" type="hidden" value="" />
- @*--(keep号码)--*@
- <input id="txtLabourwork" type="hidden" value="@Model.UserAccountModel.F_UserCode" />@*--(登录工号)--*@
- <input id="passwd" type="hidden" value="" />@*--(登录坐席密码)--*@
- <input id="hjbh" type="hidden" value="" />@*--(外乎呼叫编号)--*@
- <input id="CallHjbh" type="hidden" value="" />@*--(来电呼叫编号)--*@
- <input id="forZYnumber" type="hidden" value="" />@*--(用来存储来电号码--*@
- <input id="callnum" type="hidden" value="" />@*--(来电主叫号码)--*@
- <ul class="layui-nav topLevelMenus" pc>
- <li class="layui-nav-item" onclick="AgentQR()" data-menu="contentManagement" title="语音签入">
- <input id="txt_1" type="hidden" value="0" />
- <i id="i_1" class="fa fa-phone defaultClass" data-icon=""></i>
- <p>语音签入</p>
- </li>
- <li class="layui-nav-item" data-menu="memberCenter" pc>
- <a>
- <i id="i_2" class="layui-icon" style="color:#ffffff;" data-icon=""></i>
- <p>信息</p>
- </a>
- </li>
- <li class="layui-nav-item btnWX" data-menu="systemeSttings" pc>
- <a>
- <i id="i_3" class="fa fa-weixin defaultClass" data-icon=""></i>
- <p>微信</p>
- </a>
- </li>
- @* <li class="layui-nav-item btnWB" data-menu="seraphApi" pc>
- <a>
- <i id="i_4" class="fa fa-weibo defaultClass" data-icon=""></i>
- <p>微博</p>
- </a>
- </li> *@
- @* <li class="layui-nav-item" pc>
- <a>
- <i id="i_5" class="fa fa-th-large" style=" color:#cccccc;" data-icon=""></i>
- </a>
- </li>
- <li class="layui-nav-item" pc>
- <a><i id="i_6" class="fa fa-envelope-o" style=" color:#cccccc;" data-icon=""></i></a>
- </li> *@
- <li class="layui-nav-item" pc>
- <input id="txt_7" type="hidden" value="0" />
- <a onclick="AgentFree()" title="坐席就绪">
- <i id="i_7" class="fa fa-play defaultClass" data-icon=""></i></a>
- <p>就绪</p>
- </li>
- <li class="layui-nav-item" pc>
- <input id="txt_8" type="hidden" value="0" />
- <a onclick="AgentBusy()" title="坐席小休">
- <i id="i_8" class="fa fa-pause defaultClass" data-icon=""></i>
- <p>小休</p>
- </a>
- </li>
- </ul>
- <!-- 顶部右侧菜单 -->
- <ul class="layui-nav top_menu">
- <li class="layui-nav-item">
- <a id="telLayerInfo" style=" display:none;"><img src="/Content/images/phone128.png"
- class="layui-nav-img userAvatar" width="35" height="35"><cite class="adminName">未处理来电</cite><sup
- id="supLayerCount" class="layui-badge">0</sup> </a>
- <dl id="telLayerInfoChild" class="layui-nav-child"></dl>
- </li>
- <!--软电话-->
- <li class="layui-nav-item " title="软电话">
- <i class="fa fa-whatsapp" data-method="confirmTrans" style="font-size: 25px !important;"></i>
- @* <cite class="adminName">软电话</cite> *@
- </li>
- <li class="layui-nav-item" title="通讯录" id="customerphone" style="margin-right: 80px;">
- <i class="fa fa-address-card" style="font-size: 25px !important;"></i>
- @* <cite class="adminName">通讯录</cite> *@
- </li>
- <li class="layui-nav-item" style="margin-right: 10px;" >
- <a title="小工具">
- <i class="layui-icon" style=" font-size: 25px !important;"></i>
- @* <cite class="adminName">小工具</cite> *@
- </a>
- <dl class="layui-nav-child">
- <dd>
- <a onclick="OpenOtherForm('周边', 'https://www.amap.com/')"><i class="fa fa-map-marker"
- style="font-size: 20px !important; margin: 0px 5px;"></i><cite
- style="text-align:left">周边</cite></a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('线路查询', 'http://www.zzmetro.com/lines/query/line')"><i class="fa fa-plane"
- style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">线路查询</cite></a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('票价查询', 'http://www.zzmetro.com/lines/query/ticket')"><i class="fa fa-ticket"
- style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">票价查询</cite></a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('运营时间', 'http://www.zzmetro.com/lines/query/operating_hours')"><i
- class="fa fa-clock-o" style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">运营时间</cite></a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('站点查询', 'http://www.zzmetro.com/lines/query/station')"><i class="fa fa-train"
- style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">站点查询</cite></a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('快速通讯录', 'http://portal.zzmetro.com/index.php?m=content&c=txl')"><i
- class="fa fa-tty" style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">快速通讯录</cite></a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('官网入口', 'http://www.zzmetro.com/')"><i class="fa fa-internet-explorer"
- style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">官网入口</cite></a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('常见Q&A', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=2')"><i
- class="fa fa-quora" style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">常见Q&A</cite></a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('常用语', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=4')"><i
- class="fa fa-book" style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">常用语</cite></a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('我的常用语', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=1')"><i
- class="fa fa-rebel" style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">我的常用语</cite></a>
- </dd>
-
- </dl>
- </li>
- <li class="layui-nav-item" style="margin-right: 10px;" >
- <a title="小工具">
- <i class="layui-icon" style=" font-size: 25px !important;"></i>
- @* <cite class="adminName">小工具</cite> *@
- </a>
- <dl class="layui-nav-child">
- <dd>
- <a onclick="OpenOtherForm('失物招领', 'https://portal.zzmetro.cn:4455/zw/loginController.do?loginSign')">
- <i class="fa fa-bank" style="font-size: 19px !important; margin-right: 0px 0px 0px -5px !important;"></i>
- <cite style="text-align:left">失物招领</cite>
- </a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('公司内网', 'http://portal.zzmetro.cn:7819/manage/sso')">
- <i class="fa fa-arrows-alt" style="font-size: 20px !important; margin-right: 5px;"></i>
- <cite style="text-align:left">公司内网</cite>
- </a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('集团门户', 'https://portal.zzmetro.cn:4443/webcenter')">
- <i class="fa fa-bookmark" style="font-size: 20px !important; margin-right: 5px;"></i>
- <cite style="text-align:left">集团门户</cite>
- </a>
- </dd>
- <dd>
- <a onclick="OpenOtherForm('邮箱入口', 'https://portal.zzmetro.cn:4456/webmailsso.php')"><i class="fa fa-envelope"
- style="font-size: 20px !important; margin-right: 5px;"></i><cite
- style="text-align:left">邮箱入口</cite></a>
- </dd>
- </dl>
- </li>
- <li class="layui-nav-item" id="userInfo">
- <a><img src="@Model.UserAccountModel.F_HomePhone" class="layui-nav-img userAvatar" width="35"
- height="35"><cite class="adminName">@Model.UserAccountModel.F_UserName</cite></a>
- <dl class="layui-nav-child">
- <dd>
- <a id="userinfo"><i class="layui-icon"></i><cite>个人信息</cite></a>
- </dd>
- <dd>
- <a id="userpwd"><i class="layui-icon"> </i><cite>修改密码</cite></a>
- </dd>
- <dd>
- <a href="javascript:logout()" id="exitsystem"><i class="fa fa-power-off"> </i><cite>退出系统</cite></a>
- </dd>
- </dl>
- </li>
-
- </ul>
- </div>
- </div>
- <!-- 左侧导航 -->
- <div class="layui-side layui-bg-black">
- <div class="navBar layui-side-scroll" id="navBar">
- <ul class="layui-nav layui-nav-tree leftMenu" lay-filter="demo" lay-shrink="all">
- @if (Model != null && Model.MenuModelList != null && Model.MenuModelList.Count > 0)
- {
- int i = 0;
- foreach (T_Sys_ModuleFunctions rootNode in Model.MenuModelList)
- {
- <li class="layui-nav-item">
- @if (rootNode.F_ModuleId > 0)
- {
-
- <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
- data-url="@rootNode.F_OptUrl">
- <i class="@rootNode.F_ImgUrl defaultClass"></i> @rootNode.F_Name
- <sup class="layui-badge @rootNode.F_ModuleCode" style="display:none;margin-left:155px;">0</sup>
- </a>
- }
- else
- {
- if (rootNode.F_FunctionId == 5)
- {
- <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
- data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name<sup
- style="position:inherit;margin-left:40px;" class="layui-badge totalOrderCount">0</sup></a>
- }
- else if (rootNode.F_FunctionId == 2)
- {
- <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
- data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name<sup
- style="position:inherit;margin-left:40px; height:18px; line-height:18px; display:none" class="layui-badge wXCount">0</sup></a>
- }
- else
- {
- <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
- data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name</a>
- }
- }
- @if (rootNode.ChildMenuModelList != null && rootNode.ChildMenuModelList.Count > 0)
- {
- <dl class="layui-nav-child">
- @foreach (T_Sys_ModuleFunctions childNode in rootNode.ChildMenuModelList)
- {
- if (childNode.F_FunctionId == 16)
- {
- <dd>
- <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
- @childNode.F_Name
- <sup class="layui-badge orderNeedCount" style="margin-left:50px;">0</sup>
- </a>
- </dd>
- }
- else if (childNode.F_FunctionId == 17)
- {
- <dd>
- <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
- @childNode.F_Name
- <sup class="layui-badge orderCount" style="margin-left:50px;">0</sup>
- </a>
- </dd>
- }
- else if (childNode.F_FunctionId == 105)
- {
- <dd>
- <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
- @childNode.F_Name
- <sup class="layui-badge WorkOrderMyDealedDataCount" style="margin-left:50px;">0</sup>
- </a>
- </dd>
- }
- else if (childNode.F_FunctionId == 105)
- {
- <dd>
- <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
- @childNode.F_Name
- <sup class="layui-badge WorkOrderShenPiCount" style="margin-left:50px;">0</sup>
- </a>
- </dd>
- }
- else if (childNode.F_FunctionId == 18)
- {
- <dd>
- <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
- @childNode.F_Name
- <sup class="layui-badge orderCount" style="margin-left:50px;">0</sup>
- </a>
- </dd>
- }
- else if (childNode.F_FunctionId == 69)
- {
- <dd>
- <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
- @childNode.F_Name
- <sup class="layui-badge orderCountWb" style="margin-left:50px;">0</sup>
- </a>
- </dd>
- }
- else if (childNode.F_FunctionId == 84)
- {
- <dd>
- <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
- @childNode.F_Name
- <sup class="layui-badge orderlistHFCount" style="margin-left:50px;">0</sup>
- </a>
- </dd>
- }
- else if (childNode.F_FunctionId == 106)
- {
- <dd>
- <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
- @childNode.F_Name
- <sup class="layui-badge WorkOrderMyVisitedDataCount" style="margin-left:50px;">0</sup>
- </a>
- </dd>
- }
- else if (childNode.F_FunctionId == 86)
- {
- <dd>
- <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
- @childNode.F_Name
- <sup class="layui-badge OrderMyDataDZCount" style="margin-left:50px;">0</sup>
- </a>
- </dd>
- }
-
- else
- {
- <dd><a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon=""
- data-url="@childNode.F_OptUrl">@childNode.F_Name</a></dd>
- }
- }
- </dl>
- }
- </li>
- i++;
- }
- }
- </ul>
- </div>
- </div>
- <!-- 右侧内容 -->
-
- <div class="layui-body layui-form">
- <iframe id="mainframe" src="/Main/IndexCenter"></iframe>
- <div class="callScreen">
- <blockquote class="layui-elem-quote layui-text" style="font-size: larger; display: none;">
- 来电弹屏
- </blockquote>
- <div class="maskTask"></div>
- <div class="telLine">
- <div class="title">转接信息<span class="closeBtn">×</span></div>
- <div class="telLineUl">
- <ul class="layui-nav">
-
- </ul>
- </div>
- </div>
- <div class="layui-fluid">
- <div class="layui-row layui-col-space15">
- <div class="layui-col-md9">
- <form class="layui-form layui-card">
- <input id="F_CustomerId" value="" type="hidden" />
- <input id="workOrderNum" value="" type="hidden" />
- <input id="F_ScaleResume" value="1" type="hidden" />
- <input id="F_CustomerClass" value="一般客户" type="hidden" />
-
- <div class="layui-card-header">
- <label class="layui-form-label">
- 电话号码:
- </label>
- <span id="F_Telephone" class="layui-form-label"></span>
- <span id="F_CustomerLayer" style="width:120px;text-align:left" class="layui-form-label"></span>
- <div style="float: right;">
- <div class="layui-btn-group">
-
- @* 普通 *@
- <div class="F_ScaleResume1 F_ScaleResume">
- <div id="historyCustom" class="layui-btn layui-btn-normal bookChildBtn" onclick="btnOpt(1)" style="width: 70px;">
- <i class="fa fa-address-card-o"style="font-size: 24px; "></i>
- </div>
- <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
- style="width: 60px; border-left:none">
- <i class="fa fa-heart"
- style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
-
- </div>
-
- <div title="白名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(10)"
- style="width: 60px; border-left:none; background:#cccccc;">
- <i class="fa fa-user-plus"
- style="font-size: 32px !important; margin-left :0px; margin-top:0px; color:#ffffff;"></i>
-
- </div>
- <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
- style="width: 60px; border-left:none">
- <i class="fa fa-user-times"
- style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
-
- </div>
- </div>
- @* 特别 *@
- <div class="F_ScaleResume2 F_ScaleResume">
- <div id="historyCustom" class="layui-btn layui-btn-normal bookChildBtn" onclick="btnOpt(1)" style="width: 50px;">
- <i class="fa fa-address-card-o" style="font-size: 24px; "></i>
- </div>
- <div title="关注度" class="layui-btn layui-btn-warm careCustom bookChildBtn" onclick="btnOpt(2)"
- style="width: 170px;border-left:none">
- <i class="fa fa-heart"
- style="font-size: 32px !important; margin-left :0px;margin-top:0px;color:deeppink;"></i>
-
- </div>
- <div title="白名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(10)"
- style="width: 60px;border-left:none; background:#cccccc;">
- <i class="fa fa-user-plus"
- style="font-size: 32px !important; margin-left :0px; margin-top:0px; color:#ffffff;"></i>
- </div>
- <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
- style="width: 60px;border-left:none">
- <i class="fa fa-user-times"
- style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#000000;"></i>
- </div>
- </div>
- @* 黑名单 *@
- <div class="F_ScaleResume3 F_ScaleResume">
- <div id="historyCustom" class="layui-btn layui-btn-normal bookChildBtn" onclick="btnOpt(1)" style="width: 50px;">
- <i class="fa fa-address-card-o" style="font-size: 24px; "></i>
- </div>
- <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
- style="border-left:none">
- <i class="fa fa-heart"
- style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
-
- </div>
- <div title="白名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(10)"
- style="width: 60px;border-left:none; background:#cccccc;">
- <i class="fa fa-user-plus"
- style="font-size: 32px !important; margin-left :0px; margin-top:0px; color:#ffffff;"></i>
- </div>
- <div title="黑名单" class="layui-btn layui-btn-danger blackCustom bookChildBtn" onclick="btnOpt(3)"
- style="width: 170px; border-left: none">
- <i class="fa fa-user-times"
- style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:black;">黑名单</i>
- </div>
- </div>
- @* 白名单 *@
- <div class="F_ScaleResume4 F_ScaleResume">
- <div id="historyCustom" class="layui-btn layui-btn-normal bookChildBtn" onclick="btnOpt(1)" style="width: 50px;">
- <i class="fa fa-address-card-o" style="font-size: 24px; "></i>
- </div>
- <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
- style="width: 60px;border-left:none">
- <i class="fa fa-heart"
- style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
-
- </div>
- <div title="白名单" class="layui-btn layui-btn-danger blackCustom bookChildBtn" onclick="btnOpt(10)"
- style="width: 170px; border-left: none">
- <i class="fa fa-user-plus"
- style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:cccccc;">白名单</i>
- </div>
- <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
- style="width: 60px;border-left:none">
- <i class="fa fa-user-times"
- style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
- </div>
- </div>
- </div>
-
- <div class="layui-btn-group " style="position: relative; height:50px; margin-top:-10px">
- <div title="挂断" class="layui-btn layui-btn-danger layui-btn-sm" onclick="btnOpt(4)"
- style="width: 70px;height:50px;">
- <i class="layui-icon"></i>
-
- <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 挂断</span>
- </div>
- <div title="转回IVR" class="layui-btn layui-btn-normal layui-btn-sm" onclick="btnOpt(8)"
- style="width: 70px;height:50px;">
- <i class="fa fa-volume-control-phone"></i>
- <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px -3px; display:block; text-align: left;"> 转回IVR</span>
- </div>
- <div title="保持" class="layui-btn layui-btn-warm layui-btn-sm" onclick="btnOpt(5)" style="width: 70px;height:50px;">
- <i class="fa fa-microphone-slash"></i>
- <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 保持</span>
- </div>
- <div title="接回" class="layui-btn layui-btn-warm layui-btn-sm" onclick="btnOpt(6)" style="width: 70px;height:50px;">
- <i class="fa fa-microphone"></i>
- <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 接回</span>
- </div>
- <div title="转移" class="layui-btn layui-btn-normal layui-btn-sm" onclick="btnOpt(7)"
- style="width: 70px;height:50px;">
- <i class="layui-icon"></i>
- <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 转移</span>
- </div>
- <div title="一键转接" class="layui-btn layui-btn-normal layui-btn-sm keySwitch" style="width: 70px;height:50px;">
- <i class="fa fa-users"></i>
- <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px -10px; display:block; text-align: left;"> 一键转接</span>
- </div>
- </div>
- </div>
- </div>
- <div class="layui-card-body">
- <div class="layui-row layui-col-space15">
- <div class="layui-col-md4">
- <label class="layui-form-label">
- 姓名:
- </label>
- <div class="layui-input-block">
- <input type="text" id="F_CustomerName"
- value="" placeholder="" autocomplete="off"
- class="layui-input" />
- </div>
- </div>
- <div class="layui-col-md4">
- <label class="layui-form-label">
- 性别:
- </label>
-
- <input id="F_CustomerPym" type="hidden"></input>
- <div class="layui-input-block sexParamNan">
-
- <input type="radio" name="F_CustomerPymNa" value="男" title="男" checked=""/>
- <input type="radio" name="F_CustomerPymNa" value="女" title="女" />
-
- </div>
-
- <div class="layui-input-block sexParamNv">
-
- <input type="radio" name="F_CustomerPymNv" value="男" title="男" />
- <input type="radio" name="F_CustomerPymNv" value="女" title="女" checked=""/>
-
- </div>
-
- <div class="layui-input-block sexParam">
-
- <input type="radio" name="F_CustomerPym" value="男" title="男" />
- <input type="radio" name="F_CustomerPym" value="女" title="女" checked=""/>
-
- </div>
-
- </div>
-
- <div class="layui-col-md4" style="display: flex;">
- <label class="layui-form-label">
- 年龄段:
- </label>
- <input id="F_CustomerCode" type="hidden"></input>
- <div class="layui-input-inline F_CustomerCode F_CustomerCodeNew">
- <select id="F_CustomerCodeNew" lay-search="">
- <option value=""></option>
- <option value="20以下">20以下</option>
- <option value="20~30">20~30</option>
- <option value="30~40">30~40</option>
- <option value="40~50">40~50</option>
- <option value="50以上">50以上</option>
- </select>
- </div>
-
- <div class="layui-input-inline F_CustomerCode F_CustomerCode20">
- <select id="F_CustomerCode20" lay-search="">
- <option value=""></option>
- <option value="20以下" selected>20以下</option>
- <option value="20~30">20~30</option>
- <option value="30~40">30~40</option>
- <option value="40~50">40~50</option>
- <option value="50以上">50以上</option>
- </select>
- </div>
-
- <div class="layui-input-inline F_CustomerCode F_CustomerCode30">
- <select id="F_CustomerCode30" lay-search="">
- <option value=""></option>
- <option value="20以下">20以下</option>
- <option value="20~30" selected>20~30</option>
- <option value="30~40">30~40</option>
- <option value="40~50">40~50</option>
- <option value="50以上">50以上</option>
- </select>
- </div>
-
- <div class="layui-input-inline F_CustomerCode F_CustomerCode40">
- <select id="F_CustomerCode40" lay-search="">
- <option value=""></option>
- <option value="20以下">20以下</option>
- <option value="20~30">20~30</option>
- <option value="30~40" selected>30~40</option>
- <option value="40~50">40~50</option>
- <option value="50以上">50以上</option>
- </select>
- </div>
-
- <div class="layui-input-inline F_CustomerCode F_CustomerCode50">
- <select id="F_CustomerCode50" lay-search="">
- <option value=""></option>
- <option value="20以下">20以下</option>
- <option value="20~30">20~30</option>
- <option value="30~40">30~40</option>
- <option value="40~50" selected>40~50</option>
- <option value="50以上">50以上</option>
- </select>
- </div>
-
- <div class="layui-input-inline F_CustomerCode F_CustomerCode51">
- <select id="F_CustomerCode51" lay-search="">
- <option value=""></option>
- <option value="20以下">20以下</option>
- <option value="20~30">20~30</option>
- <option value="30~40">30~40</option>
- <option value="40~50">40~50</option>
- <option value="50以上" selected>50以上</option>
- </select>
- </div>
-
- </div>
- <div class="layui-col-md4">
- <label class="layui-form-label">
- 微信号:
- </label>
- <div class="layui-input-block">
- <input id="F_CustomerEName" value=""
- autocomplete="off" placeholder="" class="layui-input" type="text" />
- </div>
- </div>
- <div class="layui-col-md4">
- <label class="layui-form-label">
- 微博号:
- </label>
- <div class="layui-input-block">
- <input id="F_PostCode" value=""
- autocomplete="off" placeholder="" class="layui-input" type="text" />
- </div>
- </div>
- </div>
- </div>
- </form>
- <div class="layui-card layui-form" lay-filter="component-form-element">
- <div class="layui-card-header setLine">
- <ul class="layui-nav lineState" data-attr="1" style="font-size: 14px; text-align: center;"><a href="javascript:;"
- style="color: #cccccc;">一号线</a></ul>
- <ul class="layui-nav lineState" data-attr="2" style="font-size: 14px; text-align: center;"><a href="javascript:;"
- style="color: #cccccc;">二号线</a></ul>
- <ul class="layui-nav lineState" data-attr="3" style="font-size: 14px; text-align: center;"><a href="javascript:;"
- style="color: #cccccc;">三号线</a></ul>
- <ul class="layui-nav lineState" data-attr="4" style="font-size: 14px; text-align: center;"><a href="javascript:;"
- style="color: #cccccc;">四号线</a></ul>
- <ul class="layui-nav lineState" data-attr="5" style="font-size: 14px; text-align: center;"><a href="javascript:;"
- style="color: #cccccc;">五号线</a></ul>
- <ul class="layui-nav lineState" data-attr="14" style="font-size: 14px; text-align: center;"><a href="javascript:;"
- style="color: #cccccc;">十四号线</a></ul>
- <ul class="layui-nav lineState" data-attr="100" style="font-size: 14px; text-align: center;"><a href="javascript:;"
- style="color: #cccccc;">城郊线</a></ul>
- <ul class="layui-nav lineState" data-attr="101" style="font-size: 14px; text-align: center;"><a href="javascript:;"
- style="color: #cccccc;">其它线路</a></ul>
- </div>
- <div class="layui-card-header" id="ModelList">
- </div>
- </div>
- <div class="layui-card layui-form" lay-filter="component-form-element">
- <div class="layui-card-header">
- 历史工单
- </div>
- <div id="content" class="flowContent">
- <table class="layui-table" id="test" lay-filter="demo111">
- </table>
-
- </div>
- </div>
- </div>
-
- <div class="layui-col-md3">
- <div class="layui-card">
- <div class="layui-card-header">
- 快捷入口
- </div>
- <div class="layui-card-body" style="text-align: center;">
- <div class="layui-form" action="" lay-filter="component-form-element">
- <button class="layui-btn layui-btn-radius layui-btn-primary"
- onclick="OpenOtherForm('周边', 'https://www.amap.com/')" style="width: 150px;">
- 周边
- </button>
- <div style="height: 3px;">
-
- </div>
- <button class="layui-btn layui-btn-radius layui-btn-primary"
- onclick="OpenOtherForm('线路查询','http://www.zzmetro.com/lines/query/line')" style="width: 150px;">
- 线路查询
- </button>
- <div style="height: 3px;">
-
- </div>
- <button class="layui-btn layui-btn-radius layui-btn-primary"
- onclick="OpenOtherForm('票价查询','http://www.zzmetro.com/lines/query/ticket')" style="width: 150px;">
- 票价查询
- </button>
- <div style="height: 3px;">
-
- </div>
- <button class="layui-btn layui-btn-radius layui-btn-primary"
- onclick="OpenOtherForm('运营时间','http://www.zzmetro.com/lines/query/operating_hours')"
- style="width: 150px;">
- 运营时间
- </button>
- <div style="height: 3px;">
-
- </div>
- <button class="layui-btn layui-btn-radius layui-btn-primary"
- onclick="OpenOtherForm('站点查询','http://www.zzmetro.com/lines/query/station')" style="width: 150px;">
- 站点查询
- </button>
- <div style="height: 3px;">
-
- </div>
- <button class="layui-btn layui-btn-radius layui-btn-primary"
- onclick="OpenOtherForm('快速通讯录','http://portal.zzmetro.com/index.php?m=content&c=txl')"
- style="width: 150px;">
- 快速通讯录
- </button>
- <div style="height: 3px;">
-
- </div>
- <button class="layui-btn layui-btn-radius layui-btn-primary"
- onclick="OpenOtherForm('官网入口','http://www.zzmetro.com/')" style="width: 150px;">
- 官网入口
- </button>
- </div>
- </div>
- </div>
- <div class="layui-card">
- <div class="layui-card-header">
- 快捷回复
- </div>
- <div class="layui-card-header" style="display: inline-block;">
- <input type="text" style="width: 200px; display: inline;" placeholder="" autocomplete="off"
- class="layui-input" id="keyWord">
- <button class="layui-btn layui-btn-normal layui-btn-normal serchBtn">
- <i class="layui-icon"> 查 询</i>
- </button>
- </div>
- <div class="layui-card-body">
- <div class="quick-head">
- <span class="tag action" data-attr="0">公共回复<span class="countNum gyNum"> </span></span>
- <span class="tag" data-attr="1">私有回复<span class="countNum syNum"> </span></span>
- </div>
- <div class="quick-list"></div>
- </div>
- </div>
- </div>
- @* <div class="fastReply">快捷回复</div> *@
- </div>
- </div>
- <textarea id="inputs" type="hidden"></textarea>
- </div>
- </div>
-
- <!-- 底部 -->
- <div class="layui-footer footer">
- <div style="float: left; padding-left: 8px;" id="TelState">
- <div style="float: left; padding-top: 4px;">
- 服务状态:
- </div>
- <div style="float: left; padding-top: 3px;">
- <img id="imgServerState" src="/Content/images/server0.png" alt="未连接" />
- </div>
- <div style="float: left; padding-top: 3px;">
- 坐席状态:
- </div>
- <div style="float: left; padding-top: 3px;">
- <img id="imgAgentState" src="/Content/images/zx2.png" alt="未登录" />
- </div>
- <div style="float: left; padding-top: 3px;">
- 排队数量:
- </div>
- <div style="float: left; padding-top: 3px;">
- <span id="spanqueuingnum" class="layui-badge">0</span>
- </div>
- <div style="float: left; padding-top: 3px;">
- <span id="spanServerRes" style="color: #eeeeee;"></span>
- </div>
- </div>
- <div style="float:right;">
- <p><span>© 版权所有 郑州地铁集团运营分公司</span></p>
- </div>
- </div>
- </div>
- <div class="popRemind">
- <div>系统掉线,请重新签入!</div>
- </div>
- <!-- 移动导航 -->
- @*<div class="site-tree-mobile"><i class="layui-icon"></i></div>
- <div class="site-mobile-shade"></div>*@
- <script type="text/javascript">
- function OpenOtherForm(title, url) {
- window.open(url, title);
- //top.OCX_OpenOtherForm(title, url);
- }
- </script>
- <script src="/Content/layui/layui.js"></script>
- <script src="/Content/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
- @*<script type="text/javascript" src="/Content/js/index.js" charset="utf-8"></script>*@
- <script type="text/javascript" src="/Content/js/cache.js"></script>
- <script src="/Content/js/myindex.js" type="text/javascript" charset="utf-8"></script>
- <script src="~/Content/js/passWord/pwdValueDate.js"></script>
- <script src="/Content/js/CallRecord/callscreen.js"></script>
- <script src="/Content/js/WorkOrder/workorderalllist.js" charset="utf-8"></script>
- <script src="/Content/layui/formatdate.js"></script>
- <script>
- layui.use(['layer', 'jquery'], function () {
- var form = layui.form,
- layer = parent.layer === undefined ? layui.layer : parent.layer,
- $ = layui.jquery;
- $(".fa-whatsapp").click(function () {
- if ($("#HdIswin").val()) {
- layer.open({
- type: 2,
- anim: 4,
- scrollbar: false,
- content: '/Main/PhoneCall',
- area: ['400px', '420px'],
- id: 'PhoneCall',
- title: '软电话'
- });
- }
- else {
- layer.msg('无权限', { icon: 5, time: 2000 });
- return;
- }
- });
- })
- </script>
- <script type="text/javascript">
- function telajaxopt(opturl) {
- var r = "";
- try {
- $.ajax({
- type: 'get',
- url: opturl,
- dataType: 'html',
- async: false,
- cache: false,
- success: function (res) {
- r = res;
- }
- });
- }
- catch (e) {
- //$.ligerDialog.error(e.message);
- }
- return r;
- }
- //电话操作事件
- //话机状态改变事件
- function OnPhoneStatusNotify(status) {
- var timeno = new Date().getTime();
- //document.getElementById("spanServerRes").innerHTML = "状态:" + status;
- }
- //获取APPID
- function GetAPPID() {
- var cid = OCX_GetCallID("");
- //更新APPID
- return cid;
- }
- function UpdateRecPath() {
- var appid = "";
- appid = GetAPPID();
- var timeno = new Date().getTime();
- var callID = document.getElementById("CallHjbh").value;
- telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=luyinEvent&callid=" + callID + "&path=" + appid + "&timeno=" + timeno); //录音开始事件
- }
- //录音成功
- function Form_callComming(callerNum, parth) {
- var timeno = new Date().getTime();
- telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=luyinEvent&callid=" + document.getElementById("CallHjbh").value + "&path=" + parth + "&timeno=" + timeno); //录音开始事件
- //Form_setWinfromenble("True", "false", "false", "false", "True", "True", "True", "false", "false", "false");
- }
- function getCallerNum() {
- var calnum = document.getElementById("callnum").value;
- return calnum;
- }
- function clearCallerNum() {
- document.getElementById("callnum").value = "";
- }
- function getCallHjbh() {
- var cid = document.getElementById("CallHjbh").value;
- return cid;
- }
- function clearCallHjbh() {
- document.getElementById("CallHjbh").value = "";
- }
- </script>
- <script>
- var tellayercount = 0;
- var nowtime = "";
- var arrLayerTime = new Array();
- function ShowLayerByTimes(times) {
- nowtime = times;
- var aid = "layui-layer" + times;
- //$('#' + aid).show();
- $("#" + aid).find(".layui-layer-max").click();
- }
- function CloseLayerByTimes(times) {
- var aid = "layui-layer" + times;
- //$('#' + aid).show();
- $("#" + aid).find(".layui-layer-close").click();
- }
- function CloseLayerNow() {
- var aid = "layui-layer" + nowtime;
- //$('#' + aid).show();
- $("#" + aid).find(".layui-layer-close").click();
- }
- function InitTelLayerList() {
- var html = "";
- for (var ai = 0; ai < arrLayerTime.length; ai++) {
- var atime = arrLayerTime[ai];
- var aid = "layui-layer" + atime;
- var title = $('#' + aid + ' .layui-layer-title').text();
- var sindex = title.indexOf('-');
- title = title.substr(0, sindex);
- html += "<dd><a href=\"javascript:ShowLayerByTimes(" + atime + ");\" ><i class=\"fa fa-phone\"></i><cite>" + title + "</cite></a></dd>";
- }
- $('#telLayerInfoChild').html(html);
- }
- function CloseOpenTel(atime) {
- tellayercount--;
- if (tellayercount <= 0) {
- tellayercount = 0;
- document.getElementById("telLayerInfo").style.display = "none";
- }
- document.getElementById("supLayerCount").innerHTML = tellayercount;
- //var atime = layero.attr("times");
- var sindex = arrLayerTime.indexOf(atime);
- if (sindex > -1) {
- arrLayerTime.splice(sindex, 1);
- }
- InitTelLayerList();
- }
- function OpenTelLayer(t, urlSrc) {//多窗口模式,层叠置顶
- layui.use(['element', 'layer'], function () {
- var element = layui.element,
- layer = layui.layer; //获得layer模块
- layer.open({
- type: 2 //此处以iframe举例
- , title: t
- , area: ['80%', '80%']
- , shade: 0
- , maxmin: true
- , content: urlSrc
- , zIndex: layer.zIndex //重点1
- , success: function (layero) {
- tellayercount++;
- document.getElementById("supLayerCount").innerHTML = tellayercount;
- document.getElementById("telLayerInfo").style.display = "inline";
- layer.setTop(layero); //重点2
- nowtime = layero.attr("times");
- arrLayerTime.push(layero.attr("times"));
- InitTelLayerList();
- }, min: function (layero) {
- //setTimeout(function () { layero.css({ left:"180px",width:"280px" }); }, 0);
- //alert(layero.attr("times"));
- //var w = document.body.clientWidth;
- //var rowcount = w / 181;
- //for (var i = 0; i < arrLayerTime.length; i++) {
- // var atime = arrLayerTime[i];
- // var id = "layui-layer" + atime;
- // var obj = document.getElementById(id);
- //}
- var atime = layero.attr("times");
- var aid = "layui-layer" + atime;
- //$('#' + aid).hide();
- setTimeout(function () { layero.css({ width: "0px", height: "0px" }); }, 0);
- }, cancel: function (index, layero) {
- CloseOpenTel(layero.attr("times"));
- }
- });
- });
- }
- function tabMove() {
- $(window).on("resize", function (event) {
- var topTabsBox = $("#top_tabs_box"),
- topTabsBoxWidth = $("#top_tabs_box").width(),
- topTabs = $("#top_tabs"),
- topTabsWidth = $("#top_tabs").width(),
- tabLi = topTabs.find("li.layui-this"),
- top_tabs = document.getElementById("top_tabs"),
- event = event || window.event;
- try {
- if (topTabsWidth > topTabsBoxWidth) {
- if (tabLi.position().left > topTabsBoxWidth || tabLi.position().left + topTabsBoxWidth > topTabsWidth) {
- topTabs.css("left", topTabsBoxWidth - topTabsWidth);
- } else {
- topTabs.css("left", -tabLi.position().left);
- }
- //拖动效果
- var flag = false;
- var cur = {
- x: 0,
- y: 0
- }
- var nx, dx, x;
- function down() {
- flag = true;
- var touch;
- if (event.touches) {
- touch = event.touches[0];
- } else {
- touch = event;
- }
- cur.x = touch.clientX;
- dx = top_tabs.offsetLeft;
- }
- function move() {
- var self = this;
- if (flag) {
- window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
- var touch;
- if (event.touches) {
- touch = event.touches[0];
- } else {
- touch = event;
- }
- nx = touch.clientX - cur.x;
- x = dx + nx;
- if (x > 0) {
- x = 0;
- } else {
- if (x < topTabsBoxWidth - topTabsWidth) {
- x = topTabsBoxWidth - topTabsWidth;
- } else {
- x = dx + nx;
- }
- }
- top_tabs.style.left = x + "px";
- //阻止页面的滑动默认事件
- document.addEventListener("touchmove", function () {
- event.preventDefault();
- }, false);
- }
- }
- //鼠标释放时候的函数
- function end() {
- flag = false;
- }
- //pc端拖动效果
- topTabs.on("mousedown", down);
- topTabs.on("mousemove", move);
- $(document).on("mouseup", end);
- //移动端拖动效果
- topTabs.on("touchstart", down);
- topTabs.on("touchmove", move);
- topTabs.on("touchend", end);
- } else {
- //移除pc端拖动效果
- topTabs.off("mousedown", down);
- topTabs.off("mousemove", move);
- topTabs.off("mouseup", end);
- //移除移动端拖动效果
- topTabs.off("touchstart", down);
- topTabs.off("touchmove", move);
- topTabs.off("touchend", end);
- topTabs.removeAttr("style");
- return false;
- }
- }
- catch (e) {
- alert(e.message);
- }
- }).resize();
- }
- var tabFilter, menu = [], liIndex, curNav, delMenu,
- changeRefreshStr = window.sessionStorage.getItem("changeRefresh");
- layui.use('element', function () {
- var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
- var pwd = $("#Password").val();
- if (checkStrong(pwd) == "0" || checkStrong(pwd) == "1") {
- layer.open({
- content: '密码等级太低,请先修改密码'
- , btn: ['好的', '稍后再去']
- , yes: function (index, layero) {
- layer.close(index);
- //AddTabPage('editpsd', 'fa fa-lock', '', '修改密码','/SystemManage/UserPwdEdit');
- document.getElementById("mainframe").src = "/SystemManage/UserPwdEdit";
- }
- });
- }
- $("#userpwd").click(function () {
- document.getElementById("mainframe").src = "/SystemManage/UserPwdEdit";
- //AddTabPage('editpsd', 'fa fa-lock', '', '修改密码', '/SystemManage/UserPwdEdit');
- });
- $("#customerphone").click(function () {
- document.getElementById("mainframe").src = "/HrEmployeeBase/EmployeeSearchList";
- });
- $("#userinfo").click(function () {
- document.getElementById("mainframe").src = "/SystemManage/UserView";
-
- });
- //转主页
- $(".logo").on("click", function () { //此处添加禁止连续点击刷新一是为了降低服务器压力,另外一个就是为了防止超快点击造成chrome本身的一些js文件的报错(不过貌似这个问题还是存在,不过概率小了很多)
- var timeno = new Date().getTime();
- document.getElementById("mainframe").src = "/Main/IndexCenter?timeno=" + timeno;
- })
- //监听导航点击
- element.on('nav(demo)', function (elem) {
- // layer.msg(elem.text());
- var urlSrc = $(this).find("a").attr("data-url");
- var aname = $(this).find("a").attr("aname");
- var aid = $(this).find("a").attr("id");
- var aicon = $(this).find("a").attr("aicon");
- var nullicon = "";
- if (aicon == "") {
- aicon = "layui-icon layui-icon-tabs";
- nullicon = "";
- }
- var cssClass = $(this).find("a").find("i").attr("class");
- if (cssClass != null && (cssClass.indexOf("fa-weibo") > 0 || cssClass.indexOf("fa-weixin")) && cssClass.indexOf("selectClass") <= 0) {
- alert("未签入!")
- return;
- }
- var timeno = new Date().getTime();
- if (urlSrc != "") {
- if (urlSrc == "/ScreenDisplay/MainScreen") {
- OpenOtherForm("郑州地铁客服中心大屏数据展示", "http://" + window.location.host + urlSrc + "/");
- }
- else {
- if (urlSrc.indexOf("CallRecord/CallScreen") >= 0) {
- //OpenTelLayer('18695836988-来电', urlSrc);
- document.getElementById("mainframe").src = urlSrc;
- }
- else {
- if (urlSrc.indexOf('?') < 0) {
- document.getElementById("mainframe").src = urlSrc + "?timeno=" + timeno + "";
- //var tabIndex = -1;
- //$(".layui-tab-title.top_tab li").each(function () {
- // if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
- // tabIndex = 1;
- // }
- //})
- //if (tabIndex != 1) {
- // //新增一个Tab项
- // element.tabAdd('bodyTab', {
- // title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">ဆ</i>'
- // , content: '<iframe id=\"mainframe_' + aid + '\" scrolling=\"auto\" src=\"' + urlSrc + '?timeno=' + timeno + '\"></iframe>'
- // , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
- // })
- //}
- //element.tabChange('bodyTab', 'maintab_' + aid + '');
- //tabMove(); //顶部窗口是否可滚动
- }
- else {
- document.getElementById("mainframe").src = urlSrc + "&timeno=" + timeno + "";
- //try {
- // var tabIndex = -1;
- // $(".layui-tab-title.top_tab li").each(function () {
- // if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
- // tabIndex = 1;
- // }
- // })
- // if (tabIndex != 1) {
- // //新增一个Tab项
- // element.tabAdd('bodyTab', {
- // title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">ဆ</i>'
- // , content: '<iframe id=\"mainframe_' + aid + '\" scrolling=\"auto\" src=\"' + urlSrc + '&timeno=' + timeno + '\"></iframe>'
- // , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
- // })
- // }
- // element.tabChange('bodyTab', 'maintab_' + aid + '');
- // //setTimeout(alert(1), 5000);
- // tabMove(); //顶部窗口是否可滚动
- // //if (aid == "2" || aid == "3") {
- // // alert("加载完成");
- // //}
- //}
- //catch (e) {
- // alert(e.message);
- //}
- }
- }
- }
- //if (urlSrc.indexOf('?') < 0) {
- // document.getElementById("mainframe").src = urlSrc + "?timeno=" + timeno + "";
- //}
- //else {
- // document.getElementById("mainframe").src = urlSrc + "&timeno=" + timeno + "";
- //}
- }
- });
- });
- $("#navBar .layui-nav-item").click(function () {
- $("#navBar .layui-nav-item").removeClass("layui-nav-itemed");
- $("#navBar .layui-nav-item").removeClass("layui-this");
- if ($(this).has('dl').length) {//如果有子菜单,显示下拉样式
- $(this).addClass("layui-nav-itemed");
- } else {//如果没有子菜单,显示菜单项样式
- $(this).addClass("layui-this");
- }
- });
- </script>
- </body>
- <script type="text/javascript">
- ///获取微信消息
- ///1、微信 2、微博
- function GetWxMessageCount(messageType, className) {
- $.ajax({
- url: "/OtherPage/GetWebChartCount",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: false,
- data: { "pageType": messageType },
- success: function (result, status) {
- if (status) {
- $(className).html(result);
- }
- }
- });
- }
- //微信
- var wX;
- function wXTimedCount() {
- GetWxMessageCount(1, ".wXCount");
- wX = setTimeout("wXTimedCount()", 60000)
- }
- $(".btnWX").click(function () {
- var rgs = $(".fa-weixin").hasClass("defaultClass");
- if (rgs) {
- $(".fa-weixin").removeClass("defaultClass");
- $(".fa-weixin").addClass("selectClass");
- $(".wXCount").css("display", "inline");
- wXTimedCount();
- }
- else {
- $(".fa-weixin").removeClass("selectClass");
- $(".fa-weixin").addClass("defaultClass");
- $(".wXCount").css("display", "none");
- clearTimeout(wX);
- }
- });
- //微博
- var wB;
- function wBTimedCount() {
- GetWxMessageCount(2, ".wBCount");
- wB = setTimeout("wBTimedCount()", 60000)
- }
- $(".btnWB").click(function () {
- var rgs = $(".fa-weibo").hasClass("defaultClass");
- if (rgs) {
- $(".fa-weibo").removeClass("defaultClass");
- $(".fa-weibo").addClass("selectClass");
- $(".wBCount").css("display", "block");
- wBTimedCount();
- }
- else {
- $(".fa-weibo").removeClass("selectClass");
- $(".fa-weibo").addClass("defaultClass");
- $(".wBCount").css("display", "none");
- clearTimeout(wB);
- }
- });
- //待办工单
- function MyOrderCount() {
-
- try {
- //补录工单
- if ($(".orderNeedCount") != undefined) {
- $.ajax({
- url: "/OtherPage/GetMyOrderNeedCount/",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: true,
- data: null,
- success: function (result, status) {
- if (status) {
- $(".orderNeedCount").html(result);
- }
- }
- });
- }
- //已处理撤回
- if ($(".WorkOrderMyDealedDataCount") != undefined) {
- $.ajax({
- url: "/Order/WorkOrderMyDealedDataCount/",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: true,
- data: null,
- success: function (result, status) {
- if (status) {
- $(".WorkOrderMyDealedDataCount").html(result);
- }
- }
- });
- }
- //已回访撤回
- if ($(".WorkOrderMyVisitedDataCount") != undefined) {
- $.ajax({
- url: "/Order/WorkOrderMyVisitedDataCount/",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: true,
- data: null,
- success: function (result, status) {
- if (status) {
- $(".WorkOrderMyVisitedDataCount").html(result);
- }
- }
- });
- }
- //审核工单
- if ($(".WorkOrderShenPiCount") != undefined) {
- $.ajax({
- url: "/Order/WorkOrderShenPiCount/",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: true,
- data: null,
- success: function (result, status) {
- if (status) {
- $(".WorkOrderShenPiCount").html(result);
- }
- }
- });
- }
-
- //待办工单
- if ($(".orderCount") != undefined) {
- $.ajax({
- url: "/OtherPage/GetMyOrderCount/",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: true,
- data: null,
- success: function (result, status) {
- if (status) {
- $(".orderCount").html(result);
- }
- }
- });
- }
- //回访工单
- if ($(".orderlistHFCount") != undefined) {
- $.ajax({
- url: "/Order/WorkOrderMyDataHFCount/",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: true,
- data: null,
- success: function (result, status) {
- if (status) {
- $(".orderlistHFCount").html(result);
- }
- }
- });
- }
- //待定责工单
- if ($(".OrderMyDataDZCount") != undefined) {
- $.ajax({
- url: "/Order/WorkOrderMyDataDZCount/",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: true,
- data: null,
- success: function (result, status) {
- if (status) {
- $(".OrderMyDataDZCount").html(result);
- }
- }
- });
- }
- setTimeout("MyOrderCount()", 5000);
- setTimeout("allOrderTotal()", 3000);
-
- }
- catch (e) {
- }
- }
- function allOrderTotal(){
- if ($(".orderCount") != undefined
- || $(".orderNeedCount") != undefined
- || $(".orderlistHFCount")!= undefined
- || $(".OrderMyDataDZCount")!=undefined
- || $(".WorkOrderMyDealedDataCount")!=undefined
- || $(".WorkOrderShenPiCount")!=undefined
- || $(".WorkOrderMyVisitedDataCount")!=undefined) {
-
- var totalOrderCount = 0;
- var myOrderCount = 0;
- var myNeedCount = 0;
- var OrderMyDataDZCount = 0;
- var orderlistHFCount = 0 ;
- var myorderCountWb = 0;
- if ($(".orderCount") != undefined) {
- myOrderCount = $(".orderCount").html();
- }
- if ($(".orderNeedCount") != undefined) {
- myNeedCount = $(".orderNeedCount").html();
- }
- if($(".WorkOrderMyDealedDataCount")!= undefined){
- WorkOrderMyDealedDataCount = $(".WorkOrderMyDealedDataCount").html();
- }
- if($(".WorkOrderShenPiCount")!= undefined){
- WorkOrderShenPiCount = $(".WorkOrderShenPiCount").html();
- }
- if($(".WorkOrderMyVisitedDataCount")!= undefined){
- WorkOrderMyVisitedDataCount = $(".WorkOrderMyVisitedDataCount").html();
- }
- if ($(".orderlistHFCount") != undefined) {
- orderlistHFCount = $(".orderlistHFCount").html();
- }
- if ($(".OrderMyDataDZCount") != undefined) {
- OrderMyDataDZCount = $(".OrderMyDataDZCount").html();
- }
- if(myOrderCount == undefined){
- myOrderCount = 0
- }
- if(myNeedCount == undefined){
- myNeedCount = 0
- }
- if(orderlistHFCount == undefined){
- orderlistHFCount = 0
- }
- if(OrderMyDataDZCount==undefined){
- OrderMyDataDZCount = 0
- }
- if(WorkOrderMyDealedDataCount==undefined){
- WorkOrderMyDealedDataCount = 0
- }
- if(WorkOrderShenPiCount==undefined){
- WorkOrderShenPiCount = 0
- }
- if(WorkOrderMyVisitedDataCount==undefined){
- WorkOrderMyVisitedDataCount = 0
- }
- totalOrderCount = parseInt(myOrderCount)
- + parseInt(myNeedCount)
- + parseInt(orderlistHFCount)
- + parseInt(OrderMyDataDZCount)
- + parseInt(WorkOrderMyDealedDataCount)
- + parseInt(WorkOrderShenPiCount)
- + parseInt(WorkOrderMyVisitedDataCount);
- if(totalOrderCount){
- $(".totalOrderCount").html(totalOrderCount);
- }else{
- $(".totalOrderCount").html(0);
- }
-
- }
- }
-
- //获取待办工单数量
- MyOrderCount();
- </script>
- @* 来电弹屏 *@
- <script type="text/javascript">
- $(".leftMenu a").click(function (event) {
- $(".callScreen").hide()
- });
- //快捷回复
- var quickType;
- $(".serchBtn").click(function (event) {
- quickData();
- quicNum()
- });
-
- $(".quick-head .tag").click(function () {
- quickType = $(this).attr("data-attr")
- $(".quick-head .tag").removeClass("action")
- $(this).addClass("action")
- quickData();
- })
- function quicNum(){
- $.ajax({
- url: "/QuickMsgs/GetListData",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- async: false,
- data: {
- type: 0,
- key: $("#keyWord").val(),
- page: 1,
- limit: 99,
- },
- success: function (thisResult) {
- if (eval('(' + thisResult + ')').msg == "成功") {
- var list = eval('(' + thisResult + ')').data;
- $(".gyNum").show()
- $(".gyNum").text(eval('(' + thisResult + ')').count)
-
- }
- else {
- layui.layer.alert("获取该部门下用户信息失败!", {
- icon: 2
- });
- }
- }
- });
- $.ajax({
- url: "/QuickMsgs/GetListData",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- async: false,
- data: {
- type: 1,
- key: $("#keyWord").val(),
- page: 1,
- limit: 99,
- },
- success: function (thisResult) {
- if (eval('(' + thisResult + ')').msg == "成功") {
- var list = eval('(' + thisResult + ')').data;
- $(".syNum").show()
- $(".syNum").text(eval('(' + thisResult + ')').count)
-
- }
- else {
- layui.layer.alert("获取该部门下用户信息失败!", {
- icon: 2
- });
- }
- }
- });
- }
- quicNum();
- quickData();
- function quickData() {
- $.ajax({
- url: "/QuickMsgs/GetListData",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- async: false,
- data: {
- type: quickType,
- key: $("#keyWord").val(),
- page: 1,
- limit: 99,
- },
- success: function (thisResult) {
- if (eval('(' + thisResult + ')').msg == "成功") {
- var list = eval('(' + thisResult + ')').data;
- $(".quick-item").remove();
- var key_w = $("#keyWord").val();
- $(list).each(function (i, n) {
- var after_u = n.msg.replace(key_w, '<span style="color:red;">' + key_w + '</span>');
- $(".quick-list").append("<div class='quick-item'>" + after_u + "</div>");
- })
- $(".quick-list .quick-item").click(function (event) {
- var texts = $(this).text();
- var inputs = document.getElementById("inputs");
- inputs.value = texts; // 修改文本框的内容(赋值内容)
- inputs.select(); // 选中文本
- document.execCommand("copy"); // 执行浏览器复制命令
- alert("复制成功");//测试执行是否成
- });
- }
- else {
- layui.layer.alert("获取该部门下用户信息失败!", {
- icon: 2
- });
- }
- }
- });
- }
- function OpenOtherForm(title, url) {
- window.open(url, title);
- }
- $(".lineState").click(function (event) {
- var lineNum=$(this).attr("data-attr")
- $(".setLine ul").removeClass("selectLineColor")
- $(this).addClass("selectLineColor")
- $.ajax({
- url: "/CallHelper/SetLine",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: false,
- async: false,
- data: {
- "lineNum": lineNum,
- "callid": helper.cookies.get('CallID'),
- },
- success: function (data) {
- if (eval('(' + data + ')').msg == "成功") {
- layer.msg('切换成功');
- }
- }
- });
- });
- function lineState() {
- $.ajax({
- url: "/CallRecord/CallRecordData",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: false,
- async: false,
- data: {
- "page": 1,
- "limit": 20,
- "callid": helper.cookies.get('CallID'),
- },
- success: function (data) {
- if (eval('(' + data + ')').data.length > 0) {
- var LinenumData = eval('(' + data + ')').data[0].F_Linenum;
- $(".lineState").removeClass("selectLineColor")
- if (LinenumData == "1") {
- $(".lineState").eq(0).addClass("selectLineColor");
- } else if (LinenumData == "2") {
- $(".lineState").eq(1).addClass("selectLineColor");
- }else if (LinenumData == "3") {
- $(".lineState").eq(2).addClass("selectLineColor");
- }else if (LinenumData == "4") {
- $(".lineState").eq(3).addClass("selectLineColor");
- }else if (LinenumData == "5") {
- $(".lineState").eq(4).addClass("selectLineColor");
- }else if (LinenumData == "14") {
- $(".lineState").eq(5).addClass("selectLineColor");
- }else if (LinenumData == "100") {
- $(".lineState").eq(6).addClass("selectLineColor");
- }else if (LinenumData == "101") {
- $(".lineState").eq(7).addClass("selectLineColor");
- }
- }
- }
- });
- }
- $(".maskTask,.closeBtn").click(function (event) {
- $(".telLine,.maskTask").hide();
- });
- $(".keySwitch").click(function (event) {
- $(".telLine,.maskTask").show();
- keySwitch()
- });
- function keySwitch() {
- $.ajax({
- url: "/SystemManage/DictionaryDate",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: false,
- async: false,
- data: {
- "NowDateTime": "2020/11/11 10:43:41",
- "page": 1,
- "limit": 20,
- "dictionaryFlag": "ZDXX"
- },
- success: function (data) {
- $(".telLine").show();
- $(".telLine li").remove();
- var keySwitchData = eval('(' + data + ')').data;
- for (var i = 0; i < keySwitchData.length; i++) {
- $('<li class="layui-nav-item" id="'+keySwitchData[i].F_ValueCode+'" data-index="' + keySwitchData[i].F_ValueCode + '"><a href="javascript:;">' + keySwitchData[i].F_Name
- + '</a><dl class="layui-nav-child"></dl></li>').appendTo('.telLine ul');
- }
- $(".telLine ul li").hover(function (event) {
- dictionaryFlag = $(this).attr("data-index")
- $.ajax({
- url: "/SystemManage/DictionaryDate",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: false,
- async: false,
- data: {
- "NowDateTime": "2020/11/11 10:43:41",
- "page": 1,
- "limit": 99,
- "dictionaryFlag": dictionaryFlag
- },
- success: function (res) {
- var lineData = eval('(' + res + ')').data;
- $("#"+dictionaryFlag+" dl dd").remove();
- for (var i = 0; i < lineData.length; i++) {
- $('<dd data-index="' + lineData[i].F_Describe + '"><a href="javascript:;">'+ lineData[i].F_Name +'</a></dd>').appendTo("#"+dictionaryFlag+" dl")
- }
- $("#"+dictionaryFlag+" dl").show();
-
- $("#"+dictionaryFlag+" dl dd").click(function(){
- var keyNun = $(this).attr("data-index");
-
- if(keyNun){
- $.ajax({
- type: 'get',
- url: '/CallRecord/GetCallOutprefix/?phone=' + keyNun,
- dataType: 'html',
- success: function (res) {
- $(".telLine,.maskTask").hide();
- ZYhj(res.toString() + keyNun.toString());
-
- }
- });
- }else{
- alert("操作失败")
- }
- })
- }
- });
- },function(){
- $("#"+dictionaryFlag+" dl").hide();
- });
- }
- });
- }
- function btnOpt(type) {
- var customerid = document.getElementById("F_CustomerId").value;
- switch (type) {
- case 1:
- //保存客户
- layer.confirm('确认要[<font color=red>保存客户</font>]吗?', function (index) {
- var F_CustomerCode,F_CustomerPym;
- //年龄段
- if( $("#F_CustomerCode").val()=="20以下"){
- F_CustomerCode = $("#F_CustomerCode20").val()
-
- }else if( $("#F_CustomerCode").val()=="20~30"){
- F_CustomerCode = $("#F_CustomerCode30").val()
- }else if( $("#F_CustomerCode").val()=="30~40"){
- F_CustomerCode = $("#F_CustomerCode40").val()
- }else if( $("#F_CustomerCode").val()=="40~50"){
- F_CustomerCode = $("#F_CustomerCode50").val()
- }else if( $("#F_CustomerCode").val()=="50以上"){
- F_CustomerCode = $("#F_CustomerCode51").val()
- }else{
- F_CustomerCode = $("#F_CustomerCodeNew").val()
-
- }
- //男女 F_CustomerPym
- if($("#F_CustomerPym").val()=="男"){
- F_CustomerPym = $('.sexParamNan input[name="F_CustomerPymNan"]:checked ').val()
- } else if($("#F_CustomerPym").val()=="女") {
- F_CustomerPym = $('.sexParamNv input[name="F_CustomerPymNv"]:checked ').val()
- } else{
- F_CustomerPym = $('.sexParam input[name="F_CustomerPym"]:checked ').val()
- }
- var data = {
- F_CustomerId: $("#F_CustomerId").val(),
- F_CustomerName: $("#F_CustomerName").val(),
- F_CustomerPym: F_CustomerPym,
- F_CustomerEName: $("#F_CustomerEName").val(),
- F_PostCode: $("#F_PostCode").val(),
- F_CustomerLayer: $("#F_CustomerLayer").html().trim(),
- F_CustomerCode: F_CustomerCode,
- F_Telephone: $("#F_Telephone").html().trim(),
- F_ScaleResume: $("#F_ScaleResume").val(),
- F_CustomerClass: $("#F_CustomerClass").val(),
- }
- $.ajax({
- url: "/CallRecord/SaveCunInfo",
- type: "post",
- async: false,//同步请求
- contentType: "application/json",
- dataType: "text",
- cache: false,
- data: JSON.stringify(data),
- success: function (thisResult, result) {
- if (thisResult == "True") {
- layer.open({
- content: '操作成功'
- , icon: 1
- , btn: ['确定']
- , yes: function (index, layero) {
- layer.close(index);
- }
- });
- } else {
- layui.layer.alert("操作失败!", {
- icon: 2
- });
- }
- },
- error: function (error) {
- return false;
- }
- });
- });
- break;
- case 2:
- //关注客户
- layer.confirm('确认要[<font color=red>设置为关注客户</font>]吗?', function (index) {
- $.ajax({
- url: "/Customer/SaveReceivedData",
- type: "get",
- async: false,//同步请求
- contentType: "application/json",
- dataType: "text",
- cache: false,
- data: "keyList=" + customerid + '&status=2',
- success: function (thisResult, result) {
- if (thisResult == "True") {
- layer.open({
- content: '操作成功'
- , icon: 1
- , btn: ['确定']
- , yes: function (index, layero) {
- layer.close(index);
- }
- });
- } else {
- layui.layer.alert("操作失败!", {
- icon: 2
- });
- }
- },
- error: function (error) {
- return false;
- }
- });
- });
- break;
- case 3:
- //黑名单客户
- layer.confirm('确认要[<font color=red>设置为黑名单</font>]吗?', function (index) {
- $.ajax({
- url: "/Customer/SaveReceivedData",
- type: "get",
- async: false,//同步请求
- contentType: "application/json",
- dataType: "text",
- cache: false,
- data: "keyList=" + customerid + '&status=3',
- success: function (thisResult, result) {
- if (thisResult == "True") {
- layer.open({
- content: '操作成功'
- , icon: 1
- , btn: ['确定']
- , yes: function (index, layero) {
- layer.close(index);
- }
- });
- } else {
- layui.layer.alert("操作失败!", {
- icon: 2
- });
- }
- },
- error: function (error) {
- return false;
- }
- });
- });
- break;
- case 4:
- //挂断
- layer.confirm('确认要[<font color=red>挂断电话</font>]吗?', function (index) {
- button_ReleaseAnswer();
- layer.close(index);
- });
- break;
- case 5:
- //保持通话
- layer.confirm('确认要[<font color=red>保持通话</font>]吗?', function (index) {
- button_KeepCall();
- layer.close(index);
- });
- break;
- case 6:
- //接回通话
- layer.confirm('确认要[<font color=red>接回通话</font>]吗?', function (index) {
- button_GetKeepCall();
- layer.close(index);
- });
- break;
- case 7:
- //转移
- layer.open({
- content: '转移号码:<input type=\"text\" id=\"txtZYPhone\" value=\"1001\" placeholder=\"\" autocomplete=\"off\" class=\"layui-input\" />'
- , btn: ['转移', '取消']
- , yes: function (index, layero) {
- var tel = document.getElementById("txtZYPhone").value;
- ZYhj(tel);
- layer.close(index);
- alert("转移成功")
- //top.PhoneCallZY(tel);
- }
- , btn2: function (index, layero) {
- layer.close(index);
- }
- , cancel: function () {
- }
- });
- break;
- case 8:
- //转回IVR
- layer.confirm('确认要[<font color=red>转回到IVR语音流程</font>]吗?', function (index) {
- try {
- AgentTransToIVR();
- layer.close(index);
- }
- catch (e) { }
- });
- break;
- case 9:
- //一键转接
- layer.open({
- content: '转移号码:<input type=\"text\" id=\"txtZYPhone\" value=\"1001\" placeholder=\"\" autocomplete=\"off\" class=\"layui-input\" />'
- , btn: ['转移', '取消']
- , yes: function (index, layero) {
- }
- , btn2: function (index, layero) {
- layer.close(index);
- }
- , cancel: function () {
- }
- });
- break;
- case 10:
- //白名单客户
- layer.confirm('确认要[<font color=red>设置为白名单</font>]吗?', function (index) {
- $.ajax({
- url: "/Customer/SaveReceivedData",
- type: "get",
- async: false,//同步请求
- contentType: "application/json",
- dataType: "text",
- cache: false,
- data: "keyList=" + customerid + '&status=4',
- success: function (thisResult, result) {
- if (thisResult == "True") {
- layer.open({
- content: '操作成功'
- , icon: 1
- , btn: ['确定']
- , yes: function (index, layero) {
- layer.close(index);
- }
- });
- } else {
- layui.layer.alert("操作失败!", {
- icon: 2
- });
- }
- },
- error: function (error) {
- return false;
- }
- });
- });
- break;
- case 11:
- //一键转接
- layer.confirm('转移号码:<input type=\"text\" id=\"txtZYPhone\" value=\"1001\" placeholder=\"\" autocomplete=\"off\" class=\"layui-input\" />', function (index) {
- });
- break;
- }
- }
- //$("#workOrderNum").val("48787")
- //resOrder()
- function resOrder(){
- $.ajax({
- url: "/CallHelper/CallScreen",
- type: "get",
- contentType: "application/json",
- dataType: "text",
- cache: false,
- async: false,
- data: {
- "workOrderNum": $("#workOrderNum").val(),
- },
- success: function (data) {
-
- if (eval('(' + data + ')').msg == "成功") {
- var screenData = eval('(' + data + ')').data
- $("#F_CustomerId").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerId) //客户id
- $("#workOrderNum").val(screenData.WorkOrderBaseModel.F_WORKORDERID) //工单ID
-
- $("#F_Telephone").text(screenData.WorkOrderBaseModel.F_CUSTOMERTELEPHONE) //电话号码
- $("#F_CustomerLayer").text(screenData.WorkOrderBaseModel.F_STANDARDADDRESS) //归属地
- if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume=="1"){
- //普通
- $(".F_ScaleResume").hide()
- $(".F_ScaleResume1").show()
- } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume=="2"){
- //特别
- $(".F_ScaleResume").hide()
- $(".F_ScaleResume2").show()
- } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume=="3"){
- //黑名单
- $(".F_ScaleResume").hide()
- $(".F_ScaleResume3").show()
- } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume=="4"){
- //白名单
- $(".F_ScaleResume").hide()
- $(".F_ScaleResume4").show()
- }
-
- $("#F_CustomerName").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerName) //姓名
-
- $("#F_CustomerPym").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerPym)
- if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerPym == "女"){
- $(".sexParamNv").show()
- $(".sexParamNan").hide()
- $(".sexParam").hide()
- } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerPym == "男"){
- $(".sexParamNan").show()
- $(".sexParamNv").hide()
- $(".sexParam").hide()
- } else{
- $(".sexParam").show()
- $(".sexParamNan").hide()
- $(".sexParamNv").hide()
- }
- $("#F_CustomerCode").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode)
-
- if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="20以下"){
-
- $(".F_CustomerCodeNew").hide()
- $(".F_CustomerCode20").show()
- $(".F_CustomerCode30").hide()
- $(".F_CustomerCode40").hide()
- $(".F_CustomerCode50").hide()
- $(".F_CustomerCode51").hide()
- $(".F_CustomerCode20").val("20以下")
- } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="20~30"){
- $(".F_CustomerCodeNew").hide()
- $(".F_CustomerCode20").hide()
- $(".F_CustomerCode30").show()
- $(".F_CustomerCode40").hide()
- $(".F_CustomerCode50").hide()
- $(".F_CustomerCode51").hide()
- $(".F_CustomerCode30").val("20~30")
- } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="30~40"){
- $(".F_CustomerCodeNew").hide()
- $(".F_CustomerCode20").hide()
- $(".F_CustomerCode30").hide()
- $(".F_CustomerCode40").show()
- $(".F_CustomerCode50").hide()
- $(".F_CustomerCode51").hide()
-
- $(".F_CustomerCode40").val("30~40")
- } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="40~50"){
- $(".F_CustomerCodeNew").hide()
- $(".F_CustomerCode20").hide()
- $(".F_CustomerCode30").hide()
- $(".F_CustomerCode40").hide()
- $(".F_CustomerCode50").show()
- $(".F_CustomerCode51").hide()
- $(".F_CustomerCode50").val("40~50")
- } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="50以上"){
- $(".F_CustomerCodeNew").hide()
- $(".F_CustomerCode20").hide()
- $(".F_CustomerCode30").hide()
- $(".F_CustomerCode40").hide()
- $(".F_CustomerCode50").hide()
- $(".F_CustomerCode51").show()
- $(".F_CustomerCode51").val("50以上")
- } else{
- $(".F_CustomerCodeNew").show()
- $(".F_CustomerCode20").hide()
- $(".F_CustomerCode30").hide()
- $(".F_CustomerCode40").hide()
- $(".F_CustomerCode50").hide()
- $(".F_CustomerCode51").hide()
- $(".F_CustomerCodeNew").val("")
- }
- $("#F_CustomerEName").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerEName) //微信号
- $("#F_PostCode").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_PostCode) //微博号
- //工单类型
- var htmls = '';
- $("#ModelList ul").remove(); //SelectBussType
- $(screenData.WorkOrderTypeModelList).each(function(i, n) {
- if (screenData.SelectBussType==n.F_Number) {
- if(n.WorkTypeModelList.length==0){
- htmls ='<ul class="layui-nav selectLineColor"><li class="layui-nav-item clickpanle">'
- +'<a href="javascript:;" data-url="'+n.F_WorkOrderTypeId+'">'
- +n.F_Name+'</a>'
- } else {
- htmls ='<ul class="layui-nav selectLineColor"><li class="layui-nav-item">'
- +'<a href="javascript:;" data-url="'+n.F_WorkOrderTypeId+'">'
- +n.F_Name+'</a>'
- }
-
- } else{
- if(n.WorkTypeModelList.length==0){
- htmls ='<ul class="layui-nav lineState"><li class="layui-nav-item clickpanle">'
- +'<a href="javascript:;" data-url="'+n.F_WorkOrderTypeId+'">'
- +n.F_Name+'</a>'
- } else {
- htmls ='<ul class="layui-nav lineState"><li class="layui-nav-item">'
- +'<a href="javascript:;" data-url="'+n.F_WorkOrderTypeId+'">'
- +n.F_Name+'</a>'
- }
-
- }
-
- if(n.WorkTypeModelList.length>0){
- htmls+= '<span class="layui-nav-more"></span><dl class="layui-nav-child clickpanle layui-anim layui-anim-upbit">'
- }
-
- $(n.WorkTypeModelList).each(function(l, m) {
- htmls +='<dd><a href="javascript:;" data-value="'
- +m.F_Name+'" data-type="'
- +m.F_ParentName+'" data-url="'
- +m.F_WorkOrderTypeId+'">'
- +m.F_Name+'</a></dd>'
- })
- if(n.WorkTypeModelList>0){
- htmls += '</dl>'
- }
- htmls += '</ul>'
-
- $(htmls).appendTo($("#ModelList"));
- })
- $("#ModelList ul").hover(function (event) {
- $(this).children("li").children(".layui-nav-child").show()
- },function(){
- $(this).children("li").children(".layui-nav-child").hide()
- });
- history()
- }
- }
- });
- }
-
- function history(){
- layui.use('table', function(){
- var table = layui.table
- ,form = layui.form;
-
- table.render({
- elem: '#test'
- ,url:'/WorkOrder/WorkOrderHistoryData/'
- ,cols: [[
- {field:'F_CODE', title:'工单编号'}
- ,{field:'F_CUSTOMERNAME', title:'客户姓名'}
- ,{field:'F_REPAIRMANNAME', title:'坐席工号'}
- ,{field:'F_WORKORDERFROM', title: '接入渠道'}
- ,{field:'F_CREATEDATENew',align: 'center', title: '受理时间'}
- ,{field:'F_REPAIRREQUEST', title:'业务状态'}
- ,{field:'F_CONTENT', title: '内容'}
- ,{field:'F_ADSLACCOUNT',align: 'right', title: '业务类型'}
- ,{title:'操作', align:'center', toolbar: '#barDemo111'}
- ]]
- ,page: true
- , where: {
- phoneNumber: $("#F_Telephone").text()
- }
- });
-
- table.on('tool(demo111)', function (obj) {
- var data = obj.data;
- if (obj.event === 'viewData') {
- layer.open({
- type: 2,
- anim: 4,
- scrollbar: false,
- content: '/Order/ViewMyOrder/?orderKeyId=' + data.F_WORKORDERID,
- area: ['90%', '90%'],
- id: 'ViewMyOrder',
- title: '服务监督热线系统业务工单'
- });
- }
- })
- });
-
- }
-
- </script>
- <script type="text/html" id="barDemo111">
- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="viewData">查看详情</a>
- </script>
- </html>
|