site_process.blade.php 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857
  1. @extends('admin/site/side_layout')
  2. @section('header_extend')
  3. <style>
  4. .flow_done {
  5. color: #0d8ddb;
  6. margin-left: 10px
  7. }
  8. #vertical-timeline {
  9. padding-left: 96px;
  10. }
  11. #vertical-timeline::before {
  12. display: none;
  13. }
  14. .flow_processing {
  15. color: #FD482C;
  16. margin-left: 10px
  17. }
  18. .vertical-container {
  19. text-align: center;
  20. max-width: 1200px;
  21. }
  22. .vertical-timeline-block {
  23. display: block;
  24. width: auto;
  25. max-width: 141px !important;
  26. float: left;
  27. position: relative;
  28. margin: 0 77px 84px;
  29. height: 166px;
  30. /* border: 1px solid #e5e5e5; */
  31. }
  32. .vertical-timeline-block:last-child {
  33. margin-bottom: 84px;
  34. }
  35. .vertical-timeline-block.widths {
  36. width: 100%;
  37. max-width: 100% !important;
  38. margin-left: 0;
  39. margin-right: 0;
  40. }
  41. .vertical-timeline-block.widths:after {
  42. display: none;
  43. }
  44. .vertical-timeline-block.widths .vertical-timeline-content {
  45. max-width: 141px;
  46. float: right;
  47. }
  48. .vertical-timeline-block:last-child:after {
  49. display: none !important;
  50. }
  51. .vertical-timeline-block:after {
  52. content: '';
  53. display: block;
  54. width: 60px;
  55. height: 36px;
  56. background: url(/img/l-rights-02.png) no-repeat center center;
  57. position: absolute;
  58. right: -105px;
  59. top: 55px;
  60. background-size: auto auto !important;
  61. }
  62. .vertical-timeline-block:nth-child(4), .vertical-timeline-block:nth-child(5), .vertical-timeline-block:nth-child(12), .vertical-timeline-block:nth-child(13), .vertical-timeline-block:nth-child(20), .vertical-timeline-block:nth-child(21), .vertical-timeline-block:nth-child(25), .vertical-timeline-block:nth-child(26) {
  63. margin-right: 0;
  64. }
  65. .vertical-timeline-block:nth-child(1) .titles-boxs i {
  66. background: url(/img/xiangmu-01.png) no-repeat 0px -32px;
  67. }
  68. .vertical-timeline-block:nth-child(2) .titles-boxs i {
  69. background: url(/img/xinxi-01.png) no-repeat 0px -32px;
  70. }
  71. .vertical-timeline-block:nth-child(3) .titles-boxs i {
  72. background: url(/img/baogao-01.png) no-repeat 0px -32px;
  73. }
  74. .vertical-timeline-block:nth-child(4) .titles-boxs i {
  75. background: url(/img/jiagouchiding-01.png) no-repeat 0px -32px;
  76. }
  77. .vertical-timeline-block:nth-child(5) .titles-boxs i {
  78. background: url(/img/gjc-sxjqr-01.png) no-repeat 0px -32px;
  79. }
  80. .vertical-timeline-block:nth-child(6) .titles-boxs i {
  81. background: url(/img/ziliaoshouji-01.png) no-repeat 0px -32px;
  82. }
  83. .vertical-timeline-block:nth-child(7) .titles-boxs i {
  84. background: url(/img/chengxukaifa-01.png) no-repeat 0px -32px;
  85. }
  86. .vertical-timeline-block:nth-child(8) .titles-boxs i {
  87. background: url(/img/yemiantiaozheng-01.png) no-repeat 0px -32px;
  88. }
  89. .vertical-timeline-block:nth-child(9) .titles-boxs i {
  90. background: url(/img/emails-01.png) no-repeat 0px -32px;
  91. }
  92. .vertical-timeline-block:nth-child(10) .titles-boxs i {
  93. background: url(/img/ziliaoshangchuan-01.png) no-repeat 0px -32px;
  94. }
  95. .vertical-timeline-block:nth-child(11) .titles-boxs i {
  96. background: url(/img/yemiantiaozheng-01.png) no-repeat 0px -32px;
  97. }
  98. .vertical-timeline-block:nth-child(12) .titles-boxs i {
  99. background: url(/img/gjc-map-01.png) no-repeat 0px -32px;
  100. }
  101. .vertical-timeline-block:nth-child(13) .titles-boxs i {
  102. background: url(/img/seo-jiancha-01.png) no-repeat 0px -32px;
  103. }
  104. .vertical-timeline-block:nth-child(14) .titles-boxs i {
  105. background: url(/img/w-shangxian-01.png) no-repeat 0px -32px;
  106. }
  107. .vertical-timeline-block:nth-child(15) .titles-boxs i {
  108. background: url(/img/emails-01.png) no-repeat 0px -32px;
  109. }
  110. .vertical-timeline-block:nth-child(16) .titles-boxs i {
  111. background: url(/img/seo-jiancha-01.png) no-repeat 0px -32px;
  112. }
  113. .vertical-timeline-block:nth-child(17) .titles-boxs i {
  114. background: url(/img/dabiao-01.png) no-repeat 0px -32px;
  115. }
  116. .vertical-timeline-block.active .titles-boxs i {
  117. background-position-y: 0;
  118. }
  119. .vertical-timeline-block.active .lefts-div-boxs:after {
  120. background: url(/img/l-rights.png) no-repeat center center;
  121. }
  122. .vertical-timeline-block:hover {
  123. border-color: #2a94e0;
  124. }
  125. .vertical-timeline-block.rt {
  126. float: right;
  127. }
  128. .vertical-timeline-block.rt:after {
  129. right: auto;
  130. left: -105px;
  131. background: url(/img/l-lefts.png) no-repeat center center;
  132. }
  133. .vertical-timeline-block.selects .titles-boxs {
  134. border-color: #feb771;
  135. background: #fe8713;
  136. color: #fff;
  137. }
  138. .vertical-timeline-block.selects .titles-boxs i {
  139. background-position-y: 0;
  140. }
  141. .vertical-timeline-block.ons:after {
  142. width: 36px !important;
  143. height: 60px !important;
  144. right: 50%;
  145. margin-right: -18px;
  146. top: auto;
  147. bottom: -62px;
  148. left: auto;
  149. background: url(/img/l-bottoms-01.png) no-repeat center center;
  150. }
  151. .vertical-timeline-block.:nth-child(16):after {
  152. background: url(/img/l-bottoms-02.png) no-repeat center center;
  153. }
  154. .vertical-timeline-block.active:after {
  155. background: url(/img/l-rights.png) no-repeat center center;
  156. }
  157. .vertical-timeline-block.rt.active:after {
  158. background: url(/img/l-lefts-01.png) no-repeat center center;
  159. }
  160. .vertical-timeline-block.active.ons:after {
  161. background: url(/img/l-bottoms.png) no-repeat center center;
  162. }
  163. .vertical-timeline-block.active .titles-boxs {
  164. background: #2a93e0;
  165. color: #fff;
  166. border-color: #2a93e0;
  167. }
  168. .vertical-timeline-block.active .vertical-timeline-icon {
  169. color: #2a94e0;
  170. }
  171. .vertical-timeline-block.active .vertical-timeline-content p {
  172. color: #2a94e0;
  173. }
  174. .vertical-timeline-icon {
  175. left: 50%;
  176. margin-left: -20px;
  177. top: 1em;
  178. color: #676a6c;
  179. z-index: 100;
  180. background: none !important;
  181. border: none !important;
  182. font-size: 24px;
  183. }
  184. .vertical-timeline-content {
  185. margin: 0;
  186. }
  187. .vertical-timeline-content p {
  188. padding: 0;
  189. font-size: 15px;
  190. margin: 0;
  191. }
  192. .flow_done {
  193. display: block;
  194. margin-left: 0;
  195. font-size: 12px;
  196. color: #323232 !important;
  197. }
  198. .flow_done .span-times {
  199. display: inline-block;
  200. vertical-align: top;
  201. padding-left: 12px;
  202. margin: 0;
  203. margin-left: 8px;
  204. position: relative;
  205. }
  206. .flow_done .span-times:before {
  207. content: '|';
  208. position: absolute;
  209. left: 0;
  210. top: 0;
  211. display: block;
  212. }
  213. .vertical-timeline-content .flow_done {
  214. margin: 6px 0 0 !important;
  215. }
  216. .flow_processing {
  217. display: block;
  218. width: 100%;
  219. margin: 6px 0 0 !important;
  220. font-size: 12px;
  221. color: #323232 !important;
  222. }
  223. .vertical-timeline-content {
  224. /* min-height: 160px; */
  225. padding: 0;
  226. margin-left: 0;
  227. z-index: 99;
  228. text-align: center;
  229. }
  230. .vertical-timeline-content span {
  231. margin: 0.2em 0 0.5em;
  232. }
  233. .vertical-timeline-content .btn {
  234. float: none !important;
  235. display: inline-block;
  236. vertical-align: top;
  237. padding: 0 10px;
  238. border: 1px solid #e5e6e7;
  239. line-height: 20px;
  240. background: #f3f3f4;
  241. margin-top: 3px !important;
  242. white-space: nowrap;
  243. text-overflow: ellipsis;
  244. overflow: hidden;
  245. }
  246. .vertical-timeline-block.selects .vertical-timeline-content .btn:hover {
  247. background: #fe8713 !important;
  248. border-color: #fe8713 !important;
  249. }
  250. .vertical-timeline-content::before {
  251. display: none;
  252. }
  253. .tabs-right {
  254. background: #fff;
  255. }
  256. .tab-content-boxs {
  257. position: relative;
  258. }
  259. .titles-boxs {
  260. width: 141px !important;
  261. height: 141px;
  262. border-radius: 100%;
  263. margin: auto;
  264. background: #d3ebf1;
  265. text-align: center;
  266. padding: 35px 22px 0;
  267. font-size: 14px;
  268. color: #646464;
  269. line-height: 20px;
  270. border: 5px solid #d3ebf1;
  271. }
  272. .titles-boxs i {
  273. display: block;
  274. width: 38px;
  275. height: 32px;
  276. margin: 0 auto 12px;
  277. background: url(/img/xuqian-01.png) no-repeat 0px -32px;
  278. }
  279. .lefts-div-boxs {
  280. width: 43px;
  281. height: 140px;
  282. display: block;
  283. font-size: 16px;
  284. color: #fff;
  285. position: absolute;
  286. left: -164px;
  287. top: 0;
  288. border-radius: 22px;
  289. background: #2a94e0;
  290. padding: 36px 10px 0;
  291. }
  292. .lefts-div-boxs:after {
  293. content: '';
  294. display: block;
  295. width: 60px;
  296. height: 36px;
  297. background: url(/img/l-rights-02.png) no-repeat center center;
  298. position: absolute;
  299. right: -102px;
  300. top: 55px;
  301. background-size: auto auto !important;
  302. }
  303. .lefts-div-boxs i {
  304. content: '';
  305. display: block;
  306. width: 4px;
  307. min-height: 260px;
  308. position: absolute;
  309. left: 50%;
  310. margin-left: -2px;
  311. top: 145px;
  312. background: #d7d7d7;
  313. }
  314. .lefts-div-boxs i:after {
  315. content: '';
  316. display: block;
  317. width: 16px;
  318. height: 50px;
  319. background: url(/img/ll-bottoms.png) no-repeat center bottom;
  320. position: absolute;
  321. left: 50%;
  322. margin-left: -8px;
  323. bottom: -50px;
  324. background-size: auto auto !important;
  325. }
  326. .lefts-div-boxs.twos {
  327. background: #2cc19b;
  328. }
  329. .lefts-div-boxs.threes {
  330. background: #8cc844;
  331. }
  332. .lefts-div-boxs.threes i {
  333. display: none;
  334. }
  335. .lefts-div-boxs.ones i {
  336. min-height: 748px;
  337. }
  338. @media screen and (max-width: 1680px) {
  339. .vertical-timeline-block {
  340. margin: 0 52px 84px;
  341. }
  342. .vertical-timeline-block:after {
  343. right: -84px;
  344. }
  345. .vertical-timeline-block.rt:after {
  346. /* right: auto; */
  347. left: -84px;
  348. }
  349. .vertical-timeline-block.ons:after {
  350. right: 50%;
  351. left: auto;
  352. }
  353. }
  354. @media screen and (max-width: 1680px) {
  355. .vertical-timeline-block {
  356. margin: 0 42px 84px;
  357. }
  358. .vertical-timeline-block:after {
  359. right: -72px;
  360. }
  361. .vertical-timeline-block.rt:after {
  362. left: -72px;
  363. }
  364. .vertical-timeline-block.ons:after {
  365. left: auto;
  366. }
  367. }
  368. @media screen and (max-width: 1680px) {
  369. .titles-boxs {
  370. width: 128px !important;
  371. height: 128px;
  372. padding: 24px 12px 0;
  373. }
  374. .vertical-timeline-block {
  375. max-width: 128px !important;
  376. }
  377. .vertical-timeline-content .btn {
  378. padding: 0 5px;
  379. }
  380. }
  381. @media screen and (max-width: 1680px) {
  382. .titles-boxs {
  383. width: 128px !important;
  384. height: 128px;
  385. padding: 24px 12px 0;
  386. }
  387. .vertical-timeline-block {
  388. margin: 0 22px 84px;
  389. }
  390. #vertical-timeline {
  391. padding-left: 60px;
  392. }
  393. .lefts-div-boxs {
  394. left: -120px;
  395. }
  396. .lefts-div-boxs:after {
  397. right: -72px;
  398. }
  399. .vertical-timeline-block:after {
  400. right: -44px;
  401. }
  402. .vertical-timeline-block.rt:after {
  403. left: -44px;
  404. right: auto;
  405. }
  406. .vertical-timeline-block.rt.active:after {
  407. background: url(/img/l-bottoms.png) no-repeat center center;
  408. }
  409. }
  410. @media screen and (max-width: 1680px) {
  411. .vertical-timeline-block.widths .vertical-timeline-content {
  412. float: left;
  413. }
  414. .vertical-timeline-block.widths {
  415. width: auto;
  416. margin-left: 22px;
  417. }
  418. .vertical-timeline-block {
  419. float: none !important;
  420. }
  421. #vertical-timeline {
  422. max-width: 260px;
  423. }
  424. .vertical-timeline-block:after {
  425. width: 36px !important;
  426. height: 60px !important;
  427. right: 50%;
  428. margin-right: -18px;
  429. top: auto;
  430. bottom: -62px;
  431. left: auto;
  432. background: url(/img/l-bottoms-01.png) no-repeat center center;
  433. }
  434. .vertical-timeline-block.rt:after {
  435. background: url(/img/l-bottoms-01.png) no-repeat center center;
  436. left: auto;
  437. right: 50%;
  438. }
  439. .vertical-timeline-block.active:after {
  440. background: url(/img/l-bottoms.png) no-repeat center center;
  441. }
  442. .lefts-div-boxs.ones i {
  443. min-height: 2680%;
  444. }
  445. }
  446. </style>
  447. @endsection
  448. @section('right')
  449. <div id="vertical-timeline" class="vertical-container light-timeline fix">
  450. @foreach($processes as $process)
  451. @php $nowProcessPermission = sprintf('process-%s-view',$process->id); @endphp
  452. {{--@hasAuth($nowProcessPermission)--}}
  453. @php
  454. $siteProcess=$processIdMapSiteProcessList[$process->id]??null;
  455. $active=$siteProcess['active']??null;
  456. @endphp
  457. <div
  458. class="vertical-timeline-block fix @if(in_array($process->id,[4,8,12,16,17,22,26])) ons @endif @if(in_array($process->id,[5,6,7,8,13,14,15,16,18])) rt @endif @if($process->id==17) widths @endif">
  459. <div class="vertical-timeline-icon hide {{$process->color??''}}">
  460. {{-- <i class="fa {{$process->icon??''}}"></i> --}}
  461. </div>
  462. <div class="vertical-timeline-content">
  463. {{-- <h2>会议</h2> --}}
  464. <div>
  465. <div class="titles-boxs {{$process->color??''}}">
  466. <i></i>
  467. {{$process->title??''}}
  468. {{-- {{$process->id}}
  469. {{json_encode($process->next_ids)}} --}}
  470. </div>
  471. @if($active==1)
  472. {{--<span class="span-times"></span>--}}
  473. <span class="flow_done">已完成</span>
  474. @elseif($active==2)
  475. <span class="flow_processing">待处理</span>
  476. @endif
  477. </div>
  478. {{---需要文件上传功能--}}
  479. @if(in_array($process->id,[3,4,5,12])&&$siteProcess)
  480. @php $fileTitle=$siteProcess['file_list']?'文件浏览':'文件上传'; @endphp
  481. <button onclick="units.triggerFile({{$siteProcess['id'].','.'"'.$fileTitle.'"'}})"
  482. class="btn btn-sm btn-primary" style="margin-right: 10px">
  483. {{$fileTitle}}
  484. </button>
  485. @endif
  486. {{--网页确认--}}
  487. @if($process->id==9)
  488. <button class="btn btn-sm btn-info pull-left">域名:{{$site->domain}}</button>
  489. @endif
  490. @if($process->id==1&& !$siteProcess)
  491. <button class="btn btn-sm btn-info"
  492. onclick="units.initProcess({{$site->id}})">
  493. 初始化流程
  494. </button>
  495. @endif
  496. @if($active==2)
  497. @php $nowProcessConfirm = sprintf('process-%s-confirm',$process->id); @endphp
  498. @hasAuth($nowProcessConfirm)
  499. <a href="javascript:;"
  500. {{--评分客户反馈--}}
  501. @if(in_array($process->id ,[5,9,15,17])&&$siteProcess)
  502. onclick="units.scoreFeedback({{$siteProcess['id']}})"
  503. @else
  504. onclick="units.confirm({{$siteProcess['id']}})"
  505. @endif
  506. class="btn btn-sm btn-info">确认</a>
  507. @endHasAuth
  508. @endif
  509. @php $nowProcessEdit= sprintf('process-%s-edit',$process->id); @endphp
  510. @hasAuth($nowProcessEdit)
  511. @if(in_array($process->id ,[5,9,15,17])&&$siteProcess)
  512. <a href="javascript:;"
  513. onclick="units.reply({{$siteProcess['id']}})"
  514. class="btn btn-sm btn-info" style="margin-right: 10px"
  515. >回访</a>
  516. @endif
  517. @if(in_array($process->id ,[11,13,16])&&$siteProcess)
  518. <a href="javascript:;"
  519. onclick="units.checkItem({{$siteProcess['id']}})"
  520. class="btn btn-sm btn-info" style="margin-right: 10px"
  521. >
  522. @php
  523. $checkItemScopes=array_column($process->check_item_scopes,'inx');
  524. $diff=array_diff($checkItemScopes,$siteProcess['check_items']??[]);
  525. @endphp
  526. @if($diff)
  527. 待检查
  528. @else
  529. 已检查
  530. @endif
  531. </a>
  532. @endif
  533. {{--程序开发--}}
  534. @if($process->id==7)
  535. @if(!empty($siteProcess['deploy']))
  536. <a href="http://{{$siteProcess['deploy']['domain']??''}}"
  537. class="btn btn-sm btn-default" target="_blank"
  538. style="margin-right: 10px;float: left;">部署域名: {{$siteProcess['deploy']['domain']??''}}</a>
  539. @endif
  540. @if($active==2)
  541. <a href="javascript:;"
  542. onclick="units.deploy({{$siteProcess['id']}})"
  543. class="btn btn-sm btn-warning"
  544. style="margin-right: 10px">部署</a>
  545. @endif
  546. @endif
  547. {{--续签--}}
  548. @if($process->id==18&&$siteProcess)
  549. <a href="javascript:;"
  550. onclick="units.renewForm({{$siteProcess['id']}})"
  551. class="btn btn-sm btn-info" style="margin-right: 10px"
  552. >续签表单</a>
  553. <a href="javascript:;"
  554. onclick="units.renewHistory({{$siteProcess['site_id']}})"
  555. class="btn btn-sm btn-info" style="margin-right: 10px"
  556. >续签历史</a>
  557. @endif
  558. @endHasAuth
  559. </div>
  560. @if($process->id==1 || $process->id==19 || $process->id==23)
  561. <div
  562. class="lefts-div-boxs @if($process->id==1) ones @endif @if($process->id==19) twos @endif @if($process->id==23) threes @endif">
  563. <div class="lists">
  564. @if($process->id==1)
  565. 建站期
  566. <i></i>
  567. @endif
  568. @if($process->id==19)
  569. 优化期
  570. <i></i>
  571. @endif
  572. @if($process->id==23)
  573. 服务期
  574. @endif
  575. </div>
  576. </div>
  577. @endif
  578. </div>
  579. {{--@endHasAuth--}}
  580. @endforeach
  581. </div>
  582. <div class="process-ul-boxs hide">
  583. <div class="boxs">
  584. @foreach($processes as $process)
  585. @php $nowProcessPermission = sprintf('process-%s-view',$process->id); @endphp
  586. @hasAuth($nowProcessPermission)
  587. @php
  588. $siteProcess=$processIdMapSiteProcessList[$process->id]??null;
  589. $active=$siteProcess['active']??null;
  590. @endphp
  591. <div class="li-lists">
  592. <div class="li-icon">
  593. <i class="fa {{$process->icon??''}}"></i>
  594. </div>
  595. <div class="times">
  596. @if($active==1)
  597. 已完成
  598. @elseif($active==2)
  599. 待处理
  600. @endif
  601. </div>
  602. </div>
  603. @endHasAuth
  604. @endforeach
  605. </div>
  606. </div>
  607. @endsection
  608. @section('footer_extend')
  609. <script>
  610. $(".li-lists").click(function () {
  611. var i = $(this).index();
  612. $(this).addClass("active").siblings().removeClass("active");
  613. $(".vertical-timeline-block").eq(i).addClass("ons").siblings().removeClass("ons");
  614. });
  615. $(".vertical-timeline-block").each(function () {
  616. if (!!$(this).find("span").hasClass("flow_done")) {
  617. $(this).addClass("active");
  618. }
  619. });
  620. $(".vertical-timeline-block").each(function () {
  621. if (!!$(this).find("span").hasClass("flow_processing")) {
  622. $(this).addClass("selects");
  623. }
  624. });
  625. var units = {
  626. initProcess: function (siteId) {
  627. layer.confirm('是否初始化流程?', {icon: 3, title: '初始化流程'}, function () {
  628. var config = {url: '/admin/process/site/' + siteId + '/init'};
  629. config.success = function (result) {
  630. layer.msg(result.message, {icon: 6, time: 1500}, function () {
  631. window.location.reload();
  632. });
  633. };
  634. tips.ajax(config);
  635. });
  636. },
  637. triggerFile: function (site_process_id, title) {
  638. layer.open({
  639. type: 2,
  640. content: ['/admin/process/file-upload/' + site_process_id],
  641. area: ['60%', '80%'],
  642. title: title
  643. });
  644. },
  645. scoreFeedback: function (site_process_id) {
  646. layer.open({
  647. type: 2,
  648. content: ['/admin/process/score/' + site_process_id],
  649. area: ['60%', '60%'],
  650. title: '评分'
  651. });
  652. },
  653. reply: function (site_process_id) {
  654. layer.open({
  655. type: 2,
  656. content: ['/admin/process/reply/' + site_process_id],
  657. area: ['60%', '60%'],
  658. title: '回访记录'
  659. });
  660. },
  661. checkItem: function (site_process_id) {
  662. layer.open({
  663. type: 2,
  664. content: ['/admin/process/check-item/' + site_process_id],
  665. area: ['60%', '100%'],
  666. title: '检查项'
  667. });
  668. },
  669. renewForm: function (site_process_id) {
  670. layer.open({
  671. type: 2,
  672. content: ['/admin/process/renew-form/' + site_process_id],
  673. area: ['60%', '80%'],
  674. title: '续签表单'
  675. });
  676. },
  677. renewHistory: function (site_id) {
  678. layer.open({
  679. type: 2,
  680. content: ['/admin/process/renew-history/' + site_id],
  681. area: ['60%', '100%'],
  682. title: '续签历史'
  683. });
  684. },
  685. confirm: function (id) {
  686. layer.confirm('是否确认?', {icon: 3, title: '是否确认'}, function () {
  687. var config = {type: 'PUT', url: '/admin/process/confirm/' + id};
  688. config.success = function (result) {
  689. layer.msg(result.message, {icon: 6, time: 1500}, function () {
  690. window.location.reload();
  691. });
  692. };
  693. tips.ajax(config);
  694. });
  695. },
  696. //作废,移到新版流程里面去了。
  697. /* deploy: function (site_process_id) { //部署
  698. layer.confirm('是否确认部署?', {icon: 3, title: '是否确认部署'}, function () {
  699. var config = {
  700. type: 'GET',
  701. url: '/admin/process/deploy/' + site_process_id
  702. };
  703. config.success = function (result) {
  704. layer.msg(result.message, {icon: 6, time: 1500}, function () {
  705. window.location.reload();
  706. });
  707. };
  708. tips.ajax(config);
  709. });
  710. }*/
  711. // customerInfo: function (siteId) {
  712. // layer.open({
  713. // title: '客户信息表',
  714. // type: 2,
  715. // content: '/admin/sites/' + siteId + '/customer?noSide=1',
  716. // area: ['90%', '90%']
  717. // });
  718. // }
  719. };
  720. // $("").each(function(){
  721. // });
  722. </script>
  723. @endsection