郑许地铁

CallScreen.cshtml 45KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190
  1. @using ZXDT.CallCenter.MVCWeb.Models;
  2. @using ZXDT.CallCenter.Model;
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>来电弹屏</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <link href="/Content/layui/css/layui.css" rel="stylesheet" />
  9. <link href="/Content/css/public.css" rel="stylesheet" />
  10. <link href="/Content/css/callscreen/callscreen.css" rel="stylesheet" />
  11. <link href="/Content/layui/css/modules/layui-icon-extend/iconfont.css" type="text/css" rel=" stylesheet" />
  12. <link href="/Content/css/font-awesome/css/font-awesome.min.css" type="text/css" rel=" stylesheet" />
  13. <script src="/Content/js/jquery-1.8.3.min.js"></script>
  14. <style>
  15. .maskTask {
  16. width: 100%;
  17. position: fixed;
  18. opacity: .5;
  19. left: 0;
  20. top: 0;
  21. height: 100%;
  22. z-index: 1;
  23. background-color: #000;
  24. display: none;
  25. }
  26. .telLine {
  27. display: none;
  28. position: fixed;
  29. text-align: center;
  30. left: 0;
  31. right: 0;
  32. top: 0;
  33. bottom: 0;
  34. margin: auto;
  35. background: #ffffff;
  36. width: 1000px;
  37. height: 150px;
  38. font-size: 16px;
  39. z-index: 11;
  40. color: #000000;
  41. border: 1px solid #cccccc;
  42. overflow: hidden;
  43. top: -400px;
  44. }
  45. .closeBtn {
  46. font-size: 26px;
  47. font-weight: bold;
  48. color: #000000;
  49. position: absolute;
  50. top: 0px;
  51. right: 15px;
  52. z-index: 12;
  53. }
  54. .telLine li {
  55. width: 120px;
  56. margin: 30px 30px 0px 30px;
  57. line-height: 40px !important;
  58. float: left;
  59. height: 70px;
  60. cursor: pointer;
  61. color: #ffffff;
  62. }
  63. .telLine li a {
  64. background: #1E9FFF;
  65. color: #ffffff;
  66. }
  67. .telLine li dl dd a {
  68. background: #ffffff;
  69. color: #000000;
  70. }
  71. .telLine li dl{
  72. height: 500px;
  73. overflow-y: auto;
  74. }
  75. .title {
  76. width: 100%;
  77. height: 40px;
  78. line-height: 40px;
  79. text-align: center;
  80. background-color: #F8F8F8;
  81. border-bottom: 1px solid #eee;
  82. font-size: 20px;
  83. font-weight: bold;
  84. position: relative;
  85. }
  86. .telLine li a:hover {
  87. background: #00FFFF;
  88. }
  89. .telLine ul {
  90. position: fixed;
  91. width: 1000px;
  92. z-index: 12;
  93. background: #ffffff;
  94. }
  95. .fastReply {
  96. position: fixed;
  97. top: 50%;
  98. right: 0px;
  99. background: #01a1cb;
  100. padding: 10px 15px;
  101. color: #ffffff;
  102. cursor: pointer;
  103. }
  104. .quick-head .tag {
  105. cursor: pointer;
  106. padding: 0 20px;
  107. height: 30px;
  108. display: inline-block;
  109. border-bottom: 3px solid transparent;
  110. }
  111. .quick-head .tag .countNum{
  112. margin-left: 10px;
  113. color: #ffffff;
  114. background: #ff0000;
  115. height: 20px;
  116. line-height: 20px;
  117. padding: 0px 5px;
  118. border-radius: 5px;
  119. }
  120. .quick-head .action {
  121. border-color: #2196f3;
  122. }
  123. .quick-item {
  124. padding: 13px 13px 0px 13px;
  125. cursor: pointer;
  126. border-bottom: 1px solid #ccc;
  127. word-break: break-all;
  128. display: -webkit-box;
  129. -webkit-box-orient: vertical;
  130. -webkit-line-clamp: 2;
  131. overflow: hidden;
  132. }
  133. #inputs {
  134. width: 0;
  135. height: 0;
  136. }
  137. .bookBtn{
  138. width: 70px;
  139. height: 50px;
  140. line-height: 65px;
  141. }
  142. .bookChildBtn{
  143. width: 60px;
  144. height: 50px;
  145. line-height:65px;
  146. }
  147. .gyNum{
  148. display: none;
  149. }
  150. .syNum{
  151. display: none;
  152. }
  153. </style>
  154. </head>
  155. <body class="childrenBody">
  156. <blockquote class="layui-elem-quote layui-text" style="font-size: larger; display: none;">
  157. 来电弹屏
  158. </blockquote>
  159. <div class="maskTask"></div>
  160. <div class="telLine">
  161. <div class="title">转接信息<span class="closeBtn">×</span></div>
  162. <div class="telLineUl">
  163. <ul class="layui-nav">
  164. </ul>
  165. </div>
  166. </div>
  167. <div class="layui-fluid">
  168. <div class="layui-row layui-col-space15">
  169. <div class="layui-col-md9">
  170. <form class="layui-form layui-card">
  171. <input id="F_CustomerId" value="@Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerId" type="hidden" />
  172. <input id="workOrderNum" value="@Model.WorkOrderBaseModel.F_WORKORDERID" type="hidden" />
  173. @if (Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerId > 0 &&
  174. !string.IsNullOrEmpty(Model.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume) &&
  175. !string.IsNullOrEmpty(Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerClass))
  176. {
  177. <input id="F_ScaleResume" value="@Model.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume" type="hidden" />
  178. <input id="F_CustomerClass" value="@Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerClass"
  179. type="hidden" />
  180. }
  181. else
  182. {
  183. <input id="F_ScaleResume" value="1" type="hidden" />
  184. <input id="F_CustomerClass" value="一般客户" type="hidden" />
  185. }
  186. <div class="layui-card-header">
  187. <label class="layui-form-label">
  188. 电话号码:
  189. </label>
  190. <span id="F_Telephone"
  191. class="layui-form-label">@Model.WorkOrderBaseModel.F_CUSTOMERTELEPHONE</span>
  192. <span id="F_CustomerLayer"
  193. style="width:120px;text-align:left"
  194. class="layui-form-label">@Model.WorkOrderBaseModel.F_STANDARDADDRESS</span>
  195. <div style="float: right;">
  196. <div class="layui-btn-group" style="margin-top: -10px;">
  197. @if (Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerId > 0)
  198. {
  199. <div id="historyCustom" class="layui-btn layui-btn-normal bookBtn" onclick="btnOpt(1)">
  200. <i class="fa fa-address-card-o" style="font-size: 24px; "></i>
  201. </div>
  202. if (!string.IsNullOrEmpty(Model.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume))
  203. {
  204. if (Model.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume == "3")
  205. {
  206. <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
  207. style="border-left:none">
  208. <i class="fa fa-heart"
  209. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  210. </div>
  211. <div title="白名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(10)"
  212. style="width: 60px;border-left:none; background:#cccccc;">
  213. <i class="fa fa-user-plus"
  214. style="font-size: 32px !important; margin-left :0px; margin-top:0px; color:#ffffff;"></i>
  215. </div>
  216. <div title="黑名单" class="layui-btn layui-btn-danger blackCustom bookChildBtn" onclick="btnOpt(3)"
  217. style="width: 170px; border-left: none">
  218. <i class="fa fa-user-times"
  219. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:black;">黑名单</i>
  220. </div>
  221. }
  222. else if (Model.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume == "2")
  223. {
  224. <div title="关注度" class="layui-btn layui-btn-warm careCustom bookChildBtn" onclick="btnOpt(2)"
  225. style="width: 170px;border-left:none">
  226. <i class="fa fa-heart"
  227. style="font-size: 32px !important; margin-left :0px;margin-top:0px;color:deeppink;"></i>
  228. </div>
  229. <div title="白名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(10)"
  230. style="width: 60px;border-left:none; background:#cccccc;">
  231. <i class="fa fa-user-plus"
  232. style="font-size: 32px !important; margin-left :0px; margin-top:0px; color:#ffffff;"></i>
  233. </div>
  234. <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
  235. style="width: 60px;border-left:none">
  236. <i class="fa fa-user-times"
  237. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#000000;"></i>
  238. </div>
  239. }
  240. else if (Model.WorkOrderBaseModel.CustomerBaseModel.F_ScaleResume == "4")
  241. {
  242. <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
  243. style="width: 60px;border-left:none">
  244. <i class="fa fa-heart"
  245. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  246. </div>
  247. <div title="白名单" class="layui-btn layui-btn-danger blackCustom bookChildBtn" onclick="btnOpt(10)"
  248. style="width: 170px; border-left: none">
  249. <i class="fa fa-user-plus"
  250. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:cccccc;">白名单</i>
  251. </div>
  252. <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
  253. style="width: 60px;border-left:none">
  254. <i class="fa fa-user-times"
  255. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  256. </div>
  257. }
  258. else
  259. {
  260. <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
  261. style="width: 60px; border-left:none">
  262. <i class="fa fa-heart"
  263. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  264. </div>
  265. <div title="白名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(10)"
  266. style="width: 60px; border-left:none; background:#cccccc;">
  267. <i class="fa fa-user-plus"
  268. style="font-size: 32px !important; margin-left :0px; margin-top:0px; color:#ffffff;"></i>
  269. </div>
  270. <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
  271. style="width: 60px; border-left:none">
  272. <i class="fa fa-user-times"
  273. style="font-size: 32px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  274. </div>
  275. }
  276. }
  277. else
  278. {
  279. <div title="关注度" class="layui-btn layui-btn-primary layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
  280. style="width: 60px;border-left:none">
  281. <i class="fa fa-heart"
  282. style="font-size: 40px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  283. </div>
  284. <div title="白名单" class="layui-btn layui-btn-danger blackCustom bookChildBtn" onclick="btnOpt(10)"
  285. style="width: 170px; border-left: none">
  286. <i class="fa fa-user-plus"
  287. style="font-size: 40px !important; margin-left :0px;margin-top:0px; color:cccccc;"></i>
  288. </div>
  289. <div title="黑名单" class="layui-btn layui-btn-primary layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
  290. style="width: 60px;border-left:none">
  291. <i class="fa fa-user-times"
  292. style="font-size: 40px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  293. </div>
  294. }
  295. }
  296. else
  297. {
  298. <div id="historyCustom" class="layui-btn layui-btn-disabled layui-btn-sm bookChildBtn" onclick="btnOpt(1)"
  299. style="width: 60px;">
  300. <i class="fa fa-address-card-o"></i>
  301. </div>
  302. <div title="关注度" class="layui-btn layui-btn-disabled layui-btn-sm careCustom bookChildBtn" onclick="btnOpt(2)"
  303. style="width: 60px;border-left:none">
  304. <i class="fa fa-heart"
  305. style="font-size: 40px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  306. </div>
  307. <div title="黑名单" class="layui-btn layui-btn-disabled layui-btn-sm blackCustom bookChildBtn" onclick="btnOpt(3)"
  308. style="width: 60px;border-left:none">
  309. <i class="fa fa-user-times"
  310. style="font-size: 40px !important; margin-left :0px;margin-top:0px; color:#cccccc;"></i>
  311. </div>
  312. }
  313. </div>
  314. &nbsp;&nbsp;&nbsp;&nbsp;
  315. <div class="layui-btn-group " style="position: relative; height:50px; margin-top:-10px">
  316. <div title="挂断" class="layui-btn layui-btn-danger layui-btn-sm" onclick="btnOpt(4)"
  317. style="width: 70px;height:50px;">
  318. <i class="layui-icon">&#xe64d;</i>
  319. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 挂断</span>
  320. </div>
  321. @*202212<div title="转回IVR" class="layui-btn layui-btn-normal layui-btn-sm" onclick="btnOpt(8)"
  322. style="width: 70px;height:50px;">
  323. <i class="fa fa-volume-control-phone"></i>
  324. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px -3px; display:block; text-align: left;"> 转回IVR</span>
  325. </div>202212*@
  326. <div title="保持" class="layui-btn layui-btn-warm layui-btn-sm" onclick="btnOpt(5)" style="width: 70px;height:50px;">
  327. <i class="fa fa-microphone-slash"></i>
  328. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 保持</span>
  329. </div>
  330. <div title="接回" class="layui-btn layui-btn-warm layui-btn-sm" onclick="btnOpt(6)" style="width: 70px;height:50px;">
  331. <i class="fa fa-microphone"></i>
  332. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 接回</span>
  333. </div>
  334. <div title="转移" class="layui-btn layui-btn-normal layui-btn-sm" onclick="btnOpt(7)"
  335. style="width: 70px;height:50px;">
  336. <i class="layui-icon">&#xe613;</i>
  337. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px 9px; display:block; text-align: left;"> 转移</span>
  338. </div>
  339. <div title="一键转接" class="layui-btn layui-btn-normal layui-btn-sm keySwitch" style="width: 70px;height:50px;">
  340. <i class="fa fa-users"></i>
  341. <span style="font-size: 14px; width: 40px;height:50px; margin:-7px 0px 0px -10px; display:block; text-align: left;"> 一键转接</span>
  342. </div>
  343. </div>
  344. </div>
  345. </div>
  346. <div class="layui-card-body">
  347. <div class="layui-row layui-col-space15">
  348. <div class="layui-col-md4">
  349. <label class="layui-form-label">
  350. 姓名:
  351. </label>
  352. <div class="layui-input-block">
  353. <input type="text" id="F_CustomerName"
  354. value="@Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerName" placeholder="" autocomplete="off"
  355. class="layui-input" />
  356. </div>
  357. </div>
  358. <div class="layui-col-md4">
  359. <label class="layui-form-label">
  360. 性别:
  361. </label>
  362. <div class="layui-input-block sexParam">
  363. @if (Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerPym == "女")
  364. {
  365. <input type="radio" name="F_CustomerPym" value="男" title="男" />
  366. <input type="radio" name="F_CustomerPym" value="女" title="女" checked="" />
  367. }
  368. else if (Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerPym == "男")
  369. {
  370. <input type="radio" name="F_CustomerPym" value="男" title="男" checked="" />
  371. <input type="radio" name="F_CustomerPym" value="女" title="女">
  372. }
  373. else
  374. {
  375. <input type="radio" name="F_CustomerPym" value="男" title="男" />
  376. <input type="radio" name="F_CustomerPym" value="女" title="女" />
  377. }
  378. </div>
  379. </div>
  380. <div class="layui-col-md4">
  381. <label class="layui-form-label">
  382. 年龄段:
  383. </label>
  384. <div class="layui-input-inline">
  385. <select id="F_CustomerCode" lay-search="">
  386. <option value=""></option>
  387. @if (Model.AgeModelList != null && Model.AgeModelList.Count > 0)
  388. {
  389. foreach (T_Sys_DictionaryValue dicModel in Model.AgeModelList)
  390. {
  391. if (!string.IsNullOrEmpty(Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode))
  392. {
  393. if (Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerCode == dicModel.F_Name)
  394. {
  395. <option value="@dicModel.F_Name" selected>@dicModel.F_Name</option>
  396. }
  397. else
  398. {
  399. <option value="@dicModel.F_Name">@dicModel.F_Name</option>
  400. }
  401. }
  402. else
  403. {
  404. <option value="@dicModel.F_Name">@dicModel.F_Name</option>
  405. }
  406. }
  407. }
  408. </select>
  409. </div>
  410. </div>
  411. <div class="layui-col-md4">
  412. <label class="layui-form-label">
  413. 微信号:
  414. </label>
  415. <div class="layui-input-block">
  416. <input id="F_CustomerEName" value="@Model.WorkOrderBaseModel.CustomerBaseModel.F_CustomerEName"
  417. autocomplete="off" placeholder="" class="layui-input" type="text" />
  418. </div>
  419. </div>
  420. <div class="layui-col-md4">
  421. <label class="layui-form-label">
  422. 微博号:
  423. </label>
  424. <div class="layui-input-block">
  425. <input id="F_PostCode" value="@Model.WorkOrderBaseModel.CustomerBaseModel.F_PostCode"
  426. autocomplete="off" placeholder="" class="layui-input" type="text" />
  427. </div>
  428. </div>
  429. </div>
  430. </div>
  431. </form>
  432. <div class="layui-card layui-form" lay-filter="component-form-element">
  433. @*202212<div class="layui-card-header setLine">
  434. <ul class="layui-nav lineState" data-attr="1" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  435. style="color: #cccccc;">一号线</a></ul>
  436. <ul class="layui-nav lineState" data-attr="2" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  437. style="color: #cccccc;">二号线</a></ul>
  438. <ul class="layui-nav lineState" data-attr="3" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  439. style="color: #cccccc;">三号线</a></ul>
  440. <ul class="layui-nav lineState" data-attr="4" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  441. style="color: #cccccc;">四号线</a></ul>
  442. <ul class="layui-nav lineState" data-attr="5" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  443. style="color: #cccccc;">五号线</a></ul>
  444. <ul class="layui-nav lineState" data-attr="14" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  445. style="color: #cccccc;">十四号线</a></ul>
  446. <ul class="layui-nav lineState" data-attr="100" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  447. style="color: #cccccc;">城郊线</a></ul>
  448. <ul class="layui-nav lineState" data-attr="101" style="font-size: 14px; text-align: center;"><a href="javascript:;"
  449. style="color: #cccccc;">其它线路</a></ul>
  450. </div>202212*@
  451. <div class="layui-card-header">
  452. @if (Model != null && Model.WorkOrderTypeModelList != null && Model.WorkOrderTypeModelList.Count > 0)
  453. {
  454. foreach (T_Wo_WorkOrderType workOrderTypeModel in Model.WorkOrderTypeModelList)
  455. {
  456. if (Model.SelectBussType != null && Model.SelectBussType > 0 && Model.SelectBussType.ToString() ==
  457. workOrderTypeModel.F_Number)
  458. {
  459. <ul class="layui-nav selectLineColor">
  460. @if (workOrderTypeModel.WorkTypeModelList != null && workOrderTypeModel.WorkTypeModelList.Count > 0)
  461. {
  462. <li class="layui-nav-item">
  463. <a href="javascript:;" data-url="@workOrderTypeModel.F_WorkOrderTypeId">@workOrderTypeModel.F_Name</a>
  464. <dl class="layui-nav-child clickpanle">
  465. @foreach (T_Wo_WorkOrderType childModel in workOrderTypeModel.WorkTypeModelList)
  466. {
  467. <dd><a href="javascript:;" data-value="@childModel.F_Name" data-type="@childModel.F_ParentName"
  468. data-url="@childModel.F_WorkOrderTypeId">@childModel.F_Name</a></dd>
  469. }
  470. </dl>
  471. </li>
  472. }
  473. else
  474. {
  475. <li class="layui-nav-item clickpanle">
  476. <a href="javascript:;" data-url="@workOrderTypeModel.F_WorkOrderTypeId">@workOrderTypeModel.F_Name</a>
  477. </li>
  478. }
  479. </ul>
  480. }
  481. else
  482. {
  483. <ul class="layui-nav">
  484. @if (workOrderTypeModel.WorkTypeModelList != null && workOrderTypeModel.WorkTypeModelList.Count > 0)
  485. {
  486. <li class="layui-nav-item">
  487. <a href="javascript:;" data-url="@workOrderTypeModel.F_WorkOrderTypeId">@workOrderTypeModel.F_Name</a>
  488. <dl class="layui-nav-child clickpanle">
  489. @foreach (T_Wo_WorkOrderType childModel in workOrderTypeModel.WorkTypeModelList)
  490. {
  491. <dd><a href="javascript:;" data-value="@childModel.F_Name" data-url="@childModel.F_WorkOrderTypeId"
  492. data-type="@childModel.F_ParentName">@childModel.F_Name</a></dd>
  493. }
  494. </dl>
  495. </li>
  496. }
  497. else
  498. {
  499. <li class="layui-nav-item clickpanle">
  500. <a href="javascript:;" data-url="@workOrderTypeModel.F_WorkOrderTypeId">@workOrderTypeModel.F_Name</a>
  501. </li>
  502. }
  503. </ul>
  504. }
  505. }
  506. }
  507. </div>
  508. </div>
  509. <div class="layui-card layui-form" lay-filter="component-form-element">
  510. <div class="layui-card-header">
  511. 历史工单
  512. </div>
  513. <div id="content" class="flowContent">
  514. <table class="layui-table"
  515. lay-data="{ url:'/WorkOrder/WorkOrderHistoryData/?NowDateTime=@Model.WorkOrderBaseModel.F_CREATEDATE&phoneNumber=@Model.WorkOrderBaseModel.F_CUSTOMERTELEPHONE', id:'recordtable'}"
  516. lay-size="sm" lay-filter="demo">
  517. <thead>
  518. <tr>
  519. <th lay-data="{field:'F_CODE', width:160}">工单编号</th>
  520. <th lay-data="{field:'F_CUSTOMERNAME', width:120}">客户姓名</th>
  521. <th lay-data="{field:'F_LINKMAN', align: 'center',width:120}">坐席工号</th>
  522. <th lay-data="{field:'F_REPAIRMANNAME', width:100}">坐席姓名</th>
  523. <th lay-data="{field:'F_WORKORDERFROM', width:100}">接入渠道</th>
  524. <th lay-data="{field:'F_CREATEDATENew',align: 'center',width:160}">受理时间</th>
  525. <th lay-data="{field:'F_REPAIRREQUEST', width:100}">业务状态</th>
  526. <th lay-data="{field:'F_CONTENT'}">内容</th>
  527. <th lay-data="{field:'F_ADSLACCOUNT', align: 'right', width:140}">业务类型</th>
  528. <th lay-data="{ width:100, align:'center', toolbar: '#barDemo'}">操作</th>
  529. </tr>
  530. </thead>
  531. </table>
  532. <script type="text/html" id="barDemo">
  533. <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="view">查看详情</a>
  534. </script>
  535. </div>
  536. </div>
  537. </div>
  538. @*202212<div class="layui-col-md3">
  539. <div class="layui-card">
  540. <div class="layui-card-header">
  541. 快捷入口
  542. </div>
  543. <div class="layui-card-body" style="text-align: center;">
  544. <div class="layui-form" action="" lay-filter="component-form-element">
  545. <button class="layui-btn layui-btn-radius layui-btn-primary"
  546. onclick="OpenOtherForm('周边', 'https://www.amap.com/')" style="width: 150px;">
  547. 周边
  548. </button>
  549. <div style="height: 3px;">
  550. &nbsp;
  551. </div>
  552. <button class="layui-btn layui-btn-radius layui-btn-primary"
  553. onclick="OpenOtherForm('线路查询','http://www.zzmetro.com/lines/query/line')" style="width: 150px;">
  554. 线路查询
  555. </button>
  556. <div style="height: 3px;">
  557. &nbsp;
  558. </div>
  559. <button class="layui-btn layui-btn-radius layui-btn-primary"
  560. onclick="OpenOtherForm('票价查询','http://www.zzmetro.com/lines/query/ticket')" style="width: 150px;">
  561. 票价查询
  562. </button>
  563. <div style="height: 3px;">
  564. &nbsp;
  565. </div>
  566. <button class="layui-btn layui-btn-radius layui-btn-primary"
  567. onclick="OpenOtherForm('运营时间','http://www.zzmetro.com/lines/query/operating_hours')"
  568. style="width: 150px;">
  569. 运营时间
  570. </button>
  571. <div style="height: 3px;">
  572. &nbsp;
  573. </div>
  574. <button class="layui-btn layui-btn-radius layui-btn-primary"
  575. onclick="OpenOtherForm('站点查询','http://www.zzmetro.com/lines/query/station')" style="width: 150px;">
  576. 站点查询
  577. </button>
  578. <div style="height: 3px;">
  579. &nbsp;
  580. </div>
  581. <button class="layui-btn layui-btn-radius layui-btn-primary"
  582. onclick="OpenOtherForm('快速通讯录','http://portal.zzmetro.com/index.php?m=content&c=txl')"
  583. style="width: 150px;">
  584. 快速通讯录
  585. </button>
  586. <div style="height: 3px;">
  587. &nbsp;
  588. </div>
  589. <button class="layui-btn layui-btn-radius layui-btn-primary"
  590. onclick="OpenOtherForm('官网入口','http://www.zzmetro.com/')" style="width: 150px;">
  591. 官网入口
  592. </button>
  593. </div>
  594. </div>
  595. </div>
  596. <div class="layui-card">
  597. <div class="layui-card-header">
  598. 快捷回复
  599. </div>
  600. <div class="layui-card-header" style="display: inline-block;">
  601. <input type="text" style="width: 200px; display: inline;" placeholder="" autocomplete="off"
  602. class="layui-input" id="keyWord">
  603. <button class="layui-btn layui-btn-normal layui-btn-normal serchBtn">
  604. <i class="layui-icon">&#xe615; 查 询</i>
  605. </button>
  606. </div>
  607. <div class="layui-card-body">
  608. <div class="quick-head">
  609. <span class="tag action" data-attr="0">公共回复 <span class="countNum gyNum"> </span></span>
  610. <span class="tag" data-attr="1">私有回复<span class="countNum syNum"> </span></span>
  611. </div>
  612. <div class="quick-list"></div>
  613. </div>
  614. </div>
  615. </div>202212*@
  616. @* <div class="fastReply">快捷回复</div> *@
  617. </div>
  618. </div>
  619. <textarea id="inputs" type="hidden"></textarea>
  620. </body>
  621. <!--下拉输入选择框工具栏-->
  622. <script src="/Content/layui/layui.js"></script>
  623. <script src="/Content/js/CallRecord/callscreen.js"></script>
  624. <script src="/Content/js/WorkOrder/workorderalllist.js" charset="utf-8"></script>
  625. <script src="/Content/layui/formatdate.js"></script>
  626. <script src="/Content/js/ZXDT.config.js"></script>
  627. <script src="/Content/js/ZXDT.http.js"></script>
  628. <script type="text/javascript">
  629. //快捷回复
  630. var quickType;
  631. $(".serchBtn").click(function (event) {
  632. quickData();
  633. quicNum()
  634. });
  635. $(".quick-head .tag").click(function () {
  636. quickType = $(this).attr("data-attr")
  637. $(".quick-head .tag").removeClass("action")
  638. $(this).addClass("action")
  639. quickData();
  640. })
  641. function quicNum(){
  642. //$.ajax({
  643. // url: "/QuickMsgs/GetListData",
  644. // type: "get",
  645. // contentType: "application/json",
  646. // dataType: "text",
  647. // async: false,
  648. // data: {
  649. // type: 0,
  650. // key: $("#keyWord").val(),
  651. // page: 1,
  652. // limit: 5,
  653. // },
  654. // success: function (thisResult) {
  655. // if (eval('(' + thisResult + ')').msg == "成功") {
  656. // var list = eval('(' + thisResult + ')').data;
  657. // $(".gyNum").show()
  658. // $(".gyNum").text(eval('(' + thisResult + ')').count)
  659. // }
  660. // else {
  661. // layui.layer.alert("获取该部门下用户信息失败!", {
  662. // icon: 2
  663. // });
  664. // }
  665. // }
  666. //});
  667. //$.ajax({
  668. // url: "/QuickMsgs/GetListData",
  669. // type: "get",
  670. // contentType: "application/json",
  671. // dataType: "text",
  672. // async: false,
  673. // data: {
  674. // type: 1,
  675. // key: $("#keyWord").val(),
  676. // page: 1,
  677. // limit: 5,
  678. // },
  679. // success: function (thisResult) {
  680. // if (eval('(' + thisResult + ')').msg == "成功") {
  681. // var list = eval('(' + thisResult + ')').data;
  682. // $(".syNum").show()
  683. // $(".syNum").text(eval('(' + thisResult + ')').count)
  684. // }
  685. // else {
  686. // layui.layer.alert("获取该部门下用户信息失败!", {
  687. // icon: 2
  688. // });
  689. // }
  690. // }
  691. //});
  692. }
  693. quickData();
  694. quicNum();
  695. function quickData() {
  696. //if(!quickType){
  697. // quickType=0
  698. //}
  699. //$.ajax({
  700. // url: "/QuickMsgs/GetListData",
  701. // type: "get",
  702. // contentType: "application/json",
  703. // dataType: "text",
  704. // async: false,
  705. // data: {
  706. // type: quickType,
  707. // key: $("#keyWord").val(),
  708. // page: 1,
  709. // limit: 5,
  710. // },
  711. // success: function (thisResult) {
  712. // if (eval('(' + thisResult + ')').msg == "成功") {
  713. // var list = eval('(' + thisResult + ')').data;
  714. // $(".quick-item").remove();
  715. // var key_w = $("#keyWord").val();
  716. // $(list).each(function (i, n) {
  717. // var after_u = n.msg.replace(key_w, '<span style="color:red;">' + key_w + '</span>');
  718. // $(".quick-list").append("<div class='quick-item'>" + after_u + "</div>");
  719. // })
  720. // $(".quick-list .quick-item").click(function (event) {
  721. // var texts = $(this).text();
  722. // var inputs = document.getElementById("inputs");
  723. // inputs.value = texts; // 修改文本框的内容(赋值内容)
  724. // inputs.select(); // 选中文本
  725. // document.execCommand("copy"); // 执行浏览器复制命令
  726. // alert("复制成功");//测试执行是否成
  727. // });
  728. // }
  729. // else {
  730. // layui.layer.alert("获取该部门下用户信息失败!", {
  731. // icon: 2
  732. // });
  733. // }
  734. // }
  735. //});
  736. }
  737. function OpenOtherForm(title, url) {
  738. window.open(url, title);
  739. // top.OCX_OpenOtherForm(title, url);
  740. }
  741. $(".lineState").click(function (event) {
  742. var lineNum=$(this).attr("data-attr")
  743. console.log(lineNum)
  744. $(".setLine ul").removeClass("selectLineColor")
  745. $(this).addClass("selectLineColor")
  746. debugger
  747. $.ajax({
  748. url: "/CallHelper/SetLine",
  749. type: "get",
  750. contentType: "application/json",
  751. dataType: "text",
  752. cache: false,
  753. async: false,
  754. data: {
  755. "lineNum": lineNum,
  756. "callid": helper.cookies.get('CallID'),
  757. },
  758. success: function (data) {
  759. if (eval('(' + data + ')').msg == "成功") {
  760. layer.msg('切换成功');
  761. }
  762. }
  763. });
  764. });
  765. lineState();
  766. function lineState() {
  767. $.ajax({
  768. url: "/CallRecord/CallRecordData",
  769. type: "get",
  770. contentType: "application/json",
  771. dataType: "text",
  772. cache: false,
  773. async: false,
  774. data: {
  775. "page": 1,
  776. "limit": 20,
  777. "callid": helper.cookies.get('CallID'),
  778. },
  779. success: function (data) {
  780. if (eval('(' + data + ')').data.length > 0) {
  781. var LinenumData = eval('(' + data + ')').data[0].F_Linenum;
  782. if (LinenumData == "1") {
  783. $(".lineState").eq(0).addClass("selectLineColor");
  784. } else if (LinenumData == "2") {
  785. $(".lineState").eq(1).addClass("selectLineColor");
  786. }else if (LinenumData == "3") {
  787. $(".lineState").eq(2).addClass("selectLineColor");
  788. }else if (LinenumData == "4") {
  789. $(".lineState").eq(3).addClass("selectLineColor");
  790. }else if (LinenumData == "5") {
  791. $(".lineState").eq(4).addClass("selectLineColor");
  792. }else if (LinenumData == "14") {
  793. $(".lineState").eq(5).addClass("selectLineColor");
  794. }else if (LinenumData == "100") {
  795. $(".lineState").eq(6).addClass("selectLineColor");
  796. }else if (LinenumData == "101") {
  797. $(".lineState").eq(7).addClass("selectLineColor");
  798. }
  799. }
  800. }
  801. });
  802. }
  803. $(".maskTask,.closeBtn").click(function (event) {
  804. $(".telLine,.maskTask").hide();
  805. });
  806. $(".keySwitch").click(function (event) {
  807. $(".telLine,.maskTask").show();
  808. keySwitch()
  809. });
  810. function keySwitch() {
  811. $.ajax({
  812. url: "/SystemManage/DictionaryDate",
  813. type: "get",
  814. contentType: "application/json",
  815. dataType: "text",
  816. cache: false,
  817. async: false,
  818. data: {
  819. "NowDateTime": "2020/11/11 10:43:41",
  820. "page": 1,
  821. "limit": 20,
  822. "dictionaryFlag": "ZDXX"
  823. },
  824. success: function (data) {
  825. $(".telLine").show();
  826. $(".telLine li").remove();
  827. var keySwitchData = eval('(' + data + ')').data;
  828. for (var i = 0; i < keySwitchData.length; i++) {
  829. $('<li class="layui-nav-item" id="'+keySwitchData[i].F_ValueCode+'" data-index="' + keySwitchData[i].F_ValueCode + '"><a href="javascript:;">' + keySwitchData[i].F_Name
  830. + '</a><dl class="layui-nav-child clickpanle"></dl></li>').appendTo('.telLine ul');
  831. }
  832. $(".telLine ul li").hover(function (event) {
  833. dictionaryFlag = $(this).attr("data-index")
  834. $.ajax({
  835. url: "/SystemManage/DictionaryDate",
  836. type: "get",
  837. contentType: "application/json",
  838. dataType: "text",
  839. cache: false,
  840. async: false,
  841. data: {
  842. "NowDateTime": "2020/11/11 10:43:41",
  843. "page": 1,
  844. "limit": 99,
  845. "dictionaryFlag": dictionaryFlag
  846. },
  847. success: function (res) {
  848. var lineData = eval('(' + res + ')').data;
  849. $("#"+dictionaryFlag+" dl dd").remove();
  850. for (var i = 0; i < lineData.length; i++) {
  851. $('<dd data-index="' + lineData[i].F_Describe + '"><a href="javascript:;">'+ lineData[i].F_Name +'</a></dd>').appendTo("#"+dictionaryFlag+" dl")
  852. }
  853. $("#"+dictionaryFlag+" dl").show();
  854. $("#"+dictionaryFlag+" dl dd").click(function(){
  855. var keyNun = $(this).attr("data-index");
  856. if(keyNun){
  857. $.ajax({
  858. type: 'get',
  859. url: '/CallRecord/GetCallOutprefix/?phone=' + keyNun,
  860. dataType: 'html',
  861. success: function (res) {
  862. console.log(res)
  863. top.ZYhj(res.toString() + keyNun.toString());
  864. $(".telLine,.maskTask").hide();
  865. }
  866. });
  867. }else{
  868. alert("操作失败")
  869. }
  870. })
  871. }
  872. });
  873. },function(){
  874. $("#"+dictionaryFlag+" dl").hide();
  875. });
  876. }
  877. });
  878. }
  879. function btnOpt(type) {
  880. var customerid = document.getElementById("F_CustomerId").value;
  881. switch (type) {
  882. case 1:
  883. //保存客户
  884. layer.confirm('确认要[<font color=red>保存客户</font>]吗?', function (index) {
  885. var data = {
  886. F_CustomerId: $("#F_CustomerId").val(),
  887. F_CustomerName: $("#F_CustomerName").val(),
  888. F_CustomerPym: $('.sexParam input[name="F_CustomerPym"]:checked ').val(),
  889. F_CustomerEName: $("#F_CustomerEName").val(),
  890. F_PostCode: $("#F_PostCode").val(),
  891. F_CustomerLayer: $("#F_CustomerLayer").html().trim(),
  892. F_CustomerCode: $("#F_CustomerCode").val(),
  893. F_Telephone: $("#F_Telephone").html().trim(),
  894. F_ScaleResume: $("#F_ScaleResume").val(),
  895. F_CustomerClass: $("#F_CustomerClass").val(),
  896. }
  897. $.ajax({
  898. url: "/CallRecord/SaveCunInfo",
  899. type: "post",
  900. async: false,//同步请求
  901. contentType: "application/json",
  902. dataType: "text",
  903. cache: false,
  904. data: JSON.stringify(data),
  905. success: function (thisResult, result) {
  906. if (thisResult == "True") {
  907. layer.open({
  908. content: '操作成功'
  909. , icon: 1
  910. , btn: ['确定']
  911. , yes: function (index, layero) {
  912. layer.close(index);
  913. }
  914. });
  915. } else {
  916. layui.layer.alert("操作失败!", {
  917. icon: 2
  918. });
  919. }
  920. },
  921. error: function (error) {
  922. return false;
  923. }
  924. });
  925. });
  926. break;
  927. case 2:
  928. //关注客户
  929. layer.confirm('确认要[<font color=red>设置为关注客户</font>]吗?', function (index) {
  930. $.ajax({
  931. url: "/Customer/SaveReceivedData",
  932. type: "get",
  933. async: false,//同步请求
  934. contentType: "application/json",
  935. dataType: "text",
  936. cache: false,
  937. data: "keyList=" + customerid + '&status=2',
  938. success: function (thisResult, result) {
  939. if (thisResult == "True") {
  940. layer.open({
  941. content: '操作成功'
  942. , icon: 1
  943. , btn: ['确定']
  944. , yes: function (index, layero) {
  945. layer.close(index);
  946. }
  947. });
  948. } else {
  949. layui.layer.alert("操作失败!", {
  950. icon: 2
  951. });
  952. }
  953. },
  954. error: function (error) {
  955. return false;
  956. }
  957. });
  958. });
  959. break;
  960. case 3:
  961. //黑名单客户
  962. layer.confirm('确认要[<font color=red>设置为黑名单</font>]吗?', function (index) {
  963. $.ajax({
  964. url: "/Customer/SaveReceivedData",
  965. type: "get",
  966. async: false,//同步请求
  967. contentType: "application/json",
  968. dataType: "text",
  969. cache: false,
  970. data: "keyList=" + customerid + '&status=3',
  971. success: function (thisResult, result) {
  972. if (thisResult == "True") {
  973. layer.open({
  974. content: '操作成功'
  975. , icon: 1
  976. , btn: ['确定']
  977. , yes: function (index, layero) {
  978. layer.close(index);
  979. }
  980. });
  981. } else {
  982. layui.layer.alert("操作失败!", {
  983. icon: 2
  984. });
  985. }
  986. },
  987. error: function (error) {
  988. return false;
  989. }
  990. });
  991. });
  992. break;
  993. case 4:
  994. //挂断
  995. layer.confirm('确认要[<font color=red>挂断电话</font>]吗?', function (index) {
  996. top.button_ReleaseAnswer();
  997. layer.close(index);
  998. });
  999. break;
  1000. case 5:
  1001. //保持通话
  1002. layer.confirm('确认要[<font color=red>保持通话</font>]吗?', function (index) {
  1003. top.button_KeepCall();
  1004. layer.close(index);
  1005. });
  1006. break;
  1007. case 6:
  1008. //接回通话
  1009. layer.confirm('确认要[<font color=red>接回通话</font>]吗?', function (index) {
  1010. top.button_GetKeepCall();
  1011. layer.close(index);
  1012. });
  1013. break;
  1014. case 7:
  1015. //转移
  1016. layer.open({
  1017. content: '转移号码:<input type=\"text\" id=\"txtZYPhone\" value=\"1001\" placeholder=\"\" autocomplete=\"off\" class=\"layui-input\" />'
  1018. , btn: ['转移', '取消']
  1019. , yes: function (index, layero) {
  1020. var tel = document.getElementById("txtZYPhone").value;
  1021. top.ZYhj(tel);
  1022. layer.close(index);
  1023. alert("转移成功")
  1024. //top.PhoneCallZY(tel);
  1025. }
  1026. , btn2: function (index, layero) {
  1027. layer.close(index);
  1028. }
  1029. , cancel: function () {
  1030. }
  1031. });
  1032. break;
  1033. case 8:
  1034. //转回IVR
  1035. layer.confirm('确认要[<font color=red>转回到IVR语音流程</font>]吗?', function (index) {
  1036. try {
  1037. top.AgentTransToIVR();
  1038. layer.close(index);
  1039. }
  1040. catch (e) { }
  1041. });
  1042. break;
  1043. case 9:
  1044. //一键转接
  1045. layer.open({
  1046. content: '转移号码:<input type=\"text\" id=\"txtZYPhone\" value=\"1001\" placeholder=\"\" autocomplete=\"off\" class=\"layui-input\" />'
  1047. , btn: ['转移', '取消']
  1048. , yes: function (index, layero) {
  1049. }
  1050. , btn2: function (index, layero) {
  1051. layer.close(index);
  1052. }
  1053. , cancel: function () {
  1054. }
  1055. });
  1056. break;
  1057. case 10:
  1058. //黑名单客户
  1059. layer.confirm('确认要[<font color=red>设置为白名单</font>]吗?', function (index) {
  1060. $.ajax({
  1061. url: "/Customer/SaveReceivedData",
  1062. type: "get",
  1063. async: false,//同步请求
  1064. contentType: "application/json",
  1065. dataType: "text",
  1066. cache: false,
  1067. data: "keyList=" + customerid + '&status=4',
  1068. success: function (thisResult, result) {
  1069. if (thisResult == "True") {
  1070. layer.open({
  1071. content: '操作成功'
  1072. , icon: 1
  1073. , btn: ['确定']
  1074. , yes: function (index, layero) {
  1075. layer.close(index);
  1076. }
  1077. });
  1078. } else {
  1079. layui.layer.alert("操作失败!", {
  1080. icon: 2
  1081. });
  1082. }
  1083. },
  1084. error: function (error) {
  1085. return false;
  1086. }
  1087. });
  1088. });
  1089. break;
  1090. case 11:
  1091. //一键转接
  1092. layer.confirm('转移号码:<input type=\"text\" id=\"txtZYPhone\" value=\"1001\" placeholder=\"\" autocomplete=\"off\" class=\"layui-input\" />', function (index) {
  1093. });
  1094. break;
  1095. }
  1096. }
  1097. </script>
  1098. </html>