地铁二期项目正式开始

Index.cshtml 123KB

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