overview_view.blade.php 176 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554
  1. @extends('admin/site/side_layout')
  2. @section('header_extend')
  3. <link rel="stylesheet" href="{{asset('css/plugins/chosen/chosen.css')}}">
  4. <link rel="stylesheet" href="{{asset('css/plugins/switchery/switchery.css')}}">
  5. <link rel="stylesheet"
  6. href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">
  7. <style>
  8. .for_area {
  9. display: inline-block;
  10. width: 200px;
  11. }
  12. /* .upload_img {
  13. height: 150px;
  14. }*/
  15. .tabs-container .tab-content .lists {
  16. height: 0;
  17. overflow: hidden;
  18. }
  19. .tabs-container .tab-content .lists.active {
  20. height: auto;
  21. }
  22. .wrapper-content .col-sm-2.control-label {
  23. padding-top: 7px;
  24. }
  25. .search-choice span {
  26. color: grey !important;
  27. }
  28. .form-control:focus, .single-line:focus {
  29. border-color: #009688 !important;
  30. }
  31. .span {
  32. color: #009688 !important;
  33. }
  34. .tabs-left ul li.active {
  35. background: #009688 !important;
  36. }
  37. .btn-primary, .btn-info {
  38. background: #f3f3f3 !important;
  39. border-color: #e6e6e6 !important;
  40. color: #656565 !important;
  41. outline: none;
  42. }
  43. .btn-primary:hover, .btn-info:hover {
  44. background: #009688 !important;
  45. border-color: #009688 !important;
  46. color: #fff !important;
  47. }
  48. .tabs-left {
  49. position: fixed;
  50. width: 16.6666%;
  51. left: 0;
  52. top: 0;
  53. }
  54. .nav-tabs {
  55. border-color: #009688 !important;
  56. padding-bottom: 16px;
  57. position: relative;
  58. min-height: 57px;
  59. padding-left: 7%;
  60. overflow: hidden;
  61. }
  62. .nav-tabs:before {
  63. content: '';
  64. display: block;
  65. width: 20px;
  66. height: 1px;
  67. background: #009688;
  68. position: absolute;
  69. left: -20px;
  70. bottom: -1px;
  71. clear: both;
  72. }
  73. .nav-tabs:after {
  74. content: '';
  75. display: block;
  76. width: 20px;
  77. height: 1px;
  78. background: #009688;
  79. position: absolute;
  80. right: -20px;
  81. bottom: -1px;
  82. clear: both;
  83. }
  84. .nav-tabs > li > a {
  85. padding: 7px 6px;
  86. border: none !important;
  87. }
  88. .nav.nav-tabs li {
  89. border-top: 1px solid #c7c7c7;
  90. border-bottom: 1px solid #c7c7c7;
  91. margin: 0 24px 10px;
  92. position: relative;
  93. }
  94. .nav.nav-tabs li:before {
  95. content: '';
  96. width: 17px;
  97. height: 25px;
  98. border-left: 1px solid #c7c7c7;
  99. border-top: 1px solid #c7c7c7;
  100. position: absolute;
  101. left: -17px;
  102. top: -1px;
  103. z-index: 66;
  104. }
  105. .nav.nav-tabs li:after {
  106. content: '';
  107. width: 17px;
  108. height: 26px;
  109. border-right: 1px solid #c7c7c7;
  110. border-bottom: 1px solid #c7c7c7;
  111. position: absolute;
  112. right: -16px;
  113. bottom: -1px;
  114. z-index: 66;
  115. }
  116. .nav.nav-tabs li a {
  117. margin: 0 !important;
  118. color: #363636;
  119. }
  120. .nav.nav-tabs li a:before {
  121. content: '';
  122. display: block;
  123. width: 20px;
  124. height: 1px;
  125. background: #c7c7c7;
  126. -webkit-transform: rotate(30deg);
  127. -moz-transform: rotate(30deg);
  128. -ms-transform: rotate(30deg);
  129. -o-transform: rotate(30deg);
  130. transform: rotate(30deg);
  131. position: absolute;
  132. left: -18px;
  133. top: 28px;
  134. }
  135. .nav.nav-tabs li a:after {
  136. content: '';
  137. display: block;
  138. width: 20px;
  139. height: 1px;
  140. background: #c7c7c7;
  141. -webkit-transform: rotate(30deg);
  142. -moz-transform: rotate(30deg);
  143. -ms-transform: rotate(30deg);
  144. -o-transform: rotate(30deg);
  145. transform: rotate(30deg);
  146. position: absolute;
  147. right: -17px;
  148. bottom: 29px;
  149. }
  150. .nav.nav-tabs li.active {
  151. background: #009688 !important;
  152. border: none;
  153. }
  154. .nav.nav-tabs li.active:before, .nav.nav-tabs li.active:after {
  155. height: 34px;
  156. background: #009688 !important;
  157. border-color: #009688 !important;
  158. top: -1px;
  159. }
  160. .nav.nav-tabs li.active a {
  161. color: #fff !important;
  162. background: #009688 !important;
  163. }
  164. .nav.nav-tabs li.active a:before {
  165. width: 18px;
  166. height: 8px;
  167. border-color: none;
  168. background: #fff !important;
  169. left: -20px;
  170. top: 28px;
  171. z-index: 100;
  172. }
  173. .nav.nav-tabs li.active a:after {
  174. width: 18px;
  175. height: 8px;
  176. border-color: none;
  177. background: #fff !important;
  178. right: -20px;
  179. bottom: 28px;
  180. z-index: 100;
  181. }
  182. .red {
  183. color: #f99631 !important;
  184. }
  185. .o-h4 {
  186. padding-right: 77%;
  187. text-align: right;
  188. color: #009688 !important;
  189. }
  190. .radio-label,
  191. .radio-check {
  192. display: inline-block;
  193. position: relative;
  194. }
  195. .radio-label input[type="radio"] {
  196. appearance: none; /*清楚默认样式*/
  197. -webkit-appearance: none;
  198. /* opacity: 0; */
  199. outline: none;
  200. position: absolute;
  201. z-index: 2;
  202. width: 6px;
  203. height: 6px;
  204. top: 10px;
  205. left: 10px;
  206. border-radius: 50%;
  207. background: #b4b4b4;
  208. }
  209. .radio-label label {
  210. display: inline-block;
  211. min-width: 50px;
  212. height: 30px;
  213. line-height: 30px;
  214. text-align: center;
  215. padding-right: 10px;
  216. border-radius: 5px;
  217. padding-left: 25px;
  218. color: #fff;
  219. background-color: #c9c9c9;
  220. }
  221. .radio-label input[type="radio"]:checked {
  222. opacity: 0;
  223. }
  224. .radio-label input[type="radio"]:checked + label {
  225. color: #fff;
  226. background-color: #009688;
  227. }
  228. .radio-label input[type="radio"]:checked + label::after {
  229. content: "";
  230. position: absolute;
  231. left: 12px;
  232. top: 5px;
  233. width: 5px;
  234. height: 12px;
  235. border-right: 1px solid #fff;
  236. border-bottom: 1px solid #fff;
  237. transform: rotate(45deg);
  238. }
  239. .checkbox-label,
  240. .checkbox-check {
  241. display: inline-block;
  242. position: relative;
  243. }
  244. .checkbox-label input[type="checkbox"] {
  245. appearance: none; /*清楚默认样式*/
  246. -webkit-appearance: none;
  247. /* opacity: 0; */
  248. outline: none;
  249. position: absolute;
  250. z-index: 2;
  251. width: 6px;
  252. height: 6px;
  253. top: 10px;
  254. left: 10px;
  255. border-radius: 50%;
  256. background: #b4b4b4;
  257. }
  258. .checkbox-label label {
  259. display: inline-block;
  260. min-width: 50px;
  261. height: 30px;
  262. line-height: 30px;
  263. text-align: center;
  264. padding-right: 10px;
  265. border-radius: 5px;
  266. padding-left: 25px;
  267. color: #fff;
  268. background-color: #c9c9c9;
  269. }
  270. .checkbox-label input[type="checkbox"]:checked {
  271. opacity: 0;
  272. }
  273. .checkbox-label input[type="checkbox"]:checked + label {
  274. color: #fff;
  275. background-color: #009688;
  276. }
  277. .checkbox-label input[type="checkbox"]:checked + label::after {
  278. content: "";
  279. position: absolute;
  280. left: 12px;
  281. top: 5px;
  282. width: 5px;
  283. height: 12px;
  284. border-right: 1px solid #fff;
  285. border-bottom: 1px solid #fff;
  286. transform: rotate(45deg);
  287. }
  288. </style>
  289. @endsection
  290. @section('right')
  291. <div class="tabs-container">
  292. <ul class="nav nav-tabs" style="display: none">
  293. @php $basePermission=false; @endphp
  294. @php $baseEdit=1; @endphp
  295. @hasAuth('site-base-view')
  296. @php $basePermission=true; @endphp
  297. <li class=""><a data-toggle="tab" href="#tab-1" aria-expanded="false"> 基本信息</a></li>
  298. @endHasAuth
  299. @hasAuth('site-baseview-view')
  300. @php $detailPermission=true; @endphp
  301. <li class="active"><a data-toggle="tab" href="#tab-2" aria-expanded="true">详细信息</a></li>
  302. @endHasAuth
  303. <li class=""><a data-toggle="tab" href="#tab-21" aria-expanded="false">人员配置</a>
  304. </li>
  305. <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">社交授权</a>
  306. </li>
  307. <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">重点优化</a>
  308. </li>
  309. <li class=""><a data-toggle="tab" href="#tab-5" aria-expanded="false">账号管理</a>
  310. </li>
  311. <li class=""><a data-toggle="tab" href="#tab-6" aria-expanded="false">时间节点与评分</a>
  312. </li>
  313. <li class=""><a data-toggle="tab" href="#tab-7" aria-expanded="false">服务器及配置</a>
  314. </li>
  315. </ul>
  316. <div class="tab-content">
  317. @if(!empty($basePermission))
  318. @php $baseEdit=0; @endphp
  319. @hasAuth('site-base-edit')
  320. @php $baseEdit=1; @endphp
  321. @endHasAuth
  322. <div id="tab-1" class="lists">
  323. <form class="form-horizontal" id="basic" style="padding-top: 20px">
  324. <div class="form-group">
  325. <label class="col-sm-2 control-label">项目编号:</label>
  326. <div class="col-sm-8" style="padding-top: 7px;">
  327. {{$data->identifier ?? ''}}
  328. </div>
  329. </div>
  330. <div class="form-group">
  331. <label class="col-sm-2 control-label">项目原始Id:</label>
  332. <label class="col-sm-2 control-label" style="text-align: left;margin-left: 15px">
  333. {{$data->old_id ?? ''}}
  334. </label>
  335. </div>
  336. <div class="form-group">
  337. <label class="col-sm-2 control-label" for="domain_us_buy">是否百千计划:</label>
  338. <div class="col-sm-2">
  339. <input type="checkbox" id="is_bq" name="is_bq"
  340. class="js-switch-bq"
  341. @if($data->is_bq??0) checked @endif onchange="units.changeIsBq()">
  342. </div>
  343. </div>
  344. <div class="form-group">
  345. <label class="col-sm-2 control-label" for="domain_us_buy">是否案例:</label>
  346. <div class="col-sm-2" style="width: 50px">
  347. <input type="checkbox" id="is_case" name="is_case"
  348. class="js-switch-case"
  349. @if($data->is_case??0) checked @endif onchange="units.changeCaseStatus()">
  350. </div>
  351. <div class="col-sm-3 example">
  352. <input type="text" class="form-control" id="example_url" name="example_url"
  353. value="{{$data->example_url ?? ''}}" placeholder="案例Id:{{$data->id ?? ''}}">
  354. </div>
  355. </div>
  356. <div class="form-group case">
  357. <label class="col-sm-2 control-label" for="case_ids"><span
  358. class="red">* </span>案例板块:</label>&nbsp;&nbsp;&nbsp;
  359. <div class="checkbox-label">
  360. <input type="checkbox" id="color21" name="case_ids" value="21"
  361. @if (in_array("21",$case_ids)) checked="checked" @endif>
  362. <label for="color21">结构化数据呈现</label>
  363. </div>
  364. <div class="checkbox-label">
  365. <input type="checkbox" id="color22" name="case_ids" value="22"
  366. @if (in_array("22",$case_ids)) checked="checked" @endif>
  367. <label for="color22">关键词分析</label>
  368. </div>
  369. <div class="checkbox-label">
  370. <input type="checkbox" id="color23" name="case_ids" value="23"
  371. @if (in_array("23",$case_ids)) checked="checked" @endif>
  372. <label for="color23">软文优化</label>
  373. </div>
  374. <div class="checkbox-label">
  375. <input type="checkbox" id="color24" name="case_ids" value="24"
  376. @if (in_array("24",$case_ids)) checked="checked" @endif>
  377. <label for="color24">维基百科</label>
  378. </div>
  379. <div class="checkbox-label">
  380. <input type="checkbox" id="color25" name="case_ids" value="25"
  381. @if (in_array("25",$case_ids)) checked="checked" @endif>
  382. <label for="color25">知识图谱</label>
  383. </div>
  384. <div class="checkbox-label">
  385. <input type="checkbox" id="color26" name="case_ids" value="26"
  386. @if (in_array("26",$case_ids)) checked="checked" @endif>
  387. <label for="color26">竞价</label>
  388. </div>
  389. <div class="checkbox-label">
  390. <input type="checkbox" id="color27" name="case_ids" value="27"
  391. @if (in_array("27",$case_ids)) checked="checked" @endif>
  392. <label for="color27">付费外链</label>
  393. </div>
  394. </div>
  395. <div class="form-group">
  396. <label class="col-sm-2 control-label" for="contract_ids"><span
  397. class="red">* </span>企业性质:</label>&nbsp;&nbsp;&nbsp;
  398. <div class="checkbox-label">
  399. <input type="checkbox" id="color11" name="enterprise_nature" value="1"
  400. @if (in_array("1",$enterpriseNature)) checked="checked" @endif>
  401. <label for="color11">500强</label>
  402. </div>
  403. <div class="checkbox-label">
  404. <input type="checkbox" id="color12" name="enterprise_nature" value="2"
  405. @if (in_array("2",$enterpriseNature)) checked="checked" @endif>
  406. <label for="color12">上市公司</label>
  407. </div>
  408. <div class="checkbox-label">
  409. <input type="checkbox" id="color13" name="enterprise_nature" value="3"
  410. @if (in_array("3",$enterpriseNature)) checked="checked" @endif>
  411. <label for="color13">国企</label>
  412. </div>
  413. <div class="checkbox-label">
  414. <input type="checkbox" id="color14" name="enterprise_nature" value="4"
  415. @if (in_array("4",$enterpriseNature)) checked="checked" @endif>
  416. <label for="color14">行业龙头</label>
  417. </div>
  418. <div class="checkbox-label">
  419. <input type="checkbox" id="color15" name="enterprise_nature" value="5"
  420. @if (in_array("5",$enterpriseNature)) checked="checked" @endif>
  421. <label for="color15">保密</label>
  422. </div>
  423. </div>
  424. <div class="form-group">
  425. <label class="col-sm-2 control-label" for="cn_title"><span
  426. class="red">* </span>项目名称(中文):</label>
  427. <div class="col-sm-8">
  428. <input type="text" class="form-control" id="cn_title" name="cn_title"
  429. @if(!$baseEdit) disabled @endif
  430. value="{{$data->cn_title ?? ''}}">
  431. </div>
  432. </div>
  433. <div class="form-group">
  434. <label class="col-sm-2 control-label" for="title"><span
  435. class="red">* </span>项目名称(英文):</label>
  436. <div class="col-sm-8">
  437. <input type="text" class="form-control" id="en_title" name="en_title"
  438. @if(!$baseEdit) disabled @endif
  439. value="{{$data->en_title ?? ''}}">
  440. </div>
  441. </div>
  442. <div class="form-group">
  443. <label class="col-sm-2 control-label" for="brand"><span
  444. class="red">* </span>项目品牌名:</label>
  445. <div class="col-sm-8">
  446. <input type="text" class="form-control" id="brand" name="brand"
  447. @if(!$baseEdit) disabled @endif
  448. value="{{$data->brand ?? ''}}">
  449. </div>
  450. </div>
  451. <div class="form-group">
  452. <label class="col-sm-2 control-label" for="password"><span class="red">* </span>域名:</label>
  453. <div class="col-sm-8">
  454. <input type="text" class="form-control" id="domain" name="domain"
  455. @if(!$baseEdit) disabled @endif
  456. value="{{$data->domain??''}}">
  457. <span class="span" style="font-size: 12px;">如果有直接填写进去,如果无,请填写意向域名。请填写主域<span
  458. style="color: red">不要填写中文,不要包含www</span>,例:baidu.com</span>
  459. </div>
  460. </div>
  461. <div class="form-group">
  462. <label class="col-sm-2 control-label" for="password"></label>
  463. <div class="col-sm-8" style="display: flex;justify-content: space-between;max-width: 500px">
  464. <div class="col-sm-12" style="margin: 0 -10px">
  465. <label>站点logo:</label>
  466. <button type="button" class="btn btn-primary" name="file_upload"
  467. @if(!$baseEdit) disabled @endif>文件上传
  468. </button>
  469. <input type="file" value="" style="display: none" name="uploadFile"
  470. data-for="logo_img">
  471. <input type="hidden" id="site_logo" name="site_logo"
  472. value="{{$data->site_logo??''}}">
  473. <img id="logo_img" class="upload_img" src="{{$data->site_logo??''}}"
  474. style="width: 100%;object-fit: cover;margin-top: 5px">
  475. </div>
  476. <div class="col-sm-12" style="margin: 0 -10px">
  477. <label>营业执照:</label>
  478. <button type="button" class="btn btn-primary" name="file_upload"
  479. @if(!$baseEdit) disabled @endif>文件上传
  480. </button>
  481. <input type="file" value="" style="display: none" name="uploadFile"
  482. data-for="business_license_business_scope_img">
  483. <input type="hidden" id="business_license_business_scope"
  484. name="business_license_business_scope"
  485. value="{{$data->business_license_business_scope??''}}">
  486. <img id="business_license_business_scope_img" class="upload_img"
  487. src="{{$data->business_license_business_scope??''}}"
  488. style="width: 100%;object-fit: cover;margin-top: 5px">
  489. </div>
  490. </div>
  491. </div>
  492. {{-- <div class="form-group">
  493. <label class="col-sm-2 control-label">站点logo:</label>
  494. <div class="col-sm-4">
  495. <button type="button" class="btn btn-primary" name="file_upload"
  496. @if(!$baseEdit) disabled @endif>文件上传
  497. </button>
  498. <input type="file" value="" style="display: none" name="uploadFile"
  499. data-for="logo_img">
  500. <input type="hidden" id="site_logo" name="site_logo" value="{{$data->site_logo??''}}">
  501. </div>
  502. </div>
  503. <div class="form-group">
  504. <div class="col-sm-8 col-sm-offset-2">
  505. <img id="logo_img" class="upload_img" src="{{$data->site_logo??''}}">
  506. </div>
  507. </div>--}}
  508. {{-- <div class="form-group">
  509. <label class="col-sm-2 control-label">营业执照:</label>
  510. <div class="col-sm-4">
  511. <button type="button" class="btn btn-primary" name="file_upload"
  512. @if(!$baseEdit) disabled @endif>文件上传
  513. </button>
  514. <input type="file" value="" style="display: none" name="uploadFile"
  515. data-for="business_license_business_scope_img">
  516. <input type="hidden" id="business_license_business_scope"
  517. name="business_license_business_scope"
  518. value="{{$data->business_license_business_scope??''}}">
  519. </div>
  520. </div>
  521. <div class="form-group">
  522. <div class="col-sm-8 col-sm-offset-2">
  523. <img id="business_license_business_scope_img" class="upload_img"
  524. src="{{$data->business_license_business_scope??''}}">
  525. </div>
  526. </div>--}}
  527. <div class="form-group">
  528. <label class="col-sm-2 control-label" for="site_type"><span
  529. class="red">* </span>项目类型:</label>
  530. <div class="col-sm-8">
  531. <select class="form-control" id="site_type" name="site_type" style="width:350px;">
  532. <option value="">请选择</option>
  533. <option value="1" @if(($data->site_type??'')==1) selected @endif>企业网站</option>
  534. <option value="2" @if(($data->site_type??'')==2) selected @endif>电商网站</option>
  535. <option value="3" @if(($data->site_type??'')==3) selected @endif>特殊项目</option>
  536. </select>
  537. </div>
  538. </div>
  539. <div class="form-group">
  540. <label class="col-sm-2 control-label" for="nature_type"><span
  541. class="red">* </span>公司性质:</label>
  542. <div class="col-sm-8">
  543. <select class="form-control" style="width:350px;"
  544. id="nature_type" name="nature_type" @if(!$baseEdit) disabled @endif>
  545. <option value="">请选择公司性质</option>
  546. @foreach($natures as $nature)
  547. <option value="{{$nature['inx']}}"
  548. @if(($data->nature_type??null)==$nature['inx']) selected @endif>{{$nature['val']}}</option>
  549. @endforeach
  550. </select>
  551. </div>
  552. </div>
  553. <div class="form-group">
  554. <label class="col-sm-2 control-label" for="business_id"><span
  555. class="red">* </span>所属行业:</label>
  556. <div class="col-sm-4">
  557. <select class="form-control"
  558. id="business_id" name="business_id" data-live-search="true"
  559. title="请选择行业" autocomplete="off">
  560. @foreach ($businesses as $business)
  561. <option value="{{$business->id}}"
  562. @if(($data->business_id??null)==$business->id) selected @endif>{{$business->title}}</option>
  563. @endforeach
  564. </select>
  565. </div>
  566. </div>
  567. <div class="form-group">
  568. <label class="col-sm-2 control-label" for="core_product">核心产品:</label>
  569. <div class="col-sm-8">
  570. <input type="text" class="form-control" id="core_product" name="core_product"
  571. value="{{$data->core_product ?? ''}}">
  572. </div>
  573. </div>
  574. <div class="form-group">
  575. <label class="col-sm-2 control-label"><span class="red">* </span>地区:</label>
  576. <div class="col-sm-8" data-toggle="distpicker" id="distpicker">
  577. <select class="form-control for_area" data-province="{{$data->area_text[0]??''}}"
  578. name="area_text" @if(!$baseEdit) disabled @endif></select>
  579. <select class="form-control for_area" data-city="{{$data->area_text[1]??''}}"
  580. name="area_text" @if(!$baseEdit) disabled @endif ></select>
  581. <select class="form-control for_area" data-district="{{$data->area_text[2]??''}}"
  582. name="area_text" @if(!$baseEdit) disabled @endif></select>
  583. </div>
  584. </div>
  585. <div class="form-group contacts">
  586. <div class="col-sm-12">
  587. <div class="col-sm-6" style="margin-top: 10px">
  588. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ&nbsp;姓名:</label>
  589. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  590. style="width: 300px;display: inline-block"
  591. name="contact_name" value="{{$data->contacts[0]['name']??''}}">
  592. </div>
  593. <div class="col-sm-6" style="margin-top: 10px">
  594. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ邮箱:</label>
  595. <input type="email" class="form-control" style="width: 300px;display: inline-block;"
  596. @if(!$baseEdit) disabled @endif
  597. name="contact_email" value="{{$data->contacts[0]['email']??''}}">
  598. </div>
  599. <div class="col-sm-6" style="margin-top: 10px">
  600. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ手机:</label>
  601. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  602. style="width: 300px;display: inline-block;" name="contact_mobile"
  603. value="{{$data->contacts[0]['mobile']??''}}">
  604. </div>
  605. <div class="col-sm-6" style="margin-top: 10px">
  606. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ职位:</label>
  607. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  608. style="width: 300px;display: inline-block;" name="contact_position"
  609. value="{{$data->contacts[0]['position']??''}}">
  610. </div>
  611. </div>
  612. </div>
  613. <div class="form-group contacts">
  614. <div class="col-sm-12">
  615. <div class="col-sm-6" style="margin-top: 10px">
  616. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ&nbsp;姓名:</label>
  617. <input type="text" class="form-control"
  618. style="width: 300px;display: inline-block"
  619. @if(!$baseEdit) disabled @endif
  620. name="contact_name" value="{{$data->contacts[1]['name']??''}}">
  621. </div>
  622. <div class="col-sm-6" style="margin-top: 10px">
  623. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ邮箱:</label>
  624. <input type="email" class="form-control" style="width: 300px;display: inline-block;"
  625. @if(!$baseEdit) disabled @endif
  626. name="contact_email" value="{{$data->contacts[1]['email']??''}}">
  627. </div>
  628. <div class="col-sm-6" style="margin-top: 10px">
  629. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ手机:</label>
  630. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  631. style="width: 300px;display: inline-block;" name="contact_mobile"
  632. value="{{$data->contacts[1]['mobile']??''}}">
  633. </div>
  634. <div class="col-sm-6" style="margin-top: 10px">
  635. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ职位:</label>
  636. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  637. style="width: 300px;display: inline-block;" name="contact_position"
  638. value="{{$data->contacts[1]['position']??''}}">
  639. </div>
  640. </div>
  641. </div>
  642. <div class="form-group contacts">
  643. <div class="col-sm-12">
  644. <div class="col-sm-6" style="margin-top: 10px">
  645. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ&nbsp;姓名:</label>
  646. <input type="text" class="form-control"
  647. style="width: 300px;display: inline-block"
  648. @if(!$baseEdit) disabled @endif
  649. name="contact_name" value="{{$data->contacts[2]['name']??''}}">
  650. </div>
  651. <div class="col-sm-6" style="margin-top: 10px">
  652. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ邮箱:</label>
  653. <input type="email" class="form-control" style="width: 300px;display: inline-block;"
  654. @if(!$baseEdit) disabled @endif
  655. name="contact_email" value="{{$data->contacts[2]['email']??''}}">
  656. </div>
  657. <div class="col-sm-6" style="margin-top: 10px">
  658. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ手机:</label>
  659. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  660. style="width: 300px;display: inline-block;" name="contact_mobile"
  661. value="{{$data->contacts[2]['mobile']??''}}">
  662. </div>
  663. <div class="col-sm-6" style="margin-top: 10px">
  664. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ职位:</label>
  665. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  666. style="width: 300px;display: inline-block;" name="contact_position"
  667. value="{{$data->contacts[2]['position']??''}}">
  668. </div>
  669. </div>
  670. </div>
  671. <div class="form-group">
  672. <label class="col-sm-2 control-label" for="customer_demand_type"><span
  673. class="red">* </span>客户需求:</label>
  674. <div class="col-sm-8">
  675. <select class="form-control" id="customer_demand_type" name="customer_demand_type">
  676. <option value="">请选择</option>
  677. <option value="1" @if(($data->customer_demand_type??'')==1) selected @endif>客户询盘
  678. </option>
  679. <option value="2" @if(($data->customer_demand_type??'')==2) selected @endif>营销推广
  680. </option>
  681. <option value="3" @if(($data->customer_demand_type??'')==3) selected @endif>两者兼有
  682. </option>
  683. </select>
  684. </div>
  685. </div>
  686. <div class="form-group">
  687. <label class="col-sm-2 control-label" for="sign_amount"><span
  688. class="red">* </span>签单价格:</label>
  689. <div class="col-sm-8">
  690. <input type="text" class="form-control" id="sign_amount" name="sign_amount"
  691. @if(!$baseEdit) disabled @endif
  692. value="{{$data->sign_amount??''}}">
  693. </div>
  694. </div>
  695. <div class="form-group">
  696. <label class="col-sm-2 control-label" for="sign_amount"><span
  697. class="red">* </span>套餐类型: </label>&nbsp;&nbsp;&nbsp;
  698. <div class="radio-label">
  699. <input type="radio" id="color1" value="1" name="package_type"
  700. @if ($data->package_type==1) checked @endif>
  701. <label for="color1">老套餐</label>
  702. </div>
  703. <div class="radio-label">
  704. <input type="radio" id="color2" value="2" name="package_type"
  705. @if ($data->package_type==2) checked @endif>
  706. <label for="color2">2019标准版</label>
  707. </div>
  708. <div class="radio-label">
  709. <input type="radio" id="color3" value="3" name="package_type"
  710. @if ($data->package_type==3) checked @endif>
  711. <label for="color3">2019升级版</label>
  712. </div>
  713. <div class="radio-label">
  714. <input type="radio" id="color4" value="4" name="package_type"
  715. @if ($data->package_type==4) checked @endif>
  716. <label for="color4">2019高级版</label>
  717. </div>
  718. <div class="radio-label">
  719. <input type="radio" id="color5" value="5" name="package_type"
  720. @if ($data->package_type==5) checked @endif>
  721. <label for="color5">2020标准版</label>
  722. </div>
  723. <div class="radio-label">
  724. <input type="radio" id="color6" value="6" name="package_type"
  725. @if ($data->package_type==6) checked @endif>
  726. <label for="color6">2020升级版</label>
  727. </div>
  728. <div class="radio-label">
  729. <input type="radio" id="color7" value="7" name="package_type"
  730. @if ($data->package_type==7) checked @endif>
  731. <label for="color7">2020高级版</label>
  732. </div>
  733. <div class="radio-label">
  734. <input type="radio" id="color8" value="8" name="package_type"
  735. @if ($data->package_type==8) checked @endif>
  736. <label for="color8">定制版</label>
  737. </div>
  738. </div>
  739. <div class="form-group">
  740. <label class="col-sm-2 control-label" for="pay_way"><span class="red">* </span>付款方式:</label>
  741. <div class="col-sm-8">
  742. <select class="form-control" id="pay_way" name="pay_way">
  743. <option value="">请选择</option>
  744. <option value="1" @if(($data->pay_way??'')==1) selected @endif>分期</option>
  745. <option value="2" @if(($data->pay_way??'')==2) selected @endif>全款</option>
  746. </select>
  747. </div>
  748. </div>
  749. <div class="form-group">
  750. <label class="col-sm-2 control-label" for="remark">合同备注:</label>
  751. <div class="col-sm-8">
  752. <textarea class="form-control" id="remark" @if(!$baseEdit) disabled @endif
  753. name="remark">{{$data->remark??''}}</textarea>
  754. </div>
  755. </div>
  756. <div class="form-group">
  757. <label class="col-sm-2 control-label" for="contract_ids"><span
  758. class="red">* </span>服务项目:</label>
  759. <div class="col-sm-8 ">
  760. <select class="form-control" style="width:350px;" @if(!$baseEdit) disabled @endif
  761. id="contract_ids" name="contract_ids" multiple size="6">
  762. <option value="">请选择合同版本</option>
  763. @foreach ($contracts as $item)
  764. <option value="{{$item->id}}"
  765. @if(in_array($item->id,$data->contract_ids??[])) selected @endif>{{$item->title}}</option>
  766. @endforeach
  767. </select>
  768. <span class="span" style="font-size: 12px">ctrl+鼠标点击/shift+鼠标点击 多选</span>
  769. </div>
  770. </div>
  771. <div class="form-group">
  772. <label class="col-sm-2 control-label" for="keyword_goal"><span
  773. class="red">* </span>关键词达标数:</label>
  774. <div class="col-sm-8">
  775. <input type="text" class="form-control" id="keyword_goal" name="keyword_goal"
  776. @if(!$baseEdit) disabled @endif
  777. value="{{$data->keyword_goal??''}}">
  778. </div>
  779. </div>
  780. <div class="form-group">
  781. <label class="col-sm-2 control-label" for="link_goal"><span
  782. class="red">* </span>外链平台数:</label>
  783. <div class="col-sm-8">
  784. <input type="text" class="form-control" id="link_goal" name="link_goal"
  785. @if(!$baseEdit) disabled @endif
  786. value="{{$data->link_goal??''}}">
  787. </div>
  788. </div>
  789. <div class="form-group">
  790. <label class="col-sm-2 control-label" for="article_goal"><span
  791. class="red">* </span>软文达标数:</label>
  792. <div class="col-sm-8">
  793. <input type="text" class="form-control" id="article_goal" name="article_goal"
  794. @if(!$baseEdit) disabled @endif
  795. value="{{$data->article_goal??''}}">
  796. </div>
  797. </div>
  798. <div class="form-group">
  799. <label class="col-sm-2 control-label" for="article_difference">软文扣除数:</label>
  800. <div class="col-sm-8">
  801. <input type="text" class="form-control" id="article_difference"
  802. name="article_difference"
  803. @if(!$baseEdit) disabled @endif
  804. value="{{$data->article_difference??''}}">
  805. </div>
  806. </div>
  807. <div class="form-group">
  808. <label class="col-sm-2 control-label" for="other_demand">其他需求:</label>
  809. <div class="col-sm-8">
  810. <textarea class="form-control" id="other_demand" @if(!$baseEdit) disabled @endif
  811. name="other_demand">{{$data->other_demand??''}}</textarea>
  812. </div>
  813. </div>
  814. <div class="hr-line-dashed"></div>
  815. <div class="form-group">
  816. <div class="col-sm-4 col-sm-offset-2">
  817. @if($baseEdit)
  818. <button class="btn btn-primary " type="button" data-id="{{$data->id??0}}"
  819. onclick="units.save(1)">
  820. 保存
  821. </button>
  822. @endif
  823. {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
  824. </div>
  825. </div>
  826. </form>
  827. </div>
  828. @endif
  829. @php $detailEdit=0; @endphp
  830. @hasAuth('site-baseview-edit')
  831. @php $detailEdit=1; @endphp
  832. @endHasAuth
  833. @if(!empty($detailPermission))
  834. <div id="tab-2" class="lists active">
  835. {{--<div id="tab-2" class="ibox-content">--}}
  836. <form class="form-horizontal" id="detail" style="margin-top: 20px">
  837. <div class="form-group">
  838. <label class="col-sm-2 control-label" for="contract_total_fee">合同总金额:</label>
  839. <div class="col-sm-8">
  840. <input type="text" class="form-control" id="contract_total_fee"
  841. @if(!$detailEdit) disabled @endif
  842. name="contract_total_fee"
  843. value="{{$payment->contract_total_fee??''}}" style="max-width: 350px">
  844. </div>
  845. </div>
  846. <!--修改-->
  847. <style>
  848. .title_new{
  849. font-size: 13px;
  850. color: #ff0000;
  851. line-height: 20px;
  852. }
  853. </style>
  854. <div class="form-group">
  855. <label class="col-sm-2 control-label" for="is_full_order">是否全单:</label>
  856. <div class="col-sm-8">
  857. <select name="is_full_order" id="is_full_order" class="form-control"
  858. @if(!$detailEdit) disabled @endif>
  859. <option value="0" @if($payment->is_full_order==0) selected @endif>请选择
  860. </option>
  861. <option value="1" @if($payment->is_full_order==1) selected @endif>是
  862. </option>
  863. <option value="2" @if($payment->is_full_order==2) selected @endif>否
  864. </option>
  865. </select>
  866. <div class="title_new" id="title_new" style="display: none;">合同金额与套餐金额相同,没有折扣优惠、赠送等算全签单</div>
  867. </div>
  868. <i onclick="full_order_info({{$payment->site_id??''}})" class="fa fa-question-circle" aria-hidden="true"></i>
  869. </div>
  870. <!--修改-->
  871. <div class="form-group" style="display: none;">
  872. <label class="col-sm-2 control-label" for="google_optimize_fee">谷歌优化费用:</label>
  873. <div class="col-sm-8">
  874. <input type="text" class="form-control" id="google_optimize_fee"
  875. @if(!$detailEdit) disabled @endif
  876. name="google_optimize_fee"
  877. value="{{$payment->google_optimize_fee??''}}" style="max-width: 350px">
  878. </div>
  879. </div>
  880. <div id="google_bid_chunk" style="display: none;">
  881. <div class="form-group">
  882. <label class="col-sm-2 control-label">赠送竞价费用:</label>
  883. <div class="col-sm-8">
  884. <label>费用:</label>
  885. <input type="text" class="form-control"
  886. name="bid_give_fee" id="bid_give_fee"
  887. style="width: 150px;display: inline-block"
  888. @if(!$detailEdit) disabled @endif
  889. value="{{$payment->bid_give_fee??''}}"
  890. onchange="units.computeGoogleBidTotalFee()">
  891. </div>
  892. </div>
  893. @php
  894. $google_bid=$payment->google_bid??[];
  895. $totalFee=0;
  896. foreach ($google_bid as $item){
  897. $totalFee+= intval(($item['google_bid_fee']??0));
  898. }
  899. $all_price = $payment->bid_give_fee + $totalFee;
  900. @endphp
  901. <div class="form-group">
  902. <label class="col-sm-2 control-label">充值竞价费用:</label>
  903. <div class="col-sm-8">
  904. <label>费用:</label>
  905. <input type="text" class="form-control"
  906. name="google_bid_fee" style="width: 150px;display: inline-block"
  907. @if(!$detailEdit) disabled @endif
  908. value="{{$google_bid[0]['google_bid_fee']??''}}"
  909. onchange="units.computeGoogleBidTotalFee()">
  910. <label style="margin-left: 15px">时间:</label>
  911. <input type="text" class="form-control"
  912. name="google_bid_time" style="width: 250px;display: inline-block"
  913. @if(!$detailEdit) disabled @endif
  914. id="google_bid_time" value="{{$google_bid[0]['google_bid_time']??''}}">
  915. <button type="button" class="btn btn-info" onclick="units.addGoogleBid()">+</button>
  916. </div>
  917. </div>
  918. @foreach($google_bid as $key=>$item)
  919. @if($key>0)
  920. <div class="form-group">
  921. <label class="col-sm-2 control-label"></label>
  922. <div class="col-sm-8">
  923. <label>费用:</label>
  924. <input type="text" class="form-control"
  925. name="google_bid_fee" style="width: 150px;display: inline-block"
  926. value="{{$item['google_bid_fee']??''}}"
  927. >
  928. <label style="margin-left: 15px">时间:</label>
  929. <input type="text" class="form-control"
  930. name="google_bid_time" style="width: 250px;display: inline-block"
  931. value="{{$item['google_bid_time']??''}}"
  932. >
  933. <button type="button" class="btn btn-info"
  934. onclick="units.removeGoogleBid(this)">-
  935. </button>
  936. </div>
  937. </div>
  938. @endif
  939. @endforeach
  940. </div>
  941. <div class="form-group" style="display: none;">
  942. <label class="col-sm-2 control-label">竞价总费用:</label>
  943. <div class="col-sm-8" style="padding-top: 7px">
  944. <label>(赠送竞价+充值竞价) 费用:</label>
  945. <label id="googleBidFeeTotal">{{$all_price??0}}</label>
  946. </div>
  947. </div>
  948. <div class="form-group" style="display: none;">
  949. <label class="col-sm-2 control-label">竞价客户评分:</label>
  950. <input type="number" class="form-control"
  951. name="bid_score" id="bid_score" style="width: 150px;display: inline-block"
  952. @if(!$detailEdit) disabled @endif
  953. value="{{$payment->bid_score??''}}"
  954. >
  955. <label style="margin-left: 15px">时间:</label>
  956. <input type="text" class="form-control" id="bid_score_time" @if(!$detailEdit) disabled @endif
  957. name="bid_score_time" style="width: 250px;display: inline-block"
  958. value="{{$payment['bid_score_time']??''}}"
  959. >
  960. </div>
  961. <div class="form-group" style="display: none;">
  962. <label class="col-sm-2 control-label" for="bid_login_account"> 客户竞价登录账号:</label>
  963. <div class="col-sm-8">
  964. <input type="text" class="form-control" id="bid_login_account" name="bid_login_account"
  965. @if(!$detailEdit) disabled @endif
  966. value="{{$payment->bid_login_account??''}}"
  967. >
  968. </div>
  969. </div>
  970. <div class="form-group" style="display: none;">
  971. <label class="col-sm-2 control-label">竞价账户:</label>
  972. <div class="col-sm-8">
  973. <label>上线日期:</label>
  974. <input type="text" class="form-control"
  975. name="bid_account_online_time" id="bid_account_online_time"
  976. style="width: 250px;display: inline-block"
  977. @if(!$detailEdit) disabled @endif
  978. value="{{$payment->bid_account_online_time??''}}"
  979. >
  980. <label style="margin-left: 15px">暂停日期:</label>
  981. <input type="text" class="form-control"
  982. name="bid_account_pause_time" id="bid_account_pause_time"
  983. style="width: 250px;display: inline-block"
  984. @if(!$detailEdit) disabled @endif
  985. value="{{$payment->bid_account_pause_time??''}}"
  986. >
  987. </div>
  988. </div>
  989. <div class="form-group">
  990. <label class="col-sm-2 control-label" for="wiki_fee"> 维基百科费用:</label>
  991. <div class="col-sm-8">
  992. <input type="text" class="form-control" id="wiki_fee" name="wiki_fee"
  993. @if(!$detailEdit) disabled @endif
  994. value="{{$payment->wiki_fee??''}}">
  995. </div>
  996. </div>
  997. <div class="form-group">
  998. <label class="col-sm-2 control-label" for="other_fee"> 其他费用:</label>
  999. <div class="col-sm-8">
  1000. <input type="text" class="form-control" id="other_fee" name="other_fee"
  1001. @if(!$detailEdit) disabled @endif
  1002. value="{{$payment->other_fee??''}}">
  1003. </div>
  1004. </div>
  1005. <div class="hr-line-dashed"></div>
  1006. <div class="form-group">
  1007. <label class="col-sm-2 control-label" for="head">首付:</label>
  1008. <div class="col-sm-8">
  1009. <input type="text" class="form-control" id="head" name="head" @if(!$detailEdit) disabled
  1010. @endif
  1011. value="{{$payment->head??''}}">
  1012. </div>
  1013. </div>
  1014. <div class="form-group">
  1015. <label class="col-sm-2 control-label" for="head_type">收款状态:</label>
  1016. <div class="col-sm-8">
  1017. <select class="form-control" id="head_type" name="head_type" @if(!$detailEdit) disabled
  1018. @endif>
  1019. <option value="0">请选择</option>
  1020. <option value="1" @if(($payment->head_type??'')==1) selected @endif>未收</option>
  1021. <option value="2" @if(($payment->head_type??'')==2) selected @endif>已收</option>
  1022. </select>
  1023. </div>
  1024. </div>
  1025. <div class="form-group">
  1026. <label class="col-sm-2 control-label" for="head_time">收款时间:</label>
  1027. <div class="col-sm-4">
  1028. <div class="input-group m-b">
  1029. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1030. <input type="text" class="form-control" id="head_time" name="head_time" @if(!$detailEdit) disabled @endif value="{{$payment->head_time??''}}" style="width: 200px">
  1031. </div>
  1032. </div>
  1033. </div>
  1034. <div class="form-group">
  1035. <label class="col-sm-2 control-label" for="head_invoicing_type">开票状态:</label>
  1036. <div class="col-sm-8">
  1037. <select class="form-control" id="head_invoicing_type" name="head_invoicing_type" @if(!$detailEdit) disabled @endif>
  1038. <option value="0">请选择</option>
  1039. <option value="1" @if(($payment->head_invoicing_type??'')==1) selected @endif>未开票
  1040. </option>
  1041. <option value="2" @if(($payment->head_invoicing_type??'')==2) selected @endif>已开票
  1042. </option>
  1043. </select>
  1044. </div>
  1045. </div>
  1046. <div class="form-group">
  1047. <label class="col-sm-2 control-label" for="head_invoicing_time">开票时间:</label>
  1048. <div class="col-sm-4">
  1049. <div class="input-group m-b">
  1050. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1051. <input type="text" class="form-control" id="head_invoicing_time" @if(!$detailEdit) disabled @endif name="head_invoicing_time" value="{{$payment->head_invoicing_time??''}}" style="width: 200px">
  1052. </div>
  1053. </div>
  1054. </div>
  1055. <div class="hr-line-dashed"></div>
  1056. <div class="form-group">
  1057. <label class="col-sm-2 control-label" for="done">建站收款:</label>
  1058. <div class="col-sm-8">
  1059. <input type="text" class="form-control" id="done" name="done"
  1060. value="{{$payment->done??''}}" @if(!$detailEdit) disabled @endif>
  1061. </div>
  1062. </div>
  1063. <div class="form-group">
  1064. <label class="col-sm-2 control-label" for="done_type">收款状态:</label>
  1065. <div class="col-sm-8">
  1066. <select class="form-control" id="done_type" name="done_type" @if(!$detailEdit) disabled @endif>
  1067. <option value="0">请选择</option>
  1068. <option value="1" @if(($payment->done_type??'')==1) selected @endif>已收</option>
  1069. <option value="2" @if(($payment->done_type??'')==2) selected @endif>未收</option>
  1070. </select>
  1071. </div>
  1072. </div>
  1073. <div class="form-group">
  1074. <label class="col-sm-2 control-label" for="done_receivable_time">款项应收时间:</label>
  1075. <div class="col-sm-4">
  1076. <div class="input-group m-b">
  1077. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1078. <input type="text" class="form-control" id="done_receivable_time" @if(!$detailEdit) disabled @endif name="done_receivable_time" value="{{$payment->done_receivable_time??''}}" style="width: 200px">
  1079. </div>
  1080. </div>
  1081. </div>
  1082. <div class="form-group">
  1083. <label class="col-sm-2 control-label" for="done_receipts_time">款项实收时间:</label>
  1084. <div class="col-sm-4">
  1085. <div class="input-group m-b">
  1086. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1087. <input type="text" class="form-control" id="done_receipts_time" @if(!$detailEdit) disabled @endif name="done_receipts_time" value="{{$payment->done_receipts_time??''}}" style="width: 200px">
  1088. </div>
  1089. </div>
  1090. </div>
  1091. <div class="form-group">
  1092. <label class="col-sm-2 control-label" for="done_invoicing_type">开票状态:</label>
  1093. <div class="col-sm-8">
  1094. <select class="form-control" id="done_invoicing_type" name="done_invoicing_type" @if(!$detailEdit) disabled @endif>
  1095. <option value="0">请选择</option>
  1096. <option value="1" @if(($payment->done_invoicing_type??'')==1) selected @endif>未开票
  1097. </option>
  1098. <option value="2" @if(($payment->done_invoicing_type??'')==2) selected @endif>已开票
  1099. </option>
  1100. </select>
  1101. </div>
  1102. </div>
  1103. <div class="form-group">
  1104. <label class="col-sm-2 control-label" for="done_invoicing_time">开票时间:</label>
  1105. <div class="col-sm-4">
  1106. <div class="input-group m-b">
  1107. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1108. <input type="text" class="form-control" id="done_invoicing_time" @if(!$detailEdit) disabled @endif name="done_invoicing_time" value="{{$payment->done_invoicing_time??''}}" style="width: 200px">
  1109. </div>
  1110. </div>
  1111. </div>
  1112. <div class="hr-line-dashed"></div>
  1113. <div class="form-group">
  1114. <label class="col-sm-2 control-label" for="reach">达标尾款:</label>
  1115. <div class="col-sm-8">
  1116. <input type="text" class="form-control" id="reach" name="reach"
  1117. @if(!$detailEdit) disabled @endif
  1118. value="{{$payment->reach??''}}">
  1119. </div>
  1120. </div>
  1121. <div class="form-group">
  1122. <label class="col-sm-2 control-label" for="reach_type">收款状态:</label>
  1123. <div class="col-sm-8">
  1124. <select class="form-control" id="reach_type" name="reach_type" @if(!$detailEdit) disabled @endif>
  1125. <option value="0">请选择</option>
  1126. <option value="1" @if(($payment->reach_type??'')==1) selected @endif>已收</option>
  1127. <option value="2" @if(($payment->reach_type??'')==2) selected @endif>未收</option>
  1128. </select>
  1129. </div>
  1130. </div>
  1131. <div class="form-group">
  1132. <label class="col-sm-2 control-label" for="reach_receivable_time">款项应收时间:</label>
  1133. <div class="col-sm-4">
  1134. <div class="input-group m-b">
  1135. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1136. <input type="text" class="form-control" id="reach_receivable_time" @if(!$detailEdit) disabled @endif name="reach_receivable_time" value="{{$payment->reach_receivable_time??''}}" style="width: 200px">
  1137. </div>
  1138. </div>
  1139. </div>
  1140. <div class="form-group">
  1141. <label class="col-sm-2 control-label" for="reach_receipts_time">款项实收时间:</label>
  1142. <div class="col-sm-4">
  1143. <div class="input-group m-b">
  1144. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1145. <input type="text" class="form-control" id="reach_receipts_time" @if(!$detailEdit) disabled @endif name="reach_receipts_time" value="{{$payment->reach_receipts_time??''}}" style="width: 200px">
  1146. </div>
  1147. </div>
  1148. </div>
  1149. <div class="form-group">
  1150. <label class="col-sm-2 control-label" for="reach_invoicing_type">开票状态:</label>
  1151. <div class="col-sm-8">
  1152. <select class="form-control" id="reach_invoicing_type" name="reach_invoicing_type" @if(!$detailEdit) disabled @endif>
  1153. <option value="0">请选择</option>
  1154. <option value="1" @if(($payment->reach_invoicing_type??'')==1) selected @endif>未开票
  1155. </option>
  1156. <option value="2" @if(($payment->reach_invoicing_type??'')==2) selected @endif>已开票
  1157. </option>
  1158. </select>
  1159. </div>
  1160. </div>
  1161. <div class="form-group">
  1162. <label class="col-sm-2 control-label" for="reach_invoicing_time">开票时间:</label>
  1163. <div class="col-sm-4">
  1164. <div class="input-group m-b">
  1165. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1166. <input type="text" class="form-control" id="reach_invoicing_time" @if(!$detailEdit) disabled @endif name="reach_invoicing_time" value="{{$payment->reach_invoicing_time??''}}" style="width: 200px">
  1167. </div>
  1168. </div>
  1169. </div>
  1170. <div class="hr-line-dashed"></div>
  1171. <div class="form-group">
  1172. <label class="col-sm-2 control-label" for="service_final_payment">服务期尾款:</label>
  1173. <div class="col-sm-8">
  1174. <input type="text" class="form-control" id="service_final_payment"
  1175. name="service_final_payment"
  1176. @if(!$detailEdit) disabled @endif
  1177. value="{{$payment->service_final_payment??''}}">
  1178. </div>
  1179. </div>
  1180. <div class="form-group">
  1181. <label class="col-sm-2 control-label" for="service_final_payment_type">收款状态:</label>
  1182. <div class="col-sm-8">
  1183. <select class="form-control" id="service_final_payment_type" @if(!$detailEdit) disabled @endif
  1184. name="service_final_payment_type">
  1185. <option value="0">请选择</option>
  1186. <option value="1"
  1187. @if(($payment->service_final_payment_type??'')==1) selected @endif>已收
  1188. </option>
  1189. <option value="2"
  1190. @if(($payment->service_final_payment_type??'')==2) selected @endif>未收
  1191. </option>
  1192. </select>
  1193. </div>
  1194. </div>
  1195. <div class="form-group">
  1196. <label class="col-sm-2 control-label" for="service_receivable_time">款项应收时间:</label>
  1197. <div class="col-sm-4">
  1198. <div class="input-group m-b">
  1199. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1200. <input type="text" class="form-control" id="service_receivable_time" @if(!$detailEdit) disabled @endif name="service_receivable_time" value="{{$payment->service_receivable_time??''}}" style="width: 200px">
  1201. </div>
  1202. </div>
  1203. </div>
  1204. <div class="form-group">
  1205. <label class="col-sm-2 control-label" for="service_receipts_time">款项实收时间:</label>
  1206. <div class="col-sm-4">
  1207. <div class="input-group m-b">
  1208. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1209. <input type="text" class="form-control" id="service_receipts_time" @if(!$detailEdit) disabled @endif name="service_receipts_time" value="{{$payment->service_receipts_time??''}}" style="width: 200px">
  1210. </div>
  1211. </div>
  1212. </div>
  1213. <div class="form-group">
  1214. <label class="col-sm-2 control-label"
  1215. for="service_final_payment_invoicing_type">开票状态:</label>
  1216. <div class="col-sm-8">
  1217. <select class="form-control" id="service_final_payment_invoicing_type" @if(!$detailEdit) disabled @endif
  1218. name="service_final_payment_invoicing_type">
  1219. <option value="0">请选择</option>
  1220. <option value="1"
  1221. @if(($payment->service_final_payment_invoicing_type??'')==1) selected @endif>
  1222. 未开票
  1223. </option>
  1224. <option value="2"
  1225. @if(($payment->service_final_payment_invoicing_type??'')==2) selected @endif>
  1226. 已开票
  1227. </option>
  1228. </select>
  1229. </div>
  1230. </div>
  1231. <div class="form-group">
  1232. <label class="col-sm-2 control-label" for="service_invoicing_time">开票时间:</label>
  1233. <div class="col-sm-4">
  1234. <div class="input-group m-b">
  1235. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1236. <input type="text" class="form-control" id="service_invoicing_time" @if(!$detailEdit) disabled @endif name="service_invoicing_time" value="{{$payment->service_invoicing_time??''}}" style="width: 200px">
  1237. </div>
  1238. </div>
  1239. </div>
  1240. <div class="hr-line-dashed"></div>
  1241. <!--修改-->
  1242. <div class="form-group">
  1243. <label class="col-sm-2 control-label" for="is_refund">是否退款/终止:</label>
  1244. <div class="col-sm-8">
  1245. <select name="is_refund" id="is_refund" class="form-control"
  1246. @if(!$detailEdit) disabled @endif>
  1247. <option value="0" @if($data->is_refund==0) selected @endif>否
  1248. </option>
  1249. <option value="1" @if($data->is_refund==1) selected @endif>是
  1250. </option>
  1251. </select>
  1252. </div>
  1253. </div>
  1254. <!--修改-->
  1255. <div class="form-group">
  1256. <label class="col-sm-2 control-label" for="refund">退款:</label>
  1257. <div class="col-sm-8">
  1258. <input type="text" class="form-control" id="refund"
  1259. @if(!$detailEdit) disabled @endif
  1260. name="refund"
  1261. value="{{$payment->refund??''}}" style="max-width: 350px">
  1262. </div>
  1263. </div>
  1264. <div class="form-group">
  1265. <label class="col-sm-2 control-label" for="refund_date">退款/终止时间:</label>
  1266. <div class="col-sm-4">
  1267. <div class="input-group m-b">
  1268. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1269. <input type="text" class="form-control" id="refund_date" @if(!$detailEdit) disabled @endif name="refund_date" value="{{$data->refund_date??''}}" style="width: 200px">
  1270. </div>
  1271. </div>
  1272. </div>
  1273. <div class="form-group">
  1274. <label class="col-sm-2 control-label" for="refund_reason">终止/退款原因:</label>
  1275. <div class="col-sm-8">
  1276. <input type="text" class="form-control" id="refund_reason"
  1277. @if(!$detailEdit) disabled @endif
  1278. name="refund_reason"
  1279. value="{{$payment->refund_reason??''}}" style="max-width: 350px">
  1280. </div>
  1281. </div>
  1282. <div class="form-group">
  1283. <label class="col-sm-2 control-label" for="refund_reason_analyze">终止/退款原因分析:</label>
  1284. <div class="col-sm-8">
  1285. <select name="refund_reason_analyze" id="refund_reason_analyze" class="form-control"
  1286. @if(!$detailEdit) disabled @endif>
  1287. <option value="0" @if($payment->refund_reason_analyze==0) selected @endif>请选择
  1288. </option>
  1289. <option value="1" @if($payment->refund_reason_analyze==1) selected @endif>建站期太长
  1290. </option>
  1291. <option value="2" @if($payment->refund_reason_analyze==2) selected @endif>客户原因
  1292. </option>
  1293. <option value="3" @if($payment->refund_reason_analyze==3) selected @endif>客户原因/未启动
  1294. </option>
  1295. <option value="4" @if($payment->refund_reason_analyze==4) selected @endif>实施期中止
  1296. </option>
  1297. <option value="5" @if($payment->refund_reason_analyze==5) selected @endif>主动终止
  1298. </option>
  1299. </select>
  1300. </div>
  1301. </div>
  1302. <div class="hr-line-dashed"></div>
  1303. <div class="form-group">
  1304. <label class="col-sm-2 control-label" for="renewal">续费:</label>
  1305. <div class="col-sm-8">
  1306. <input type="text" class="form-control" id="renewal" name="renewal"
  1307. @if(!$detailEdit) disabled @endif
  1308. value="{{$payment->renewal??''}}">
  1309. </div>
  1310. </div>
  1311. <div class="form-group">
  1312. <label class="col-sm-2 control-label" for="renewal_at">续费到账时间:</label>
  1313. <div class="col-sm-4">
  1314. <div class="input-group m-b">
  1315. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1316. <input type="text" class="form-control" id="renewal_at" @if(!$detailEdit) disabled @endif name="renewal_at" value="{{$data->renewal_at??''}}" style="width: 200px">
  1317. </div>
  1318. </div>
  1319. </div>
  1320. <div class="form-group">
  1321. <label class="col-sm-2 control-label" for="renewal_begin_time">续费时间:</label>
  1322. <div class="col-sm-4" style="width: 25%;">
  1323. <div class="input-group m-b">
  1324. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1325. <input type="text" class="form-control" id="renewal_begin_time" @if(!$detailEdit) disabled @endif name="renewal_begin_time" value="{{$payment->renewal_begin_time??''}}" style="width: 200px">
  1326. </div>
  1327. </div>
  1328. <div style="display: inline;float: left;line-height: 34px">至</div>
  1329. <div class="col-sm-4">
  1330. <div class="input-group m-b">
  1331. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1332. <input type="text" class="form-control" id="renewal_end_time" @if(!$detailEdit) disabled @endif name="renewal_end_time" value="{{$payment->renewal_end_time??''}}" style="width: 200px">
  1333. </div>
  1334. </div>
  1335. </div>
  1336. <div class="form-group">
  1337. <label class="col-sm-2 control-label" for="renewal_type">收款状态:</label>
  1338. <div class="col-sm-8">
  1339. <select class="form-control" id="renewal_type" name="renewal_type" @if(!$detailEdit) disabled @endif>
  1340. <option value="0">请选择</option>
  1341. <option value="1" @if(($payment->renewal_type??'')==1) selected @endif>已收</option>
  1342. <option value="2" @if(($payment->renewal_type??'')==2) selected @endif>未收</option>
  1343. </select>
  1344. </div>
  1345. </div>
  1346. <div class="form-group">
  1347. <label class="col-sm-2 control-label" for="renewal_invoicing_type">开票状态:</label>
  1348. <div class="col-sm-8">
  1349. <select class="form-control" id="renewal_invoicing_type" name="renewal_invoicing_type" @if(!$detailEdit) disabled @endif>
  1350. <option value="0">请选择</option>
  1351. <option value="1" @if(($payment->renewal_invoicing_type??'')==1) selected @endif>
  1352. 未开票
  1353. </option>
  1354. <option value="2" @if(($payment->renewal_invoicing_type??'')==2) selected @endif>
  1355. 已开票
  1356. </option>
  1357. </select>
  1358. </div>
  1359. </div>
  1360. <div class="form-group">
  1361. <label class="col-sm-2 control-label" for="renewal_invoicing_time">开票时间:</label>
  1362. <div class="col-sm-4">
  1363. <div class="input-group m-b">
  1364. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1365. <input type="text" class="form-control" id="renewal_invoicing_time" @if(!$detailEdit) disabled @endif name="renewal_invoicing_time" value="{{$payment->renewal_invoicing_time??''}}" style="width: 200px">
  1366. </div>
  1367. </div>
  1368. </div>
  1369. <div class="hr-line-dashed"></div>
  1370. <div class="form-group">
  1371. <label class="col-sm-2 control-label" for="not_renewed_reason">未续费原因:</label>
  1372. <div class="col-sm-8">
  1373. <input type="text" class="form-control" id="not_renewed_reason"
  1374. name="not_renewed_reason"
  1375. @if(!$detailEdit) disabled @endif
  1376. value="{{$payment->not_renewed_reason}}" autocomplete="off">
  1377. </div>
  1378. </div>
  1379. <div class="form-group">
  1380. <label class="col-sm-2 control-label" for="not_renewed_reason_analyze">未续费原因分析:</label>
  1381. <div class="col-sm-8">
  1382. <select name="not_renewed_reason_analyze" id="not_renewed_reason_analyze"
  1383. class="form-control" @if(!$detailEdit) disabled @endif>
  1384. <option value="0" @if($payment->not_renewed_reason_analyze==0) selected @endif>请选择
  1385. </option>
  1386. <option value="1" @if($payment->not_renewed_reason_analyze==1) selected @endif>
  1387. 效果不好
  1388. </option>
  1389. <option value="2" @if($payment->not_renewed_reason_analyze==2) selected @endif>
  1390. 疫情影响
  1391. </option>
  1392. <option value="3" @if($payment->not_renewed_reason_analyze==3) selected @endif>
  1393. 业务转型
  1394. </option>
  1395. <option value="4" @if($payment->not_renewed_reason_analyze==4) selected @endif>价格高
  1396. </option>
  1397. <option value="5" @if($payment->not_renewed_reason_analyze==5) selected @endif>
  1398. 服务器不在引擎力
  1399. </option>
  1400. </select>
  1401. </div>
  1402. </div>
  1403. <div class="form-group">
  1404. <div class="col-sm-4 col-sm-offset-2">
  1405. @if($detailEdit)
  1406. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  1407. onclick="units.save(2)">
  1408. 保存
  1409. </button>
  1410. @endif
  1411. {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
  1412. </div>
  1413. </div>
  1414. </form>
  1415. </div>
  1416. @endif
  1417. <div id="tab-21" class="lists">
  1418. <form class="form-horizontal" id="people" style="margin-top: 20px;padding-bottom: 250px;">
  1419. <div class="form-group">
  1420. <label class="col-sm-2 control-label" for="manager_ids">项目总监:</label>
  1421. <div class="col-sm-10">
  1422. <select data-placeholder="选择项目总监..." multiple class="chosen-select"
  1423. style="width:350px;"
  1424. id="manager_ids" name="manager_ids">
  1425. <option value="">请选择项目总监</option>
  1426. @if(!empty($managers))
  1427. @foreach ($managers as $item)
  1428. <option value="{{$item->id}}"
  1429. @if(in_array($item->id,$hasMangerIds)) selected
  1430. @endif>{{$item->nickname}}</option>
  1431. @endforeach
  1432. @endif
  1433. </select>
  1434. </div>
  1435. </div>
  1436. <div class="hr-line-dashed"></div>
  1437. <div class="form-group">
  1438. <label class="col-sm-2 control-label" for="manage_helper_ids">项目经理:</label>
  1439. <div class="col-sm-10">
  1440. <select data-placeholder="选择项目经理..." multiple class="chosen-select"
  1441. style="width:350px;"
  1442. id="manage_helper_ids" name="manage_helper_ids">
  1443. <option value="">请选择项目经理</option>
  1444. @if(!empty($managerHelpers))
  1445. @foreach ($managerHelpers as $item)
  1446. <option value="{{$item->id}}"
  1447. @if(in_array($item->id,$hasMangeHelpIds)) selected
  1448. @endif>{{$item->nickname}}</option>
  1449. @endforeach
  1450. @endif
  1451. </select>
  1452. </div>
  1453. </div>
  1454. <div class="form-group">
  1455. <label class="col-sm-2 control-label" for="editor_ids">建站采编:</label>
  1456. <div class="col-sm-10">
  1457. <select data-placeholder="选择建站采编..." multiple class="chosen-select"
  1458. style="width:350px;"
  1459. id="editor_ids" name="editor_ids">
  1460. <option value="">请选择建站采编</option>
  1461. @if(!empty($editors))
  1462. @foreach ($editors as $item)
  1463. <option value="{{$item->id}}"
  1464. @if(in_array($item->id,$hasEditorIds)) selected
  1465. @endif @if(!$detailEdit) disabled @endif>{{$item->nickname}}</option>
  1466. @endforeach
  1467. @endif
  1468. </select>
  1469. </div>
  1470. </div>
  1471. <div class="hr-line-dashed"></div>
  1472. <div class="form-group">
  1473. <label class="col-sm-2 control-label" for="optimizer_ids">优化组长:</label>
  1474. <div class="col-sm-10">
  1475. <select data-placeholder="选择优化组长..." multiple class="chosen-select"
  1476. style="width:350px;"
  1477. id="optimizer_ids" name="optimizer_ids">
  1478. <option value="">请选择优化组长</option>
  1479. @if(!empty($optimizers))
  1480. @foreach ($optimizers as $item)
  1481. <option value="{{$item->id}}"
  1482. @if(in_array($item->id,$hasOptimizerIds)) selected
  1483. @endif >{{$item->nickname}}</option>
  1484. @endforeach
  1485. @endif
  1486. </select>
  1487. </div>
  1488. </div>
  1489. <div class="form-group">
  1490. <label class="col-sm-2 control-label" for="optimization_editing_ids">优化师/优化采编:</label>
  1491. <div class="col-sm-10">
  1492. <select data-placeholder="选择优化师/优化采编..." multiple class="chosen-select"
  1493. style="width:350px;"
  1494. id="optimization_editing_ids" name="optimization_editing_ids">
  1495. <option value="">请选择优化师/优化采编</option>
  1496. @if(!empty($optimizationEditing))
  1497. @foreach ($optimizationEditing as $item)
  1498. <option value="{{$item->id}}"
  1499. @if(in_array($item->id,$hasOptimizationEditing)) selected
  1500. @endif>{{$item->nickname}}</option>
  1501. @endforeach
  1502. @endif
  1503. </select>
  1504. </div>
  1505. </div>
  1506. @if( in_array(\App\Http\Models\Contract::GOOGLE_BID,$data->contract_ids??[]))
  1507. <div class="form-group">
  1508. <label class="col-sm-2 control-label" for="bid_user_id">竞价人员:</label>
  1509. <div class="col-sm-10">
  1510. <select data-placeholder="选择竞价人员..." class="chosen-select"
  1511. style="width:350px;z-index: 99999"
  1512. id="bid_user_ids" name="bid_user_ids" multiple>
  1513. <option value="">请选择竞价人员</option>
  1514. @if(!empty($bidUsers))
  1515. @foreach ($bidUsers as $item)
  1516. <option value="{{$item->id}}"
  1517. @if(in_array($item->id,$hasBidIds)) selected
  1518. @endif>{{$item->nickname}}</option>
  1519. @endforeach
  1520. @endif
  1521. </select>
  1522. 是否属于竞价:
  1523. <input type="checkbox" id="bid_status" name="bid_status"
  1524. class="js-switch-bid"
  1525. @if($data->bid_status) checked @endif title=""
  1526. onchange="units.changeBidStatus()">
  1527. </div>
  1528. </div>
  1529. @endif
  1530. <div class="hr-line-dashed"></div>
  1531. <div class="form-group">
  1532. <label class="col-sm-2 control-label" for="article_edit_ids">软文查找人员:</label>
  1533. <div class="col-sm-10">
  1534. <select data-placeholder="请软文查找人员..." multiple class="chosen-select"
  1535. style="width:350px;"
  1536. id="article_edit_ids" name="article_edit_ids">
  1537. <option value="">请选择软文查找人员</option>
  1538. @if(!empty($propaganda))
  1539. @foreach ($propaganda as $item)
  1540. <option value="{{$item->id}}"
  1541. @if(in_array($item->id,$hasPropagandaIds)) selected
  1542. @endif>{{$item->nickname}}</option>
  1543. @endforeach
  1544. @endif
  1545. </select>
  1546. 是否特殊软文:
  1547. <input type="checkbox" id="spec_article" name="spec_article"
  1548. class="js-switch-spec"
  1549. @if($data->spec_article??false) checked @endif
  1550. title=""
  1551. onchange="units.changeSpecArticle()">
  1552. </div>
  1553. </div>
  1554. <div class="form-group">
  1555. <label class="col-sm-2 control-label" for="article_ids">软文更新人员:</label>
  1556. <div class="col-sm-10">
  1557. <select data-placeholder="选择软文更新人员..." multiple class="chosen-select"
  1558. style="width:350px;"
  1559. id="article_ids" name="article_ids">
  1560. <option value="">请选择软文更新人员</option>
  1561. @if(!empty($article))
  1562. @foreach ($article as $item)
  1563. <option value="{{$item->id}}"
  1564. @if(in_array($item->id,$hasArticleIds)) selected
  1565. @endif>{{$item->nickname}}</option>
  1566. @endforeach
  1567. @endif
  1568. </select>
  1569. </div>
  1570. </div>
  1571. <div class="hr-line-dashed"></div>
  1572. <div class="form-group">
  1573. <label class="col-sm-2 control-label" for="external_link_ids">社交外链人员:</label>
  1574. <div class="col-sm-10">
  1575. <select data-placeholder="选择社交外链人员..." multiple class="chosen-select"
  1576. style="width:350px;"
  1577. id="external_link_ids" name="external_link_ids">
  1578. <option value="">请选择社交外链人员</option>
  1579. @if(!empty($externalLink))
  1580. @foreach ($externalLink as $item)
  1581. <option value="{{$item->id}}"
  1582. @if(in_array($item->id,$hasExternalLinkIds)) selected
  1583. @endif>{{$item->nickname}}</option>
  1584. @endforeach
  1585. @endif
  1586. </select>
  1587. </div>
  1588. </div>
  1589. <div class="form-group">
  1590. <label class="col-sm-2 control-label" for="chongqing_link_ids">重庆外链人员:</label>
  1591. <div class="col-sm-10">
  1592. <select data-placeholder="选择重庆外链人员..." multiple class="chosen-select"
  1593. style="width:350px;"
  1594. id="chongqing_link_ids" name="chongqing_link_ids">
  1595. <option value="">请选择重庆外链人员</option>
  1596. @if(!empty($chongqingLink))
  1597. @foreach ($chongqingLink as $item)
  1598. <option value="{{$item->id}}"
  1599. @if(in_array($item->id,$hasChongqingLinkIds)) selected
  1600. @endif>{{$item->nickname}}</option>
  1601. @endforeach
  1602. @endif
  1603. </select>
  1604. </div>
  1605. </div>
  1606. <div class="hr-line-dashed"></div>
  1607. <div class="form-group">
  1608. <label class="col-sm-2 control-label" for="designer_ids">设计:</label>
  1609. <div class="col-sm-10">
  1610. <select data-placeholder="选择设计..." multiple class="chosen-select"
  1611. style="width:350px;"
  1612. id="designer_ids" name="designer_ids">
  1613. <option value="">请选择设计</option>
  1614. @if(!empty($designers))
  1615. @foreach ($designers as $item)
  1616. <option value="{{$item->id}}"
  1617. @if(in_array($item->id,$hasDesignerIds)) selected
  1618. @endif >{{$item->nickname}}</option>
  1619. @endforeach
  1620. @endif
  1621. </select>
  1622. </div>
  1623. </div>
  1624. <div class="form-group">
  1625. <label class="col-sm-2 control-label" for="web_ids">前端:</label>
  1626. <div class="col-sm-10">
  1627. <select data-placeholder="选择前端..." multiple class="chosen-select"
  1628. style="width:350px;"
  1629. id="web_ids" name="web_ids">
  1630. <option value="">请选择前端</option>
  1631. @if(!empty($webUsers))
  1632. @foreach ($webUsers as $item)
  1633. <option value="{{$item->id}}"
  1634. @if(in_array($item->id,$hasWebIds)) selected
  1635. @endif >{{$item->nickname}}</option>
  1636. @endforeach
  1637. @endif
  1638. </select>
  1639. </div>
  1640. </div>
  1641. <div class="hr-line-dashed"></div>
  1642. <div class="form-group">
  1643. <label class="col-sm-2 control-label" for="server_ids">客服:</label>
  1644. <div class="col-sm-10">
  1645. <select data-placeholder="选择客服人员..." multiple class="chosen-select"
  1646. style="width:350px;"
  1647. id="server_ids" name="server_ids">
  1648. <option value="">请选择客服人员</option>
  1649. @if(!empty($services))
  1650. @foreach ($services as $item)
  1651. <option value="{{$item->id}}"
  1652. @if(in_array($item->id,$hasServerIds)) selected
  1653. @endif>{{$item->nickname}}</option>
  1654. @endforeach
  1655. @endif
  1656. </select>
  1657. </div>
  1658. </div>
  1659. <div class="form-group">
  1660. <label class="col-sm-2 control-label" for="seller_ids">销售:</label>
  1661. <div class="col-sm-10">
  1662. <select data-placeholder="选择销售..." multiple class="chosen-select"
  1663. style="width:350px"
  1664. id="seller_ids" name="seller_ids">
  1665. <option value="">请选择销售</option>
  1666. @if(!empty($sellerUsers))
  1667. @foreach ($sellerUsers as $item)
  1668. <option value="{{$item->id}}"
  1669. @if(in_array($item->id,$hasSellerIds)) selected
  1670. @endif>{{$item->nickname}}</option>
  1671. @endforeach
  1672. @endif
  1673. </select>
  1674. </div>
  1675. </div>
  1676. <div class="form-group">
  1677. <div class="col-sm-4 col-sm-offset-2">
  1678. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  1679. onclick="units.save(3)">
  1680. 保存
  1681. </button>
  1682. </div>
  1683. </div>
  1684. </form>
  1685. </div>
  1686. <div id="tab-3" class="lists">
  1687. <h4 class="o-h4" style="margin-top: 20px">pinterest配置</h4>
  1688. <form class="form-horizontal" id="pin">
  1689. <div class="form-group">
  1690. <label class="col-sm-3 control-label">client_id:</label>
  1691. <div class="col-sm-8">
  1692. <input type="text" class="form-control" name="app_id" placeholder=""
  1693. value="{{$pin['app_id']??''}}">
  1694. </div>
  1695. </div>
  1696. <div class="form-group">
  1697. <label class="col-sm-3 control-label">client_secret:</label>
  1698. <div class="col-sm-8">
  1699. <input type="text" class="form-control" name="app_secret" placeholder=""
  1700. value="{{$pin['app_secret']??''}}">
  1701. </div>
  1702. </div>
  1703. <div class="form-group">
  1704. <label class="col-sm-3 control-label">跳转url:</label>
  1705. <div class="col-sm-8">
  1706. <input type="text" class="form-control" name="redirect_url" placeholder=""
  1707. value="{{$pin['redirect_url']??''}}">
  1708. </div>
  1709. </div>
  1710. <div class="form-group">
  1711. <div class="col-sm-4 col-sm-offset-3">
  1712. <button class="btn btn-primary" type="button"
  1713. onclick="units.socialSave('pin')">
  1714. 保存
  1715. </button>
  1716. {{--<button class="btn btn-info" type="button">去授权</button>--}}
  1717. <a class="btn btn-info"
  1718. href="{{sprintf('https://wall.yinqingli.com/admin/socials/oauth?which=pinterest&siteId=%s',$siteId)}}"
  1719. target="_blank">去授权</a>
  1720. </div>
  1721. </div>
  1722. <div class="form-group">
  1723. <label class="col-sm-3 control-label">token:</label>
  1724. <div class="col-sm-8">
  1725. <input type="text" class="form-control" placeholder="" disabled
  1726. value="{{$pin['token']??''}}">
  1727. </div>
  1728. </div>
  1729. </form>
  1730. <hr>
  1731. <h4 class="o-h4">twitter配置</h4>
  1732. <form class="form-horizontal " id="twitter">
  1733. <div class="form-group">
  1734. <div class="col-sm-4 col-sm-offset-3">
  1735. {{--<button class="btn btn-primary" type="button"--}}
  1736. {{--onclick="units.socialSave('twitter')">--}}
  1737. {{--保存--}}
  1738. {{--</button>--}}
  1739. <a class="btn btn-info"
  1740. href="https://wall.yinqingli.com/admin/socials/oauth?which=twitter&siteId={{$siteId}}"
  1741. target="_blank">去绑定</a>
  1742. </div>
  1743. </div>
  1744. <div class="form-group">
  1745. <label class="col-sm-3 control-label">access token:</label>
  1746. <div class="col-sm-8">
  1747. <input type="text" class="form-control" placeholder="" disabled
  1748. value="{{$twitter['token']??''}}">
  1749. </div>
  1750. </div>
  1751. <div class="form-group">
  1752. <label class="col-sm-3 control-label">accesstoken secret:</label>
  1753. <div class="col-sm-8">
  1754. <input type="text" class="form-control" placeholder="" disabled
  1755. value="{{$twitter['token_secret']??''}}">
  1756. </div>
  1757. </div>
  1758. </form>
  1759. <hr>
  1760. <h4 class="o-h4">facebook配置</h4>
  1761. <form class="form-horizontal " id="facebook">
  1762. <div class="form-group">
  1763. <label class="col-sm-3 control-label" for="facebook_page">facebook公司主页:</label>
  1764. <div class="col-sm-8">
  1765. <input type="text" class="form-control" name="facebook_page"
  1766. value="{{$data->facebook_page??''}}">
  1767. </div>
  1768. </div>
  1769. <div class="form-group">
  1770. <label class="col-sm-3 control-label" for="facebook_page">facebook page token:</label>
  1771. <div class="col-sm-8">
  1772. <input type="text" class="form-control" name="facebook_page_token"
  1773. value="{{$data->facebook_page_token??''}}" disabled>
  1774. </div>
  1775. </div>
  1776. <div class="form-group">
  1777. <div class="col-sm-4 col-sm-offset-3">
  1778. <button class="btn btn-primary" type="button"
  1779. onclick="units.socialSave('facebook')">
  1780. 保存
  1781. </button>
  1782. </div>
  1783. </div>
  1784. <div class="form-group">
  1785. <label class="col-sm-3 control-label">过期时间:</label>
  1786. <div class="col-sm-8">
  1787. <input type="text" class="form-control" placeholder=""
  1788. value="{{$facebookSocial['page_token_expired_at']??''}}" disabled>
  1789. </div>
  1790. </div>
  1791. </form>
  1792. <hr>
  1793. <h4 class="o-h4">linkedIn 配置</h4>
  1794. <form class="form-horizontal " id="linkedIn">
  1795. <div class="form-group">
  1796. <label class="col-sm-3 control-label">企业组织ID:</label>
  1797. <div class="col-sm-8">
  1798. <input type="text" class="form-control" name="linkedin_orgid" placeholder=""
  1799. value="{{$linkedIn['linkedin_orgid']??''}}">
  1800. </div>
  1801. </div>
  1802. <div class="form-group">
  1803. <div class="col-sm-4 col-sm-offset-3">
  1804. <button class="btn btn-primary" type="button"
  1805. onclick="units.socialSave('linkedIn')">
  1806. 保存
  1807. </button>
  1808. {{--<a class="btn btn-info"--}}
  1809. {{--href="{{url('admin/socials/oauth?which=linkedIn&siteId='.$siteId)}}"--}}
  1810. {{--target="_blank">去授权</a>--}}
  1811. </div>
  1812. </div>
  1813. <div class="form-group">
  1814. <label class="col-sm-3 control-label">token:</label>
  1815. <div class="col-sm-8">
  1816. <input type="text" class="form-control" placeholder=""
  1817. value="{{$linkedBaseInfo['token']??''}}" disabled>
  1818. </div>
  1819. </div>
  1820. <div class="form-group">
  1821. <label class="col-sm-3 control-label">过期时间:</label>
  1822. <div class="col-sm-8">
  1823. <input type="text" class="form-control" placeholder=""
  1824. value="{{$linkedBaseInfo['token_expired_at']??''}}" disabled>
  1825. </div>
  1826. </div>
  1827. </form>
  1828. </div>
  1829. <div id="tab-4" class="lists">
  1830. <form class="form-horizontal" id="optimize" style="margin-top: 20px">
  1831. <div id="optimize_page">
  1832. <div style="padding: 5px 0">
  1833. <button type="button" class="btn btn-info" onclick="units.import()">
  1834. 导入关键词
  1835. </button>
  1836. <button type="button" class="btn btn-success" onclick="units.export()">
  1837. 导出
  1838. </button>
  1839. <button type="button" class="btn btn-danger" onclick="units.clearOptimize()">
  1840. 一键删除
  1841. </button>
  1842. </div>
  1843. @forelse($optimizePage as $inx=>$item)
  1844. <div class="form-group">
  1845. {{--<label class="col-sm-2 control-label" for="google_bid">布局关键字:</label>--}}
  1846. <div class="col-sm-offset-1 col-sm-8">
  1847. <label>布局关键字:</label>
  1848. <input type="text" class="form-control" style="width: 250px;display: inline-block"
  1849. name="optimize_page_keyword" value="{{$item['keyword']}}">
  1850. <label style="margin-left: 15px">url地址:</label>
  1851. <input type="text" class="form-control" style="width: 250px;display: inline-block"
  1852. name="optimize_page_url" value="{{$item['url']}}">
  1853. <label style="margin-left: 15px">已优化:</label>
  1854. <input type="checkbox" class="js-switch" name="optimize_page_is_optimize"
  1855. @if(!empty($item['is_optimize'])) checked @endif>
  1856. <input type="hidden" name="optimize_page_id" value="{{$item['id']}}">
  1857. @if($inx==0)
  1858. <button type="button" class="btn btn-info" onclick="units.addOptimizePage()">+
  1859. </button>
  1860. @else
  1861. <button type="button" class="btn btn-info"
  1862. onclick="units.removeOptimizePage(this)">-
  1863. </button>
  1864. @endif
  1865. </div>
  1866. </div>
  1867. @empty
  1868. <div class="form-group">
  1869. <div class="col-sm-offset-1 col-sm-8">
  1870. <label>布局关键字:</label>
  1871. <input type="text" class="form-control"
  1872. style="width: 250px;display: inline-block"
  1873. name="optimize_page_keyword" value="">
  1874. <label style="margin-left: 15px">url地址:</label>
  1875. <input type="text" class="form-control"
  1876. style="width: 250px;display: inline-block"
  1877. name="optimize_page_url" value="">
  1878. <label style="margin-left: 15px">已优化:</label>
  1879. <input type="checkbox" class="js-switch" name="optimize_page_is_optimize">
  1880. <input type="hidden" name="optimize_page_id" value="0">
  1881. <button type="button" class="btn btn-info" onclick="units.addOptimizePage()">+
  1882. </button>
  1883. </div>
  1884. </div>
  1885. @endforelse
  1886. </div>
  1887. <div class="form-group">
  1888. <div class="col-sm-9" style="text-align: center">
  1889. <button class="btn btn-success" type="button" data-id="{{$data->id??0}}"
  1890. onclick="units.optimizePageSave()">
  1891. 保存
  1892. </button>
  1893. </div>
  1894. </div>
  1895. </form>
  1896. </div>
  1897. <div id="tab-5" class="lists">
  1898. <form class="form-horizontal" id="account" style="margin-top: 20px">
  1899. <div class="form-group">
  1900. <label class="col-sm-2 control-label">管理员账号:</label>
  1901. <div class="col-sm-10">
  1902. <input type="text" class="form-control" name="adminAccount"
  1903. value="{{$siteInfo->admin_account??''}}">
  1904. </div>
  1905. </div>
  1906. <div class="form-group">
  1907. <label class="col-sm-2 control-label">管理员密码:</label>
  1908. <div class="col-sm-10">
  1909. <input type="text" class="form-control" name="adminPass"
  1910. value="{{$siteInfo->admin_pass??''}}">
  1911. </div>
  1912. </div>
  1913. <div class="form-group">
  1914. <label class="col-sm-2 control-label">用户账号:</label>
  1915. <div class="col-sm-10">
  1916. <input type="text" class="form-control" name="userAccount"
  1917. value="{{$siteInfo->user_account??''}}">
  1918. </div>
  1919. </div>
  1920. <div class="form-group">
  1921. <label class="col-sm-2 control-label">用户密码:</label>
  1922. <div class="col-sm-10">
  1923. <input type="text" class="form-control" name="userPass"
  1924. value="{{$siteInfo->user_pass??''}}">
  1925. </div>
  1926. </div>
  1927. <div class="form-group">
  1928. <label class="col-sm-2 control-label">app账号:</label>
  1929. <div class="col-sm-10">
  1930. <input type="text" class="form-control" name="appAccount"
  1931. value="{{$siteInfo->app_account??''}}">
  1932. </div>
  1933. </div>
  1934. <div class="form-group">
  1935. <label class="col-sm-2 control-label">app密码:</label>
  1936. <div class="col-sm-10">
  1937. <input type="text" class="form-control" name="appPass"
  1938. value="{{$siteInfo->app_pass??''}}">
  1939. </div>
  1940. </div>
  1941. <div class="form-group">
  1942. <div class="col-sm-9" style="text-align: center">
  1943. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  1944. onclick="units.accountSave()">
  1945. 保存
  1946. </button>
  1947. </div>
  1948. </div>
  1949. </form>
  1950. </div>
  1951. <div id="tab-6" class="lists">
  1952. <form class="form-horizontal" id="time" style="margin-top: 20px;padding-bottom: 250px;">
  1953. <div class="form-group">
  1954. <label class="col-sm-2 control-label" for="sign_at">合同签订时间:</label>
  1955. <div class="col-sm-2">
  1956. <div class="input-group m-b">
  1957. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1958. <input type="text" class="form-control" id="sign_at" name="sign_at"
  1959. @if(!$baseEdit) disabled @endif
  1960. value="{{$data->sign_at??''}}">
  1961. </div>
  1962. </div>
  1963. <label class="col-sm-2 control-label" for="task_at"><span
  1964. class="red">* </span>建站任务起始时间:<br>(首付款时间)</label>
  1965. <div class="col-sm-4">
  1966. <div class="input-group m-b">
  1967. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1968. <input type="text" class="form-control" id="task_at" name="task_at" style="width: 200px"
  1969. @if(!$baseEdit) disabled @endif
  1970. value="{{$data->task_at}}" autocomplete="off">
  1971. @if(!empty($roles->is_super))
  1972. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  1973. onclick="units.delSitesTaskFlow()">
  1974. 清空建站流程
  1975. </button>
  1976. @endif
  1977. </div>
  1978. </div>
  1979. </div>
  1980. <div class="form-group">
  1981. <label class="col-sm-2 control-label" for="order_at"><span
  1982. class="red">* </span>下单时间:<br>(分配到项目部门)</label>
  1983. <div class="col-sm-2">
  1984. <div class="input-group m-b">
  1985. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1986. <input type="text" class="form-control" id="order_at" name="order_at"
  1987. @if(!$baseEdit) disabled @endif
  1988. value="{{$data->order_at}}" autocomplete="off">
  1989. </div>
  1990. </div>
  1991. <label class="col-sm-2 control-label" for="design_score">设计评分:</label>
  1992. <div class="col-sm-2">
  1993. <input type="text" class="form-control" id="design_score" name="design_score"
  1994. @if(!$baseEdit) disabled @endif
  1995. value="{{$data->design_score}}" autocomplete="off">
  1996. </div>
  1997. </div>
  1998. {{-- <div class="form-group">
  1999. <label class="col-sm-2 control-label" for="assign_at">分配时间:</label>
  2000. <div class="col-sm-4">
  2001. <div class="input-group m-b">
  2002. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2003. <input type="text" class="form-control" id="assign_at" name="assign_at"
  2004. @if(!$baseEdit) disabled @endif
  2005. value="{{$data->assign_at}}">
  2006. </div>
  2007. </div>
  2008. </div>--}}
  2009. <div class="form-group">
  2010. <label class="col-sm-2 control-label" for="online_at">上线时间:</label>
  2011. <div class="col-sm-2">
  2012. <div class="input-group m-b">
  2013. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2014. <input type="text" class="form-control" id="online_at" name="online_at"
  2015. @if(!$baseEdit) disabled @endif
  2016. value="{{$data->online_at}}">
  2017. </div>
  2018. </div>
  2019. <label class="col-sm-2 control-label" for="online_score">上线评分:</label>
  2020. <div class="col-sm-2">
  2021. <input type="text" class="form-control" id="online_score" name="online_score"
  2022. @if(!$baseEdit) disabled @endif
  2023. value="{{$data->online_score}}" autocomplete="off">
  2024. </div>
  2025. </div>
  2026. <div class="form-group">
  2027. <label class="col-sm-2 control-label" for="reach_at">达标时间:</label>
  2028. <div class="col-sm-2">
  2029. <div class="input-group m-b">
  2030. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2031. <input type="text" class="form-control" id="reach_at" name="reach_at"
  2032. @if(!$baseEdit) disabled @endif
  2033. value="{{$data->reach_at}}">
  2034. </div>
  2035. </div>
  2036. <label class="col-sm-2 control-label" for="reach_mail_at">达标邮件确认时间:</label>
  2037. <div class="col-sm-2">
  2038. <div class="input-group m-b">
  2039. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2040. <input type="text" class="form-control" id="reach_mail_at" name="reach_mail_at"
  2041. @if(!$baseEdit) disabled @endif
  2042. value="{{$data->reach_mail_at}}">
  2043. </div>
  2044. </div>
  2045. </div>
  2046. <div class="form-group">
  2047. <label class="col-sm-2 control-label" for="expired_at">到期时间:</label>
  2048. <div class="col-sm-2">
  2049. <div class="input-group m-b">
  2050. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2051. <input type="text" class="form-control" id="expired_at" name="expired_at"
  2052. @if(!$baseEdit) disabled @endif
  2053. value="{{$data->expired_at}}">
  2054. </div>
  2055. </div>
  2056. <label class="col-sm-2 control-label" for="reach_pay_at">达标款支付时间:</label>
  2057. <div class="col-sm-2">
  2058. <div class="input-group m-b">
  2059. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2060. <input type="text" class="form-control" id="reach_pay_at" name="reach_pay_at"
  2061. @if(!$baseEdit) disabled @endif
  2062. value="{{$data->reach_pay_at}}">
  2063. </div>
  2064. </div>
  2065. </div>
  2066. <div class="form-group">
  2067. <label class="col-sm-2 control-label" for="bq_at">百千约访时间:</label>
  2068. <div class="col-sm-2">
  2069. <div class="input-group m-b">
  2070. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2071. <input type="text" class="form-control" id="bq_at" name="bq_at"
  2072. @if(!$baseEdit) disabled @endif
  2073. value="{{$data->bq_at}}">
  2074. </div>
  2075. </div>
  2076. <label class="col-sm-2 control-label" for="bq_score">百千客户评分:</label>
  2077. <div class="col-sm-2">
  2078. <input type="text" class="form-control" id="bq_score" name="bq_score"
  2079. @if(!$baseEdit) disabled @endif
  2080. value="{{$data->bq_score}}" autocomplete="off">
  2081. </div>
  2082. </div>
  2083. <div class="form-group">
  2084. <label class="col-sm-2 control-label" for="status">项目状态:</label>
  2085. <div class="col-sm-2">
  2086. <select name="status" id="status" class="form-control" @if(!$baseEdit) disabled
  2087. @endif style="width: 200px">
  2088. <option value="">请选择</option>
  2089. @foreach(\App\Http\Models\Site::STATUS_MAP as $inx=>$val)
  2090. @if(!in_array($inx,[5,6]))
  2091. <option value="{{$inx}}"
  2092. @if($inx==($data->status)) selected @endif>{{$val}}</option>
  2093. @endif
  2094. @endforeach
  2095. </select>
  2096. </div>
  2097. <label class="col-sm-2 control-label" for="on_score">达标评分:</label>
  2098. <div class="col-sm-2">
  2099. <input type="text" class="form-control" id="reach_score" name="reach_score"
  2100. @if(!$baseEdit) disabled @endif
  2101. value="{{$data->reach_score}}" autocomplete="off">
  2102. </div>
  2103. </div>
  2104. <div class="hr-line-dashed"></div>
  2105. <div class="form-group">
  2106. <label class="col-sm-2 control-label" for="renewal_times">续费次数:</label>
  2107. <div class="col-sm-2">
  2108. <div class="input-group m-b" style="margin-left: 10px">
  2109. <select class="form-control" name="renewal_times" id="renewal_times"
  2110. style="width: 200px;">
  2111. <option value="">请选择</option>
  2112. @for($rTimes=1;$rTimes<=10;$rTimes++)
  2113. <option value="{{$rTimes}}"
  2114. @if(($data->renewal_times??'')==$rTimes) selected @endif>{{$rTimes}}次
  2115. </option>
  2116. @endfor
  2117. </select>
  2118. </div>
  2119. </div>
  2120. <label class="col-sm-2 control-label" for="renewal_amount">续费金额:</label>
  2121. <div class="col-sm-2">
  2122. <div class="input-group m-b" style="margin-left: 10px">
  2123. <input type="number" class="form-control" id="renewal_amount" name="renewal_amount"
  2124. style="width: 200px"
  2125. @if(!$baseEdit) disabled @endif
  2126. value="{{$data->renewal_amount??''}}">
  2127. </div>
  2128. </div>
  2129. </div>
  2130. <div class="form-group">
  2131. <label class="col-sm-2 control-label" for="renewal_at">续费时间:</label>
  2132. <div class="col-sm-2">
  2133. <div class="input-group m-b">
  2134. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2135. <input type="text" class="form-control" id="renewal_at" name="renewal_at"
  2136. @if(!$baseEdit) disabled @endif
  2137. value="{{$data->renewal_at}}">
  2138. </div>
  2139. </div>
  2140. <label class="col-sm-2 control-label" for="renew_years">最近一次续费年限:</label>
  2141. <div class="col-sm-2">
  2142. <div class="input-group m-b" style="margin-left: 10px">
  2143. <select class="form-control" name="renew_years" id="renew_years"
  2144. style="width: 200px;">
  2145. <option value="0">请选择</option>
  2146. <option value="1"
  2147. @if(!empty($data->renew_years) && $data->renew_years==1) selected @endif>1年
  2148. </option>
  2149. <option value="2"
  2150. @if(!empty($data->renew_years) && $data->renew_years==2) selected @endif>2年
  2151. </option>
  2152. <option value="3"
  2153. @if(!empty($data->renew_years) && $data->renew_years==3) selected @endif>3年
  2154. </option>
  2155. </select>
  2156. </div>
  2157. </div>
  2158. {{-- <label class="col-sm-2 control-label" for="is_renew">是否网站续费:</label>
  2159. <div class="col-sm-1">
  2160. <input type="checkbox" id="is_renew" name="is_renew"
  2161. class="js-switch-renew"
  2162. @if($data->is_renew??0) checked
  2163. @endif onchange="units.changeRenewStatus()">
  2164. </div>--}}
  2165. {{-- <label class="col-sm-2 control-label" for="is_current_month_online">当月上线目标:</label>
  2166. <div class="col-sm-1">
  2167. <input type="checkbox" id="is_current_month_online" name="is_current_month_online"
  2168. class="js-switch-online"
  2169. @if($data->is_current_month_online) checked
  2170. @endif onchange="units.changeCurrentMonthOnline()">
  2171. </div>--}}
  2172. </div>
  2173. {{-- <div class="form-group">
  2174. <label class="col-sm-2 control-label" for="renewal_end_at">续费结束时间:</label>
  2175. <div class="col-sm-2">
  2176. <div class="input-group m-b">
  2177. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2178. <input type="text" class="form-control" id="renewal_end_at" name="renewal_end_at"
  2179. @if(!$baseEdit) disabled @endif
  2180. value="{{$data->renewal_end_at??""}}">
  2181. </div>
  2182. </div>
  2183. </div>--}}
  2184. <div class="hr-line-dashed"></div>
  2185. <div class="form-group">
  2186. <label class="col-sm-2 control-label" for="refund_date">退款时间:</label>
  2187. <div class="col-sm-2">
  2188. <div class="input-group m-b">
  2189. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2190. <input type="text" class="form-control" id="refund_date"
  2191. @if(!$baseEdit) disabled @endif
  2192. name="refund_date"
  2193. value="{{$data->refund_date}}">
  2194. </div>
  2195. </div>
  2196. <label class="col-sm-2 control-label" for="is_refund">是否退款:</label>
  2197. <div class="col-sm-2">
  2198. <input type="checkbox" id="is_refund" name="is_refund"
  2199. class="js-switch-refund"
  2200. @if($data->is_refund??0) checked
  2201. @endif onchange="units.changeRefundStatus()">
  2202. </div>
  2203. </div>
  2204. <div class="form-group">
  2205. <label class="col-sm-2 control-label" for="domain_expired_date">域名到期时间:</label>
  2206. <div class="col-sm-2">
  2207. <div class="input-group m-b">
  2208. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2209. <input type="text" class="form-control" id="domain_expired_date"
  2210. @if(!$baseEdit) disabled @endif
  2211. name="domain_expired_date"
  2212. value="{{$data->domain_expired_date}}">
  2213. </div>
  2214. </div>
  2215. <label class="col-sm-2 control-label" for="domain_us_buy">域名是否我们购买:</label>
  2216. <div class="col-sm-2">
  2217. <input type="checkbox" id="domain_us_buy" name="domain_us_buy"
  2218. class="js-switch-domain"
  2219. @if($data->domain_us_buy??0) checked
  2220. @endif onchange="units.changeDomainStatus()">
  2221. </div>
  2222. </div>
  2223. <div class="form-group">
  2224. <label class="col-sm-2 control-label" for="cdn_expired_date">cdn到期时间:</label>
  2225. <div class="col-sm-2">
  2226. <div class="input-group m-b">
  2227. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2228. <input type="text" class="form-control" id="cdn_expired_date"
  2229. name="cdn_expired_date"
  2230. value="{{$data->cdn_expired_date}}">
  2231. </div>
  2232. </div>
  2233. <label class="col-sm-2 control-label" for="is_cdn">是否cdn:</label>
  2234. <div class="col-sm-2">
  2235. <input type="checkbox" id="is_cdn" name="is_cdn"
  2236. class="js-switch-cdn"
  2237. @if($data->is_cdn) checked @endif onchange="units.changeCDNStatus()">
  2238. </div>
  2239. </div>
  2240. <div class="form-group">
  2241. <label class="col-sm-2 control-label" for="cert_expired_date">证书到期时间:</label>
  2242. <div class="col-sm-2">
  2243. <div class="input-group m-b">
  2244. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2245. <input type="text" class="form-control" id="cert_expired_date"
  2246. @if(!$baseEdit) disabled @endif
  2247. name="cert_expired_date"
  2248. value="{{$data->cert_expired_date}}">
  2249. </div>
  2250. </div>
  2251. <label class="col-sm-2 control-label" for="cert_us_buy">证书是否我们购买:</label>
  2252. <div class="col-sm-2">
  2253. <input type="checkbox" id="cert_us_buy" name="cert_us_buy"
  2254. class="js-switch-cert"
  2255. @if($data->cert_us_buy) checked @endif onchange="units.changeCertStatus()">
  2256. </div>
  2257. </div>
  2258. <div class="form-group">
  2259. <div class="col-sm-4 col-sm-offset-2">
  2260. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  2261. onclick="units.save(4)">
  2262. 保存
  2263. </button>
  2264. {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
  2265. </div>
  2266. </div>
  2267. </form>
  2268. </div>
  2269. <div id="tab-7" class="lists">
  2270. <form class="form-horizontal" id="server" style="margin-top: 20px;padding-bottom: 250px;">
  2271. <div class="form-group">
  2272. <label class="col-sm-2 control-label" for="server_id">服务器所在地:</label>
  2273. <div class="col-sm-8">
  2274. <select name="server_id" id="server_id" class="form-control"
  2275. @if(!$baseEdit) disabled @endif>
  2276. <option value="">请选择ip所在地</option>
  2277. @foreach($servers as $server)
  2278. <option value="{{$server->server_id}}"
  2279. @if($server->server_id==($data->server_id??null)) selected @endif>{{$server->server_ip}}</option>
  2280. @endforeach
  2281. </select>
  2282. </div>
  2283. </div>
  2284. <div class="form-group">
  2285. <label class="col-sm-2 control-label" for="self_support">是否是引擎力服务器:</label>
  2286. <div class="col-sm-8">
  2287. <select name="self_support" id="self_support" class="form-control">
  2288. <option value="0" @if($data->self_support==0) selected @endif>是</option>
  2289. <option value="1" @if($data->self_support==1) selected @endif>否</option>
  2290. </select>
  2291. </div>
  2292. </div>
  2293. <div class="form-group">
  2294. <label class="col-sm-2 control-label" for="is_stencil">是否是模版站:</label>
  2295. <div class="col-sm-8">
  2296. <select name="is_stencil" id="is_stencil" class="form-control">
  2297. <option value="0" @if($data->is_stencil==0) selected @endif>否</option>
  2298. <option value="1" @if($data->is_stencil==1) selected @endif>是</option>
  2299. </select>
  2300. </div>
  2301. </div>
  2302. <div class="form-group">
  2303. <label class="col-sm-2 control-label" for="api_url">api地址:</label>
  2304. <div class="col-sm-8">
  2305. <input type="text" class="form-control" id="api_url" name="api_url"
  2306. @if(!$baseEdit) disabled @endif
  2307. value="{{$data->api_url??''}}">
  2308. <span class="span" style="font-size: 12px;">填写正式域名加/openapi/ 例:http://www.baidu.com/openapi/ (注意https)</span>
  2309. </div>
  2310. </div>
  2311. <div class="form-group">
  2312. <label class="col-sm-2 control-label" for="webmaster_domain">webmaster域名:</label>
  2313. <div class="col-sm-8">
  2314. <input type="text" class="form-control" id="webmaster_domain" name="webmaster_domain"
  2315. @if(!$baseEdit) disabled @endif
  2316. value="{{$data->webmaster_domain??''}}">
  2317. <span class="span" style="font-size: 12px;">填写webmaster上填写的域名(一定要一模一样,注意https和斜杠) 例:http://www.baidu.com/</span>
  2318. </div>
  2319. </div>
  2320. <div class="form-group">
  2321. <label class="col-sm-2 control-label" for="database">项目数据库名:</label>
  2322. <div class="col-sm-8">
  2323. <input type="text" class="form-control" id="database" name="database"
  2324. @if(!$baseEdit) disabled @endif
  2325. value="{{$data->database??''}}">
  2326. </div>
  2327. </div>
  2328. <div class="form-group">
  2329. <label class="col-sm-2 control-label" for="code_dir">项目代码目录:</label>
  2330. <div class="col-sm-8">
  2331. <input type="text" class="form-control" id="code_dir" name="code_dir"
  2332. @if(!$baseEdit) disabled @endif
  2333. value="{{$data->code_dir??''}}">
  2334. </div>
  2335. </div>
  2336. <div class="form-group">
  2337. <label class="col-sm-2 control-label" for="cname_host_record_value">CNAME主机记录:</label>
  2338. <div class="col-sm-8">
  2339. <input type="text" class="form-control" id="cname_host_record_value"
  2340. name="cname_host_record_value"
  2341. @if(!$baseEdit) disabled @endif
  2342. value="{{$data->cname_host_record_value??''}}"
  2343. @if(in_array($data->status,[2,3])) disabled @endif>
  2344. </div>
  2345. </div>
  2346. <div class="form-group">
  2347. <label class="col-sm-2 control-label" for="cname_record_value">CNAME记录值:</label>
  2348. <div class="col-sm-8">
  2349. <input type="text" class="form-control" id="cname_record_value" name="cname_record_value"
  2350. @if(!$baseEdit) disabled @endif
  2351. value="{{$data->cname_record_value??''}}"
  2352. @if(in_array($data->status,[2,3])) disabled @endif>
  2353. </div>
  2354. </div>
  2355. <div class="form-group">
  2356. <div class="col-sm-4 col-sm-offset-2">
  2357. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  2358. onclick="units.save(5)">
  2359. 保存
  2360. </button>
  2361. {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
  2362. </div>
  2363. </div>
  2364. </form>
  2365. </div>
  2366. @if (empty($basePermission)&&empty($detailPermission))
  2367. <h1>无权限</h1>
  2368. @endif
  2369. </div>
  2370. </div>
  2371. <div id="add_google_bid_str" style="display: none">
  2372. <div class="form-group">
  2373. <label class="col-sm-2 control-label"></label>
  2374. <div class="col-sm-8">
  2375. <label>费用:</label>
  2376. <input type="text" class="form-control"
  2377. name="google_bid_fee" style="width: 150px;display: inline-block"
  2378. onchange="units.computeGoogleBidTotalFee()">
  2379. <label style="margin-left: 15px">时间:</label>
  2380. <input type="text" class="form-control"
  2381. name="google_bid_time" style="width: 250px;display: inline-block">
  2382. <button type="button" class="btn btn-info" onclick="units.removeGoogleBid(this)">-</button>
  2383. </div>
  2384. </div>
  2385. </div>
  2386. <div id="optimize_page_str" style="display: none">
  2387. <div class="form-group">
  2388. <div class="col-sm-offset-1 col-sm-8">
  2389. <label>布局关键字:</label>
  2390. <input type="text" class="form-control" style="width: 250px;display: inline-block"
  2391. name="optimize_page_keyword">
  2392. <label style="margin-left: 15px">url地址:</label>
  2393. <input type="text" class="form-control" style="width: 250px;display: inline-block"
  2394. name="optimize_page_url">
  2395. <label style="margin-left: 15px">已优化:</label>
  2396. <input type="checkbox" class="js-switch" name="optimize_page_is_optimize">
  2397. <input type="hidden" name="optimize_page_id" value="0">
  2398. <button type="button" class="btn btn-info" onclick="units.removeOptimizePage(this)">-</button>
  2399. </div>
  2400. </div>
  2401. </div>
  2402. @endsection
  2403. @section('footer_extend')
  2404. <script src="{{asset('js/plugins/chosen/chosen.jquery.js')}}"></script>
  2405. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  2406. <script src="{{asset('js/plugins/switchery/switchery.js?v=1')}}"></script>
  2407. <script src="{{asset('js/plugins/distpicker-master/dist/distpicker.js?v=1')}}"></script>
  2408. <script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/js/bootstrap-select.min.js"></script>
  2409. <script>
  2410. var RefundJsSwitch = document.querySelector(".js-switch-refund");
  2411. new Switchery(RefundJsSwitch, {color: "#1AB394", size: 'small'});
  2412. var BidJsSwitch = document.querySelector(".js-switch-bid");
  2413. new Switchery(BidJsSwitch, {color: "#1AB394", size: 'small'});
  2414. var SpecJsSwitch = document.querySelector(".js-switch-spec");//是否特殊软文
  2415. new Switchery(SpecJsSwitch, {color: "#1AB394", size: 'small'});
  2416. var CDBJsSwitch = document.querySelector(".js-switch-cdn");
  2417. new Switchery(CDBJsSwitch, {color: "#1AB394", size: 'small'});
  2418. var RenewJsSwitch = document.querySelector(".js-switch-renew");
  2419. new Switchery(RenewJsSwitch, {color: "#1AB394", size: 'small'});
  2420. var DomainJsSwitch = document.querySelector(".js-switch-domain");
  2421. new Switchery(DomainJsSwitch, {color: "#1AB394", size: 'small'});
  2422. var OnlineSwitch = document.querySelector(".js-switch-online");
  2423. new Switchery(OnlineSwitch, {color: "#1AB394", size: 'small'});
  2424. var CertJsSwitch = document.querySelector(".js-switch-cert");
  2425. new Switchery(CertJsSwitch, {color: "#1AB394", size: 'small'});
  2426. var CaseJsSwitch = document.querySelector(".js-switch-case");
  2427. new Switchery(CaseJsSwitch, {color: "#1AB394", size: 'small'});
  2428. var checked = CaseJsSwitch.checked ? 1 : 0;
  2429. if (checked === 0) {
  2430. $('.example').hide();
  2431. $('.case').hide();
  2432. } else {
  2433. $('.example').show();
  2434. $('.case').show();
  2435. }
  2436. var BqJsSwitch = document.querySelector(".js-switch-bq");
  2437. new Switchery(BqJsSwitch, {color: "#1AB394", size: 'small'});
  2438. $(".tabs-container .nav ul li").click(function () {
  2439. var i = $(this).index();
  2440. $(this).addClass("active").siblings().removeClass("active");
  2441. $(".tabs-container .tab-content .lists").eq(i).addClass("active").siblings().removeClass("active");
  2442. });
  2443. $(function () {
  2444. var needDateTime = [
  2445. '#reach_pay_at',
  2446. '#reach_mail_at',
  2447. '#order_at',
  2448. '#bq_at',
  2449. '#online_at',
  2450. '#reach_at',
  2451. '#expired_at',
  2452. '#sign_at',
  2453. '#renewal_at',
  2454. '#renewal_end_at',
  2455. '#assign_at',
  2456. '#bid_account_online_time',
  2457. '#bid_account_pause_time',
  2458. '#bid_score_time',
  2459. '#task_at',
  2460. '#head_time',
  2461. '#head_invoicing_time',
  2462. '#done_invoicing_time',
  2463. '#done_receivable_time',
  2464. '#done_receipts_time',
  2465. '#reach_invoicing_time',
  2466. '#reach_receivable_time',
  2467. '#reach_receipts_time',
  2468. '#service_invoicing_time',
  2469. '#service_receivable_time',
  2470. '#service_receipts_time',
  2471. '#renewal_begin_time',
  2472. '#renewal_end_time',
  2473. '#renewal_invoicing_time',
  2474. ];
  2475. for (var item in needDateTime) {
  2476. laydate.render({
  2477. elem: needDateTime[item], //指定元素
  2478. type: 'datetime'
  2479. });
  2480. }
  2481. var needDate = ['#cert_expired_date', '#domain_expired_date', '#cdn_expired_date', '#refund_date'];
  2482. for (var val in needDate) {
  2483. laydate.render({
  2484. elem: needDate[val], //指定元素
  2485. type: 'date'
  2486. });
  2487. }
  2488. var ele = $('[name="google_bid_time"]');
  2489. var total = 0;
  2490. ele.each(function () {
  2491. total += 1;
  2492. });
  2493. ele.each(function (inx, item) {
  2494. if ((total - 1) !== (inx)) {
  2495. // console.log(total, ele.length);
  2496. laydate.render({
  2497. elem: $(this)[0],
  2498. type: 'datetime'
  2499. });
  2500. }
  2501. });
  2502. laydate.render({
  2503. elem: '#google_bid_time', //指定元素
  2504. type: 'datetime'
  2505. });
  2506. $(".js-switch").each(function (inx, val) {
  2507. new Switchery(val, {color: "#1AB394", size: 'small'});
  2508. });
  2509. });
  2510. var config = {".chosen-select": {}};
  2511. for (var selector in config) $(selector).chosen(config[selector]);
  2512. var units = {
  2513. import: function () {
  2514. var str = '<div class="ibox-content" id="importLayer">' +
  2515. '<form class="form-horizontal">' +
  2516. '<div class="form-group">' +
  2517. '<label class="col-sm-3 control-label">请选择excel文件:</label>' +
  2518. '<div class="col-sm-6">' +
  2519. '<input type="file" id="excel_file" class="form-control">' +
  2520. '<input type="hidden" id="excel_path">' +
  2521. '</div>' +
  2522. '<div class="col-sm-2"><button class="btn btn-info" type="button" onclick="units.fileUpload()">上传</button></div>' +
  2523. '</div>' +
  2524. ' <div class="form-group">' +
  2525. '<div class="col-sm-6 col-sm-offset-3">' +
  2526. '<a href="{{asset('tpl/optimize_page.xlsx')}}">请下载导入模板</a>' +
  2527. '</div>' +
  2528. '</div>' +
  2529. '</form>' +
  2530. '</div>';
  2531. openIndex = layer.open({
  2532. type: 1,
  2533. content: str,
  2534. area: ['60%', '30%'],
  2535. title: '导入关键词',
  2536. });
  2537. },
  2538. export: function () {
  2539. window.open('/admin/sites/optimize-page/export?siteId={{$siteId}}');
  2540. },
  2541. clearOptimize: function () {
  2542. layer.confirm('您确定要删除吗?', {icon: 3, title: '删除信息'}, function (index, layero) {
  2543. layer.close(index);
  2544. $("#optimize_page").find(".form-group").each(function (inx) {
  2545. if (inx != 0) {
  2546. $(this).remove()
  2547. }
  2548. })
  2549. });
  2550. },
  2551. fileUpload: function () {
  2552. var config = {
  2553. url: '/admin/tool/excel-upload'
  2554. };
  2555. config.success = function (result) {
  2556. var data = {excel_path: result.data.file_url, siteId: "{{$siteId}}"};
  2557. var config = {
  2558. url: '/admin/sites/optimize-page/import',
  2559. type: 'post',
  2560. data: data,
  2561. success: function (result) {
  2562. layer.msg(result.message, {icon: 6, time: 1500}, function () {
  2563. layer.close(openIndex);
  2564. window.location.reload();
  2565. });
  2566. }
  2567. };
  2568. tips.ajax(config);
  2569. };
  2570. tips.fileUpload($("#excel_file"), config);
  2571. },
  2572. addOptimizePage: function () {
  2573. if ($("#optimize_page").find(":checkbox").length >= 20) {
  2574. layer.alert("最多只能添加20个", {icon: 5});
  2575. return;
  2576. }
  2577. $("#optimize_page").append($("#optimize_page_str").html());
  2578. },
  2579. removeOptimizePage: function (_this) {
  2580. $(_this).parent().parent().remove();
  2581. },
  2582. optimizePageSave: function () {
  2583. var groupData = [], optimize_page_keyword, optimize_page_url;
  2584. $("#optimize_page").find(".form-group").each(function () {
  2585. //console.log($(this).find("[name=optimize_page_keyword]").val());
  2586. optimize_page_keyword = $.trim($(this).find("[name=optimize_page_keyword]").val());
  2587. optimize_page_url = $.trim($(this).find("[name=optimize_page_url]").val());
  2588. if (optimize_page_keyword != "" || optimize_page_url != "") {
  2589. groupData.push({
  2590. keyword: optimize_page_keyword,
  2591. url: optimize_page_url,
  2592. is_optimize: $(this).find("[name=optimize_page_is_optimize]").prop("checked") ? 1 : 0,
  2593. id: $(this).find("[name=optimize_page_id]").val()
  2594. });
  2595. }
  2596. });
  2597. console.log(groupData);
  2598. var ajaxConfig = {
  2599. url: '/admin/sites/' + "{{$siteId}}" + '/optimize-page',
  2600. type: 'put',
  2601. data: {groupData: groupData},
  2602. success: function (result) {
  2603. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2604. // tips.closeParentLayer();
  2605. // window.parent.tips.tableRefresh('#table');
  2606. });
  2607. }
  2608. };
  2609. tips.ajax(ajaxConfig);
  2610. },
  2611. computeGoogleBidTotalFee: function () {
  2612. var total = 0;
  2613. var val;
  2614. $('[name="google_bid_fee"]').each(function (inx, item) {
  2615. val = parseInt($(this).val());
  2616. if (!isNaN(val)) {
  2617. total += val
  2618. }
  2619. });
  2620. var bid_give_fee = $("[name=bid_give_fee]").val();
  2621. bid_give_fee = parseInt(bid_give_fee);
  2622. if (!isNaN(bid_give_fee)) {
  2623. total += bid_give_fee
  2624. }
  2625. $("#googleBidFeeTotal").text(total)
  2626. },
  2627. addGoogleBid: function () {
  2628. $("#google_bid_chunk").append($("#add_google_bid_str").html());
  2629. var ele = $('[name="google_bid_time"]');
  2630. var total = 0;
  2631. ele.each(function () {
  2632. total += 1;
  2633. });
  2634. console.log('total=' + total);
  2635. ele.each(function (inx, item) {
  2636. if ((total - 2) === (inx)) { //倒数第二个
  2637. console.log(total, ele.length);
  2638. laydate.render({
  2639. elem: $(this)[0],
  2640. type: 'datetime'
  2641. });
  2642. }
  2643. });
  2644. },
  2645. removeGoogleBid: function (_this) {
  2646. $(_this).parent().parent().remove();
  2647. units.computeGoogleBidTotalFee()
  2648. },
  2649. changeBidStatus: function () {
  2650. var isChecked = BidJsSwitch.checked ? 1 : 0;
  2651. var ajaxConfig = {
  2652. url: '/admin/sites/' + "{{$siteId}}" + '/bid-status',
  2653. type: 'put',
  2654. data: {bidStatus: isChecked},
  2655. success: function () {
  2656. }
  2657. };
  2658. tips.ajax(ajaxConfig);
  2659. },
  2660. changeSpecArticle: function () {
  2661. var isChecked = SpecJsSwitch.checked ? 1 : 0;
  2662. var ajaxConfig = {
  2663. url: '/admin/sites/' + "{{$siteId}}" + '/spec-article',
  2664. type: 'put',
  2665. data: {spec_article: isChecked},
  2666. success: function () {
  2667. }
  2668. };
  2669. tips.ajax(ajaxConfig);
  2670. },
  2671. changeCDNStatus: function () {
  2672. var isChecked = CDBJsSwitch.checked ? 1 : 0;
  2673. var ajaxConfig = {
  2674. url: '/admin/sites/' + "{{$siteId}}" + '/cdn-status',
  2675. type: 'put',
  2676. data: {status: isChecked},
  2677. success: function () {
  2678. }
  2679. };
  2680. tips.ajax(ajaxConfig);
  2681. },
  2682. changeRefundStatus: function () {
  2683. var isChecked = RefundJsSwitch.checked ? 1 : 0;
  2684. var ajaxConfig = {
  2685. url: '/admin/sites/' + "{{$siteId}}" + '/refund-status',
  2686. type: 'put',
  2687. data: {status: isChecked},
  2688. success: function () {
  2689. }
  2690. };
  2691. tips.ajax(ajaxConfig);
  2692. },
  2693. changeDomainStatus: function () {
  2694. var isChecked = DomainJsSwitch.checked ? 1 : 0;
  2695. var ajaxConfig = {
  2696. url: '/admin/sites/' + "{{$siteId}}" + '/domain-status',
  2697. type: 'put',
  2698. data: {status: isChecked},
  2699. success: function () {
  2700. }
  2701. };
  2702. tips.ajax(ajaxConfig);
  2703. },
  2704. changeRenewStatus: function () {
  2705. var isChecked = RenewJsSwitch.checked ? 1 : 0;
  2706. var ajaxConfig = {
  2707. url: '/admin/sites/' + "{{$siteId}}" + '/renew-status',
  2708. type: 'put',
  2709. data: {status: isChecked},
  2710. success: function () {
  2711. }
  2712. };
  2713. tips.ajax(ajaxConfig);
  2714. },
  2715. changeCurrentMonthOnline: function () {
  2716. var isChecked = OnlineSwitch.checked ? 1 : 0;
  2717. var ajaxConfig = {
  2718. url: '/admin/sites/' + "{{$siteId}}" + '/online-status',
  2719. type: 'put',
  2720. data: {status: isChecked},
  2721. success: function () {
  2722. }
  2723. };
  2724. tips.ajax(ajaxConfig);
  2725. },
  2726. changeCertStatus: function () {
  2727. var isChecked = CertJsSwitch.checked ? 1 : 0;
  2728. var ajaxConfig = {
  2729. url: '/admin/sites/' + "{{$siteId}}" + '/cert-status',
  2730. type: 'put',
  2731. data: {status: isChecked},
  2732. success: function () {
  2733. }
  2734. };
  2735. tips.ajax(ajaxConfig);
  2736. },
  2737. changeCaseStatus: function () {
  2738. var isChecked = CaseJsSwitch.checked ? 1 : 0;
  2739. if (isChecked === 0) {
  2740. $('.example').hide();
  2741. $('.case').hide();
  2742. } else {
  2743. $('.example').show();
  2744. $('.case').show();
  2745. }
  2746. var ajaxConfig = {
  2747. url: '/admin/sites/' + "{{$siteId}}" + '/case-status',
  2748. type: 'put',
  2749. data: {status: isChecked},
  2750. success: function () {
  2751. }
  2752. };
  2753. tips.ajax(ajaxConfig);
  2754. },
  2755. changeIsBq: function () {
  2756. var isChecked = BqJsSwitch.checked ? 1 : 0;
  2757. var ajaxConfig = {
  2758. url: '/admin/sites/' + "{{$siteId}}" + '/bq-status',
  2759. type: 'put',
  2760. data: {status: isChecked},
  2761. success: function () {
  2762. }
  2763. };
  2764. tips.ajax(ajaxConfig);
  2765. },
  2766. socialSave: function (type) {
  2767. var formValues = tips.getFormValues('#' + type);
  2768. var data = {};
  2769. data[type] = formValues;
  2770. data.type = type;
  2771. var ajaxConfig = {
  2772. url: '/admin/sites/' + "{{$siteId}}" + '/social',
  2773. type: 'post',
  2774. data: data,
  2775. success: function (result) {
  2776. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2777. // tips.closeParentLayer();
  2778. // window.parent.tips.tableRefresh('#table');
  2779. });
  2780. }
  2781. };
  2782. tips.ajax(ajaxConfig);
  2783. },
  2784. accountSave: function (type) {
  2785. var formValues = tips.getFormValues('#account');
  2786. var ajaxConfig = {
  2787. url: '/admin/sites/' + "{{$siteId}}" + '/account',
  2788. type: 'post',
  2789. data: formValues,
  2790. success: function (result) {
  2791. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2792. // tips.closeParentLayer();
  2793. // window.parent.tips.tableRefresh('#table');
  2794. });
  2795. }
  2796. };
  2797. tips.ajax(ajaxConfig);
  2798. },
  2799. save: function (type) {
  2800. var data, url = '/admin/sites/' + "{{$siteId}}" + '/overview_view';
  2801. if (type === 1) {
  2802. data = units.basic(type);
  2803. } else if (type === 2) {
  2804. data = units.detail(type);
  2805. } else if (type === 3) {
  2806. data = units.people(type);
  2807. } else if (type === 4) {
  2808. data = units.timeFrame(type);
  2809. } else if (type === 5) {
  2810. data = units.server(type);
  2811. }
  2812. var ajaxConfig = {
  2813. url: url,
  2814. type: 'put',
  2815. data: data,
  2816. success: function (result) {
  2817. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2818. // tips.closeParentLayer();
  2819. // window.parent.tips.tableRefresh('#table');
  2820. });
  2821. }
  2822. };
  2823. tips.ajax(ajaxConfig);
  2824. },
  2825. basic: function (type) {
  2826. var contacts = [];
  2827. $(".contacts").each(function () { //客户联系人
  2828. contacts.push({
  2829. name: $(this).find("[name=contact_name]").val(),
  2830. email: $(this).find("[name=contact_email]").val(),
  2831. mobile: $(this).find("[name=contact_mobile]").val(),
  2832. position: $(this).find("[name=contact_position]").val()
  2833. });
  2834. });
  2835. var areaText = [];
  2836. $("[name=area_text]").each(function () { //地区
  2837. if ($(this).val().length !== 0) {
  2838. areaText.push($(this).val());
  2839. }
  2840. });
  2841. var site = tips.getFormValues('#basic');
  2842. if (site.report_day) {
  2843. site.report_day = parseInt(site.report_day);
  2844. }
  2845. site.contacts = contacts;
  2846. site.area_text = areaText;
  2847. site.contract_ids = $("#contract_ids").val();
  2848. var infoList = [];
  2849. $('input[name="enterprise_nature"]:checked').each(function () {
  2850. infoList.push($(this).val());
  2851. });
  2852. site.enterprise_nature = infoList.toString();
  2853. var caseList = [];
  2854. $('input[name="case_ids"]:checked').each(function () {
  2855. caseList.push($(this).val());
  2856. });
  2857. site.case_ids = caseList.toString();
  2858. return {type: type, site: site};
  2859. },
  2860. detail: function (type) {
  2861. var googleBid = [];
  2862. $("[name=google_bid_fee]").each(function () {
  2863. googleBid.push({
  2864. google_bid_fee: $(this).val(),
  2865. google_bid_time: $(this).siblings("input").val()
  2866. });
  2867. });
  2868. googleBid.pop();
  2869. var payment = {
  2870. //修改
  2871. is_full_order: $("#is_full_order").val(),
  2872. head_time: $("#head_time").val(),
  2873. head_invoicing_time: $("#head_invoicing_time").val(),
  2874. done_invoicing_time: $("#done_invoicing_time").val(),
  2875. done_receivable_time: $("#done_receivable_time").val(),
  2876. done_receipts_time: $("#done_receipts_time").val(),
  2877. reach_invoicing_time: $("#reach_invoicing_time").val(),
  2878. reach_receivable_time: $("#reach_receivable_time").val(),
  2879. reach_receipts_time: $("#reach_receipts_time").val(),
  2880. service_invoicing_time: $("#service_invoicing_time").val(),
  2881. service_receivable_time: $("#service_receivable_time").val(),
  2882. service_receipts_time: $("#service_receipts_time").val(),
  2883. renewal_begin_time: $("#renewal_begin_time").val(),
  2884. renewal_end_time: $("#renewal_end_time").val(),
  2885. renewal_invoicing_time: $("#renewal_invoicing_time").val(),
  2886. //修改
  2887. head: $("#head").val(),
  2888. head_type: $("#head_type").val(),
  2889. head_invoicing_type: $("#head_invoicing_type").val(),
  2890. done: $("#done").val(),
  2891. done_type: $("#done_type").val(),
  2892. done_invoicing_type: $("#done_invoicing_type").val(),
  2893. reach: $("#reach").val(),
  2894. reach_type: $("#reach_type").val(),
  2895. reach_invoicing_type: $("#reach_invoicing_type").val(),
  2896. service_final_payment: $("#service_final_payment").val(),
  2897. service_final_payment_type: $("#service_final_payment_type").val(),
  2898. service_final_payment_invoicing_type: $("#service_final_payment_invoicing_type").val(),
  2899. renewal: $("#renewal").val(),
  2900. renewal_type: $("#renewal_type").val(),
  2901. renewal_invoicing_type: $("#renewal_invoicing_type").val(),
  2902. contract_total_fee: $("#contract_total_fee").val(),
  2903. google_optimize_fee: $("#google_optimize_fee").val(),
  2904. refund: $("#refund").val(),
  2905. refund_reason: $("#refund_reason").val(),
  2906. refund_reason_analyze: $("#refund_reason_analyze").val(),
  2907. not_renewed_reason: $("#not_renewed_reason").val(),
  2908. not_renewed_reason_analyze: $("#not_renewed_reason_analyze").val(),
  2909. remarks: $("#remarks").val(),
  2910. bid_give_fee: $("#bid_give_fee").val(),
  2911. google_bid: googleBid,
  2912. bid_score: $("#bid_score").val(),
  2913. bid_score_time: $("#bid_score_time").val(),
  2914. bid_login_account: $("#bid_login_account").val(),
  2915. bid_account_online_time: $("#bid_account_online_time").val(),
  2916. bid_account_pause_time: $("#bid_account_pause_time").val(),
  2917. wiki_fee: $("#wiki_fee").val(),
  2918. other_fee: $("#other_fee").val()
  2919. };
  2920. var payment1 = {
  2921. renewal_at: $("#renewal_at").val(),
  2922. is_refund: $("#is_refund").val(),
  2923. refund_date: $("#refund_date").val(),
  2924. };
  2925. return {type: type, payment: payment,payment1:payment1};
  2926. },
  2927. people: function (type) {
  2928. var allot = {
  2929. manager_ids: $("#manager_ids").val(),
  2930. manage_helper_ids: $("#manage_helper_ids").val(),
  2931. designer_ids: $("#designer_ids").val(),
  2932. web_ids: $("#web_ids").val(),
  2933. optimizer_ids: $("#optimizer_ids").val(),
  2934. editor_ids: $("#editor_ids").val(),
  2935. server_ids: $("#server_ids").val(),
  2936. article_ids: $("#article_ids").val(),
  2937. bid_user_ids: $("#bid_user_ids").val(),
  2938. seller_ids: $("#seller_ids").val(),
  2939. article_edit_ids: $("#article_edit_ids").val(),
  2940. external_link_ids: $("#external_link_ids").val(),
  2941. chongqing_link_ids: $("#chongqing_link_ids").val(),
  2942. optimization_editing_ids: $("#optimization_editing_ids").val()
  2943. };
  2944. return {type: type, allot: allot};
  2945. },
  2946. timeFrame: function (type) {
  2947. var site = tips.getFormValues('#time');
  2948. if (site.report_day) {
  2949. site.report_day = parseInt(site.report_day);
  2950. }
  2951. return {type: type, site: site};
  2952. },
  2953. server: function (type) {
  2954. var site = tips.getFormValues('#server');
  2955. if (site.report_day) {
  2956. site.report_day = parseInt(site.report_day);
  2957. }
  2958. return {type: type, site: site};
  2959. },
  2960. delSitesTaskFlow: function () {
  2961. layer.confirm('您确定要清空建站流程吗?', {icon: 3, title: '清空建站流程'}, function (index, layero) {
  2962. layer.close(index);
  2963. var url = '/admin/flow/delSitesTaskFlow/{{$siteId}}';
  2964. var ajaxConfig = {
  2965. url: url,
  2966. type: 'put',
  2967. data: {},
  2968. success: function (result) {
  2969. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2970. });
  2971. }
  2972. };
  2973. tips.ajax(ajaxConfig);
  2974. });
  2975. }
  2976. };
  2977. $(document).on('click', '[name=file_upload]', function () {
  2978. $(this).next().trigger('click');
  2979. });
  2980. $(document).on('change', '[name=uploadFile]', function () {
  2981. var _this = this;
  2982. if (!$(this)[0].files[0]) {
  2983. return;
  2984. }
  2985. var formData = new FormData();
  2986. formData.append('files[]', $(this)[0].files[0]);
  2987. formData.append('siteId', "{{$siteId}}");
  2988. var maxSize = 4096;//文件上传大小限制
  2989. var size = $(this)[0].files[0].size;
  2990. var fileSize = (size / 1024).toFixed(2);
  2991. if (fileSize > maxSize) {
  2992. layer.alert("上传文件不许超过4MB", {icon: 5});
  2993. return;
  2994. }
  2995. var ln;
  2996. $.ajax({
  2997. url: '/admin/stencil/bulkUpload',
  2998. type: 'POST',
  2999. cache: false,
  3000. data: formData,
  3001. processData: false,
  3002. contentType: false,
  3003. beforeSend: function () {
  3004. ln = layer.load();
  3005. },
  3006. complete: function () {
  3007. layer.close(ln);
  3008. },
  3009. success: function (result) {
  3010. var data = result.data[0];
  3011. $('#' + $(_this).data('for')).attr('src', data.file_url);
  3012. $(_this).next().val(data.file_url);
  3013. },
  3014. error: function (XMLHttpRequest) {
  3015. if (XMLHttpRequest.status === 500) {
  3016. layer.alert("异步请求失败", {icon: 5});
  3017. return;
  3018. }
  3019. layer.alert(JSON.parse(XMLHttpRequest.responseText).message, {icon: 0});
  3020. }
  3021. });
  3022. });
  3023. //修改
  3024. function full_order_info(site_id) {
  3025. layer.msg('合同金额与套餐金额相同,没有折扣优惠、赠送等算全签单');
  3026. document.getElementById('title_new').style.display='block';
  3027. // //走open查询出对应信息
  3028. // layer.open({
  3029. // type: 2,
  3030. // content: '/admin/sites/' + site_id + '/overview_set_meal',
  3031. // area: ['90%', '60%'],
  3032. // title: '套餐信息',
  3033. // });
  3034. }
  3035. //修改
  3036. </script>
  3037. @endsection