overview_bidding.blade.php 177 KB

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