地铁二期项目正式开始

Index.cshtml 120KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216
  1. @using YTSoft.BaseCallCenter.MVCWeb.Models;
  2. @using YTSoft.BaseCallCenter.Model;
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8">
  7. <title>郑州市轨道交通全媒体客服平台</title>
  8. <meta name="renderer" content="webkit">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  11. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  12. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  13. <meta name="apple-mobile-web-app-capable" content="yes">
  14. <meta name="format-detection" content="telephone=no">
  15. <link rel="icon" href="../favicon.ico">
  16. <link type="text/css" href="/Content/layui/css/layui.css" rel="stylesheet" />
  17. <link href="/Content/css/public.css" rel="stylesheet" />
  18. <link type="text/css" href="/Content/layui/css/modules/layui-icon-extend/iconfont.css" rel="stylesheet" />
  19. <link type="text/css" href="/Content/css/index.css" rel="stylesheet" />
  20. <link href="/Content/css/callscreen/callscreen.css" rel="stylesheet" />
  21. <link type="text/css" href="/Content/css/myindex.css" rel="stylesheet" />
  22. <link type="text/css" href="/Content/css/font-awesome/css/font-awesome.css" rel="stylesheet" />
  23. <script src="/Content/js/jquery.min.js"></script>
  24. <script src="/Content/js/ytsoft.config.js"></script>
  25. <script src="~/Content/js/ytsoft.http.js"></script>
  26. <script src="/Content/seatformjs/ocxopt.js"></script>
  27. <script src="/Content/js/callSocket.js"></script>
  28. <script type="text/javascript">
  29. //监控获取指定坐席状态结果事件
  30. function IframeSetAgentState(agentid, state) {
  31. try {
  32. window.frames["frame_zxjkgl"].GetState(agentid, state);
  33. }
  34. catch (e) {
  35. }
  36. }
  37. ///转移
  38. function PhoneCallZY(tel) {
  39. try {
  40. var callinphone = document.getElementById("forZYnumber").value;
  41. OCX_TransferToPhone(tel, "");
  42. }
  43. catch (e) {
  44. //$.ligerDialog.error(e.message);
  45. }
  46. }
  47. ///多方通话
  48. function PhoneCallDFTH(tel) {
  49. try {
  50. var callinphone = document.getElementById("forZYnumber").value;
  51. OCX_ThirdParty(tel, "");
  52. }
  53. catch (e) {
  54. //$.ligerDialog.error(e.message);
  55. }
  56. }
  57. ///工单接单时候调用的外呼方法
  58. function PhoneCallOutJD(type, tel, workorderid) {
  59. }
  60. function addCallOutInfo() {
  61. var tel = OCX_GetCalleeNumber(document.getElementById("txtAgentId").value);
  62. becallout = true;
  63. becallcome = false;
  64. CallOutRecordIsWrite = true;
  65. //添加外呼记录
  66. var userid = document.getElementById("txtAgentId").value;
  67. var usercode = document.getElementById("txtLabourwork").value;
  68. var username = document.getElementById("txtAgentName").value;
  69. var extnumber = document.getElementById("txtPhoneNum").value;
  70. var timeno = new Date().getTime();
  71. username = encodeURI(username);
  72. $.ajax({
  73. type: 'get',
  74. url: '/OCXOpt/OCXOptCallAjax/?optaction=callout&callernum=' + tel + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber" + extnumber + "&timeno=" + timeno,
  75. dataType: 'html',
  76. success: function (res) {
  77. try {
  78. var DialIsOK = false;
  79. var arr = res.split('|');
  80. document.getElementById("CallHjbh").value = arr[2];
  81. telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=zhaijiEvent&callid=" + parent.document.getElementById("CallHjbh").value); //更新摘机事件
  82. } catch (e) {
  83. }
  84. }
  85. });
  86. }
  87. ///外呼
  88. function PhoneCallOut(type, tel) {
  89. var usercode = document.getElementById("txtLabourwork").value;
  90. var extnumber = document.getElementById("txtPhoneNum").value;
  91. $.ajax({
  92. type: 'get',
  93. url: '/CallRecord/GetCallOutprefix/?phone=' + tel,
  94. dataType: 'html',
  95. success: function (res) {
  96. //"Type":"MakeCall","AgentID":"8002","AgentExten":"1001","DestinationNumber":"9018937726571"
  97. obj = {};
  98. obj.Type = "MakeCall";
  99. obj.AgentID = usercode;
  100. obj.AgentExten = extnumber;
  101. obj.AgentGroup = "12";
  102. obj.Header = res.toString();
  103. obj.DestinationNumber = res.toString() + tel.toString();
  104. Send();
  105. }
  106. });
  107. }
  108. var hfcallstate = false;
  109. var outtype = "";
  110. function SetCallState(state) {
  111. hfcallstate = state;
  112. }
  113. function GetCallOutHFRes() {
  114. if (hfcallstate) {
  115. hfcallstate = false;
  116. return true;
  117. }
  118. else {
  119. return false;
  120. }
  121. }
  122. ///外呼
  123. function PhoneCallOutHF(type, tel, hfid) {
  124. becallout = true;
  125. becallcome = false;
  126. hfcallstate = false;
  127. CallOutRecordIsWrite = true;
  128. outtype = "hf";
  129. //添加外呼记录
  130. var userid = document.getElementById("txtAgentId").value;
  131. var usercode = document.getElementById("txtLabourwork").value;
  132. var username = document.getElementById("txtAgentName").value;
  133. var extnumber = document.getElementById("txtPhoneNum").value;
  134. var timeno = new Date().getTime();
  135. username = encodeURI(username);
  136. layui.layer
  137. //$.ligerDialog.waitting('开始呼叫...');
  138. $.ajax({
  139. type: 'get',
  140. url: '/OCXOpt/OCXOptCallAjax/?optaction=callouthf&callid=' + hfid + '&callernum=' + tel + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber" + extnumber + "&timeno=" + timeno,
  141. dataType: 'html',
  142. success: function (res) {
  143. try {
  144. var DialIsOK = false;
  145. var arr = res.split('|');
  146. document.getElementById("CallHjbh").value = arr[2];
  147. //成功执行外呼叫
  148. if (arr[0] == "1") { //呼叫内部(座席)电话
  149. //2015-04-20
  150. becallout = true;
  151. becallcome = false;
  152. DialIsOK = OCX_CallOut(5, "", arr[1]);
  153. }
  154. else { //呼叫外部电话
  155. DialIsOK = OCX_CallOut(5, "", arr[1]);
  156. }
  157. if (DialIsOK != true) {
  158. alert('外呼失败');
  159. //$.ligerDialog.error('外呼失败');
  160. }
  161. } catch (e) {
  162. //$.ligerDialog.error(e.message);
  163. }
  164. //$.ligerDialog.closeWaitting();
  165. }
  166. });
  167. }
  168. function OptClick(name) {
  169. var obj = document.getElementById(name);
  170. if (obj.attributes["ostate"].value != 0) {
  171. switch (name) {
  172. case "gd":
  173. button_ReleaseAnswer();
  174. //挂断
  175. break;
  176. case "wh":
  177. //外呼先示忙
  178. //AgentBusy();
  179. //otype 1外呼 2转移 3多方通话
  180. OpenWindowShow1('telmanage/calloutopt.aspx?otype=1', '电话外呼', 800, 500);
  181. break;
  182. case "zm":
  183. //示忙
  184. AgentBusy();
  185. break;
  186. case "zx":
  187. AgentFree();
  188. break;
  189. case "dfth":
  190. //多方会话
  191. OpenWindowShow1('telmanage/calloutopt.aspx?otype=3', '多方通话', 800, 500);
  192. break;
  193. case "zy":
  194. //转移
  195. OpenWindowShow1('telmanage/calloutopt.aspx?otype=2', '电话转移', 800, 500);
  196. break;
  197. case "bc":
  198. //保持
  199. button_KeepCall(); //保持方法
  200. break;
  201. case "jh":
  202. //接回
  203. button_GetKeepCall();
  204. break;
  205. case "qr":
  206. //签入
  207. button_QRCall();
  208. break;
  209. case "qc":
  210. //签出
  211. button_QCCall();
  212. break;
  213. }
  214. }
  215. }
  216. //转移
  217. function ZYhj(callnumber) {
  218. //var zyzj = document.getElementById("forZYnumber").value;
  219. var usercode = document.getElementById("txtLabourwork").value;
  220. var extnumber = document.getElementById("txtPhoneNum").value;
  221. if (callnumber != "") {
  222. obj = {};
  223. obj.Type = "Transfer";
  224. obj.TaskType = "0"; //0:拨号外呼;1:未接来电外呼;2:回访外呼
  225. obj.TaskPhoneID = ""; //回访的电话ID
  226. obj.AgentID = usercode;
  227. obj.AgentExten = extnumber;
  228. obj.DestinationNumber = callnumber;
  229. Send();
  230. //Form_setWinfromenble("false", "false", "false", "false", "false", "false", "false", "false", "false", "false");
  231. }
  232. else {
  233. alert("转移失败!");
  234. }
  235. }
  236. //释放呼叫 2.1.8
  237. function button_ReleaseAnswer() {//挂机
  238. var usercode = document.getElementById("txtLabourwork").value;
  239. var extnumber = document.getElementById("txtPhoneNum").value;
  240. obj = {};
  241. obj.Type = "DropCall";
  242. obj.AgentID = usercode;
  243. obj.AgentExten = extnumber;
  244. Send();
  245. try {
  246. //MydTransToIVR();
  247. }
  248. catch (e) { }
  249. try {
  250. //var rtn = OCX_Hangup();
  251. }
  252. catch (e) { }
  253. }
  254. //满意度
  255. function MydTransToIVR() {
  256. var cid = document.getElementById("CallHjbh").value;
  257. var rtn = OCX_TransferToIVR("2", cid);
  258. }
  259. //转回IVR
  260. function AgentTransToIVR() {
  261. var usercode = document.getElementById("txtLabourwork").value;
  262. var extnumber = document.getElementById("txtPhoneNum").value;
  263. obj = {};
  264. obj.Type = "TurnIvr";
  265. obj.AgentID = usercode;
  266. obj.AgentExten = extnumber;
  267. obj.AgentGroup = "12";
  268. obj.IvrName = "THZIVR";
  269. obj.IvrPos = "1";
  270. ivrState = true;
  271. Send();
  272. //var cid=document.getElementById("CallHjbh").value;
  273. //var rtn = OCX_TransferToIVR("2", cid);
  274. }
  275. //座席示忙 2.1.12
  276. function AgentBusy() {
  277. //将座席状态设置为忙态。
  278. //var rtn = OCX_SetBusy();
  279. //2014-10-22
  280. //becallout = true;
  281. //becallcome = false;
  282. //rgmstate = true;
  283. /*2020-09-24miaofuhao注释*/
  284. var usercode = document.getElementById("txtLabourwork").value;
  285. var extnumber = document.getElementById("txtPhoneNum").value;
  286. if ($(".fa-pause").hasClass("selectClass")) {
  287. obj = {};
  288. obj.Type = "SayBusy";
  289. obj.AgentID = usercode;
  290. obj.AgentExten = extnumber;
  291. obj.AgentGroup = "12";
  292. obj.AgentType = "0";
  293. Send();
  294. } else {
  295. layer.msg('当前是置忙状态', { icon: 5, time: 2000 });
  296. }
  297. /*2020-09-24miaofuhao注释*/
  298. }
  299. //座席示闲 2.1.13
  300. function AgentFree() {
  301. //将座席状态设置为闲态。
  302. //var rtn = OCX_SetFree();
  303. //2014-10-22
  304. //becallout = false;
  305. //becallcome = true;
  306. //rgmstate = false;
  307. //return rtn;
  308. /*2020-09-24miaofuhao注释*/
  309. var usercode = document.getElementById("txtLabourwork").value;
  310. var extnumber = document.getElementById("txtPhoneNum").value;
  311. if ($(".fa-play").hasClass("selectClass")) {
  312. obj = {};
  313. obj.Type = "SayFree";
  314. obj.AgentID = usercode;
  315. obj.AgentExten = extnumber;
  316. obj.AgentGroup = "12";
  317. obj.AgentType = "0";
  318. Send();
  319. } else {
  320. //layer.msg('当前是置闲状态', { icon: 5, time: 2000 });
  321. }
  322. /*2020-09-24miaofuhao注释*/
  323. }
  324. //保持呼叫 2.1.17
  325. function button_KeepCall() {
  326. //该方法把座席正在通话的普通语音呼叫保持(只对语音呼叫有效)。
  327. var usercode = document.getElementById("txtLabourwork").value;
  328. var extnumber = document.getElementById("txtPhoneNum").value;
  329. obj = {};
  330. obj.Type = "Hold";
  331. obj.AgentID = usercode;
  332. obj.AgentExten = extnumber;
  333. Send();
  334. }
  335. //取保持 2.1.18
  336. function button_GetKeepCall() {
  337. //查询座席当前保持的所有语音呼叫
  338. var usercode = document.getElementById("txtLabourwork").value;
  339. var extnumber = document.getElementById("txtPhoneNum").value;
  340. obj = {};
  341. obj.Type = "Retrieve";
  342. obj.AgentID = usercode;
  343. obj.AgentExten = extnumber;
  344. Send();
  345. }
  346. function buttonCallNew(telNum) {
  347. becallout = true;
  348. becallcome = false;
  349. var strHjbhout = AjaxPost("../WinIVR/GetAjaxPageInf.aspx?PgType=3&tel=" + telNum); //呼叫编号
  350. document.getElementById("CallHjbh").value = strHjbhout;
  351. //判断电话是本地还是外地的
  352. var callNumberNew = "";
  353. var res = _framepage_headframe.getPhone(telNum);
  354. if (res != "") {
  355. callNumberNew = res.value;
  356. }
  357. button_CallOut(callNumberNew, strHjbhout);
  358. }
  359. //外呼事件 2.1.7
  360. function button_CallOut(callnumber, hjbh) {
  361. var res = true;
  362. var cssok = 0;
  363. cssok = OCX_CallOut(5, "", callnumber);
  364. if (cssok == "0") {
  365. res = true;
  366. }
  367. else {
  368. res = false;
  369. }
  370. return res;
  371. }
  372. //重新登录
  373. function resetlogin() {
  374. var bol = window.confirm("确定要重新登录吗?");
  375. if (bol) {
  376. if (document.getElementById("txtIsAgent").value == "true") {
  377. //button_QCCallNew();
  378. }
  379. window.open("../SignIn.aspx", "_top");
  380. }
  381. }
  382. //退出方法
  383. function relogout() {
  384. var bol = window.confirm("确定要退出登录吗?");
  385. if (bol) {
  386. AjaxPost("../WinIVR/GetAjaxPageInf.aspx?PgType=14");
  387. _framepage_headframe.UpdateLoginOutInfo(document.getElementById("hfUserId").value);
  388. top.close();
  389. }
  390. }
  391. </script>
  392. <script language="javascript" type="text/javascript">
  393. //退出系统
  394. function logout() {
  395. $.post("/Default/LoginOut/", function (data, states) {
  396. if (states == "success") {
  397. if (data == "success") {
  398. layer.confirm('确定退出系统?', { icon: 3, title: '提示' }, function (index) {
  399. try {
  400. if (document.getElementById("txtIsAgent").value == "true") {
  401. OCX_AgentLogOut();
  402. }
  403. }
  404. catch (e) {
  405. }
  406. //do something
  407. location.href = "/Default/Login";
  408. layer.close(index);
  409. });
  410. }
  411. }
  412. })
  413. }
  414. </script>
  415. <script type="text/javascript">
  416. //电话操作
  417. var becallout = false; //呼出
  418. var LogoutState;
  419. var becallcome = false; //来电
  420. var CallOutRecordIsWrite = false; //呼出记录是否已写入
  421. var rgmstate = false;//人工忙状态
  422. function ToIndex() {
  423. //document.getElementById("mainframe").src = "/Main/IndexCenter";
  424. //<i class="layui-icon">&#xe68e;</i> <cite openid="-1">首页</cite>
  425. var tabIndex = -1;
  426. $(".layui-tab-title.top_tab li").each(function () {
  427. if ($(this).attr("lay-id") == 'maintab_index') {
  428. tabIndex = 1;
  429. }
  430. })
  431. if (tabIndex != 1) {
  432. var timeno = new Date().getTime();
  433. //新增一个Tab项
  434. element.tabAdd('bodyTab', {
  435. title: '<i class=\"layui-icon\">&#xe68e;</i> <cite openid=\"-1\">首页</cite>'
  436. , content: '<iframe id=\"mainframe_index\" src=\"/Main/IndexCenter?timeno=' + timeno + '\"></iframe>'
  437. , id: 'maintab_index' //实际使用一般是规定好的id,这里以时间戳模拟下
  438. })
  439. }
  440. element.tabChange('bodyTab', 'maintab_index');
  441. element.tabMove(); //顶部窗口是否可滚动
  442. }
  443. //初始化页面
  444. function Init() {
  445. try {
  446. //禁止后退键 作用于Firefox、Opera
  447. document.onkeypress = banBackSpace;
  448. //禁止后退键 作用于IE、Chrome
  449. document.onkeydown = banBackSpace;
  450. }
  451. catch (e) { }
  452. //show();
  453. }
  454. //签出
  455. function button_QCCall() {
  456. try {
  457. var result = OCX_AgentLogOut();
  458. }
  459. catch (e) {
  460. document.getElementById("spanServerRes").innerHTML = e.message;
  461. }
  462. }
  463. function AgentQR() {
  464. var usercode = document.getElementById("txtLabourwork").value;
  465. var extnumber = document.getElementById("txtPhoneNum").value;
  466. var typed = document.getElementById("HdIswin"); //是否是坐席用户
  467. //var typed.value = true; //是否是坐席用户
  468. if (typed.value == "true") {
  469. var timeno = new Date().getTime();
  470. /*2020-09-24miaofuhao注释*/
  471. if (!$(".fa-phone").hasClass("selectClass")) {
  472. LogoutState = 1;
  473. Connect()
  474. } else {
  475. LogoutState = 0;
  476. obj = {};
  477. obj.Type = "Logout";
  478. obj.AgentID = usercode;
  479. obj.AgentExten = extnumber;
  480. Send();
  481. //layer.msg('您已签入,无需重新签入', { icon: 5, time: 2000 });
  482. }
  483. /*2020-09-24miaofuhao注释*/
  484. InitPhoneBack();
  485. }
  486. else {
  487. document.getElementById("spanServerRes").innerHTML = "非坐席登录";
  488. }
  489. }
  490. function InitPhoneBack() {
  491. Initialize();
  492. }
  493. function Initialize() {
  494. try {
  495. 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);
  496. }
  497. catch (e) {
  498. document.getElementById("spanServerRes").innerHTML = e.message;
  499. }
  500. }
  501. //处理键盘事件 禁止后退键(Backspace)密码或单行、多行文本框除外
  502. function banBackSpace(e) {
  503. try {
  504. var ev = e || window.event; //获取event对象
  505. var obj = ev.target || ev.srcElement; //获取事件源
  506. var t = obj.type || obj.getAttribute('type'); //获取事件源类型
  507. //获取作为判断条件的事件类型
  508. var vReadOnly = obj.getAttribute('readonly');
  509. //处理null值情况
  510. vReadOnly = (vReadOnly == "") ? false : vReadOnly;
  511. //当敲Backspace键时,事件源类型为密码或单行、多行文本的,
  512. //并且readonly属性为true或enabled属性为false的,则退格键失效
  513. var flag1 = (ev.keyCode == 8 && (t == "password" || t == "text" || t == "textarea")
  514. && vReadOnly == "readonly") ? true : false;
  515. //当敲Backspace键时,事件源类型非密码或单行、多行文本的,则退格键失效
  516. var flag2 = (ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea")
  517. ? true : false;
  518. //判断
  519. if (flag2) {
  520. return false;
  521. }
  522. if (flag1) {
  523. return false;
  524. }
  525. }
  526. catch (e) {
  527. return false;
  528. }
  529. }
  530. </script>
  531. <script type="text/javascript">
  532. function setLinkStatus(str) {
  533. //var imgServerState = document.getElementById("imgServerState");
  534. if (str == "True") {
  535. $('#imgServerState').attr('src', '/Content/images/server1.png');
  536. $('#imgServerState').attr('alt', '签入');
  537. // imgServerState.src = "/Content/images/server1.png";
  538. //imgServerState.alt = "签入";
  539. }
  540. else {
  541. $('#imgServerState').attr('src', '/Content/images/server0.png');
  542. $('#imgServerState').attr('alt', '未签入');
  543. //imgServerState.src = "/Content/images/server0.png";
  544. //imgServerState.alt = "未签入";
  545. }
  546. }
  547. function setAgentStatus(str) {
  548. //var imgAgentState = document.getElementById("imgAgentState");
  549. switch (str) {
  550. case "离席":
  551. $('#imgAgentState').attr('src', '/Content/images/zx2.png');
  552. $('#imgAgentState').attr('alt', '未登录');
  553. //imgAgentState.src = "/Content/images/zx2.png";
  554. //imgAgentState.alt = "未登录";
  555. break;
  556. case "空闲":
  557. $('#imgAgentState').attr('src', '/Content/images/zx1.png');
  558. $('#imgAgentState').attr('alt', '空闲');
  559. //imgAgentState.src = "/Content/images/zx1.png";
  560. //imgAgentState.alt = "空闲";
  561. break;
  562. case "忙":
  563. $('#imgAgentState').attr('src', '/Content/images/zx3.png');
  564. $('#imgAgentState').attr('alt', '忙');
  565. //imgAgentState.src = "/Content/images/zx3.png";
  566. //imgAgentState.alt = "忙";
  567. break;
  568. case "业务处理":
  569. $('#imgAgentState').attr('src', '/Content/images/zx4.png');
  570. $('#imgAgentState').attr('alt', '业务处理');
  571. //imgAgentState.src = "/Content/images/zx4.png";
  572. //imgAgentState.alt = "业务处理";
  573. break;
  574. }
  575. }
  576. //变换图标
  577. function Form_setWinfromenble(bl) {
  578. }
  579. function Form_setHW(bl) {
  580. if (bl == "True") {
  581. document.getElementById("txt_1").value = "1";
  582. document.getElementById("i_1").style.color = "#395E67";
  583. }
  584. else {
  585. document.getElementById("i_1").style.color = "#cccccc";
  586. document.getElementById("txt_1").value = "0";
  587. }
  588. }
  589. function Form_setZX(bl) {
  590. if (bl == "True") {
  591. document.getElementById("txt_7").value = "1";
  592. document.getElementById("i_7").style.color = "#395E67";
  593. }
  594. else {
  595. document.getElementById("i_7").style.color = "#cccccc";
  596. document.getElementById("txt_7").value = "0";
  597. }
  598. }
  599. function Form_setZM(bl) {
  600. if (bl == "True") {
  601. document.getElementById("txt_8").value = "1";
  602. document.getElementById("i_8").style.color = "#395E67";
  603. }
  604. else {
  605. document.getElementById("i_8").style.color = "#cccccc";
  606. document.getElementById("txt_8").value = "0";
  607. }
  608. }
  609. function OptNull() {
  610. }
  611. function OptNullByName(name) {
  612. var obj = document.getElementById(name);
  613. obj.src = "../images/totle/" + name + "3.png";
  614. obj.attributes["ostate"].value = 0;
  615. //obj.ostate = 0;
  616. obj.style.cursor = "default";
  617. }
  618. function OptByName(name) {
  619. var obj = document.getElementById(name);
  620. obj.src = "../images/totle/" + name + "1.png";
  621. obj.attributes["ostate"].value = 1;
  622. //obj.ostate = 1;
  623. obj.style.cursor = "hand";
  624. }
  625. </script>
  626. <style type="text/css">
  627. .defaultClass {
  628. color: #ffffff;
  629. }
  630. .selectClass {
  631. color: #83d944 !important;
  632. }
  633. .callScreen{
  634. width: 100%;
  635. height:100%;
  636. display: none;
  637. background: #dddddd;
  638. position: absolute;
  639. z-index: 111;
  640. }
  641. .F_ScaleResume2,.F_ScaleResume3,.F_ScaleResume4{
  642. display: none;
  643. }
  644. .sexParamNan,.sexParamNv,.sexParam{
  645. display: none;
  646. }
  647. .maskTask {
  648. width: 100%;
  649. position: fixed;
  650. opacity: .5;
  651. left: 0;
  652. top: 0;
  653. height: 100%;
  654. z-index: 1;
  655. background-color: #000;
  656. display: none;
  657. }
  658. .telLine {
  659. display: none;
  660. position: fixed;
  661. text-align: center;
  662. left: 0;
  663. right: 0;
  664. top: 0;
  665. bottom: 0;
  666. margin: auto;
  667. background: #ffffff;
  668. width: 1000px;
  669. height: 300px;
  670. font-size: 16px;
  671. z-index: 11;
  672. color: #000000;
  673. border: 1px solid #cccccc;
  674. overflow: hidden;
  675. top: -400px;
  676. }
  677. .closeBtn {
  678. font-size: 26px;
  679. font-weight: bold;
  680. color: #000000;
  681. position: absolute;
  682. top: 0px;
  683. right: 15px;
  684. z-index: 12;
  685. }
  686. .telLine li {
  687. width: 120px;
  688. margin: 30px 30px 0px 30px;
  689. line-height: 40px !important;
  690. float: left;
  691. height: 70px;
  692. cursor: pointer;
  693. color: #ffffff;
  694. }
  695. .telLine li a {
  696. background: #1E9FFF;
  697. color: #ffffff;
  698. }
  699. .telLine li dl dd a {
  700. background: #ffffff;
  701. color: #000000;
  702. }
  703. .telLine li dl{
  704. height: 500px;
  705. overflow-y: auto;
  706. }
  707. .title {
  708. width: 100%;
  709. height: 40px;
  710. line-height: 40px;
  711. text-align: center;
  712. background-color: #F8F8F8;
  713. border-bottom: 1px solid #eee;
  714. font-size: 20px;
  715. font-weight: bold;
  716. position: relative;
  717. }
  718. .telLine li a:hover {
  719. background: #00FFFF;
  720. }
  721. .telLine ul {
  722. position: fixed;
  723. width: 1000px;
  724. z-index: 12;
  725. background: #ffffff;
  726. }
  727. .fastReply {
  728. position: fixed;
  729. top: 50%;
  730. right: 0px;
  731. background: #01a1cb;
  732. padding: 10px 15px;
  733. color: #ffffff;
  734. cursor: pointer;
  735. }
  736. .quick-head .tag {
  737. cursor: pointer;
  738. padding: 0 20px;
  739. height: 30px;
  740. display: inline-block;
  741. border-bottom: 3px solid transparent;
  742. }
  743. .quick-head .tag .countNum{
  744. margin-left: 10px;
  745. color: #ffffff;
  746. background: #ff0000;
  747. height: 20px;
  748. line-height: 20px;
  749. padding: 0px 5px;
  750. border-radius: 5px;
  751. }
  752. .quick-head .action {
  753. border-color: #2196f3;
  754. }
  755. .quick-item {
  756. padding: 13px 13px 0px 13px;
  757. cursor: pointer;
  758. border-bottom: 1px solid #ccc;
  759. word-break: break-all;
  760. display: -webkit-box;
  761. -webkit-box-orient: vertical;
  762. -webkit-line-clamp: 2;
  763. overflow: hidden;
  764. }
  765. #inputs {
  766. width: 0;
  767. height: 0;
  768. }
  769. .bookBtn{
  770. width: 70px;
  771. height: 50px;
  772. line-height: 65px;
  773. }
  774. .bookChildBtn{
  775. width: 60px;
  776. height: 50px;
  777. line-height:65px;
  778. }
  779. .F_CustomerCode{
  780. display: none;
  781. }
  782. .layui-table td{
  783. padding: 3px 0 !important;
  784. }
  785. .quick-list{
  786. height: 280px;
  787. overflow-y: auto;
  788. }
  789. .clickpanle{
  790. height: 420px;
  791. overflow: auto;
  792. }
  793. .popRemind{
  794. position:fixed;
  795. width:200px;
  796. height:120px;
  797. line-height:120px;
  798. font-size:16px;
  799. text-align:center;
  800. right:20px;
  801. bottom:44px;
  802. background:#048aad;
  803. color:#ffffff;
  804. z-index:1111;
  805. display:none;
  806. }
  807. </style>
  808. </head>
  809. <body onload="Init()" class="main_body blue" onbeforeunload="closeSocket()">
  810. <div class="layui-layout layui-layout-admin">
  811. <!-- 顶部 -->
  812. <div class="layui-header header">
  813. <div class="layui-main mag0">
  814. <a class="logo" style=" text-align:left; padding-left:15px;"><img style="height:55px;"
  815. src="/Content/images/logo1.png" /><span>&nbsp;&nbsp;</span>全媒体客服平台</a>
  816. <!-- 功能模块Id -->
  817. <input id="HdModuleFunIdCount" type="hidden" value="0" />
  818. <input id="ismonitoring" type="hidden" value="false" />
  819. <input id="HdIswin" type="hidden" value="@Model.IsSeat" />
  820. <input id="UserID" type="hidden" value="@Model.UserAccountModel.F_UserId" />
  821. <input id="Password" type="hidden" value="@Model.UserAccountModel.F_Password" />
  822. <input id="hfUserId" type="hidden" value="@Model.UserAccountModel.F_UserId" />
  823. <iframe src="/Main/iframeocx" name="iframeocx" frameborder="0" height="0" width="0"
  824. style="display: none;"></iframe>
  825. @*--(用于初始化用的信息)--*@
  826. <input id="txtMostlyAddress" type="hidden" value="@Model.CTIserverIP" />@*--(主用CTI服务器IP)*@
  827. <input id="ServerType" type="hidden" value="20" />@*--(服务器类型)--*@
  828. <input id="txtLabourNo" type="hidden"
  829. value="@Model.UserAccountModel.F_WorkNumber" />@*--<%=Request.Cookies["ID"].Value %>(工号)--*@
  830. <input id="pwd" type="hidden" value="" />@*--<%=Request.Cookies["ID"].Value %>(密码)--*@
  831. <input id="txtPhoneID" type="hidden" value="@Model.UserAccountModel.F_UserCode" />@*--(通讯进程号)--*@
  832. <input id="txtSubordinationAddress" type="hidden" value="@Model.CTIserverIP" />@*--(备用CTI服务器IP)--*@
  833. <input id="txtIsAgent" type="hidden" value="@Model.UserAccountModel.F_SeatFlag" />
  834. <!-- 是否具有话务功能,是否坐席登录 -->
  835. <input id="txtAgentId" type="hidden" value="@Model.UserAccountModel.F_UserId" /><!-- 坐席ID -->
  836. <input id="txtAgentName" type="hidden" value="@Model.UserAccountModel.F_UserName" />
  837. <input id="txtAgentRight" type="hidden" value="@Model.UserAccountModel.F_SeatRight" />
  838. <input id="txtAgentGroup" type="hidden" value="@Model.UserAccountModel.F_GroupId" />
  839. <input id="txtServerPort" type="hidden" value="@Model.CTIserverPort" />
  840. <!-- 坐席权限 -->
  841. @*--(用于登录的信息)--*@
  842. <input id="SeatType" type="hidden"
  843. value="@Model.UserAccountModel.F_SeatRight" />@*--<%=Request.Cookies["SkillSet"].Value %>(坐席类型)--*@
  844. <input id="txtPhoneNum" type="hidden"
  845. value="@Model.UserAccountModel.F_ExtensionNumber" />@*--<%=Request.Cookies["ExtNum"].Value %>(分机号)--*@
  846. <input id="keepcall" type="hidden" value="" />
  847. @*--(keep号码)--*@
  848. <input id="txtLabourwork" type="hidden" value="@Model.UserAccountModel.F_UserCode" />@*--(登录工号)--*@
  849. <input id="passwd" type="hidden" value="" />@*--(登录坐席密码)--*@
  850. <input id="hjbh" type="hidden" value="" />@*--(外乎呼叫编号)--*@
  851. <input id="CallHjbh" type="hidden" value="" />@*--(来电呼叫编号)--*@
  852. <input id="forZYnumber" type="hidden" value="" />@*--(用来存储来电号码--*@
  853. <input id="callnum" type="hidden" value="" />@*--(来电主叫号码)--*@
  854. <ul class="layui-nav topLevelMenus" pc>
  855. <li class="layui-nav-item" onclick="AgentQR()" data-menu="contentManagement" title="语音签入">
  856. <input id="txt_1" type="hidden" value="0" />
  857. <i id="i_1" class="fa fa-phone defaultClass" data-icon=""></i>
  858. <p>语音签入</p>
  859. </li>
  860. <li class="layui-nav-item" data-menu="memberCenter" pc>
  861. <a>
  862. <i id="i_2" class="layui-icon" style="color:#ffffff;" data-icon="&#xe611;">&#xe611;</i>
  863. <p>信息</p>
  864. </a>
  865. </li>
  866. <li class="layui-nav-item btnWX" data-menu="systemeSttings" pc>
  867. <a>
  868. <i id="i_3" class="fa fa-weixin defaultClass" data-icon=""></i>
  869. <p>微信</p>
  870. </a>
  871. </li>
  872. @* <li class="layui-nav-item btnWB" data-menu="seraphApi" pc>
  873. <a>
  874. <i id="i_4" class="fa fa-weibo defaultClass" data-icon=""></i>
  875. <p>微博</p>
  876. </a>
  877. </li> *@
  878. @* <li class="layui-nav-item" pc>
  879. <a>
  880. <i id="i_5" class="fa fa-th-large" style=" color:#cccccc;" data-icon=""></i>
  881. </a>
  882. </li>
  883. <li class="layui-nav-item" pc>
  884. <a><i id="i_6" class="fa fa-envelope-o" style=" color:#cccccc;" data-icon=""></i></a>
  885. </li> *@
  886. <li class="layui-nav-item" pc>
  887. <input id="txt_7" type="hidden" value="0" />
  888. <a onclick="AgentFree()" title="坐席就绪">
  889. <i id="i_7" class="fa fa-play defaultClass" data-icon=""></i></a>
  890. <p>就绪</p>
  891. </li>
  892. <li class="layui-nav-item" pc>
  893. <input id="txt_8" type="hidden" value="0" />
  894. <a onclick="AgentBusy()" title="坐席小休">
  895. <i id="i_8" class="fa fa-pause defaultClass" data-icon=""></i>
  896. <p>小休</p>
  897. </a>
  898. </li>
  899. </ul>
  900. <!-- 顶部右侧菜单 -->
  901. <ul class="layui-nav top_menu">
  902. <li class="layui-nav-item">
  903. <a id="telLayerInfo" style=" display:none;"><img src="/Content/images/phone128.png"
  904. class="layui-nav-img userAvatar" width="35" height="35"><cite class="adminName">未处理来电</cite><sup
  905. id="supLayerCount" class="layui-badge">0</sup>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
  906. <dl id="telLayerInfoChild" class="layui-nav-child"></dl>
  907. </li>
  908. <!--软电话-->
  909. <li class="layui-nav-item " title="软电话">
  910. <i class="fa fa-whatsapp" data-method="confirmTrans" style="font-size: 25px !important;"></i>
  911. @* <cite class="adminName">软电话</cite> *@
  912. </li>
  913. <li class="layui-nav-item" title="通讯录" id="customerphone" style="margin-right: 80px;">
  914. <i class="fa fa-address-card" style="font-size: 25px !important;"></i>
  915. @* <cite class="adminName">通讯录</cite> *@
  916. </li>
  917. <li class="layui-nav-item" style="margin-right: 10px;" >
  918. <a title="小工具">
  919. <i class="layui-icon" style=" font-size: 25px !important;">&#xe631;</i>
  920. @* <cite class="adminName">小工具</cite> *@
  921. </a>
  922. <dl class="layui-nav-child">
  923. <dd>
  924. <a onclick="OpenOtherForm('周边', 'https://www.amap.com/')"><i class="fa fa-map-marker"
  925. style="font-size: 20px !important; margin: 0px 5px;"></i><cite
  926. style="text-align:left">周边</cite></a>
  927. </dd>
  928. <dd>
  929. <a onclick="OpenOtherForm('线路查询', 'http://www.zzmetro.com/lines/query/line')"><i class="fa fa-plane"
  930. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  931. style="text-align:left">线路查询</cite></a>
  932. </dd>
  933. <dd>
  934. <a onclick="OpenOtherForm('票价查询', 'http://www.zzmetro.com/lines/query/ticket')"><i class="fa fa-ticket"
  935. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  936. style="text-align:left">票价查询</cite></a>
  937. </dd>
  938. <dd>
  939. <a onclick="OpenOtherForm('运营时间', 'http://www.zzmetro.com/lines/query/operating_hours')"><i
  940. class="fa fa-clock-o" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  941. style="text-align:left">运营时间</cite></a>
  942. </dd>
  943. <dd>
  944. <a onclick="OpenOtherForm('站点查询', 'http://www.zzmetro.com/lines/query/station')"><i class="fa fa-train"
  945. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  946. style="text-align:left">站点查询</cite></a>
  947. </dd>
  948. <dd>
  949. <a onclick="OpenOtherForm('快速通讯录', 'http://portal.zzmetro.com/index.php?m=content&c=txl')"><i
  950. class="fa fa-tty" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  951. style="text-align:left">快速通讯录</cite></a>
  952. </dd>
  953. <dd>
  954. <a onclick="OpenOtherForm('官网入口', 'http://www.zzmetro.com/')"><i class="fa fa-internet-explorer"
  955. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  956. style="text-align:left">官网入口</cite></a>
  957. </dd>
  958. <dd>
  959. <a onclick="OpenOtherForm('常见Q&A', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=2')"><i
  960. class="fa fa-quora" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  961. style="text-align:left">常见Q&A</cite></a>
  962. </dd>
  963. <dd>
  964. <a onclick="OpenOtherForm('常用语', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=4')"><i
  965. class="fa fa-book" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  966. style="text-align:left">常用语</cite></a>
  967. </dd>
  968. <dd>
  969. <a onclick="OpenOtherForm('我的常用语', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=1')"><i
  970. class="fa fa-rebel" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  971. style="text-align:left">我的常用语</cite></a>
  972. </dd>
  973. </dl>
  974. </li>
  975. <li class="layui-nav-item" style="margin-right: 10px;" >
  976. <a title="小工具">
  977. <i class="layui-icon" style=" font-size: 25px !important;">&#xe705;</i>
  978. @* <cite class="adminName">小工具</cite> *@
  979. </a>
  980. <dl class="layui-nav-child">
  981. <dd>
  982. <a onclick="OpenOtherForm('失物招领', 'https://portal.zzmetro.cn:4455/zw/loginController.do?loginSign')">
  983. <i class="fa fa-bank" style="font-size: 19px !important; margin-right: 0px 0px 0px -5px !important;"></i>
  984. <cite style="text-align:left">失物招领</cite>
  985. </a>
  986. </dd>
  987. <dd>
  988. <a onclick="OpenOtherForm('公司内网', 'http://portal.zzmetro.cn:7819/manage/sso')">
  989. <i class="fa fa-arrows-alt" style="font-size: 20px !important; margin-right: 5px;"></i>
  990. <cite style="text-align:left">公司内网</cite>
  991. </a>
  992. </dd>
  993. <dd>
  994. <a onclick="OpenOtherForm('集团门户', 'https://portal.zzmetro.cn:4443/webcenter')">
  995. <i class="fa fa-bookmark" style="font-size: 20px !important; margin-right: 5px;"></i>
  996. <cite style="text-align:left">集团门户</cite>
  997. </a>
  998. </dd>
  999. <dd>
  1000. <a onclick="OpenOtherForm('邮箱入口', 'https://portal.zzmetro.cn:4456/webmailsso.php')"><i class="fa fa-envelope"
  1001. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  1002. style="text-align:left">邮箱入口</cite></a>
  1003. </dd>
  1004. </dl>
  1005. </li>
  1006. <li class="layui-nav-item" id="userInfo">
  1007. <a><img src="@Model.UserAccountModel.F_HomePhone" class="layui-nav-img userAvatar" width="35"
  1008. height="35"><cite class="adminName">@Model.UserAccountModel.F_UserName</cite></a>
  1009. <dl class="layui-nav-child">
  1010. <dd>
  1011. <a id="userinfo"><i class="layui-icon">&#xe705;</i><cite>个人信息</cite></a>
  1012. </dd>
  1013. <dd>
  1014. <a id="userpwd"><i class="layui-icon"> &#xe620;</i><cite>修改密码</cite></a>
  1015. </dd>
  1016. <dd>
  1017. <a href="javascript:logout()" id="exitsystem"><i class="fa fa-power-off"> </i><cite>退出系统</cite></a>
  1018. </dd>
  1019. </dl>
  1020. </li>
  1021. </ul>
  1022. </div>
  1023. </div>
  1024. <!-- 左侧导航 -->
  1025. <div class="layui-side layui-bg-black">
  1026. <div class="navBar layui-side-scroll" id="navBar">
  1027. <ul class="layui-nav layui-nav-tree leftMenu" lay-filter="demo" lay-shrink="all">
  1028. @if (Model != null && Model.MenuModelList != null && Model.MenuModelList.Count > 0)
  1029. {
  1030. int i = 0;
  1031. foreach (T_Sys_ModuleFunctions rootNode in Model.MenuModelList)
  1032. {
  1033. <li class="layui-nav-item">
  1034. @if (rootNode.F_ModuleId > 0)
  1035. {
  1036. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
  1037. data-url="@rootNode.F_OptUrl">
  1038. <i class="@rootNode.F_ImgUrl defaultClass"></i> @rootNode.F_Name
  1039. <sup class="layui-badge @rootNode.F_ModuleCode" style="display:none;margin-left:155px;">0</sup>
  1040. </a>
  1041. }
  1042. else
  1043. {
  1044. if (rootNode.F_FunctionId == 5)
  1045. {
  1046. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
  1047. data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name<sup
  1048. style="position:inherit;margin-left:40px;" class="layui-badge totalOrderCount">0</sup></a>
  1049. }
  1050. else if (rootNode.F_FunctionId == 2)
  1051. {
  1052. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
  1053. data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name<sup
  1054. style="position:inherit;margin-left:40px; height:18px; line-height:18px; display:none" class="layui-badge wXCount">0</sup></a>
  1055. }
  1056. else
  1057. {
  1058. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
  1059. data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name</a>
  1060. }
  1061. }
  1062. @if (rootNode.ChildMenuModelList != null && rootNode.ChildMenuModelList.Count > 0)
  1063. {
  1064. <dl class="layui-nav-child">
  1065. @foreach (T_Sys_ModuleFunctions childNode in rootNode.ChildMenuModelList)
  1066. {
  1067. if (childNode.F_FunctionId == 16)
  1068. {
  1069. <dd>
  1070. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  1071. @childNode.F_Name
  1072. <sup class="layui-badge orderNeedCount" style="margin-left:50px;">0</sup>
  1073. </a>
  1074. </dd>
  1075. }
  1076. else if (childNode.F_FunctionId == 17)
  1077. {
  1078. <dd>
  1079. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  1080. @childNode.F_Name
  1081. <sup class="layui-badge orderCount" style="margin-left:50px;">0</sup>
  1082. </a>
  1083. </dd>
  1084. }
  1085. else if (childNode.F_FunctionId == 105)
  1086. {
  1087. <dd>
  1088. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  1089. @childNode.F_Name
  1090. <sup class="layui-badge WorkOrderMyDealedDataCount" style="margin-left:50px;">0</sup>
  1091. </a>
  1092. </dd>
  1093. }
  1094. else if (childNode.F_FunctionId == 105)
  1095. {
  1096. <dd>
  1097. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  1098. @childNode.F_Name
  1099. <sup class="layui-badge WorkOrderShenPiCount" style="margin-left:50px;">0</sup>
  1100. </a>
  1101. </dd>
  1102. }
  1103. else if (childNode.F_FunctionId == 18)
  1104. {
  1105. <dd>
  1106. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  1107. @childNode.F_Name
  1108. <sup class="layui-badge orderCount" style="margin-left:50px;">0</sup>
  1109. </a>
  1110. </dd>
  1111. }
  1112. else if (childNode.F_FunctionId == 69)
  1113. {
  1114. <dd>
  1115. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  1116. @childNode.F_Name
  1117. <sup class="layui-badge orderCountWb" style="margin-left:50px;">0</sup>
  1118. </a>
  1119. </dd>
  1120. }
  1121. else if (childNode.F_FunctionId == 84)
  1122. {
  1123. <dd>
  1124. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  1125. @childNode.F_Name
  1126. <sup class="layui-badge orderlistHFCount" style="margin-left:50px;">0</sup>
  1127. </a>
  1128. </dd>
  1129. }
  1130. else if (childNode.F_FunctionId == 106)
  1131. {
  1132. <dd>
  1133. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  1134. @childNode.F_Name
  1135. <sup class="layui-badge WorkOrderMyVisitedDataCount" style="margin-left:50px;">0</sup>
  1136. </a>
  1137. </dd>
  1138. }
  1139. else if (childNode.F_FunctionId == 86)
  1140. {
  1141. <dd>
  1142. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  1143. @childNode.F_Name
  1144. <sup class="layui-badge OrderMyDataDZCount" style="margin-left:50px;">0</sup>
  1145. </a>
  1146. </dd>
  1147. }
  1148. else
  1149. {
  1150. <dd><a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon=""
  1151. data-url="@childNode.F_OptUrl">@childNode.F_Name</a></dd>
  1152. }
  1153. }
  1154. </dl>
  1155. }
  1156. </li>
  1157. i++;
  1158. }
  1159. }
  1160. </ul>
  1161. </div>
  1162. </div>
  1163. <!-- 右侧内容 -->
  1164. <div class="layui-body layui-form">
  1165. <iframe id="mainframe" src="/Main/IndexCenter"></iframe>
  1166. <div class="callScreen">
  1167. <blockquote class="layui-elem-quote layui-text" style="font-size: larger; display: none;">
  1168. 来电弹屏
  1169. </blockquote>
  1170. <div class="maskTask"></div>
  1171. <div class="telLine">
  1172. <div class="title">转接信息<span class="closeBtn">×</span></div>
  1173. <div class="telLineUl">
  1174. <ul class="layui-nav">
  1175. </ul>
  1176. </div>
  1177. </div>
  1178. <div class="layui-fluid">
  1179. <div class="layui-row layui-col-space15">
  1180. <div class="layui-col-md9">
  1181. <form class="layui-form layui-card">
  1182. <input id="F_CustomerId" value="" type="hidden" />
  1183. <input id="workOrderNum" value="" type="hidden" />
  1184. <input id="F_ScaleResume" value="1" type="hidden" />
  1185. <input id="F_CustomerClass" value="一般客户" type="hidden" />
  1186. <div class="layui-card-header">
  1187. <label class="layui-form-label">
  1188. 电话号码:
  1189. </label>
  1190. <span id="F_Telephone" class="layui-form-label"></span>
  1191. <span id="F_CustomerLayer" style="width:120px;text-align:left" class="layui-form-label"></span>
  1192. <div style="float: right;">
  1193. <div class="layui-btn-group">
  1194. @* 普通 *@
  1195. <div class="F_ScaleResume1 F_ScaleResume">
  1196. <div id="historyCustom" class="layui-btn layui-btn-normal bookChildBtn" onclick="btnOpt(1)" style="width: 70px;">
  1197. <i class="fa fa-address-card-o"style="font-size: 24px; "></i>
  1198. </div>
  1199. <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
  1200. style="width: 60px; border-left:none">
  1201. <i class="fa fa-heart"
  1202. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  1203. </div>
  1204. <div title="白名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(10)"
  1205. style="width: 60px; border-left:none; background:#cccccc;">
  1206. <i class="fa fa-user-plus"
  1207. style="font-size: 32px !important; margin-left :0px; margin-top:0px; color:#ffffff;"></i>
  1208. </div>
  1209. <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
  1210. style="width: 60px; border-left:none">
  1211. <i class="fa fa-user-times"
  1212. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  1213. </div>
  1214. </div>
  1215. @* 特别 *@
  1216. <div class="F_ScaleResume2 F_ScaleResume">
  1217. <div id="historyCustom" class="layui-btn layui-btn-normal bookChildBtn" onclick="btnOpt(1)" style="width: 50px;">
  1218. <i class="fa fa-address-card-o" style="font-size: 24px; "></i>
  1219. </div>
  1220. <div title="关注度" class="layui-btn layui-btn-warm careCustom bookChildBtn" onclick="btnOpt(2)"
  1221. style="width: 170px;border-left:none">
  1222. <i class="fa fa-heart"
  1223. style="font-size: 32px !important; margin-left :0px;margin-top:0px;color:deeppink;"></i>
  1224. </div>
  1225. <div title="白名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(10)"
  1226. style="width: 60px;border-left:none; background:#cccccc;">
  1227. <i class="fa fa-user-plus"
  1228. style="font-size: 32px !important; margin-left :0px; margin-top:0px; color:#ffffff;"></i>
  1229. </div>
  1230. <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
  1231. style="width: 60px;border-left:none">
  1232. <i class="fa fa-user-times"
  1233. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#000000;"></i>
  1234. </div>
  1235. </div>
  1236. @* 黑名单 *@
  1237. <div class="F_ScaleResume3 F_ScaleResume">
  1238. <div id="historyCustom" class="layui-btn layui-btn-normal bookChildBtn" onclick="btnOpt(1)" style="width: 50px;">
  1239. <i class="fa fa-address-card-o" style="font-size: 24px; "></i>
  1240. </div>
  1241. <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
  1242. style="border-left:none">
  1243. <i class="fa fa-heart"
  1244. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  1245. </div>
  1246. <div title="白名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(10)"
  1247. style="width: 60px;border-left:none; background:#cccccc;">
  1248. <i class="fa fa-user-plus"
  1249. style="font-size: 32px !important; margin-left :0px; margin-top:0px; color:#ffffff;"></i>
  1250. </div>
  1251. <div title="黑名单" class="layui-btn layui-btn-danger blackCustom bookChildBtn" onclick="btnOpt(3)"
  1252. style="width: 170px; border-left: none">
  1253. <i class="fa fa-user-times"
  1254. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:black;">黑名单</i>
  1255. </div>
  1256. </div>
  1257. @* 白名单 *@
  1258. <div class="F_ScaleResume4 F_ScaleResume">
  1259. <div id="historyCustom" class="layui-btn layui-btn-normal bookChildBtn" onclick="btnOpt(1)" style="width: 50px;">
  1260. <i class="fa fa-address-card-o" style="font-size: 24px; "></i>
  1261. </div>
  1262. <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
  1263. style="width: 60px;border-left:none">
  1264. <i class="fa fa-heart"
  1265. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  1266. </div>
  1267. <div title="白名单" class="layui-btn layui-btn-danger blackCustom bookChildBtn" onclick="btnOpt(10)"
  1268. style="width: 170px; border-left: none">
  1269. <i class="fa fa-user-plus"
  1270. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:cccccc;">白名单</i>
  1271. </div>
  1272. <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
  1273. style="width: 60px;border-left:none">
  1274. <i class="fa fa-user-times"
  1275. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  1276. </div>
  1277. </div>
  1278. </div>
  1279. &nbsp;&nbsp;&nbsp;&nbsp;
  1280. <div class="layui-btn-group " style="position: relative; height:50px; margin-top:-10px">
  1281. <div title="挂断" class="layui-btn layui-btn-danger layui-btn-sm" onclick="btnOpt(4)"
  1282. style="width: 70px;height:50px;">
  1283. <i class="layui-icon">&#xe64d;</i>
  1284. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 挂断</span>
  1285. </div>
  1286. <div title="转回IVR" class="layui-btn layui-btn-normal layui-btn-sm" onclick="btnOpt(8)"
  1287. style="width: 70px;height:50px;">
  1288. <i class="fa fa-volume-control-phone"></i>
  1289. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px -3px; display:block; text-align: left;"> 转回IVR</span>
  1290. </div>
  1291. <div title="保持" class="layui-btn layui-btn-warm layui-btn-sm" onclick="btnOpt(5)" style="width: 70px;height:50px;">
  1292. <i class="fa fa-microphone-slash"></i>
  1293. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 保持</span>
  1294. </div>
  1295. <div title="接回" class="layui-btn layui-btn-warm layui-btn-sm" onclick="btnOpt(6)" style="width: 70px;height:50px;">
  1296. <i class="fa fa-microphone"></i>
  1297. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 接回</span>
  1298. </div>
  1299. <div title="转移" class="layui-btn layui-btn-normal layui-btn-sm" onclick="btnOpt(7)"
  1300. style="width: 70px;height:50px;">
  1301. <i class="layui-icon">&#xe613;</i>
  1302. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 转移</span>
  1303. </div>
  1304. <div title="一键转接" class="layui-btn layui-btn-normal layui-btn-sm keySwitch" style="width: 70px;height:50px;">
  1305. <i class="fa fa-users"></i>
  1306. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px -10px; display:block; text-align: left;"> 一键转接</span>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. </div>
  1311. <div class="layui-card-body">
  1312. <div class="layui-row layui-col-space15">
  1313. <div class="layui-col-md4">
  1314. <label class="layui-form-label">
  1315. 姓名:
  1316. </label>
  1317. <div class="layui-input-block">
  1318. <input type="text" id="F_CustomerName"
  1319. value="" placeholder="" autocomplete="off"
  1320. class="layui-input" />
  1321. </div>
  1322. </div>
  1323. <div class="layui-col-md4">
  1324. <label class="layui-form-label">
  1325. 性别:
  1326. </label>
  1327. <input id="F_CustomerPym" type="hidden"></input>
  1328. <div class="layui-input-block sexParamNan">
  1329. <input type="radio" name="F_CustomerPymNa" value="男" title="男" checked=""/>
  1330. <input type="radio" name="F_CustomerPymNa" value="女" title="女" />
  1331. </div>
  1332. <div class="layui-input-block sexParamNv">
  1333. <input type="radio" name="F_CustomerPymNv" value="男" title="男" />
  1334. <input type="radio" name="F_CustomerPymNv" value="女" title="女" checked=""/>
  1335. </div>
  1336. <div class="layui-input-block sexParam">
  1337. <input type="radio" name="F_CustomerPym" value="男" title="男" />
  1338. <input type="radio" name="F_CustomerPym" value="女" title="女" checked=""/>
  1339. </div>
  1340. </div>
  1341. <div class="layui-col-md4" style="display: flex;">
  1342. <label class="layui-form-label">
  1343. 年龄段:
  1344. </label>
  1345. <input id="F_CustomerCode" type="hidden"></input>
  1346. <div class="layui-input-inline F_CustomerCode F_CustomerCodeNew">
  1347. <select id="F_CustomerCodeNew" lay-search="">
  1348. <option value=""></option>
  1349. <option value="20以下">20以下</option>
  1350. <option value="20~30">20~30</option>
  1351. <option value="30~40">30~40</option>
  1352. <option value="40~50">40~50</option>
  1353. <option value="50以上">50以上</option>
  1354. </select>
  1355. </div>
  1356. <div class="layui-input-inline F_CustomerCode F_CustomerCode20">
  1357. <select id="F_CustomerCode20" lay-search="">
  1358. <option value=""></option>
  1359. <option value="20以下" selected>20以下</option>
  1360. <option value="20~30">20~30</option>
  1361. <option value="30~40">30~40</option>
  1362. <option value="40~50">40~50</option>
  1363. <option value="50以上">50以上</option>
  1364. </select>
  1365. </div>
  1366. <div class="layui-input-inline F_CustomerCode F_CustomerCode30">
  1367. <select id="F_CustomerCode30" lay-search="">
  1368. <option value=""></option>
  1369. <option value="20以下">20以下</option>
  1370. <option value="20~30" selected>20~30</option>
  1371. <option value="30~40">30~40</option>
  1372. <option value="40~50">40~50</option>
  1373. <option value="50以上">50以上</option>
  1374. </select>
  1375. </div>
  1376. <div class="layui-input-inline F_CustomerCode F_CustomerCode40">
  1377. <select id="F_CustomerCode40" lay-search="">
  1378. <option value=""></option>
  1379. <option value="20以下">20以下</option>
  1380. <option value="20~30">20~30</option>
  1381. <option value="30~40" selected>30~40</option>
  1382. <option value="40~50">40~50</option>
  1383. <option value="50以上">50以上</option>
  1384. </select>
  1385. </div>
  1386. <div class="layui-input-inline F_CustomerCode F_CustomerCode50">
  1387. <select id="F_CustomerCode50" lay-search="">
  1388. <option value=""></option>
  1389. <option value="20以下">20以下</option>
  1390. <option value="20~30">20~30</option>
  1391. <option value="30~40">30~40</option>
  1392. <option value="40~50" selected>40~50</option>
  1393. <option value="50以上">50以上</option>
  1394. </select>
  1395. </div>
  1396. <div class="layui-input-inline F_CustomerCode F_CustomerCode51">
  1397. <select id="F_CustomerCode51" lay-search="">
  1398. <option value=""></option>
  1399. <option value="20以下">20以下</option>
  1400. <option value="20~30">20~30</option>
  1401. <option value="30~40">30~40</option>
  1402. <option value="40~50">40~50</option>
  1403. <option value="50以上" selected>50以上</option>
  1404. </select>
  1405. </div>
  1406. </div>
  1407. <div class="layui-col-md4">
  1408. <label class="layui-form-label">
  1409. 微信号:
  1410. </label>
  1411. <div class="layui-input-block">
  1412. <input id="F_CustomerEName" value=""
  1413. autocomplete="off" placeholder="" class="layui-input" type="text" />
  1414. </div>
  1415. </div>
  1416. <div class="layui-col-md4">
  1417. <label class="layui-form-label">
  1418. 微博号:
  1419. </label>
  1420. <div class="layui-input-block">
  1421. <input id="F_PostCode" value=""
  1422. autocomplete="off" placeholder="" class="layui-input" type="text" />
  1423. </div>
  1424. </div>
  1425. </div>
  1426. </div>
  1427. </form>
  1428. <div class="layui-card layui-form" lay-filter="component-form-element">
  1429. <div class="layui-card-header setLine">
  1430. <ul class="layui-nav lineState" data-attr="1" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  1431. style="color: #cccccc;">一号线</a></ul>
  1432. <ul class="layui-nav lineState" data-attr="2" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  1433. style="color: #cccccc;">二号线</a></ul>
  1434. <ul class="layui-nav lineState" data-attr="3" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  1435. style="color: #cccccc;">三号线</a></ul>
  1436. <ul class="layui-nav lineState" data-attr="4" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  1437. style="color: #cccccc;">四号线</a></ul>
  1438. <ul class="layui-nav lineState" data-attr="5" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  1439. style="color: #cccccc;">五号线</a></ul>
  1440. <ul class="layui-nav lineState" data-attr="14" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  1441. style="color: #cccccc;">十四号线</a></ul>
  1442. <ul class="layui-nav lineState" data-attr="100" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  1443. style="color: #cccccc;">城郊线</a></ul>
  1444. <ul class="layui-nav lineState" data-attr="101" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  1445. style="color: #cccccc;">其它线路</a></ul>
  1446. </div>
  1447. <div class="layui-card-header" id="ModelList">
  1448. </div>
  1449. </div>
  1450. <div class="layui-card layui-form" lay-filter="component-form-element">
  1451. <div class="layui-card-header">
  1452. 历史工单
  1453. </div>
  1454. <div id="content" class="flowContent">
  1455. <table class="layui-table" id="test" lay-filter="demo111">
  1456. </table>
  1457. </div>
  1458. </div>
  1459. </div>
  1460. <div class="layui-col-md3">
  1461. <div class="layui-card">
  1462. <div class="layui-card-header">
  1463. 快捷入口
  1464. </div>
  1465. <div class="layui-card-body" style="text-align: center;">
  1466. <div class="layui-form" action="" lay-filter="component-form-element">
  1467. <button class="layui-btn layui-btn-radius layui-btn-primary"
  1468. onclick="OpenOtherForm('周边', 'https://www.amap.com/')" style="width: 150px;">
  1469. 周边
  1470. </button>
  1471. <div style="height: 3px;">
  1472. &nbsp;
  1473. </div>
  1474. <button class="layui-btn layui-btn-radius layui-btn-primary"
  1475. onclick="OpenOtherForm('线路查询','http://www.zzmetro.com/lines/query/line')" style="width: 150px;">
  1476. 线路查询
  1477. </button>
  1478. <div style="height: 3px;">
  1479. &nbsp;
  1480. </div>
  1481. <button class="layui-btn layui-btn-radius layui-btn-primary"
  1482. onclick="OpenOtherForm('票价查询','http://www.zzmetro.com/lines/query/ticket')" style="width: 150px;">
  1483. 票价查询
  1484. </button>
  1485. <div style="height: 3px;">
  1486. &nbsp;
  1487. </div>
  1488. <button class="layui-btn layui-btn-radius layui-btn-primary"
  1489. onclick="OpenOtherForm('运营时间','http://www.zzmetro.com/lines/query/operating_hours')"
  1490. style="width: 150px;">
  1491. 运营时间
  1492. </button>
  1493. <div style="height: 3px;">
  1494. &nbsp;
  1495. </div>
  1496. <button class="layui-btn layui-btn-radius layui-btn-primary"
  1497. onclick="OpenOtherForm('站点查询','http://www.zzmetro.com/lines/query/station')" style="width: 150px;">
  1498. 站点查询
  1499. </button>
  1500. <div style="height: 3px;">
  1501. &nbsp;
  1502. </div>
  1503. <button class="layui-btn layui-btn-radius layui-btn-primary"
  1504. onclick="OpenOtherForm('快速通讯录','http://portal.zzmetro.com/index.php?m=content&c=txl')"
  1505. style="width: 150px;">
  1506. 快速通讯录
  1507. </button>
  1508. <div style="height: 3px;">
  1509. &nbsp;
  1510. </div>
  1511. <button class="layui-btn layui-btn-radius layui-btn-primary"
  1512. onclick="OpenOtherForm('官网入口','http://www.zzmetro.com/')" style="width: 150px;">
  1513. 官网入口
  1514. </button>
  1515. </div>
  1516. </div>
  1517. </div>
  1518. <div class="layui-card">
  1519. <div class="layui-card-header">
  1520. 快捷回复
  1521. </div>
  1522. <div class="layui-card-header" style="display: inline-block;">
  1523. <input type="text" style="width: 200px; display: inline;" placeholder="" autocomplete="off"
  1524. class="layui-input" id="keyWord">
  1525. <button class="layui-btn layui-btn-normal layui-btn-normal serchBtn">
  1526. <i class="layui-icon">&#xe615; 查 询</i>
  1527. </button>
  1528. </div>
  1529. <div class="layui-card-body">
  1530. <div class="quick-head">
  1531. <span class="tag action" data-attr="0">公共回复<span class="countNum gyNum"> </span></span>
  1532. <span class="tag" data-attr="1">私有回复<span class="countNum syNum"> </span></span>
  1533. </div>
  1534. <div class="quick-list"></div>
  1535. </div>
  1536. </div>
  1537. </div>
  1538. @* <div class="fastReply">快捷回复</div> *@
  1539. </div>
  1540. </div>
  1541. <textarea id="inputs" type="hidden"></textarea>
  1542. </div>
  1543. </div>
  1544. <!-- 底部 -->
  1545. <div class="layui-footer footer">
  1546. <div style="float: left; padding-left: 8px;" id="TelState">
  1547. <div style="float: left; padding-top: 4px;">
  1548. 服务状态:
  1549. </div>
  1550. <div style="float: left; padding-top: 3px;">
  1551. <img id="imgServerState" src="/Content/images/server0.png" alt="未连接" />
  1552. </div>
  1553. <div style="float: left; padding-top: 3px;">
  1554. &nbsp;&nbsp;坐席状态:
  1555. </div>
  1556. <div style="float: left; padding-top: 3px;">
  1557. <img id="imgAgentState" src="/Content/images/zx2.png" alt="未登录" />
  1558. </div>
  1559. <div style="float: left; padding-top: 3px;">
  1560. &nbsp;&nbsp;排队数量:
  1561. </div>
  1562. <div style="float: left; padding-top: 3px;">
  1563. <span id="spanqueuingnum" class="layui-badge">0</span>
  1564. </div>
  1565. <div style="float: left; padding-top: 3px;">
  1566. &nbsp;&nbsp;<span id="spanServerRes" style="color: #eeeeee;"></span>
  1567. </div>
  1568. </div>
  1569. <div style="float:right;">
  1570. <p><span>© 版权所有 郑州地铁集团运营分公司</span></p>
  1571. </div>
  1572. </div>
  1573. </div>
  1574. <div class="popRemind">
  1575. <div>系统掉线,请重新签入!</div>
  1576. </div>
  1577. <!-- 移动导航 -->
  1578. @*<div class="site-tree-mobile"><i class="layui-icon">&#xe602;</i></div>
  1579. <div class="site-mobile-shade"></div>*@
  1580. <script type="text/javascript">
  1581. function OpenOtherForm(title, url) {
  1582. window.open(url, title);
  1583. //top.OCX_OpenOtherForm(title, url);
  1584. }
  1585. </script>
  1586. <script src="/Content/layui/layui.js"></script>
  1587. <script src="/Content/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  1588. @*<script type="text/javascript" src="/Content/js/index.js" charset="utf-8"></script>*@
  1589. <script type="text/javascript" src="/Content/js/cache.js"></script>
  1590. <script src="/Content/js/myindex.js" type="text/javascript" charset="utf-8"></script>
  1591. <script src="~/Content/js/passWord/pwdValueDate.js"></script>
  1592. <script src="/Content/js/CallRecord/callscreen.js"></script>
  1593. <script src="/Content/js/WorkOrder/workorderalllist.js" charset="utf-8"></script>
  1594. <script src="/Content/layui/formatdate.js"></script>
  1595. <script>
  1596. layui.use(['layer', 'jquery'], function () {
  1597. var form = layui.form,
  1598. layer = parent.layer === undefined ? layui.layer : parent.layer,
  1599. $ = layui.jquery;
  1600. $(".fa-whatsapp").click(function () {
  1601. if ($("#HdIswin").val()) {
  1602. layer.open({
  1603. type: 2,
  1604. anim: 4,
  1605. scrollbar: false,
  1606. content: '/Main/PhoneCall',
  1607. area: ['400px', '420px'],
  1608. id: 'PhoneCall',
  1609. title: '软电话'
  1610. });
  1611. }
  1612. else {
  1613. layer.msg('无权限', { icon: 5, time: 2000 });
  1614. return;
  1615. }
  1616. });
  1617. })
  1618. </script>
  1619. <script type="text/javascript">
  1620. function telajaxopt(opturl) {
  1621. var r = "";
  1622. try {
  1623. $.ajax({
  1624. type: 'get',
  1625. url: opturl,
  1626. dataType: 'html',
  1627. async: false,
  1628. cache: false,
  1629. success: function (res) {
  1630. r = res;
  1631. }
  1632. });
  1633. }
  1634. catch (e) {
  1635. //$.ligerDialog.error(e.message);
  1636. }
  1637. return r;
  1638. }
  1639. //电话操作事件
  1640. //话机状态改变事件
  1641. function OnPhoneStatusNotify(status) {
  1642. var timeno = new Date().getTime();
  1643. //document.getElementById("spanServerRes").innerHTML = "状态:" + status;
  1644. }
  1645. //获取APPID
  1646. function GetAPPID() {
  1647. var cid = OCX_GetCallID("");
  1648. //更新APPID
  1649. return cid;
  1650. }
  1651. function UpdateRecPath() {
  1652. var appid = "";
  1653. appid = GetAPPID();
  1654. var timeno = new Date().getTime();
  1655. var callID = document.getElementById("CallHjbh").value;
  1656. telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=luyinEvent&callid=" + callID + "&path=" + appid + "&timeno=" + timeno); //录音开始事件
  1657. }
  1658. //录音成功
  1659. function Form_callComming(callerNum, parth) {
  1660. var timeno = new Date().getTime();
  1661. telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=luyinEvent&callid=" + document.getElementById("CallHjbh").value + "&path=" + parth + "&timeno=" + timeno); //录音开始事件
  1662. //Form_setWinfromenble("True", "false", "false", "false", "True", "True", "True", "false", "false", "false");
  1663. }
  1664. function getCallerNum() {
  1665. var calnum = document.getElementById("callnum").value;
  1666. return calnum;
  1667. }
  1668. function clearCallerNum() {
  1669. document.getElementById("callnum").value = "";
  1670. }
  1671. function getCallHjbh() {
  1672. var cid = document.getElementById("CallHjbh").value;
  1673. return cid;
  1674. }
  1675. function clearCallHjbh() {
  1676. document.getElementById("CallHjbh").value = "";
  1677. }
  1678. </script>
  1679. <script>
  1680. var tellayercount = 0;
  1681. var nowtime = "";
  1682. var arrLayerTime = new Array();
  1683. function ShowLayerByTimes(times) {
  1684. nowtime = times;
  1685. var aid = "layui-layer" + times;
  1686. //$('#' + aid).show();
  1687. $("#" + aid).find(".layui-layer-max").click();
  1688. }
  1689. function CloseLayerByTimes(times) {
  1690. var aid = "layui-layer" + times;
  1691. //$('#' + aid).show();
  1692. $("#" + aid).find(".layui-layer-close").click();
  1693. }
  1694. function CloseLayerNow() {
  1695. var aid = "layui-layer" + nowtime;
  1696. //$('#' + aid).show();
  1697. $("#" + aid).find(".layui-layer-close").click();
  1698. }
  1699. function InitTelLayerList() {
  1700. var html = "";
  1701. for (var ai = 0; ai < arrLayerTime.length; ai++) {
  1702. var atime = arrLayerTime[ai];
  1703. var aid = "layui-layer" + atime;
  1704. var title = $('#' + aid + ' .layui-layer-title').text();
  1705. var sindex = title.indexOf('-');
  1706. title = title.substr(0, sindex);
  1707. html += "<dd><a href=\"javascript:ShowLayerByTimes(" + atime + ");\" ><i class=\"fa fa-phone\"></i><cite>" + title + "</cite></a></dd>";
  1708. }
  1709. $('#telLayerInfoChild').html(html);
  1710. }
  1711. function CloseOpenTel(atime) {
  1712. tellayercount--;
  1713. if (tellayercount <= 0) {
  1714. tellayercount = 0;
  1715. document.getElementById("telLayerInfo").style.display = "none";
  1716. }
  1717. document.getElementById("supLayerCount").innerHTML = tellayercount;
  1718. //var atime = layero.attr("times");
  1719. var sindex = arrLayerTime.indexOf(atime);
  1720. if (sindex > -1) {
  1721. arrLayerTime.splice(sindex, 1);
  1722. }
  1723. InitTelLayerList();
  1724. }
  1725. function OpenTelLayer(t, urlSrc) {//多窗口模式,层叠置顶
  1726. layui.use(['element', 'layer'], function () {
  1727. var element = layui.element,
  1728. layer = layui.layer; //获得layer模块
  1729. layer.open({
  1730. type: 2 //此处以iframe举例
  1731. , title: t
  1732. , area: ['80%', '80%']
  1733. , shade: 0
  1734. , maxmin: true
  1735. , content: urlSrc
  1736. , zIndex: layer.zIndex //重点1
  1737. , success: function (layero) {
  1738. tellayercount++;
  1739. document.getElementById("supLayerCount").innerHTML = tellayercount;
  1740. document.getElementById("telLayerInfo").style.display = "inline";
  1741. layer.setTop(layero); //重点2
  1742. nowtime = layero.attr("times");
  1743. arrLayerTime.push(layero.attr("times"));
  1744. InitTelLayerList();
  1745. }, min: function (layero) {
  1746. //setTimeout(function () { layero.css({ left:"180px",width:"280px" }); }, 0);
  1747. //alert(layero.attr("times"));
  1748. //var w = document.body.clientWidth;
  1749. //var rowcount = w / 181;
  1750. //for (var i = 0; i < arrLayerTime.length; i++) {
  1751. // var atime = arrLayerTime[i];
  1752. // var id = "layui-layer" + atime;
  1753. // var obj = document.getElementById(id);
  1754. //}
  1755. var atime = layero.attr("times");
  1756. var aid = "layui-layer" + atime;
  1757. //$('#' + aid).hide();
  1758. setTimeout(function () { layero.css({ width: "0px", height: "0px" }); }, 0);
  1759. }, cancel: function (index, layero) {
  1760. CloseOpenTel(layero.attr("times"));
  1761. }
  1762. });
  1763. });
  1764. }
  1765. function tabMove() {
  1766. $(window).on("resize", function (event) {
  1767. var topTabsBox = $("#top_tabs_box"),
  1768. topTabsBoxWidth = $("#top_tabs_box").width(),
  1769. topTabs = $("#top_tabs"),
  1770. topTabsWidth = $("#top_tabs").width(),
  1771. tabLi = topTabs.find("li.layui-this"),
  1772. top_tabs = document.getElementById("top_tabs"),
  1773. event = event || window.event;
  1774. try {
  1775. if (topTabsWidth > topTabsBoxWidth) {
  1776. if (tabLi.position().left > topTabsBoxWidth || tabLi.position().left + topTabsBoxWidth > topTabsWidth) {
  1777. topTabs.css("left", topTabsBoxWidth - topTabsWidth);
  1778. } else {
  1779. topTabs.css("left", -tabLi.position().left);
  1780. }
  1781. //拖动效果
  1782. var flag = false;
  1783. var cur = {
  1784. x: 0,
  1785. y: 0
  1786. }
  1787. var nx, dx, x;
  1788. function down() {
  1789. flag = true;
  1790. var touch;
  1791. if (event.touches) {
  1792. touch = event.touches[0];
  1793. } else {
  1794. touch = event;
  1795. }
  1796. cur.x = touch.clientX;
  1797. dx = top_tabs.offsetLeft;
  1798. }
  1799. function move() {
  1800. var self = this;
  1801. if (flag) {
  1802. window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
  1803. var touch;
  1804. if (event.touches) {
  1805. touch = event.touches[0];
  1806. } else {
  1807. touch = event;
  1808. }
  1809. nx = touch.clientX - cur.x;
  1810. x = dx + nx;
  1811. if (x > 0) {
  1812. x = 0;
  1813. } else {
  1814. if (x < topTabsBoxWidth - topTabsWidth) {
  1815. x = topTabsBoxWidth - topTabsWidth;
  1816. } else {
  1817. x = dx + nx;
  1818. }
  1819. }
  1820. top_tabs.style.left = x + "px";
  1821. //阻止页面的滑动默认事件
  1822. document.addEventListener("touchmove", function () {
  1823. event.preventDefault();
  1824. }, false);
  1825. }
  1826. }
  1827. //鼠标释放时候的函数
  1828. function end() {
  1829. flag = false;
  1830. }
  1831. //pc端拖动效果
  1832. topTabs.on("mousedown", down);
  1833. topTabs.on("mousemove", move);
  1834. $(document).on("mouseup", end);
  1835. //移动端拖动效果
  1836. topTabs.on("touchstart", down);
  1837. topTabs.on("touchmove", move);
  1838. topTabs.on("touchend", end);
  1839. } else {
  1840. //移除pc端拖动效果
  1841. topTabs.off("mousedown", down);
  1842. topTabs.off("mousemove", move);
  1843. topTabs.off("mouseup", end);
  1844. //移除移动端拖动效果
  1845. topTabs.off("touchstart", down);
  1846. topTabs.off("touchmove", move);
  1847. topTabs.off("touchend", end);
  1848. topTabs.removeAttr("style");
  1849. return false;
  1850. }
  1851. }
  1852. catch (e) {
  1853. alert(e.message);
  1854. }
  1855. }).resize();
  1856. }
  1857. var tabFilter, menu = [], liIndex, curNav, delMenu,
  1858. changeRefreshStr = window.sessionStorage.getItem("changeRefresh");
  1859. layui.use('element', function () {
  1860. var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
  1861. var pwd = $("#Password").val();
  1862. if (checkStrong(pwd) == "0" || checkStrong(pwd) == "1") {
  1863. layer.open({
  1864. content: '密码等级太低,请先修改密码'
  1865. , btn: ['好的', '稍后再去']
  1866. , yes: function (index, layero) {
  1867. layer.close(index);
  1868. //AddTabPage('editpsd', 'fa fa-lock', '', '修改密码','/SystemManage/UserPwdEdit');
  1869. document.getElementById("mainframe").src = "/SystemManage/UserPwdEdit";
  1870. }
  1871. });
  1872. }
  1873. $("#userpwd").click(function () {
  1874. document.getElementById("mainframe").src = "/SystemManage/UserPwdEdit";
  1875. //AddTabPage('editpsd', 'fa fa-lock', '', '修改密码', '/SystemManage/UserPwdEdit');
  1876. });
  1877. $("#customerphone").click(function () {
  1878. document.getElementById("mainframe").src = "/HrEmployeeBase/EmployeeSearchList";
  1879. });
  1880. $("#userinfo").click(function () {
  1881. document.getElementById("mainframe").src = "/SystemManage/UserView";
  1882. });
  1883. //转主页
  1884. $(".logo").on("click", function () { //此处添加禁止连续点击刷新一是为了降低服务器压力,另外一个就是为了防止超快点击造成chrome本身的一些js文件的报错(不过貌似这个问题还是存在,不过概率小了很多)
  1885. var timeno = new Date().getTime();
  1886. document.getElementById("mainframe").src = "/Main/IndexCenter?timeno=" + timeno;
  1887. })
  1888. //监听导航点击
  1889. element.on('nav(demo)', function (elem) {
  1890. // layer.msg(elem.text());
  1891. var urlSrc = $(this).find("a").attr("data-url");
  1892. var aname = $(this).find("a").attr("aname");
  1893. var aid = $(this).find("a").attr("id");
  1894. var aicon = $(this).find("a").attr("aicon");
  1895. var nullicon = "";
  1896. if (aicon == "") {
  1897. aicon = "layui-icon layui-icon-tabs";
  1898. nullicon = "&#xe62a;";
  1899. }
  1900. var cssClass = $(this).find("a").find("i").attr("class");
  1901. if (cssClass != null && (cssClass.indexOf("fa-weibo") > 0 || cssClass.indexOf("fa-weixin")) && cssClass.indexOf("selectClass") <= 0) {
  1902. alert("未签入!")
  1903. return;
  1904. }
  1905. var timeno = new Date().getTime();
  1906. if (urlSrc != "") {
  1907. if (urlSrc == "/ScreenDisplay/MainScreen") {
  1908. OpenOtherForm("郑州地铁客服中心大屏数据展示", "http://" + window.location.host + urlSrc + "/");
  1909. }
  1910. else {
  1911. if (urlSrc.indexOf("CallRecord/CallScreen") >= 0) {
  1912. //OpenTelLayer('18695836988-来电', urlSrc);
  1913. document.getElementById("mainframe").src = urlSrc;
  1914. }
  1915. else {
  1916. if (urlSrc.indexOf('?') < 0) {
  1917. document.getElementById("mainframe").src = urlSrc + "?timeno=" + timeno + "";
  1918. //var tabIndex = -1;
  1919. //$(".layui-tab-title.top_tab li").each(function () {
  1920. // if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
  1921. // tabIndex = 1;
  1922. // }
  1923. //})
  1924. //if (tabIndex != 1) {
  1925. // //新增一个Tab项
  1926. // element.tabAdd('bodyTab', {
  1927. // title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">&#x1006;</i>'
  1928. // , content: '<iframe id=\"mainframe_' + aid + '\" scrolling=\"auto\" src=\"' + urlSrc + '?timeno=' + timeno + '\"></iframe>'
  1929. // , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
  1930. // })
  1931. //}
  1932. //element.tabChange('bodyTab', 'maintab_' + aid + '');
  1933. //tabMove(); //顶部窗口是否可滚动
  1934. }
  1935. else {
  1936. document.getElementById("mainframe").src = urlSrc + "&timeno=" + timeno + "";
  1937. //try {
  1938. // var tabIndex = -1;
  1939. // $(".layui-tab-title.top_tab li").each(function () {
  1940. // if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
  1941. // tabIndex = 1;
  1942. // }
  1943. // })
  1944. // if (tabIndex != 1) {
  1945. // //新增一个Tab项
  1946. // element.tabAdd('bodyTab', {
  1947. // title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">&#x1006;</i>'
  1948. // , content: '<iframe id=\"mainframe_' + aid + '\" scrolling=\"auto\" src=\"' + urlSrc + '&timeno=' + timeno + '\"></iframe>'
  1949. // , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
  1950. // })
  1951. // }
  1952. // element.tabChange('bodyTab', 'maintab_' + aid + '');
  1953. // //setTimeout(alert(1), 5000);
  1954. // tabMove(); //顶部窗口是否可滚动
  1955. // //if (aid == "2" || aid == "3") {
  1956. // // alert("加载完成");
  1957. // //}
  1958. //}
  1959. //catch (e) {
  1960. // alert(e.message);
  1961. //}
  1962. }
  1963. }
  1964. }
  1965. //if (urlSrc.indexOf('?') < 0) {
  1966. // document.getElementById("mainframe").src = urlSrc + "?timeno=" + timeno + "";
  1967. //}
  1968. //else {
  1969. // document.getElementById("mainframe").src = urlSrc + "&timeno=" + timeno + "";
  1970. //}
  1971. }
  1972. });
  1973. });
  1974. $("#navBar .layui-nav-item").click(function () {
  1975. $("#navBar .layui-nav-item").removeClass("layui-nav-itemed");
  1976. $("#navBar .layui-nav-item").removeClass("layui-this");
  1977. if ($(this).has('dl').length) {//如果有子菜单,显示下拉样式
  1978. $(this).addClass("layui-nav-itemed");
  1979. } else {//如果没有子菜单,显示菜单项样式
  1980. $(this).addClass("layui-this");
  1981. }
  1982. });
  1983. </script>
  1984. </body>
  1985. <script type="text/javascript">
  1986. ///获取微信消息
  1987. ///1、微信 2、微博
  1988. function GetWxMessageCount(messageType, className) {
  1989. $.ajax({
  1990. url: "/OtherPage/GetWebChartCount",
  1991. type: "get",
  1992. contentType: "application/json",
  1993. dataType: "text",
  1994. cache: false,
  1995. data: { "pageType": messageType },
  1996. success: function (result, status) {
  1997. if (status) {
  1998. $(className).html(result);
  1999. }
  2000. }
  2001. });
  2002. }
  2003. //微信
  2004. var wX;
  2005. function wXTimedCount() {
  2006. GetWxMessageCount(1, ".wXCount");
  2007. wX = setTimeout("wXTimedCount()", 60000)
  2008. }
  2009. $(".btnWX").click(function () {
  2010. var rgs = $(".fa-weixin").hasClass("defaultClass");
  2011. if (rgs) {
  2012. $(".fa-weixin").removeClass("defaultClass");
  2013. $(".fa-weixin").addClass("selectClass");
  2014. $(".wXCount").css("display", "inline");
  2015. wXTimedCount();
  2016. }
  2017. else {
  2018. $(".fa-weixin").removeClass("selectClass");
  2019. $(".fa-weixin").addClass("defaultClass");
  2020. $(".wXCount").css("display", "none");
  2021. clearTimeout(wX);
  2022. }
  2023. });
  2024. //微博
  2025. var wB;
  2026. function wBTimedCount() {
  2027. GetWxMessageCount(2, ".wBCount");
  2028. wB = setTimeout("wBTimedCount()", 60000)
  2029. }
  2030. $(".btnWB").click(function () {
  2031. var rgs = $(".fa-weibo").hasClass("defaultClass");
  2032. if (rgs) {
  2033. $(".fa-weibo").removeClass("defaultClass");
  2034. $(".fa-weibo").addClass("selectClass");
  2035. $(".wBCount").css("display", "block");
  2036. wBTimedCount();
  2037. }
  2038. else {
  2039. $(".fa-weibo").removeClass("selectClass");
  2040. $(".fa-weibo").addClass("defaultClass");
  2041. $(".wBCount").css("display", "none");
  2042. clearTimeout(wB);
  2043. }
  2044. });
  2045. //待办工单
  2046. function MyOrderCount() {
  2047. try {
  2048. //补录工单
  2049. if ($(".orderNeedCount") != undefined) {
  2050. $.ajax({
  2051. url: "/OtherPage/GetMyOrderNeedCount/",
  2052. type: "get",
  2053. contentType: "application/json",
  2054. dataType: "text",
  2055. cache: true,
  2056. data: null,
  2057. success: function (result, status) {
  2058. if (status) {
  2059. $(".orderNeedCount").html(result);
  2060. }
  2061. }
  2062. });
  2063. }
  2064. //已处理撤回
  2065. if ($(".WorkOrderMyDealedDataCount") != undefined) {
  2066. $.ajax({
  2067. url: "/Order/WorkOrderMyDealedDataCount/",
  2068. type: "get",
  2069. contentType: "application/json",
  2070. dataType: "text",
  2071. cache: true,
  2072. data: null,
  2073. success: function (result, status) {
  2074. if (status) {
  2075. $(".WorkOrderMyDealedDataCount").html(result);
  2076. }
  2077. }
  2078. });
  2079. }
  2080. //已回访撤回
  2081. if ($(".WorkOrderMyVisitedDataCount") != undefined) {
  2082. $.ajax({
  2083. url: "/Order/WorkOrderMyVisitedDataCount/",
  2084. type: "get",
  2085. contentType: "application/json",
  2086. dataType: "text",
  2087. cache: true,
  2088. data: null,
  2089. success: function (result, status) {
  2090. if (status) {
  2091. $(".WorkOrderMyVisitedDataCount").html(result);
  2092. }
  2093. }
  2094. });
  2095. }
  2096. //审核工单
  2097. if ($(".WorkOrderShenPiCount") != undefined) {
  2098. $.ajax({
  2099. url: "/Order/WorkOrderShenPiCount/",
  2100. type: "get",
  2101. contentType: "application/json",
  2102. dataType: "text",
  2103. cache: true,
  2104. data: null,
  2105. success: function (result, status) {
  2106. if (status) {
  2107. $(".WorkOrderShenPiCount").html(result);
  2108. }
  2109. }
  2110. });
  2111. }
  2112. //待办工单
  2113. if ($(".orderCount") != undefined) {
  2114. $.ajax({
  2115. url: "/OtherPage/GetMyOrderCount/",
  2116. type: "get",
  2117. contentType: "application/json",
  2118. dataType: "text",
  2119. cache: true,
  2120. data: null,
  2121. success: function (result, status) {
  2122. if (status) {
  2123. $(".orderCount").html(result);
  2124. }
  2125. }
  2126. });
  2127. }
  2128. //回访工单
  2129. if ($(".orderlistHFCount") != undefined) {
  2130. $.ajax({
  2131. url: "/Order/WorkOrderMyDataHFCount/",
  2132. type: "get",
  2133. contentType: "application/json",
  2134. dataType: "text",
  2135. cache: true,
  2136. data: null,
  2137. success: function (result, status) {
  2138. if (status) {
  2139. $(".orderlistHFCount").html(result);
  2140. }
  2141. }
  2142. });
  2143. }
  2144. //待定责工单
  2145. if ($(".OrderMyDataDZCount") != undefined) {
  2146. $.ajax({
  2147. url: "/Order/WorkOrderMyDataDZCount/",
  2148. type: "get",
  2149. contentType: "application/json",
  2150. dataType: "text",
  2151. cache: true,
  2152. data: null,
  2153. success: function (result, status) {
  2154. if (status) {
  2155. $(".OrderMyDataDZCount").html(result);
  2156. }
  2157. }
  2158. });
  2159. }
  2160. setTimeout("MyOrderCount()", 5000);
  2161. setTimeout("allOrderTotal()", 3000);
  2162. }
  2163. catch (e) {
  2164. }
  2165. }
  2166. function allOrderTotal(){
  2167. if ($(".orderCount") != undefined
  2168. || $(".orderNeedCount") != undefined
  2169. || $(".orderlistHFCount")!= undefined
  2170. || $(".OrderMyDataDZCount")!=undefined
  2171. || $(".WorkOrderMyDealedDataCount")!=undefined
  2172. || $(".WorkOrderShenPiCount")!=undefined
  2173. || $(".WorkOrderMyVisitedDataCount")!=undefined) {
  2174. var totalOrderCount = 0;
  2175. var myOrderCount = 0;
  2176. var myNeedCount = 0;
  2177. var OrderMyDataDZCount = 0;
  2178. var orderlistHFCount = 0 ;
  2179. var myorderCountWb = 0;
  2180. if ($(".orderCount") != undefined) {
  2181. myOrderCount = $(".orderCount").html();
  2182. }
  2183. if ($(".orderNeedCount") != undefined) {
  2184. myNeedCount = $(".orderNeedCount").html();
  2185. }
  2186. if($(".WorkOrderMyDealedDataCount")!= undefined){
  2187. WorkOrderMyDealedDataCount = $(".WorkOrderMyDealedDataCount").html();
  2188. }
  2189. if($(".WorkOrderShenPiCount")!= undefined){
  2190. WorkOrderShenPiCount = $(".WorkOrderShenPiCount").html();
  2191. }
  2192. if($(".WorkOrderMyVisitedDataCount")!= undefined){
  2193. WorkOrderMyVisitedDataCount = $(".WorkOrderMyVisitedDataCount").html();
  2194. }
  2195. if ($(".orderlistHFCount") != undefined) {
  2196. orderlistHFCount = $(".orderlistHFCount").html();
  2197. }
  2198. if ($(".OrderMyDataDZCount") != undefined) {
  2199. OrderMyDataDZCount = $(".OrderMyDataDZCount").html();
  2200. }
  2201. if(myOrderCount == undefined){
  2202. myOrderCount = 0
  2203. }
  2204. if(myNeedCount == undefined){
  2205. myNeedCount = 0
  2206. }
  2207. if(orderlistHFCount == undefined){
  2208. orderlistHFCount = 0
  2209. }
  2210. if(OrderMyDataDZCount==undefined){
  2211. OrderMyDataDZCount = 0
  2212. }
  2213. if(WorkOrderMyDealedDataCount==undefined){
  2214. WorkOrderMyDealedDataCount = 0
  2215. }
  2216. if(WorkOrderShenPiCount==undefined){
  2217. WorkOrderShenPiCount = 0
  2218. }
  2219. if(WorkOrderMyVisitedDataCount==undefined){
  2220. WorkOrderMyVisitedDataCount = 0
  2221. }
  2222. totalOrderCount = parseInt(myOrderCount)
  2223. + parseInt(myNeedCount)
  2224. + parseInt(orderlistHFCount)
  2225. + parseInt(OrderMyDataDZCount)
  2226. + parseInt(WorkOrderMyDealedDataCount)
  2227. + parseInt(WorkOrderShenPiCount)
  2228. + parseInt(WorkOrderMyVisitedDataCount);
  2229. if(totalOrderCount){
  2230. $(".totalOrderCount").html(totalOrderCount);
  2231. }else{
  2232. $(".totalOrderCount").html(0);
  2233. }
  2234. }
  2235. }
  2236. //获取待办工单数量
  2237. MyOrderCount();
  2238. </script>
  2239. @* 来电弹屏 *@
  2240. <script type="text/javascript">
  2241. $(".leftMenu a").click(function (event) {
  2242. $(".callScreen").hide()
  2243. });
  2244. //快捷回复
  2245. var quickType;
  2246. $(".serchBtn").click(function (event) {
  2247. quickData();
  2248. quicNum()
  2249. });
  2250. $(".quick-head .tag").click(function () {
  2251. quickType = $(this).attr("data-attr")
  2252. $(".quick-head .tag").removeClass("action")
  2253. $(this).addClass("action")
  2254. quickData();
  2255. })
  2256. function quicNum(){
  2257. $.ajax({
  2258. url: "/QuickMsgs/GetListData",
  2259. type: "get",
  2260. contentType: "application/json",
  2261. dataType: "text",
  2262. async: false,
  2263. data: {
  2264. type: 0,
  2265. key: $("#keyWord").val(),
  2266. page: 1,
  2267. limit: 99,
  2268. },
  2269. success: function (thisResult) {
  2270. if (eval('(' + thisResult + ')').msg == "成功") {
  2271. var list = eval('(' + thisResult + ')').data;
  2272. $(".gyNum").show()
  2273. $(".gyNum").text(eval('(' + thisResult + ')').count)
  2274. }
  2275. else {
  2276. layui.layer.alert("获取该部门下用户信息失败!", {
  2277. icon: 2
  2278. });
  2279. }
  2280. }
  2281. });
  2282. $.ajax({
  2283. url: "/QuickMsgs/GetListData",
  2284. type: "get",
  2285. contentType: "application/json",
  2286. dataType: "text",
  2287. async: false,
  2288. data: {
  2289. type: 1,
  2290. key: $("#keyWord").val(),
  2291. page: 1,
  2292. limit: 99,
  2293. },
  2294. success: function (thisResult) {
  2295. if (eval('(' + thisResult + ')').msg == "成功") {
  2296. var list = eval('(' + thisResult + ')').data;
  2297. $(".syNum").show()
  2298. $(".syNum").text(eval('(' + thisResult + ')').count)
  2299. }
  2300. else {
  2301. layui.layer.alert("获取该部门下用户信息失败!", {
  2302. icon: 2
  2303. });
  2304. }
  2305. }
  2306. });
  2307. }
  2308. quicNum();
  2309. quickData();
  2310. function quickData() {
  2311. $.ajax({
  2312. url: "/QuickMsgs/GetListData",
  2313. type: "get",
  2314. contentType: "application/json",
  2315. dataType: "text",
  2316. async: false,
  2317. data: {
  2318. type: quickType,
  2319. key: $("#keyWord").val(),
  2320. page: 1,
  2321. limit: 99,
  2322. },
  2323. success: function (thisResult) {
  2324. if (eval('(' + thisResult + ')').msg == "成功") {
  2325. var list = eval('(' + thisResult + ')').data;
  2326. $(".quick-item").remove();
  2327. var key_w = $("#keyWord").val();
  2328. $(list).each(function (i, n) {
  2329. var after_u = n.msg.replace(key_w, '<span style="color:red;">' + key_w + '</span>');
  2330. $(".quick-list").append("<div class='quick-item'>" + after_u + "</div>");
  2331. })
  2332. $(".quick-list .quick-item").click(function (event) {
  2333. var texts = $(this).text();
  2334. var inputs = document.getElementById("inputs");
  2335. inputs.value = texts; // 修改文本框的内容(赋值内容)
  2336. inputs.select(); // 选中文本
  2337. document.execCommand("copy"); // 执行浏览器复制命令
  2338. alert("复制成功");//测试执行是否成
  2339. });
  2340. }
  2341. else {
  2342. layui.layer.alert("获取该部门下用户信息失败!", {
  2343. icon: 2
  2344. });
  2345. }
  2346. }
  2347. });
  2348. }
  2349. function OpenOtherForm(title, url) {
  2350. window.open(url, title);
  2351. }
  2352. $(".lineState").click(function (event) {
  2353. var lineNum=$(this).attr("data-attr")
  2354. $(".setLine ul").removeClass("selectLineColor")
  2355. $(this).addClass("selectLineColor")
  2356. $.ajax({
  2357. url: "/CallHelper/SetLine",
  2358. type: "get",
  2359. contentType: "application/json",
  2360. dataType: "text",
  2361. cache: false,
  2362. async: false,
  2363. data: {
  2364. "lineNum": lineNum,
  2365. "callid": helper.cookies.get('CallID'),
  2366. },
  2367. success: function (data) {
  2368. if (eval('(' + data + ')').msg == "成功") {
  2369. layer.msg('切换成功');
  2370. }
  2371. }
  2372. });
  2373. });
  2374. function lineState() {
  2375. $.ajax({
  2376. url: "/CallRecord/CallRecordData",
  2377. type: "get",
  2378. contentType: "application/json",
  2379. dataType: "text",
  2380. cache: false,
  2381. async: false,
  2382. data: {
  2383. "page": 1,
  2384. "limit": 20,
  2385. "callid": helper.cookies.get('CallID'),
  2386. },
  2387. success: function (data) {
  2388. if (eval('(' + data + ')').data.length > 0) {
  2389. var LinenumData = eval('(' + data + ')').data[0].F_Linenum;
  2390. $(".lineState").removeClass("selectLineColor")
  2391. if (LinenumData == "1") {
  2392. $(".lineState").eq(0).addClass("selectLineColor");
  2393. } else if (LinenumData == "2") {
  2394. $(".lineState").eq(1).addClass("selectLineColor");
  2395. }else if (LinenumData == "3") {
  2396. $(".lineState").eq(2).addClass("selectLineColor");
  2397. }else if (LinenumData == "4") {
  2398. $(".lineState").eq(3).addClass("selectLineColor");
  2399. }else if (LinenumData == "5") {
  2400. $(".lineState").eq(4).addClass("selectLineColor");
  2401. }else if (LinenumData == "14") {
  2402. $(".lineState").eq(5).addClass("selectLineColor");
  2403. }else if (LinenumData == "100") {
  2404. $(".lineState").eq(6).addClass("selectLineColor");
  2405. }else if (LinenumData == "101") {
  2406. $(".lineState").eq(7).addClass("selectLineColor");
  2407. }
  2408. }
  2409. }
  2410. });
  2411. }
  2412. $(".maskTask,.closeBtn").click(function (event) {
  2413. $(".telLine,.maskTask").hide();
  2414. });
  2415. $(".keySwitch").click(function (event) {
  2416. $(".telLine,.maskTask").show();
  2417. keySwitch()
  2418. });
  2419. function keySwitch() {
  2420. $.ajax({
  2421. url: "/SystemManage/DictionaryDate",
  2422. type: "get",
  2423. contentType: "application/json",
  2424. dataType: "text",
  2425. cache: false,
  2426. async: false,
  2427. data: {
  2428. "NowDateTime": "2020/11/11 10:43:41",
  2429. "page": 1,
  2430. "limit": 20,
  2431. "dictionaryFlag": "ZDXX"
  2432. },
  2433. success: function (data) {
  2434. $(".telLine").show();
  2435. $(".telLine li").remove();
  2436. var keySwitchData = eval('(' + data + ')').data;
  2437. for (var i = 0; i < keySwitchData.length; i++) {
  2438. $('<li class="layui-nav-item" id="'+keySwitchData[i].F_ValueCode+'" data-index="' + keySwitchData[i].F_ValueCode + '"><a href="javascript:;">' + keySwitchData[i].F_Name
  2439. + '</a><dl class="layui-nav-child"></dl></li>').appendTo('.telLine ul');
  2440. }
  2441. $(".telLine ul li").hover(function (event) {
  2442. dictionaryFlag = $(this).attr("data-index")
  2443. $.ajax({
  2444. url: "/SystemManage/DictionaryDate",
  2445. type: "get",
  2446. contentType: "application/json",
  2447. dataType: "text",
  2448. cache: false,
  2449. async: false,
  2450. data: {
  2451. "NowDateTime": "2020/11/11 10:43:41",
  2452. "page": 1,
  2453. "limit": 99,
  2454. "dictionaryFlag": dictionaryFlag
  2455. },
  2456. success: function (res) {
  2457. var lineData = eval('(' + res + ')').data;
  2458. $("#"+dictionaryFlag+" dl dd").remove();
  2459. for (var i = 0; i < lineData.length; i++) {
  2460. $('<dd data-index="' + lineData[i].F_Describe + '"><a href="javascript:;">'+ lineData[i].F_Name +'</a></dd>').appendTo("#"+dictionaryFlag+" dl")
  2461. }
  2462. $("#"+dictionaryFlag+" dl").show();
  2463. $("#"+dictionaryFlag+" dl dd").click(function(){
  2464. var keyNun = $(this).attr("data-index");
  2465. if(keyNun){
  2466. $.ajax({
  2467. type: 'get',
  2468. url: '/CallRecord/GetCallOutprefix/?phone=' + keyNun,
  2469. dataType: 'html',
  2470. success: function (res) {
  2471. $(".telLine,.maskTask").hide();
  2472. ZYhj(res.toString() + keyNun.toString());
  2473. }
  2474. });
  2475. }else{
  2476. alert("操作失败")
  2477. }
  2478. })
  2479. }
  2480. });
  2481. },function(){
  2482. $("#"+dictionaryFlag+" dl").hide();
  2483. });
  2484. }
  2485. });
  2486. }
  2487. function btnOpt(type) {
  2488. var customerid = document.getElementById("F_CustomerId").value;
  2489. switch (type) {
  2490. case 1:
  2491. //保存客户
  2492. layer.confirm('确认要[<font color=red>保存客户</font>]吗?', function (index) {
  2493. var F_CustomerCode,F_CustomerPym;
  2494. //年龄段
  2495. if( $("#F_CustomerCode").val()=="20以下"){
  2496. F_CustomerCode = $("#F_CustomerCode20").val()
  2497. }else if( $("#F_CustomerCode").val()=="20~30"){
  2498. F_CustomerCode = $("#F_CustomerCode30").val()
  2499. }else if( $("#F_CustomerCode").val()=="30~40"){
  2500. F_CustomerCode = $("#F_CustomerCode40").val()
  2501. }else if( $("#F_CustomerCode").val()=="40~50"){
  2502. F_CustomerCode = $("#F_CustomerCode50").val()
  2503. }else if( $("#F_CustomerCode").val()=="50以上"){
  2504. F_CustomerCode = $("#F_CustomerCode51").val()
  2505. }else{
  2506. F_CustomerCode = $("#F_CustomerCodeNew").val()
  2507. }
  2508. //男女 F_CustomerPym
  2509. if($("#F_CustomerPym").val()=="男"){
  2510. F_CustomerPym = $('.sexParamNan input[name="F_CustomerPymNan"]:checked ').val()
  2511. } else if($("#F_CustomerPym").val()=="女") {
  2512. F_CustomerPym = $('.sexParamNv input[name="F_CustomerPymNv"]:checked ').val()
  2513. } else{
  2514. F_CustomerPym = $('.sexParam input[name="F_CustomerPym"]:checked ').val()
  2515. }
  2516. var data = {
  2517. F_CustomerId: $("#F_CustomerId").val(),
  2518. F_CustomerName: $("#F_CustomerName").val(),
  2519. F_CustomerPym: F_CustomerPym,
  2520. F_CustomerEName: $("#F_CustomerEName").val(),
  2521. F_PostCode: $("#F_PostCode").val(),
  2522. F_CustomerLayer: $("#F_CustomerLayer").html().trim(),
  2523. F_CustomerCode: F_CustomerCode,
  2524. F_Telephone: $("#F_Telephone").html().trim(),
  2525. F_ScaleResume: $("#F_ScaleResume").val(),
  2526. F_CustomerClass: $("#F_CustomerClass").val(),
  2527. }
  2528. $.ajax({
  2529. url: "/CallRecord/SaveCunInfo",
  2530. type: "post",
  2531. async: false,//同步请求
  2532. contentType: "application/json",
  2533. dataType: "text",
  2534. cache: false,
  2535. data: JSON.stringify(data),
  2536. success: function (thisResult, result) {
  2537. if (thisResult == "True") {
  2538. layer.open({
  2539. content: '操作成功'
  2540. , icon: 1
  2541. , btn: ['确定']
  2542. , yes: function (index, layero) {
  2543. layer.close(index);
  2544. }
  2545. });
  2546. } else {
  2547. layui.layer.alert("操作失败!", {
  2548. icon: 2
  2549. });
  2550. }
  2551. },
  2552. error: function (error) {
  2553. return false;
  2554. }
  2555. });
  2556. });
  2557. break;
  2558. case 2:
  2559. //关注客户
  2560. layer.confirm('确认要[<font color=red>设置为关注客户</font>]吗?', function (index) {
  2561. $.ajax({
  2562. url: "/Customer/SaveReceivedData",
  2563. type: "get",
  2564. async: false,//同步请求
  2565. contentType: "application/json",
  2566. dataType: "text",
  2567. cache: false,
  2568. data: "keyList=" + customerid + '&status=2',
  2569. success: function (thisResult, result) {
  2570. if (thisResult == "True") {
  2571. layer.open({
  2572. content: '操作成功'
  2573. , icon: 1
  2574. , btn: ['确定']
  2575. , yes: function (index, layero) {
  2576. layer.close(index);
  2577. }
  2578. });
  2579. } else {
  2580. layui.layer.alert("操作失败!", {
  2581. icon: 2
  2582. });
  2583. }
  2584. },
  2585. error: function (error) {
  2586. return false;
  2587. }
  2588. });
  2589. });
  2590. break;
  2591. case 3:
  2592. //黑名单客户
  2593. layer.confirm('确认要[<font color=red>设置为黑名单</font>]吗?', function (index) {
  2594. $.ajax({
  2595. url: "/Customer/SaveReceivedData",
  2596. type: "get",
  2597. async: false,//同步请求
  2598. contentType: "application/json",
  2599. dataType: "text",
  2600. cache: false,
  2601. data: "keyList=" + customerid + '&status=3',
  2602. success: function (thisResult, result) {
  2603. if (thisResult == "True") {
  2604. layer.open({
  2605. content: '操作成功'
  2606. , icon: 1
  2607. , btn: ['确定']
  2608. , yes: function (index, layero) {
  2609. layer.close(index);
  2610. }
  2611. });
  2612. } else {
  2613. layui.layer.alert("操作失败!", {
  2614. icon: 2
  2615. });
  2616. }
  2617. },
  2618. error: function (error) {
  2619. return false;
  2620. }
  2621. });
  2622. });
  2623. break;
  2624. case 4:
  2625. //挂断
  2626. layer.confirm('确认要[<font color=red>挂断电话</font>]吗?', function (index) {
  2627. button_ReleaseAnswer();
  2628. layer.close(index);
  2629. });
  2630. break;
  2631. case 5:
  2632. //保持通话
  2633. layer.confirm('确认要[<font color=red>保持通话</font>]吗?', function (index) {
  2634. button_KeepCall();
  2635. layer.close(index);
  2636. });
  2637. break;
  2638. case 6:
  2639. //接回通话
  2640. layer.confirm('确认要[<font color=red>接回通话</font>]吗?', function (index) {
  2641. button_GetKeepCall();
  2642. layer.close(index);
  2643. });
  2644. break;
  2645. case 7:
  2646. //转移
  2647. layer.open({
  2648. content: '转移号码:<input type=\"text\" id=\"txtZYPhone\" value=\"1001\" placeholder=\"\" autocomplete=\"off\" class=\"layui-input\" />'
  2649. , btn: ['转移', '取消']
  2650. , yes: function (index, layero) {
  2651. var tel = document.getElementById("txtZYPhone").value;
  2652. ZYhj(tel);
  2653. layer.close(index);
  2654. alert("转移成功")
  2655. //top.PhoneCallZY(tel);
  2656. }
  2657. , btn2: function (index, layero) {
  2658. layer.close(index);
  2659. }
  2660. , cancel: function () {
  2661. }
  2662. });
  2663. break;
  2664. case 8:
  2665. //转回IVR
  2666. layer.confirm('确认要[<font color=red>转回到IVR语音流程</font>]吗?', function (index) {
  2667. try {
  2668. AgentTransToIVR();
  2669. layer.close(index);
  2670. }
  2671. catch (e) { }
  2672. });
  2673. break;
  2674. case 9:
  2675. //一键转接
  2676. layer.open({
  2677. content: '转移号码:<input type=\"text\" id=\"txtZYPhone\" value=\"1001\" placeholder=\"\" autocomplete=\"off\" class=\"layui-input\" />'
  2678. , btn: ['转移', '取消']
  2679. , yes: function (index, layero) {
  2680. }
  2681. , btn2: function (index, layero) {
  2682. layer.close(index);
  2683. }
  2684. , cancel: function () {
  2685. }
  2686. });
  2687. break;
  2688. case 10:
  2689. //白名单客户
  2690. layer.confirm('确认要[<font color=red>设置为白名单</font>]吗?', function (index) {
  2691. $.ajax({
  2692. url: "/Customer/SaveReceivedData",
  2693. type: "get",
  2694. async: false,//同步请求
  2695. contentType: "application/json",
  2696. dataType: "text",
  2697. cache: false,
  2698. data: "keyList=" + customerid + '&status=4',
  2699. success: function (thisResult, result) {
  2700. if (thisResult == "True") {
  2701. layer.open({
  2702. content: '操作成功'
  2703. , icon: 1
  2704. , btn: ['确定']
  2705. , yes: function (index, layero) {
  2706. layer.close(index);
  2707. }
  2708. });
  2709. } else {
  2710. layui.layer.alert("操作失败!", {
  2711. icon: 2
  2712. });
  2713. }
  2714. },
  2715. error: function (error) {
  2716. return false;
  2717. }
  2718. });
  2719. });
  2720. break;
  2721. case 11:
  2722. //一键转接
  2723. layer.confirm('转移号码:<input type=\"text\" id=\"txtZYPhone\" value=\"1001\" placeholder=\"\" autocomplete=\"off\" class=\"layui-input\" />', function (index) {
  2724. });
  2725. break;
  2726. }
  2727. }
  2728. //$("#workOrderNum").val("48787")
  2729. //resOrder()
  2730. function resOrder(){
  2731. $.ajax({
  2732. url: "/CallHelper/CallScreen",
  2733. type: "get",
  2734. contentType: "application/json",
  2735. dataType: "text",
  2736. cache: false,
  2737. async: false,
  2738. data: {
  2739. "workOrderNum": $("#workOrderNum").val(),
  2740. },
  2741. success: function (data) {
  2742. if (eval('(' + data + ')').msg == "成功") {
  2743. var screenData = eval('(' + data + ')').data
  2744. $("#F_CustomerId").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerId) //客户id
  2745. $("#workOrderNum").val(screenData.WorkOrderBaseModel.F_WORKORDERID) //工单ID
  2746. $("#F_Telephone").text(screenData.WorkOrderBaseModel.F_CUSTOMERTELEPHONE) //电话号码
  2747. $("#F_CustomerLayer").text(screenData.WorkOrderBaseModel.F_STANDARDADDRESS) //归属地
  2748. if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume=="1"){
  2749. //普通
  2750. $(".F_ScaleResume").hide()
  2751. $(".F_ScaleResume1").show()
  2752. } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume=="2"){
  2753. //特别
  2754. $(".F_ScaleResume").hide()
  2755. $(".F_ScaleResume2").show()
  2756. } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume=="3"){
  2757. //黑名单
  2758. $(".F_ScaleResume").hide()
  2759. $(".F_ScaleResume3").show()
  2760. } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume=="4"){
  2761. //白名单
  2762. $(".F_ScaleResume").hide()
  2763. $(".F_ScaleResume4").show()
  2764. }
  2765. $("#F_CustomerName").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerName) //姓名
  2766. $("#F_CustomerPym").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerPym)
  2767. if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerPym == "女"){
  2768. $(".sexParamNv").show()
  2769. $(".sexParamNan").hide()
  2770. $(".sexParam").hide()
  2771. } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerPym == "男"){
  2772. $(".sexParamNan").show()
  2773. $(".sexParamNv").hide()
  2774. $(".sexParam").hide()
  2775. } else{
  2776. $(".sexParam").show()
  2777. $(".sexParamNan").hide()
  2778. $(".sexParamNv").hide()
  2779. }
  2780. $("#F_CustomerCode").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode)
  2781. if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="20以下"){
  2782. $(".F_CustomerCodeNew").hide()
  2783. $(".F_CustomerCode20").show()
  2784. $(".F_CustomerCode30").hide()
  2785. $(".F_CustomerCode40").hide()
  2786. $(".F_CustomerCode50").hide()
  2787. $(".F_CustomerCode51").hide()
  2788. $(".F_CustomerCode20").val("20以下")
  2789. } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="20~30"){
  2790. $(".F_CustomerCodeNew").hide()
  2791. $(".F_CustomerCode20").hide()
  2792. $(".F_CustomerCode30").show()
  2793. $(".F_CustomerCode40").hide()
  2794. $(".F_CustomerCode50").hide()
  2795. $(".F_CustomerCode51").hide()
  2796. $(".F_CustomerCode30").val("20~30")
  2797. } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="30~40"){
  2798. $(".F_CustomerCodeNew").hide()
  2799. $(".F_CustomerCode20").hide()
  2800. $(".F_CustomerCode30").hide()
  2801. $(".F_CustomerCode40").show()
  2802. $(".F_CustomerCode50").hide()
  2803. $(".F_CustomerCode51").hide()
  2804. $(".F_CustomerCode40").val("30~40")
  2805. } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="40~50"){
  2806. $(".F_CustomerCodeNew").hide()
  2807. $(".F_CustomerCode20").hide()
  2808. $(".F_CustomerCode30").hide()
  2809. $(".F_CustomerCode40").hide()
  2810. $(".F_CustomerCode50").show()
  2811. $(".F_CustomerCode51").hide()
  2812. $(".F_CustomerCode50").val("40~50")
  2813. } else if(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode=="50以上"){
  2814. $(".F_CustomerCodeNew").hide()
  2815. $(".F_CustomerCode20").hide()
  2816. $(".F_CustomerCode30").hide()
  2817. $(".F_CustomerCode40").hide()
  2818. $(".F_CustomerCode50").hide()
  2819. $(".F_CustomerCode51").show()
  2820. $(".F_CustomerCode51").val("50以上")
  2821. } else{
  2822. $(".F_CustomerCodeNew").show()
  2823. $(".F_CustomerCode20").hide()
  2824. $(".F_CustomerCode30").hide()
  2825. $(".F_CustomerCode40").hide()
  2826. $(".F_CustomerCode50").hide()
  2827. $(".F_CustomerCode51").hide()
  2828. $(".F_CustomerCodeNew").val("")
  2829. }
  2830. $("#F_CustomerEName").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_CustomerEName) //微信号
  2831. $("#F_PostCode").val(screenData.WorkOrderBaseModel.CustomerBaseModel.F_PostCode) //微博号
  2832. //工单类型
  2833. var htmls = '';
  2834. $("#ModelList ul").remove(); //SelectBussType
  2835. $(screenData.WorkOrderTypeModelList).each(function(i, n) {
  2836. if (screenData.SelectBussType==n.F_Number) {
  2837. if(n.WorkTypeModelList.length==0){
  2838. htmls ='<ul class="layui-nav selectLineColor"><li class="layui-nav-item clickpanle">'
  2839. +'<a href="javascript:;" data-url="'+n.F_WorkOrderTypeId+'">'
  2840. +n.F_Name+'</a>'
  2841. } else {
  2842. htmls ='<ul class="layui-nav selectLineColor"><li class="layui-nav-item">'
  2843. +'<a href="javascript:;" data-url="'+n.F_WorkOrderTypeId+'">'
  2844. +n.F_Name+'</a>'
  2845. }
  2846. } else{
  2847. if(n.WorkTypeModelList.length==0){
  2848. htmls ='<ul class="layui-nav lineState"><li class="layui-nav-item clickpanle">'
  2849. +'<a href="javascript:;" data-url="'+n.F_WorkOrderTypeId+'">'
  2850. +n.F_Name+'</a>'
  2851. } else {
  2852. htmls ='<ul class="layui-nav lineState"><li class="layui-nav-item">'
  2853. +'<a href="javascript:;" data-url="'+n.F_WorkOrderTypeId+'">'
  2854. +n.F_Name+'</a>'
  2855. }
  2856. }
  2857. if(n.WorkTypeModelList.length>0){
  2858. htmls+= '<span class="layui-nav-more"></span><dl class="layui-nav-child clickpanle layui-anim layui-anim-upbit">'
  2859. }
  2860. $(n.WorkTypeModelList).each(function(l, m) {
  2861. htmls +='<dd><a href="javascript:;" data-value="'
  2862. +m.F_Name+'" data-type="'
  2863. +m.F_ParentName+'" data-url="'
  2864. +m.F_WorkOrderTypeId+'">'
  2865. +m.F_Name+'</a></dd>'
  2866. })
  2867. if(n.WorkTypeModelList>0){
  2868. htmls += '</dl>'
  2869. }
  2870. htmls += '</ul>'
  2871. $(htmls).appendTo($("#ModelList"));
  2872. })
  2873. $("#ModelList ul").hover(function (event) {
  2874. $(this).children("li").children(".layui-nav-child").show()
  2875. },function(){
  2876. $(this).children("li").children(".layui-nav-child").hide()
  2877. });
  2878. history()
  2879. }
  2880. }
  2881. });
  2882. }
  2883. function history(){
  2884. layui.use('table', function(){
  2885. var table = layui.table
  2886. ,form = layui.form;
  2887. table.render({
  2888. elem: '#test'
  2889. ,url:'/WorkOrder/WorkOrderHistoryData/'
  2890. ,cols: [[
  2891. {field:'F_CODE', title:'工单编号'}
  2892. ,{field:'F_CUSTOMERNAME', title:'客户姓名'}
  2893. ,{field:'F_REPAIRMANNAME', title:'坐席工号'}
  2894. ,{field:'F_WORKORDERFROM', title: '接入渠道'}
  2895. ,{field:'F_CREATEDATENew',align: 'center', title: '受理时间'}
  2896. ,{field:'F_REPAIRREQUEST', title:'业务状态'}
  2897. ,{field:'F_CONTENT', title: '内容'}
  2898. ,{field:'F_ADSLACCOUNT',align: 'right', title: '业务类型'}
  2899. ,{title:'操作', align:'center', toolbar: '#barDemo111'}
  2900. ]]
  2901. ,page: true
  2902. , where: {
  2903. phoneNumber: $("#F_Telephone").text()
  2904. }
  2905. });
  2906. table.on('tool(demo111)', function (obj) {
  2907. var data = obj.data;
  2908. if (obj.event === 'viewData') {
  2909. layer.open({
  2910. type: 2,
  2911. anim: 4,
  2912. scrollbar: false,
  2913. content: '/Order/ViewMyOrder/?orderKeyId=' + data.F_WORKORDERID,
  2914. area: ['90%', '90%'],
  2915. id: 'ViewMyOrder',
  2916. title: '服务监督热线系统业务工单'
  2917. });
  2918. }
  2919. })
  2920. });
  2921. }
  2922. </script>
  2923. <script type="text/html" id="barDemo111">
  2924. <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="viewData">查看详情</a>
  2925. </script>
  2926. </html>