地铁二期项目正式开始

CallScreen.cshtml 42KB

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