地铁二期项目正式开始

Index.cshtml 121KB

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