地铁二期项目正式开始

IndexCopy.cshtml 123KB

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