地铁二期项目正式开始

Index.cshtml 126KB

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