addlog.html 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823
  1. {extend name="public/layout"}
  2. {block name="body"}
  3. <link rel="stylesheet" href="__LAYUI__/layui/css/layui.css" media="all">
  4. <link rel="stylesheet" href="/static/css/common.css">
  5. <script src="/static/js/jquery.min.js"></script>
  6. <style>
  7. body {
  8. font-size: 12px;
  9. padding-bottom: 60px;
  10. }
  11. .topbox {
  12. display: block;
  13. border-bottom: 1px solid #F0F0F0;
  14. background: #FCFCFC;
  15. width: 100%;
  16. height: 42px;
  17. line-height: 35px;
  18. font-size: 14px;
  19. text-indent: 5px;
  20. font-family: Arial;
  21. padding-top: 3px;
  22. padding-bottom: 3px;
  23. }
  24. .topbox a {
  25. display: block;
  26. font-size: 12px;
  27. font-weight: normal;
  28. margin-right: 15px;
  29. color: #0000FF;
  30. }
  31. .topbox a:hover {
  32. color: #FF0000
  33. }
  34. .textareabox {
  35. margin-top: 5px;
  36. table-layout: fixed;
  37. _width: 100%;
  38. width: 100%;
  39. border: 1px solid #DFDFDF;
  40. border-collapse: separate !important;
  41. border-right: 0;
  42. border-bottom: 2px solid #DFDFDF;
  43. background-color: #FFF;
  44. }
  45. .inputbox {
  46. border-right: 1px solid #DFDFDF;
  47. border-bottom: 1px solid #EAEAEC;
  48. padding: 7px;
  49. line-height: 25px;
  50. font-size: 13px;
  51. position: relative;
  52. padding-left: 49px;
  53. }
  54. .addrecordbox {
  55. display: block;
  56. width: 345px;
  57. height: 80px;
  58. outline: none;
  59. position: relative;
  60. overflow: hidden;
  61. padding: 5px;
  62. }
  63. .inputbox span {
  64. display: block;
  65. width: 42px;
  66. position: absolute;
  67. bottom: 2px;
  68. left: 7px;
  69. line-height: 25px;
  70. font-size: 13px;
  71. font-weight: bold;
  72. }
  73. .waybox {
  74. display: block;
  75. width: 100%;
  76. background-color: #FFF;
  77. padding: 7px;
  78. line-height: 25px;
  79. font-size: 13px;
  80. }
  81. .leftwaybox {
  82. display: block;
  83. color: #FF0000;
  84. font-weight: bold;
  85. }
  86. .leftstatebox {
  87. display: block;
  88. font-weight: bold;
  89. }
  90. .everylabel {
  91. display: block;
  92. margin-right: 10px;
  93. }
  94. .everylabel input {
  95. vertical-align: middle;
  96. width: 16px;
  97. height: 16px;
  98. appearance: none;
  99. -webkit-appearance: none;
  100. -moz-appearance: none;
  101. background-color: transparent;
  102. border: 0;
  103. outline: 0 !important;
  104. line-height: 14px;
  105. color: #d8d8d8;
  106. }
  107. .everylabel input[type=radio]:after {
  108. content: "";
  109. display: block;
  110. width: 16px;
  111. height: 16px;
  112. border-radius: 50%;
  113. text-align: center;
  114. line-height: 12px;
  115. color: #fff;
  116. border: 1px solid #ddd;
  117. background-color: #fff;
  118. box-sizing: border-box;
  119. }
  120. .everylabel input[type=radio]:checked:after {
  121. content: "L";
  122. transform: matrix(-0.766044, -0.642788, -0.642788, 0.766044, 0, 0);
  123. -webkit-transform: matrix(-0.766044, -0.642788, -0.642788, 0.766044, 0, 0);
  124. -ms-transform: matrix(-0.766044, -0.642788, -0.642788, 0.766044, 0, 0);
  125. /*兼容ie9+ */
  126. -moz-transform: matrix(-0.766044, -0.642788, -0.642788, 0.766044, 0, 0);
  127. /*兼容ie9+ */
  128. border-color: #37AF6E;
  129. background-color: #37AF6E;
  130. }
  131. .nextimebox {
  132. display: block;
  133. font-weight: bold;
  134. line-height: 25px;
  135. padding: 7px;
  136. }
  137. .nextimebox input {
  138. display: block;
  139. border: 1px solid #ccc;
  140. background: #fff;
  141. padding: 1px 2px;
  142. height: 24px;
  143. line-height: 24px;
  144. vertical-align: middle;
  145. text-indent: 3px;
  146. }
  147. .mustbox {
  148. display: block;
  149. padding-left: 5px;
  150. padding-right: 5px;
  151. color: #FF0000;
  152. }
  153. .savebtn {
  154. display: block;
  155. border: none;
  156. width: 98px;
  157. height: 30px;
  158. color: #fff;
  159. font-size: 14px;
  160. font-weight: bold;
  161. text-align: center;
  162. background: url(/static/img/icon-sub.png) no-repeat;
  163. cursor: pointer;
  164. position: absolute;
  165. right: 7px;
  166. bottom: 48px;
  167. }
  168. .statusbox {
  169. font-size: 13px;
  170. line-height: 25px;
  171. padding: 7px;
  172. background-color: #daeef3;
  173. }
  174. .statustext {
  175. font-weight: bold;
  176. }
  177. .recordbox {
  178. display: block;
  179. table-layout: fixed;
  180. _width: 100%;
  181. width: 100%;
  182. border: 1px solid #DFDFDF;
  183. border-collapse: separate !important;
  184. background-color: #FFF;
  185. border-right: 0;
  186. border-bottom: 2px solid #DFDFDF;
  187. margin-top: 6px;
  188. }
  189. .maintable {
  190. width: 100%;
  191. }
  192. .maintable th {
  193. background-color: #F2F3F7;
  194. border-right: 1px solid #DFDFDF;
  195. border-bottom: 1px solid #DFDFDF;
  196. line-height: 25px;
  197. padding: 5px;
  198. text-align: center;
  199. font-family: Arial;
  200. font-size: 12px;
  201. letter-spacing: 1px;
  202. color: #333
  203. }
  204. .maintable td {
  205. border-right: 1px solid #DFDFDF;
  206. border-bottom: 1px solid #EAEAEC;
  207. padding: 7px;
  208. line-height: 25px;
  209. font-size: 13px;
  210. position: relative;
  211. }
  212. .tablelist th,
  213. .tablelist td {
  214. overflow: hidden;
  215. white-space: nowrap;
  216. text-overflow: ellipsis;
  217. word-wrap: break-word;
  218. }
  219. .tbcenter td {
  220. text-align: center
  221. }
  222. .maintable h2 {
  223. border-bottom: 1px solid #999;
  224. margin: 0;
  225. font-weight: bold;
  226. font-size: 15px;
  227. margin-bottom: 10px;
  228. margin-top: 5px;
  229. text-indent: 3px;
  230. font-family: Arial;
  231. letter-spacing: 1px;
  232. }
  233. .maintable td label {
  234. cursor: pointer
  235. }
  236. #showphone {
  237. text-decoration: underline;
  238. font-weight: bold;
  239. cursor: pointer;
  240. }
  241. .sortnum {
  242. display: block;
  243. width: 25px;
  244. height: 18px;
  245. background-color: #eee
  246. /*#d3ccd6*/
  247. ;
  248. text-decoration: none;
  249. position: absolute;
  250. bottom: 0;
  251. left: 0;
  252. line-height: 18px;
  253. border-radius: 0 6px 0 0;
  254. text-align: center;
  255. }
  256. .logmsgbox {
  257. padding: 7px;
  258. }
  259. .logmsgbox span {
  260. display: block;
  261. color: #009900;
  262. font-weight: bold;
  263. font-size: 14px;
  264. letter-spacing: 1px;
  265. }
  266. .footimebox {
  267. display: block;
  268. background-color: #f5f5f5;
  269. color: #999;
  270. width: 100%;
  271. padding: 3px 11px 3px 3px;
  272. height: 20px;
  273. line-height: 20px;
  274. position: relative;
  275. top: 7px;
  276. left: -7px;
  277. box-sizing: content-box;
  278. }
  279. .hfstate {
  280. position: absolute;
  281. right: 5px;
  282. }
  283. .linebox {
  284. display: block;
  285. width: 100%;
  286. padding: 10px;
  287. border: 1px solid #f5f5f5;
  288. margin: 6px auto 0px;
  289. text-align: left;
  290. letter-spacing: 1px;
  291. background-color: #f8f8f8;
  292. }
  293. .leftcheckbox {
  294. display: block;
  295. position: absolute;
  296. display: block;
  297. width: 78px;
  298. height: 27px;
  299. top: 0;
  300. left: 0;
  301. padding-top: 12px;
  302. background-color: #FFCC00;
  303. text-align: center;
  304. box-sizing: content-box;
  305. }
  306. input[type=checkbox] {
  307. vertical-align: middle;
  308. width: 16px;
  309. height: 16px;
  310. appearance: none;
  311. /**css3属性,不支持ie,但不影响使用**/
  312. -webkit-appearance: none;
  313. -moz-appearance: none;
  314. background-color: transparent;
  315. border: 0;
  316. outline: 0 !important;
  317. cursor: pointer
  318. }
  319. input[type=checkbox]+label {
  320. vertical-align: middle;
  321. padding-left: 1px;
  322. padding-right: 1px;
  323. }
  324. input[type=checkbox]:after {
  325. content: "";
  326. display: block;
  327. width: 16px;
  328. height: 16px;
  329. text-align: center;
  330. line-height: 15px;
  331. color: #fff;
  332. border: 1px solid #c0c0c0;
  333. background-color: #fff;
  334. box-sizing: border-box;
  335. font-weight: bold
  336. }
  337. input[type=checkbox]:checked:after {
  338. content: "\2713";
  339. border-color: #37AF6E;
  340. background-color: #37AF6E;
  341. }
  342. .invalidbox {
  343. display: block;
  344. font-weight: bold;
  345. font-size: 14px;
  346. text-decoration: none;
  347. }
  348. .customermsgbox {
  349. display: block;
  350. width: 95%;
  351. padding: 0 10px;
  352. border: 1px solid #f5f5f5;
  353. margin: 6px auto 0px;
  354. text-align: left;
  355. letter-spacing: 1px;
  356. background-color: #f8f8f8;
  357. }
  358. .crmtitbox {
  359. display: block;
  360. width: 100%;
  361. margin: 15px 0 10px 0;
  362. border-bottom: 1px solid #ccc;
  363. width: 100%;
  364. padding-bottom: 5px;
  365. font-size: 14px;
  366. letter-spacing: 1px;
  367. font-weight: bold;
  368. padding-left: 12px;
  369. }
  370. .othercrmsgbox {
  371. display: block;
  372. line-height: 25px;
  373. padding-left: 10px;
  374. }
  375. .mr10 {
  376. margin-right: 10px;
  377. }
  378. .setinvalidbox{
  379. padding-top: 50px;
  380. }
  381. .invalidtit{
  382. display: block;
  383. border-bottom: 1px solid #F0F0F0;
  384. background: #FCFCFC;
  385. width: 100%;
  386. height: 35px;
  387. line-height: 35px;
  388. font-size: 14px;
  389. text-indent: 5px;
  390. font-family: Arial;
  391. padding-top: 3px;
  392. padding-bottom: 3px;
  393. }
  394. .closebtn{
  395. display: block;
  396. font-size: 12px;
  397. font-weight: normal;
  398. margin-right: 15px;
  399. color: #000;
  400. line-height: 28px;
  401. text-indent: 5px;
  402. font-family: Arial;
  403. cursor: pointer;
  404. background: url(/static/img/btn_bg.gif) repeat-x;
  405. border: 1px solid #C0C0C0;
  406. padding: 0 12px;
  407. *padding: 0 6px;
  408. height: 28px;
  409. }
  410. .invalidtable{
  411. background-color: #FCFCFC;
  412. }
  413. .submitbtn{
  414. cursor: pointer;
  415. color: #000;
  416. background: url(/static/img/btn_bg.gif) repeat-x;
  417. border: 1px solid #C0C0C0;
  418. padding: 0 12px;
  419. *padding: 0 6px;
  420. height: 28px;
  421. }
  422. .orderDing {
  423. width: 95%;
  424. padding: 8px;
  425. text-align: center;
  426. font-size: 14px;
  427. margin: 6px auto 0px;
  428. background-color: #009900;
  429. color: #FFF;
  430. }
  431. .orderDing span {
  432. font-weight: bold;
  433. padding: 0 3px;
  434. color: #FFCC00;
  435. }
  436. .newcrmbox{
  437. display: block;
  438. width: 100%;
  439. height: 40px;
  440. box-sizing: border-box;
  441. padding: 7px;
  442. line-height: 26px;
  443. font-size: 13px;
  444. position: relative;
  445. background-color: #fff;
  446. letter-spacing:1px;
  447. }
  448. .orderDaDing {
  449. background-color: #ff6600;
  450. }
  451. .layui-layer-imgbar{
  452. display: none !important;
  453. }
  454. xm-select{
  455. min-height: 26px;
  456. line-height: 26px;
  457. font-size: 12px;
  458. }
  459. .addbtn {
  460. display: block;
  461. padding: 0 12px;
  462. height: 26px;
  463. font-size: 14px;
  464. text-align: center;
  465. cursor: pointer;
  466. line-height: 26px;
  467. }
  468. xm-select .xm-label .xm-label-block {
  469. height: 20px !important;
  470. line-height: 20px !important;
  471. }
  472. xm-select .xm-label .scroll .label-content {
  473. line-height: 20px !important;
  474. }
  475. xm-select > .xm-label .scroll .label-content {
  476. padding: 1px 10px !important;
  477. }
  478. .aduioimg{
  479. cursor: pointer;
  480. }
  481. .layMask {
  482. width: 100%;
  483. height: 100%;
  484. position: fixed;
  485. top: 0px;
  486. left: 0px;
  487. z-index: 99;
  488. background-color: rgba(0,0,0,0.3);
  489. overflow: auto;
  490. }
  491. .showImage {
  492. width: 85%;
  493. max-height: 90%;
  494. position: absolute;
  495. top: 50%;
  496. left: 50%;
  497. transform: translate(-50%,-50%);
  498. }
  499. .imageRize {
  500. display: inline-block;
  501. width: 150px;
  502. max-height: 300px;
  503. overflow: hidden;
  504. }
  505. .chooseMobile {
  506. position: absolute;
  507. width: 150px;
  508. min-height: 80px;
  509. max-height: 400px;
  510. background-color: #fff;
  511. box-shadow: 0px 0px 4px 2px rgba(0,0,0,0.1);
  512. right: 0px;
  513. top: 32px;
  514. z-index: 999;
  515. border-radius: 4px;
  516. }
  517. .chooseMobile > div {
  518. width: 100%;
  519. height: 30px;
  520. line-height: 30px;
  521. box-sizing: border-box;
  522. padding: 0px 10px;
  523. border-bottom: 1px solid #f2f2f2;
  524. cursor: pointer;
  525. }
  526. .kuaisubiaoji{
  527. margin: 10px 12px;
  528. padding: 10px 15px;
  529. background-color: #f8f8f8;
  530. }
  531. .kb-input{
  532. margin: 10px 0px;
  533. overflow: hidden;
  534. }
  535. .kb-input>input{
  536. margin-left: 10px;
  537. }
  538. .kb-state{
  539. float:left;
  540. width:22%;
  541. margin-left:4%;
  542. height: 40px;
  543. line-height: 40px;
  544. text-align: center;
  545. border-radius: 5px;
  546. overflow: hidden;
  547. background: #ECECEC;
  548. position: relative;
  549. }
  550. .kb-state::after{top:0;left: 0;width: 100%;height: 100%;position: absolute;display: block;content: '';cursor: pointer;}
  551. .kb-state input[type=checkbox]{
  552. margin-right: 5px;
  553. }
  554. .kb-state>label>input[type=checkbox]:after{
  555. border-radius: 50%;
  556. }
  557. .background-green{
  558. background-color: green;
  559. }
  560. .background-green label{color:#fff;}
  561. .kb-item{
  562. display: none;
  563. }
  564. #kb-save{
  565. background: #5CA331;
  566. padding: 5px;
  567. border: 0;
  568. border-radius: 5px;
  569. color: white;
  570. width:100%;
  571. height: 40px;
  572. }
  573. .kb-save{
  574. float: right;
  575. margin: 5px 0px 20px 0;
  576. width:100%;
  577. }
  578. #add_wechat{background-color: #ececec;border:0;}
  579. input::-webkit-outer-spin-button,input::-webkit-inner-spin-button { -webkit-appearance:none !important;}
  580. input[type='number']{ -moz-appearance: textfield !important;}
  581. .maintable {
  582. table-layout: fixed;
  583. width: 100%;
  584. border: 1px solid #DFDFDF;
  585. border-collapse: separate !important;
  586. }
  587. .tupianicos{position: absolute;right: 8%;bottom: 15%;font-size: 26px;cursor: pointer;}
  588. .imageDiv{float:left;width:23%;margin:0 1% 6px;position:relative;height:96px;}
  589. .delfada{top:0;left:0;position:absolute;height: 24px;text-align: center;bottom: 0;right: 0;margin: auto;}
  590. .delfada i{color:#fff;}
  591. .delfada i:hover{color:red}
  592. .picDiv{overflow: hidden;}
  593. .loguploadfile {
  594. width: 100%;
  595. height: auto;
  596. display: flex;
  597. padding: 6px 10px 6px 5px;
  598. }
  599. .filelabel {
  600. width: 80px;
  601. display: inline-block;
  602. font-weight: bold;
  603. color: #000000;
  604. font-size: 14px;
  605. line-height: 26px;
  606. }
  607. .fileblock {
  608. width: calc(100% - 80px);
  609. display: flex;
  610. }
  611. .fileblock > div {
  612. line-height: 26px;
  613. max-width: calc(100% - 100px);
  614. white-space: nowrap;
  615. text-overflow: ellipsis;
  616. overflow: hidden;
  617. }
  618. .fileblock > span {
  619. padding: 6px 15px;
  620. background-color: #249EFB;
  621. color: #fff;
  622. border-radius: 4px;
  623. cursor: pointer;
  624. }
  625. </style>
  626. <body>
  627. <div class="addlogbox">
  628. <div class="clearfix topbox">
  629. <div class="left" style="color: #FF0000;">信息记录:</div>
  630. <a class="right closediv" href="javascript:void(0)" title="关闭该窗口">关闭该窗口</a>
  631. </div>
  632. <div class="textareabox relative" {if $isadd_log neq 1} style="display: none;"{/if}>
  633. <div class="relative inputbox clearfix">
  634. <span>内容:</span>
  635. <textarea class="addrecordbox" style="resize:none;"></textarea>
  636. <div id="upload-drag">
  637. <i class="layui-icon layui-icon-picture tupianicos"></i>
  638. </div>
  639. </div>
  640. <div class="relative picDiv" id="tupianbox"></div>
  641. <div class="clearfix waybox">
  642. <div class="left leftwaybox">方式:</div>
  643. <div class="left">
  644. <div class="left everylabel">
  645. <input name="rway" type="radio" value="1" id="rway2" title="电话">
  646. <label for="rway2" title="电话">电话</label>
  647. </div>
  648. <div class="left everylabel">
  649. <input name="rway" type="radio" value="2" id="rway3" title="短信">
  650. <label for="rway3" title="短信">短信</label>
  651. </div>
  652. <div class="left everylabel">
  653. <input name="rway" type="radio" value="3" id="rway4" title="微信">
  654. <label for="rway4" title="微信">微信</label>
  655. </div>
  656. <div class="left everylabel">
  657. <input name="rway" type="radio" value="4" id="rway1" title="见面">
  658. <label for="rway1" title="见面">见面</label>
  659. </div>
  660. <div class="left everylabel">
  661. <input name="rway" type="radio" value="5" id="rway5" title="其它">
  662. <label for="rway5" title="其它">其它</label>
  663. </div>
  664. </div>
  665. </div>
  666. <div class="clearfix waybox">
  667. <div class="left leftstatebox">线索状态:</div>
  668. <div class="left">
  669. <div class="left everylabel stateElement">
  670. <input name="state" type="radio" value="待确认" id="state1" title="待确认" {if $data['state'] == '待确认'}checked{/if}>
  671. <label for="state1" title="待确认">待确认</label>
  672. </div>
  673. <div class="left everylabel stateElement">
  674. <input name="state" type="radio" {if ($data['state'] == '待确认' || empty($data['state']))}value="未到访"{else /}value="回访"{/if} id="state2" title="有效" {if $data['state'] != '待确认'}checked{/if}>
  675. <label for="state2" title="有效">有效线索</label>
  676. </div>
  677. <div class="left everylabel stateElement">
  678. <input name="state" type="radio" value="无效" id="state3" title="无效">
  679. <label for="state3" title="无效">无效线索</label>
  680. </div>
  681. </div>
  682. </div>
  683. <div class="loguploadfile">
  684. <div class="filelabel">上传文件</div>
  685. <div class="fileblock">
  686. <div id="fileElename"></div>
  687. <span id="refbuttonele">上传附件</span>
  688. <input type="file" hidden id="refilele">
  689. </div>
  690. </div>
  691. <div class="nextimebox clearfix">
  692. <div class="left">下次:</div>
  693. <div class="left">
  694. <input id="nextime" class="left" type="text" readonly />
  695. <span class="left mustbox">*</span>
  696. </div>
  697. </div>
  698. <button type="button" class="savebtn">保存记录</button>
  699. <div class="statusbox clearfix" {if $data.house_status && $isadd_log == 1} style="display: none;" {/if}>
  700. <div class="left statustext">房屋状态:</div>
  701. {volist name="house_status" id="vo" key="k"}
  702. <div class="left everylabel">
  703. <input name="house_status" type="radio" value="{$vo.name}" id="csid{$k}" title="点击修改为:{$vo.name}">
  704. <label for="csid{$k}" title="点击修改为:{$vo.name}">{$vo.name}</label>
  705. </div>
  706. {/volist}
  707. </div>
  708. </div>
  709. {if ($data.introduce == 0) && ($data.deposit)}
  710. <div class="newcrmbox"><strong class="red">提示:</strong>已明确请求<u>{$data.community_name}</u>的<u>{$data.name}</u>介绍新客户<input style="display: inline-block;" onclick="OncheckBox(this)" class="newcrmdiv" type="checkbox" title="已请求介绍新客户" /></div>
  711. {/if}
  712. {if $data.deposit}
  713. <div class="orderDing">{$data.name}在<span class="">{$data.deposit.confirm_date}</span>交<span>{$data.deposit.money}</span>定金,{$data.employee.name}录入</div>
  714. {/if}
  715. {if $data.sign}
  716. <div class="orderDing orderDaDing">{$data.name}在<span class="">{$data.sign.confirm_date}</span>{if $data.package_name}用<span>{$data.package_name}</span>{/if}合同<span>{$data.sign.money}</span>, {$data.employee.name}录入</div>
  717. {/if}
  718. <div class="recordbox" {if $data.state eq '无效'} style="display: none;"{/if}>
  719. <div class="statusbox clearfix" style="background: none;">
  720. <div class="statustext" style="line-height: 26px;">指派人员:</div>
  721. <div style="width:100%;margin-right: 10px;">
  722. <div id="range_person"></div>
  723. </div>
  724. {if $assign_list && !$data.assign_type}
  725. <div style="width: 100%;display: flex;align-items: center;margin: 6px 0px;">
  726. {volist name="assign_list" id="vo" key="k"}
  727. <div class="everylabel">
  728. <input name="assign_type" type="radio" value="{$vo.keyname}" id="assign{$k}" {if condition="count($assign_list) eq 1"}checked="checked"{/if} title="{$vo.value}">
  729. <label for="assign1" title="{$vo.value}">{$vo.value}</label>
  730. </div>
  731. {/volist}
  732. </div>
  733. {/if}
  734. <div style="width: 100%;display: flex;justify-content: flex-end;margin: 6px 0px;">
  735. <button type="button" class="addbtn layui-btn layui-btn-primary layui-border-blue" id="assign">确定</button>
  736. </div>
  737. </div>
  738. </div>
  739. <div class="recordbox" {if $data.state eq '无效'} style="display: none;"{/if}>
  740. <div class="clearfix waybox">
  741. <table class="maintable" border="0" cellspacing="0" cellpadding="0">
  742. <tbody>
  743. <tr>
  744. <td align="center">
  745. <input name="level" type="radio" value="A" id="rway2" {if $data.level == 'A'} checked {/if} title="Arial">
  746. <label for="rway2" title="电话">A</label>
  747. </td>
  748. <td align="center">
  749. <input name="level" type="radio" value="B" id="rway3" {if $data.level == 'B'} checked {/if} title="B">
  750. <label for="rway3" title="短信">B</label>
  751. </td>
  752. <td align="center">
  753. <input name="level" type="radio" value="C" id="rway4" {if $data.level == 'C'} checked {/if} title="C">
  754. <label for="rway4" title="微信">C</label>
  755. </td>
  756. <td align="center">
  757. <input name="level" type="radio" value="D" id="rway1" {if $data.level == 'D'} checked {/if} title="D">
  758. <label for="rway1" title="见面">D</label>
  759. </td>
  760. </tr>
  761. </tbody>
  762. </table>
  763. </div>
  764. <div class="clearfix waybox">
  765. <table class="maintable" border="0" cellspacing="0" cellpadding="0">
  766. <tbody>
  767. <tr>
  768. <th>口碑采集</th>
  769. <th>进业主群</th>
  770. <th>添加微信</th>
  771. </tr>
  772. <tr>
  773. <td align="center">
  774. {if $data.reputation_gather}
  775. 已采集
  776. {else/}
  777. <input name="dataType" type="checkbox" value="reputation_gather" id="rway22" title="口碑采集">
  778. {/if}
  779. </td>
  780. <td align="center">
  781. {if $data.into_owner_group}
  782. 已进群
  783. {else/}
  784. <input name="dataType" type="checkbox" value="into_owner_group" id="rway33" title="进业主群">
  785. {/if}
  786. </td>
  787. <td align="center">
  788. {if $data.add_wechat_time}
  789. 已添加
  790. {else/}
  791. <input name="dataType" type="checkbox" value="add_wechat_time" id="rway44" title="添加微信">
  792. {/if}
  793. </td>
  794. </tr>
  795. </tbody>
  796. </table>
  797. </div>
  798. </div>
  799. <div class="recordbox">
  800. <table class="maintable">
  801. <tbody>
  802. <tr>
  803. <td width="55">记录人</td>
  804. <td>
  805. <span class="left">记录内容</span>
  806. <div class="right relative">{if $data.name==''}未知{else/}{$data.name}{/if}:<span id="showphone" title="双击查看完整号码" style="letter-spacing:1px;"></span>
  807. {if $outcall}
  808. <img id="callCustomer" src="__STATIC__/img/mobile121.png" width="14px" alt="">
  809. <div class="chooseMobile layui-hide">
  810. {volist name="outcall_phone" id="phone"}
  811. <div>{$phone}</div>
  812. {/volist}
  813. </div>
  814. {/if}
  815. </div>
  816. </td>
  817. </tr>
  818. {volist name="data.visitLog" id="vo" key="k"}
  819. <tr>
  820. <td class="relative">{$vo.empname}<span class="sortnum">{php} echo count($data['visitLog'])-$k+1; {/php}</span>
  821. </td>
  822. <td class="relative">
  823. <div class="logmsgbox">
  824. <div {if $vo.wisdom_url eq null}style="display: none;"{/if}>
  825. <audio src="{$vo.wisdom_url}" controls="controls" style="height: 40px;" id="audioEle{$vo.id}"></audio>
  826. </div>
  827. <div class="clearfix">
  828. <span class="left" {if $vo.save_portrait_field neq null}style="display:none;"{/if}>
  829. {if $vo.type == 1}电话:
  830. {elseif $vo.type == 2 /}短信:
  831. {elseif $vo.type == 3 /}微信:
  832. {elseif $vo.type == 4 /}见面:
  833. {/if}
  834. </span>
  835. </div>
  836. <div data-html="{$vo.remark}" class="remarkbox"></div>
  837. {if $vo.img neq ''}
  838. {volist name="vo.img" id="v"}
  839. <div class="imageRize">
  840. <img class="nowimgbox" src="{$v}" str="1" img="{$v}" width="100%"/>
  841. </div>
  842. {/volist}
  843. {/if}
  844. {if $vo.img1 neq ''}
  845. {volist name="vo.img1" id="v"}
  846. <div class="imageRize">
  847. <img class="nowimgbox" src="{$v}" str="1" img="{$v}" width="100%"/>
  848. </div>
  849. {/volist}
  850. {/if}
  851. {if $vo.sign_img neq ''}
  852. {volist name="vo.sign_img" id="v"}
  853. <div class="imageRize">
  854. <img class="nowimgbox" src="{$v}" str="1" img="{$v}" width="100%"/>
  855. </div>
  856. {/volist}
  857. {/if}
  858. {if $vo.delivery_img neq ''}
  859. {volist name="vo.delivery_img" id="v"}
  860. <div class="imageRize">
  861. <img class="nowimgbox" src="{$v}" str="1" img="{$v}" width="100%"/>
  862. </div>
  863. {/volist}
  864. {/if}
  865. {if $vo.save_portrait_field neq ''}
  866. {volist name="vo.save_portrait_field" id="v"}
  867. {if $v.type neq 6}
  868. <span style="color:#000;">{$v.name}:{$v.valname}</span>
  869. {else/}
  870. <p>
  871. <span style="color:#000;">{$v.name}:</span>
  872. {volist name="v.valname" id="p"}
  873. <div class="imageRize">
  874. <img class="nowimgbox" src="{$p}" str="1" img="{$p}" width="100%"/>
  875. </div>
  876. {/volist}
  877. </p>
  878. {/if}
  879. {/volist}
  880. {/if}
  881. {if $vo.document_name neq '' && $vo.document_field neq ''}
  882. <div style="white-space: nowrap;" data-url="{$vo.document_field}" data-name="{$vo.document_name}">
  883. <span>文件地址:</span>
  884. <div style="display: flex;flex-wrap: wrap;">
  885. <span style="color: #999999;white-space: pre-wrap !important;">{$vo.document_name}
  886. </span>
  887. <span style="display: inline !important;cursor: pointer;" class="downloadElement" data-url="{$vo.document_field}" data-name="{$vo.document_name}">下载</span>
  888. </div>
  889. </div>
  890. {/if}
  891. </div>
  892. <div class="footimebox">
  893. <span>上次:{$vo.addtime}</span>
  894. <span style="margin-left: 10px;">下次:{$vo.next_contact_date}</span>
  895. {if $vo.isyes == 0}
  896. <span class="hfstate" title="已回访">Yes</span>
  897. {/if}
  898. {if $vo.isyes == 1}
  899. <span class="hfstate" title="还没有回访">No</span>
  900. {/if}
  901. </div>
  902. </td>
  903. </tr>
  904. {/volist}
  905. </tbody>
  906. </table>
  907. </div>
  908. <div class="linebox relative clearfix" style="text-align:right">
  909. {if $data.add_wechat_time}
  910. <div class="left" style="color: #009900;font-size: 18px;font-style: italic;">V</div>
  911. {/if}
  912. {if $data.state == '待确认' && $isadd_log == 1}
  913. <a class="invalidbox">线索无效注销</a>
  914. {else/}
  915. {if $data.employee && $data.state != '待确认'}
  916. <div class="right">该线索于{$data.valid_time|default=$data.addtime}由{$data.employee.name}确认为有效线索。</div>
  917. {/if}
  918. {/if}
  919. </div>
  920. <div class="kuaisubiaoji">
  921. <div>
  922. <!-- -->
  923. <div class="kb-input">
  924. <label for="add_wechat">加微时间</label>
  925. <input type="text" name="" id="add_wechat" autocomplete="off" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="选择时间" value="{$data.add_wechat_time}">
  926. </div>
  927. </div>
  928. <div class="kb-input" style="margin:18px 0;">
  929. <div class="kb-state" style="margin-left: 0 !important;"><label>
  930. <input type="checkbox" disabled name="state" {volist name='$data.allstate' id='vo'}{if condition="$vo eq '已量房'"}checked{/if}{/volist} class="state_select" data-state="liangfang" value="8">量房
  931. </label></div>
  932. <div class="kb-state"><label>
  933. <input type="checkbox" disabled {volist name='$data.allstate' id='vo'}{if condition="$vo eq '已到店'"}checked{/if}{/volist} name="state" class="state_select" data-state="daodian" value="7">到店
  934. </label></div>
  935. {if $xinjushang == 1}
  936. <div class="kb-state"><label>
  937. <input type="checkbox" disabled {volist name='$data.allstate' id='vo' }{if condition="$vo eq '已交定'" } checked
  938. {/if}{/volist} name="state" class="state_select" data-state="qiandan" value="2">交定
  939. </label></div>
  940. <div class="kb-state"><label>
  941. <input type="checkbox" disabled name="state" {volist name='$data.allstate' id='vo' }{if condition="$vo eq '已签单'"
  942. }checked{/if}{/volist} class="state_select" data-state="zhuandan" value="3">合同
  943. </label></div>
  944. {else/}
  945. <div class="kb-state"><label>
  946. <input type="checkbox" disabled {volist name='$data.allstate' id='vo' }{if condition="$vo eq '已签单'" } checked
  947. {/if}{/volist} name="state" class="state_select" data-state="qiandan" value="2">交定
  948. </label></div>
  949. <div class="kb-state"><label>
  950. <input type="checkbox" disabled name="state" {volist name='$data.allstate' id='vo' }{if condition="$vo eq '已转单'"
  951. }checked{/if}{/volist} class="state_select" data-state="zhuandan" value="3">合同
  952. </label></div>
  953. {/if}
  954. </div>
  955. <div>
  956. <div class="kb-input kb-item kb-liangfang">
  957. <label for="lf_date">量房时间</label><input type="text" name="confirm_date" id="lf_date" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="选择时间" autocomplete="off" {if $data.lf}value="{$data.lf}"{/if}>
  958. </div>
  959. <div class="kb-input kb-item kb-daodian">
  960. <label for="dd_date">到店时间</label><input type="text" name="confirm_date" id="dd_date" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="选择时间" autocomplete="off" {if $data.dd}value="{$data.dd}"{/if}>
  961. </div>
  962. {if $xinjushang == 1}
  963. <div class="kb-input kb-item kb-qiandan">
  964. <label for="qd_date">交定时间</label><input type="text" name="confirm_date" id="qd_date" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="选择时间" autocomplete="off" {if $data.deposit}value="{$data.deposit.confirm_date}"{/if}>
  965. </div>
  966. <div class="kb-input kb-item kb-qiandan">
  967. <label for="qd_money">交定金额</label><input type="number" onmousewheel="return false;" name="money" id="qd_money" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="输入交定金额" autocomplete="off" {if $data.deposit}value="{$data.deposit.money}"{/if}>
  968. </div>
  969. <div class="kb-input kb-item kb-zhuandan">
  970. <label for="zd_date">合同时间</label><input type="text" name="confirm_date" id="zd_date" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="选择时间" autocomplete="off" {if $data.sign}value="{$data.sign.confirm_date}"{/if}>
  971. </div>
  972. <div class="kb-input kb-item kb-zhuandan">
  973. <label for="zd_money">合同金额</label><input type="number" onmousewheel="return false;" name="money" id="zd_money" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="输入合同金额" autocomplete="off" {if $data.sign}value="{$data.sign.money}"{/if}>
  974. </div>
  975. {else/}
  976. <div class="kb-input kb-item kb-qiandan">
  977. <label for="qd_date">交定时间</label><input type="text" name="confirm_date" id="qd_date" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="选择时间" autocomplete="off" {if $data.deposit}value="{$data.deposit.confirm_date}"{/if}>
  978. </div>
  979. <div class="kb-input kb-item kb-qiandan">
  980. <label for="qd_money">交定金额</label><input type="number" onmousewheel="return false;" name="money" id="qd_money" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="输入交定金额" autocomplete="off" {if $data.deposit}value="{$data.deposit.money}"{/if}>
  981. </div>
  982. <div class="kb-input kb-item kb-zhuandan">
  983. <label for="zd_date">合同时间</label><input type="text" name="confirm_date" id="zd_date" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="选择时间" autocomplete="off" {if $data.sign}value="{$data.sign.confirm_date}"{/if}>
  984. </div>
  985. <div class="kb-input kb-item kb-zhuandan">
  986. <label for="zd_money">合同金额</label><input type="number" onmousewheel="return false;" name="money" id="zd_money" onkeyup="value=value.replace(/[^0-9_]/g,'');" style="width:82%;padding-left:10px;height: 40px;" placeholder="输入合同金额" autocomplete="off" {if $data.sign}value="{$data.sign.money}"{/if}>
  987. </div>
  988. {/if}
  989. </div>
  990. <div class="kb-save">
  991. <button id="kb-save" type="button">保存</button>
  992. </div>
  993. </div>
  994. <div class="customermsgbox">
  995. </div>
  996. </div>
  997. <div class="setinvalidbox" style="display:none;">
  998. <div class="clearfix invalidtit">
  999. <div class="left" style="color: #FF0000;">无效线索注销:</div>
  1000. <button class="right closebtn" type="button">返回</button>
  1001. </div>
  1002. <table class="maintable invalidtable">
  1003. <tbody>
  1004. <tr>
  1005. <td>无效理由:<select name="hid" id="hid" style="height:26px;">
  1006. <option value="">------------</option>
  1007. <option value="同行">同行</option>
  1008. <option value="空错号">空错号</option>
  1009. <option value="不是本人">不是本人</option>
  1010. <option value="局部装修">局部装修</option>
  1011. <option value="超服务区域">超服务区域</option>
  1012. <option value="与内部撞单">与内部撞单</option>
  1013. <option value="多次联系不上">多次联系不上</option>
  1014. <option value="装修预算太低">装修预算太低</option>
  1015. <option value="没有装修需求">没有装修需求</option>
  1016. <option value="精装修">精装修</option>
  1017. </select><span title="必填信息" class="red2">*</span>
  1018. </tr>
  1019. <tr>
  1020. <td>
  1021. 注销操作: {$empname}
  1022. </td>
  1023. </tr>
  1024. <tr><td class="invalidtime">注销时间:</td></tr>
  1025. <tr>
  1026. <td align="center" style="padding-left:160px;">
  1027. <button class="submitbtn" type="button" style="display: inline-block;">确认并提交</button>
  1028. </td>
  1029. </tr>
  1030. </tbody>
  1031. </table>
  1032. </div>
  1033. <div class="layMask layui-hide">
  1034. <div class="showImage">
  1035. <img id="imageElement" src="" width="100%" style="margin-bottom: 60px;" alt="">
  1036. </div>
  1037. </div>
  1038. </body>
  1039. <script src="__LAYUI__/layui/layui.js"></script>
  1040. <script src="__STATIC__/layui/layui/lay/modules/xm-select.js" type="text/javascript" charset="utf-8"></script>
  1041. <!-- <script type="text/javascript" src="__STATIC__/js/plupload/js/plupload.full.min.js"></script>
  1042. <script type="text/javascript" src="__STATIC__/js/plupload/ossupload.js"></script> -->
  1043. <script src="https://gosspublic.alicdn.com/aliyun-oss-sdk-6.3.1.min.js" async></script>
  1044. {/block}{block name="js"}
  1045. <script type="text/javascript">
  1046. var assigned_personnel = '{$data.assigned_personnel}';
  1047. var ismanager = '{$is_manager}';
  1048. var data = {assigned_personnel:assigned_personnel};
  1049. //var isselect = assigned_personnel=='' || ismanager == 1 ? false : true;
  1050. var isselect = false;
  1051. layui.config({
  1052. base: '__LAYUI__/',
  1053. urlbase: '/sys'
  1054. }).extend({
  1055. index: 'lib/index' //主入口模块
  1056. }).use(['table','laydate','upload','element'], function () {
  1057. var table = layui.table,
  1058. laydate = layui.laydate,
  1059. upload = layui.upload,
  1060. element = layui.element,
  1061. files,
  1062. $ = layui.$;
  1063. laydate.render({
  1064. elem: '#add_wechat'
  1065. ,trigger: 'click'
  1066. });
  1067. laydate.render({
  1068. elem: '#lf_date'
  1069. ,trigger: 'click'
  1070. });
  1071. laydate.render({
  1072. elem: '#dd_date'
  1073. ,trigger: 'click'
  1074. });
  1075. laydate.render({
  1076. elem: '#qd_date'
  1077. ,trigger: 'click'
  1078. });
  1079. laydate.render({
  1080. elem: '#zd_date'
  1081. ,trigger: 'click'
  1082. });
  1083. var dataForm = {
  1084. document_field: "",
  1085. document_name: ""
  1086. };
  1087. var imgurls=[];
  1088. //多图片上传
  1089. upload.render({
  1090. elem: '#upload-drag',
  1091. accept: 'images',
  1092. url: '/upload/',
  1093. exts: 'jpg|png|bmp|jpeg|JPG|PNG|BMP|JPEG',
  1094. field: 'img',
  1095. size: 5 * 1024,
  1096. auto: false,
  1097. multiple: true,
  1098. choose: function(obj) {
  1099. files = obj.pushFile();
  1100. length = $('.imageDiv').length;
  1101. obj.preview(function(index, file, result) {
  1102. length++;
  1103. if(length > 12) {
  1104. if(length == 13) layer.msg('限制12张图片以下');
  1105. delete files[index];
  1106. } else {
  1107. ossuploadimg(file).then(f => {
  1108. files[index]['imglink'] = f;
  1109. imgurls.push(f);
  1110. $('.picDiv').prepend('<div class="imageDiv" data-id="' + index + '"><img src="' + result + '" alt="' + file.name + '" class="layui-upload-img" width="100%" height="100%"><div class="delfada"><i class="layui-icon layui-icon-delete" prop="del"></i> <i class="layui-icon layui-icon-search" prop="view" data-image="'+result+'" style="margin-left:25px;"></i></div></div>');
  1111. })
  1112. }
  1113. });
  1114. }
  1115. });
  1116. $("#refbuttonele").click(function() {
  1117. $("#refilele").click();
  1118. })
  1119. $("#refilele").change(function() {
  1120. let file = $(this).prop("files")[0];
  1121. let loadingIndex = layer.load('Loading...', {
  1122. shade: [0.6,'#000'] //0.1透明度的白色背景
  1123. });
  1124. ossuploadimg(file, true).then(f => {
  1125. $("#fileElename").text(file.name);
  1126. dataForm.document_field = f;
  1127. dataForm.document_name = file.name;
  1128. layer.close(loadingIndex);
  1129. })
  1130. })
  1131. $(".downloadElement").click(function() {
  1132. let props = $(this).prop('dataset');
  1133. downloadClick({fileurl: props.url, filename: props.name});
  1134. })
  1135. function downloadClick(item) {
  1136. let downloadUrl = item.fileurl;
  1137. let filename = item.filename;
  1138. let xhr = new XMLHttpRequest();
  1139. xhr.open('GET', downloadUrl, true);
  1140. xhr.responseType = 'blob';
  1141. xhr.onload = function () {
  1142. if (xhr.status === 200) {
  1143. let blob = xhr.response;
  1144. let downloadUrl = URL.createObjectURL(blob);
  1145. let a = document.createElement('a');
  1146. a.href = downloadUrl;
  1147. a.download = filename;
  1148. document.body.appendChild(a);
  1149. a.click();
  1150. document.body.removeChild(a);
  1151. URL.revokeObjectURL(downloadUrl);
  1152. }
  1153. };
  1154. xhr.send();
  1155. }
  1156. function ossuploadimg(file) {
  1157. return new Promise((resolve,reject) => {
  1158. let file_name = file.name;
  1159. let suffix = file_name.slice(file_name.lastIndexOf('.'), file_name.length);
  1160. var client = new OSS({
  1161. region: "oss-cn-hangzhou",
  1162. accessKeyId: "LTAI5tHjWupJSCAycy2yVbQZ",
  1163. accessKeySecret: "eNFicm77Cfq3u7ZnQyw1urFmFNpf3w",
  1164. bucket: "zyzswzh",
  1165. secure: true
  1166. });
  1167. var date = new Date().getTime();
  1168. var year = new Date(date).getFullYear();
  1169. var month = new Date(date).getMonth()+1;
  1170. var ridate = new Date(date).getDate();
  1171. var objectName = 'crm/' + year+''+month+''+ridate + "/" + Date.now() + suffix;
  1172. client.put(objectName, file).then(function (result) {
  1173. resolve(result.name);
  1174. }).catch(function (error) {
  1175. reject(error)
  1176. });
  1177. })
  1178. }
  1179. $('.picDiv').on('click', 'i', function(e) {
  1180. var that = this;
  1181. if (e.target.attributes[1].nodeValue === 'view') {
  1182. layer.photos({ photos: {"data": [{"src": e.target.attributes[2].nodeValue}]} ,closeBtn:true});
  1183. } else {
  1184. layer.confirm('确定删除该图片么?',{title:['信息', 'color:#333333;background-color:#D8E6F1;'],}, function(index) {
  1185. var imgDiv = $(that).closest('.imageDiv');
  1186. if(id = imgDiv.data('id')) {
  1187. delete files[id];
  1188. }
  1189. imgDiv.remove();
  1190. layer.close(index);
  1191. });
  1192. }
  1193. });
  1194. for(let i=0;i< $('.remarkbox').length;i++){
  1195. $($('.remarkbox')[i]).html($($('.remarkbox')[i]).data('html'));
  1196. }
  1197. for(let j=0;j<$('.playaduio').length;j++){
  1198. $('.playaduio')[j].index=j;
  1199. $($('.playaduio')[j]).click(function() {
  1200. let index=this.index;
  1201. for (let j = 0; j < $('.playaduio').length; j++) {
  1202. let aid1 = $($('.playaduio')[j]).data('audio');
  1203. $('#'+aid1)[0].pause();
  1204. $($('.playaduio')[j]).show();
  1205. $($('.pausebtn')[j]).hide();
  1206. }
  1207. $($('.playaduio')[index]).hide();
  1208. $($('.pausebtn')[index]).show();
  1209. let aid = $($('.playaduio')[index]).data('audio');
  1210. $('#' + aid)[0].play();
  1211. })
  1212. $('.pausebtn')[j].index = j;
  1213. $('.pausebtn').click(function() {
  1214. let index = this.index;
  1215. let aid = $($('.pausebtn')[index]).data('audio');
  1216. $('#' + aid)[0].pause();
  1217. $($('.playaduio')[index]).show();
  1218. $($('.pausebtn')[index]).hide();
  1219. })
  1220. }
  1221. laydate.render({
  1222. elem: '#nextime', //指定元素
  1223. min:0
  1224. ,trigger:'click'
  1225. });
  1226. $("input[type='radio'][name='level']").click(function(){
  1227. var val=$('input:radio[name="level"]:checked').val();
  1228. console.log(val);
  1229. $.ajax({
  1230. url: '{:url("community/fast_up_portrait")}'
  1231. , data: {
  1232. cid: hobj.cid,// (客户id)
  1233. type: 'level',//
  1234. value: val,//回访类型1电话2微信3短信4见面
  1235. }
  1236. , type: 'post'
  1237. , success: function (res) {
  1238. if (res.code == 0) {
  1239. alert('恭喜,标记成功');
  1240. location.reload();
  1241. }else if(res.code==403){
  1242. $(".exitbtn").trigger("click");
  1243. } else {
  1244. //this_.removeClass(DISABLED);
  1245. //this_.removeAttr('disabled');
  1246. alert(res.msg)
  1247. }
  1248. },
  1249. error : function(e){
  1250. //this_.removeClass(DISABLED);
  1251. //this_.removeAttr('disabled');
  1252. }
  1253. });
  1254. });
  1255. $("input[type='checkbox'][name='dataType']").click(function(){
  1256. // let arr = [];
  1257. // $('input:checkbox[name="dataType"]:checked').each(function() {
  1258. // arr.push($(this).val());
  1259. // })
  1260. let val = $(this).val();
  1261. console.log($(this).val());
  1262. //return false;
  1263. //debugger
  1264. $.ajax({
  1265. url: '{:url("community/fast_up_portrait")}'
  1266. , data: {
  1267. cid: hobj.cid,// (客户id)
  1268. type: 'field',//
  1269. value: val,//回访类型1电话2微信3短信4见面
  1270. }
  1271. , type: 'post'
  1272. , success: function (res) {
  1273. if (res.code == 0) {
  1274. alert('恭喜,标记成功');
  1275. location.reload();
  1276. }else if(res.code==403){
  1277. $(".exitbtn").trigger("click");
  1278. } else {
  1279. alert(res.msg)
  1280. }
  1281. },
  1282. error : function(e){
  1283. }
  1284. });
  1285. });
  1286. let phone="{$data.phone}";
  1287. if(phone){
  1288. let parr= phone.split('');
  1289. $('#showphone').html(parr[0]+''+ parr[1]+'*****'+ parr[parr.length-4] + parr[parr.length-3]+ parr[parr.length - 2]+ parr[parr.length - 1]);
  1290. }
  1291. $('#showphone').dblclick(function () {
  1292. $('#showphone').html(phone);
  1293. })
  1294. $(".stateElement").click(function(e) {
  1295. let state = $('input:radio[name="state"]:checked').val();
  1296. if (state == "无效") {
  1297. $('.mustbox').hide();
  1298. } else {
  1299. $('.mustbox').show();
  1300. }
  1301. })
  1302. let isNextDateVal = "{$nextVisitTimeIsOk}";
  1303. if (isNextDateVal == 0) {
  1304. $(".mustbox").hide();
  1305. }
  1306. var isloading = false;
  1307. let hobj = GetRequest();
  1308. $(".savebtn").click(function(){
  1309. var imglisturls = imgurls.toString();
  1310. let isNextDate = "{$nextVisitTimeIsOk}";
  1311. let nextVisitTimeVal = $("#nextime").val();
  1312. var this_ = $(this);
  1313. let state = $('input:radio[name="state"]:checked').val();
  1314. if ($('.addrecordbox').val() == "" && state != "无效") { alert("提示:请输入回访线索的情况!"); $('.addrecordbox').focus(); return false; }
  1315. if ($('input:radio[name="rway"]:checked').val() == null && state != "无效") { alert("提示:客户回访方式选一下!");return false; }
  1316. if ($('input:radio[name="state"]:checked').val() == null && state != "无效") { alert("提示:客户线索状态选一下!");return false; }
  1317. if (!nextVisitTimeVal && isNextDate == 1 && state != "无效") {
  1318. alert("提示:请选择下次回访时间!");
  1319. $('#nextime').focus();
  1320. return false;
  1321. }
  1322. if (isloading) {
  1323. layer.msg('正在提交...');
  1324. return false;
  1325. }
  1326. isloading = true;
  1327. let hobj = GetRequest();
  1328. let house_status = $('input:radio[name="house_status"]:checked').val();
  1329. layer.load();
  1330. var DISABLED = 'layui-btn-disabled';
  1331. var target = '#building-submit';
  1332. $(this).addClass(DISABLED);
  1333. $(this).attr('disabled', 'disabled');
  1334. $.ajax({
  1335. url: '{:url("community/addVisitlog")}'
  1336. , data: {
  1337. customer_id: hobj.cid,// (客户id)
  1338. state: state,//
  1339. house_status: house_status,
  1340. remark: $('.addrecordbox').val(),
  1341. type: $('input:radio[name="rway"]:checked').val(),//回访类型1电话2微信3短信4见面
  1342. next_contact_date: $('#nextime').val(),
  1343. img1:imglisturls,
  1344. ...dataForm
  1345. }
  1346. , type: 'post'
  1347. , success: function (res) {
  1348. isloading = false;
  1349. if (res.code == 0) {
  1350. layer.closeAll('loading');
  1351. setTimeout(function(){
  1352. alert('恭喜,回访信息录入成功,记得下一次要及时回访哟!');
  1353. },100)
  1354. if (state == "无效") {
  1355. window.parent.removealog();
  1356. // window.parent.reload();
  1357. } else {
  1358. location.reload();
  1359. // window.location.reload();
  1360. }
  1361. }else if(res.code==403){
  1362. $(".exitbtn").trigger("click");
  1363. } else {
  1364. this_.removeClass(DISABLED);
  1365. this_.removeAttr('disabled');
  1366. alert(res.msg)
  1367. }
  1368. },
  1369. error : function(e){
  1370. isloading = false;
  1371. this_.removeClass(DISABLED);
  1372. this_.removeAttr('disabled');
  1373. }
  1374. });
  1375. })
  1376. $('#assign').on('click', function () {
  1377. if(!$('#range_person').attr('title')){
  1378. alert('请先指派人员!');
  1379. return false;
  1380. }
  1381. if (confirm('确认指派人员?')){
  1382. let hobj = GetRequest();
  1383. var dd = $('#range_person').attr('title');
  1384. var assign_type = $("input[name='assign_type']:checked").val();
  1385. var old_assign_type = "{$data.assign_type}";
  1386. var need_assign_type = "{:empty($assign_list) ? '' : 1}"
  1387. //alert(old_assign_type);
  1388. //alert(assign_type);
  1389. //return false;
  1390. if(old_assign_type == '' && need_assign_type){
  1391. if(assign_type == '' || assign_type == 'undefined' || assign_type == null){
  1392. alert('请选择指派类型');
  1393. return false;
  1394. }
  1395. }
  1396. //return false;
  1397. $.ajax({
  1398. url: '{:url("community/reserveDesigner")}'
  1399. , data: {
  1400. id: hobj.cid,// (客户id)
  1401. designerId:dd,
  1402. assign_type:assign_type
  1403. }
  1404. , type: 'post'
  1405. , success: function (res) {
  1406. if (res.code == 0) {
  1407. alert(res.msg)
  1408. location.reload();
  1409. // window.parent.reload();
  1410. }else if(res.code==403){
  1411. $(".exitbtn").trigger("click");
  1412. } else {
  1413. alert(res.msg)
  1414. }
  1415. }
  1416. });
  1417. }else{
  1418. $('#addvxflag')[0].checked = false;
  1419. }
  1420. })
  1421. $('#addvxflag').on('click', function () {
  1422. if (confirm('确认已添加客户微信?')){
  1423. let hobj = GetRequest();
  1424. $.ajax({
  1425. url: '{:url("community/add_wetch")}'
  1426. , data: {
  1427. id: hobj.cid,// (客户id)
  1428. }
  1429. , type: 'post'
  1430. , success: function (res) {
  1431. if (res.code == 0) {
  1432. $('#addvxflag')[0].checked = true;
  1433. $('#addvxflag')[0].disabled = true;
  1434. location.reload();
  1435. // window.parent.reload();
  1436. }else if(res.code==403){
  1437. $(".exitbtn").trigger("click");
  1438. } else {
  1439. alert(res.msg)
  1440. }
  1441. }
  1442. });
  1443. }else{
  1444. $('#addvxflag')[0].checked = false;
  1445. }
  1446. })
  1447. $('.invalidbox').on('click', function () {
  1448. let date = new Date();
  1449. let year = date.getFullYear();
  1450. let month = date.getMonth() * 1 + 1;
  1451. let day = date.getDate();
  1452. let hour = date.getHours();
  1453. let min = date.getMinutes();
  1454. let sed = date.getSeconds();
  1455. let time = year + '/' + month + '/' + day + ' ' + hour + ':' + min + ':' + sed;
  1456. $('.invalidtime').html('注销时间:' + time);
  1457. $('.addlogbox').hide();
  1458. $('.setinvalidbox').show();
  1459. })
  1460. $('.closebtn').click(function(){
  1461. $('.addlogbox').show();
  1462. $('.setinvalidbox').hide();
  1463. })
  1464. $("#callCustomer").click(function(e) {
  1465. $(".chooseMobile").toggleClass("layui-hide");
  1466. e.stopPropagation();
  1467. })
  1468. $(".chooseMobile div").click(function(e) {
  1469. let phone = $(this).text();
  1470. let c = GetRequest();
  1471. $(".chooseMobile").addClass("layui-hide");
  1472. $.post('{:url("empcrm/bind")}', {phone, 'cid':c.cid},function(res){
  1473. if(res.code == 1) {
  1474. layer.msg(res.msg, {anim: 6});
  1475. return false;
  1476. }
  1477. layer.msg('正在呼叫'+phone+',请注意接听', {anim: 5})
  1478. });
  1479. e.stopPropagation();
  1480. })
  1481. $(document).click(function() {
  1482. let cls = $(".chooseMobile").prop("class");
  1483. if (cls.indexOf("layui-hide") < 0) {
  1484. $(".chooseMobile").addClass("layui-hide");
  1485. }
  1486. })
  1487. $('.submitbtn').click(function () {
  1488. if ($('#hid').val() == "") { alert("亲,线索注销的理由请选择!"); $('#hid').focus(); return false; }
  1489. let hobj = GetRequest();
  1490. $.ajax({
  1491. url: '{:url("community/addVisitlog")}'
  1492. , data: {
  1493. customer_id: hobj.cid,// (客户id)
  1494. state: '无效',//
  1495. remark: $('#hid').val(),
  1496. }
  1497. , type: 'post'
  1498. , success: function (res) {
  1499. if (res.code == 0) {
  1500. alert('线索注销成功!');
  1501. window.parent.removealog();
  1502. // window.parent.reload();
  1503. }else if(res.code==403){
  1504. $(".exitbtn").trigger("click");
  1505. }else {
  1506. alert(res.msg)
  1507. }
  1508. }
  1509. });
  1510. })
  1511. $('.closediv').click(function(){
  1512. window.parent.removealog();
  1513. // window.parent.reload();
  1514. window.parent.resizefun2();
  1515. })
  1516. let hobj1 = GetRequest();
  1517. var cid = hobj1.cid;//客户id
  1518. $.ajax({
  1519. url: '{:url("community/get_all_portrait_field")}'
  1520. , data: {
  1521. id:cid
  1522. }
  1523. , type: 'post'
  1524. , success: function (res) {
  1525. if (res.code == 0) {
  1526. let str="",selectstr='',designer=[];
  1527. let timearr=[];
  1528. for(let i in res.data){
  1529. str+='<div class="everycrmsgbox"><div class="crmtitbox">'+ res.data[i].name +'</div><div class="clearfix othercrmsgbox">';
  1530. for(let j in res.data[i].child){
  1531. if(res.data[i].child[j].type==1||res.data[i].child[j].type==2||res.data[i].child[j].type==5){
  1532. if(res.data[i].child[j].keyname!='phone'){
  1533. str+='<div class="left mwidth50_">'+res.data[i].child[j].name+': '+res.data[i].child[j].value+'</div>';
  1534. }
  1535. } else if (res.data[i].child[j].type == 6) {
  1536. let imgstr = '';
  1537. for (let k in res.data[i].child[j].value) {
  1538. imgstr += '<img class="nowimgbox" width="25px" height="25px" style="display:inline-block;margin-right:8px;" src="' + res.data[i].child[j].value[k].oss_url + '" img="' + res.data[i].child[j].value[k].url + '" alt="">';
  1539. }
  1540. str += '<div class="left mwidth50_">' + res.data[i].child[j].name + ': ' + imgstr +'</div>';
  1541. } else{
  1542. if(res.data[i].child[j].keyname!='name'&&res.data[i].child[j].keyname!='phone'){
  1543. str+='<div class="left mwidth50_">'+res.data[i].child[j].name+': '+res.data[i].child[j].valname+'</div>';
  1544. }
  1545. }
  1546. }
  1547. str+='</div></div>';
  1548. }
  1549. $('.customermsgbox').html(str);
  1550. if($('.nowimgbox').length>0){
  1551. for (let i=0;i< $('.nowimgbox').length;i++) {
  1552. $($('.nowimgbox')[i]).click(function () {
  1553. if ($(this).attr('str')) {
  1554. // layer.photos({
  1555. // photos: { "data": [{ "src": $(this).attr('img'), }] },
  1556. // shade: 0.2
  1557. // });
  1558. $(".layMask").removeClass("layui-hide");
  1559. $("#imageElement").prop("src", $(this).attr('img'));
  1560. } else {
  1561. // layer.photos({
  1562. // photos: { "data": [{ "src": 'https://o.nczyzs.com/' + $(this).attr('img'), }] },
  1563. // shade: 0.2
  1564. // });
  1565. $(".layMask").removeClass("layui-hide");
  1566. $("#imageElement").prop("src", 'https://o.nczyzs.com/' + $(this).attr('img'));
  1567. }
  1568. })
  1569. }
  1570. }
  1571. }else if(res.code==403){
  1572. $(".exitbtn").trigger("click");
  1573. } else {
  1574. alert(res.msg)
  1575. }
  1576. }
  1577. });
  1578. $(".layMask").click(function() {
  1579. $(this).addClass("layui-hide");
  1580. })
  1581. // $('.kb-state').on('click', 'input', function(event){
  1582. // let type = $(this).data('state');
  1583. // let this_state = $(this).closest('.kb-state');
  1584. // if ($(this).prop('checked')) {
  1585. // this_state.addClass('background-green');
  1586. // this_state.siblings().removeClass('background-green');
  1587. // $('.kb-item').hide();
  1588. // $('.kb-'+type).show();
  1589. // this_state.siblings().find('input').prop('checked', false);
  1590. // } else {
  1591. // this_state.removeClass('background-green');
  1592. // $('.kb-item').hide();
  1593. // }
  1594. // });
  1595. $('.kb-state').on('click',function(){
  1596. let type = $(this).find('input').data('state');
  1597. $(this).addClass('background-green');
  1598. $(this).siblings().removeClass('background-green');
  1599. $('.kb-item').hide();
  1600. $('.kb-'+type).show();
  1601. })
  1602. $('.kb-save').on('click', function(){
  1603. let s = $('.background-green').find('input');
  1604. let add_wechat_date = $('#add_wechat').val();
  1605. if(s.length == 0 && add_wechat_date == '') layer.msg('请先填写信息',{anim:6});
  1606. let data = {customer_id:cid};
  1607. if (s.length != 0) {
  1608. let state = s.data('state');
  1609. let stateval = s.val();
  1610. let input = $('.kb-'+state).find('input');
  1611. let error = false;
  1612. input.each((i) => {
  1613. if(error) return;
  1614. let name = $(input[i]).attr('name');
  1615. let val = $(input[i]).val();
  1616. let txt = $(input[i]).prev('label').html();
  1617. if(val == '') {
  1618. layer.msg('请填写'+txt, {anim:6});
  1619. error=true;
  1620. return ;
  1621. }
  1622. data[name]=val;
  1623. });
  1624. data['state'] = stateval;
  1625. if(error) return;
  1626. }
  1627. $('#kb-save').attr('disabled',true);
  1628. $('#kb-save').css('background','#aad590')
  1629. if(add_wechat_date != '') data['add_wechat_time'] = add_wechat_date;
  1630. if(data['state'] == 3){
  1631. {if !empty($data.sign)}
  1632. data['vlogid'] = {$data.sign.id};
  1633. {/if}
  1634. }
  1635. $.post("{:url('community/kb')}", data, function(rs){
  1636. if (rs.code === 0) {
  1637. layer.msg(rs.msg, {anim:5})
  1638. setTimeout(()=>{
  1639. window.location.reload();
  1640. },1500)
  1641. }else {
  1642. layer.msg(rs.msg, {anim:6});
  1643. }
  1644. })
  1645. });
  1646. })
  1647. function GetRequest() {
  1648. var url = location.search; //获取url中"?"符后的字串
  1649. var theRequest = new Object();
  1650. if (url.indexOf("?") != -1) {
  1651. var str = url.substr(1);
  1652. strs = str.split("&");
  1653. for (var i = 0; i < strs.length; i++) {
  1654. theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]);
  1655. }
  1656. }
  1657. return theRequest;
  1658. }
  1659. function OncheckBox(e) {
  1660. if (e.checked == true) {
  1661. let hobj = GetRequest();
  1662. $.ajax({
  1663. url: '{:url("community/save_introduce")}'
  1664. , data: {
  1665. cid: hobj.cid,
  1666. }
  1667. , type: 'post'
  1668. , success: function (res) {
  1669. if (res.code == 0) {
  1670. alert('成功提示:你的操作已完成!!!');
  1671. $('.newcrmdiv').attr('disabled', true);
  1672. location.reload();
  1673. // window.parent.reload();
  1674. }else if(res.code==403){
  1675. $(".exitbtn").trigger("click");
  1676. } else {
  1677. alert(res.msg)
  1678. }
  1679. }
  1680. });
  1681. } else {
  1682. $('.newcrmdiv').attr('checked',false);
  1683. }
  1684. }
  1685. //考试范围选择人员
  1686. var approve_ids = xmSelect.render({
  1687. el: "#range_person",
  1688. autoRow: true,
  1689. filterable: true,
  1690. tips: '指派人员',
  1691. disabled: isselect,
  1692. layVerify:'required',
  1693. toolbar: {
  1694. show: false,
  1695. },
  1696. tree: {
  1697. show: true,
  1698. showFolderIcon: true,
  1699. showLine: true,
  1700. indent: 20,
  1701. expandedKeys: [ -3 ],
  1702. },
  1703. height: "200px",
  1704. data: [],
  1705. on: function(data){
  1706. var arr = data.arr;
  1707. let valarr=[];
  1708. for(let j in arr){
  1709. valarr.push(arr[j].value);
  1710. }
  1711. $('#range_person').attr('title',valarr.join(','))
  1712. }
  1713. });
  1714. $(function(){
  1715. selectperson(data.assigned_personnel);
  1716. });
  1717. function selectperson(ids){
  1718. setTimeout(function(){
  1719. //data是ajax异步获取的
  1720. $.ajax({
  1721. type:"get",
  1722. url:"{:url('get_person')}",
  1723. data:{type:1,id:ids},
  1724. dataType: 'json',
  1725. success:function(data) {
  1726. // var data = JSON.parse(data);
  1727. // var res = JSON.parse(data);
  1728. //通过ajax 获取json数据,异步更新多选下拉框的值
  1729. if(data.code==403){
  1730. $(".exitbtn").trigger("click");
  1731. }
  1732. approve_ids.update({data:data})
  1733. $('#range_person').attr('title',approve_ids.getValue('value').join(','))
  1734. }
  1735. });
  1736. },100);
  1737. }
  1738. </script>
  1739. {/block}