123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- @extends('admin/layout')
- @section('header')
- @include('admin/process/component/style')
- @endsection
- @section('content')
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeIn">
- <div class="tabs-container fix">
- <div class="tab-content-boxs">
- @php $scrollTo=null; @endphp
- <div id="vertical-timeline" class="vertical-container light-timeline">
- @foreach($processes as $process)
- @php
- $siteProcess=$processIdMapSiteProcessList[$process->id]??null;
- $active=$siteProcess['active']??null;
- @endphp
- <div
- class="vertical-timeline-block fix @if(in_array($process->id,[4,8,12,16,17,22,26])) ons @endif @if(in_array($process->id,[5,6,7,8,13,14,15,16,18])) rt @endif @if($process->id==17) widths @endif"
- id="process_{{$process->id}}">
- <div class="vertical-timeline-icon hide {{$process->color??''}}">
- <i class="fa {{$process->icon??''}}"></i>
- </div>
- <div class="vertical-timeline-content">
- {{--<h2>会议</h2>--}}
- <div>
- <div class="titles-boxs {{$process->color??''}}">
- <i></i>
- {{$process->title??''}}
- </div>
- @if($active==1)
- <span class="flow_done">已完成</span>
- @elseif($active==2)
- @php
- $scrollTo=$scrollTo?:$process->id;
- @endphp
- <span class="flow_processing">待处理</span>
- @endif
- </div>
- {{--网页确认--}}
- @if($process->id==9)
- <button class="btn btn-sm btn-info pull-left">域名:{{$site->domain}}</button>
- @endif
- {{--@if($process->id==1&& !$siteProcess)--}}
- {{--<button class="btn btn-sm btn-info" onclick="units.initProcess({{$site->id}})">--}}
- {{--初始化流程--}}
- {{--</button>--}}
- {{--@endif--}}
- @if($active==2)
- @php $nowProcessConfirm = sprintf('process-%s-confirm',$process->id); @endphp
- {{--关键词确认 设计确认 网页确认 上线确认--}}
- @if(in_array($process->id ,[5,8,9,15]))
- <a href="javascript:;"
- {{--评分客户反馈--}}
- @if(in_array($process->id ,[5,9,15,17])&&$siteProcess)
- onclick="units.scoreFeedback({{$siteProcess['id']}})"
- @else
- onclick="units.confirm({{$siteProcess['id']}})"
- @endif
- class="btn btn-sm btn-info"
- >
- 确认
- </a>
- @endif
- @endif
- @php $nowProcessEdit= sprintf('process-%s-edit',$process->id); @endphp
- {{---需要文件上传功能--}}
- {{--@if(in_array($process->id,[3,4,5,12])&&$siteProcess)--}}
- {{--@php $fileTitle=$siteProcess['file_list']?'文件浏览':'文件上传'; @endphp--}}
- {{--<button onclick="units.triggerFile({{$siteProcess['id'].','.'"'.$fileTitle.'"'}})"--}}
- {{--class="btn btn-sm btn-primary" style="margin-right: 10px">--}}
- {{--{{$fileTitle}}--}}
- {{--</button>--}}
- {{--@endif--}}
- {{--@if(in_array($process->id ,[5,9,15,17])&&$siteProcess)--}}
- {{--<a href="javascript:;"--}}
- {{--onclick="units.reply({{$siteProcess['id']}})"--}}
- {{--class="btn btn-sm btn-info" style="margin-right: 10px"--}}
- {{-->回访</a>--}}
- {{--@endif--}}
- {{--@if(in_array($process->id ,[11,13,16])&&$siteProcess)--}}
- {{--<a href="javascript:;"--}}
- {{--onclick="units.checkItem({{$siteProcess['id']}})"--}}
- {{--class="btn btn-sm btn-info" style="margin-right: 10px"--}}
- {{-->--}}
- {{--@php--}}
- {{--$checkItemScopes=array_column($process->check_item_scopes,'inx');--}}
- {{--$diff=array_diff($checkItemScopes,$siteProcess['check_items']??[]);--}}
- {{--@endphp--}}
- {{--@if($diff)--}}
- {{--待检查--}}
- {{--@else--}}
- {{--已检查--}}
- {{--@endif--}}
- {{--</a>--}}
- {{--@endif--}}
- {{--程序开发--}}
- @if($process->id==7)
- @if(!empty($siteProcess['deploy']))
- <a href="http://{{$siteProcess['deploy']['domain']??''}}"
- class="btn btn-sm btn-default" target="_blank"
- style="margin-right: 10px;float: left;">部署域名: {{$siteProcess['deploy']['domain']??''}}</a>
- @endif
- {{--@if($active==2)--}}
- {{--<a href="javascript:;"--}}
- {{--onclick="units.deploy({{$siteProcess['id']}})"--}}
- {{--class="btn btn-sm btn-warning"--}}
- {{--style="margin-right: 10px">部署</a>--}}
- {{--@endif--}}
- @endif
- {{--续签--}}
- {{--@if($process->id==18&&$siteProcess)--}}
- {{--<a href="javascript:;"--}}
- {{--onclick="units.renewForm({{$siteProcess['id']}})"--}}
- {{--class="btn btn-sm btn-info" style="margin-right: 10px"--}}
- {{-->续签表单</a>--}}
- {{--<a href="javascript:;"--}}
- {{--onclick="units.renewHistory({{$siteProcess['site_id']}})"--}}
- {{--class="btn btn-sm btn-info" style="margin-right: 10px"--}}
- {{-->续签历史</a>--}}
- {{--@endif--}}
- </div>
- @if($process->id==1 || $process->id==19 || $process->id==23)
- <div
- class="lefts-div-boxs @if($process->id==1) ones @endif @if($process->id==19) twos @endif @if($process->id==23) threes @endif">
- <div class="lists">
- @if($process->id==1)
- 建站期
- <i></i>
- @endif
- @if($process->id==19)
- 优化期
- <i></i>
- @endif
- @if($process->id==23)
- 服务期
- @endif
- </div>
- </div>
- @endif
- </div>
- @endforeach
- </div>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- <script>
- $(".li-lists").click(function () {
- var i = $(this).index();
- $(this).addClass("active").siblings().removeClass("active");
- $(".vertical-timeline-block").eq(i).addClass("ons").siblings().removeClass("ons");
- });
- $(".vertical-timeline-block").each(function () {
- if (!!$(this).find("span").hasClass("flow_done")) {
- $(this).addClass("active");
- }
- });
- $(".vertical-timeline-block").each(function () {
- if (!!$(this).find("span").hasClass("flow_processing")) {
- $(this).addClass("selects");
- }
- });
- window.onload = function () {
- $(function () {
- @if($scrollTo)
- var _height1 = document.getElementById("process_{{$scrollTo}}").offsetTop;
- console.log(_height1);
- $('html,body').animate({scrollTop: _height1}, 500);
- @endif
- });
- };
- var units = {
- initProcess: function (siteId) {
- layer.confirm('是否初始化流程?', {icon: 3, title: '初始化流程'}, function () {
- var config = {url: '/admin/process/site/' + siteId + '/init'};
- config.success = function (result) {
- layer.msg(result.message, {icon: 6, time: 1500}, function () {
- window.location.reload();
- });
- };
- tips.ajax(config);
- });
- },
- triggerFile: function (site_process_id, title) {
- layer.open({
- type: 2,
- content: ['/admin/process/file-upload/' + site_process_id],
- area: ['60%', '80%'],
- title: title
- });
- },
- scoreFeedback: function (site_process_id) {
- layer.open({
- type: 2,
- content: ['/admin/process/score/' + site_process_id],
- area: ['60%', '60%'],
- title: '评分'
- });
- },
- reply: function (site_process_id) {
- layer.open({
- type: 2,
- content: ['/admin/process/reply/' + site_process_id],
- area: ['60%', '60%'],
- title: '回访记录'
- });
- },
- checkItem: function (site_process_id) {
- layer.open({
- type: 2,
- content: ['/admin/process/check-item/' + site_process_id],
- area: ['60%', '100%'],
- title: '检查项'
- });
- },
- renewForm: function (site_process_id) {
- layer.open({
- type: 2,
- content: ['/admin/process/renew-form/' + site_process_id],
- area: ['60%', '80%'],
- title: '续签表单'
- });
- },
- renewHistory: function (site_id) {
- layer.open({
- type: 2,
- content: ['/admin/process/renew-history/' + site_id],
- area: ['60%', '100%'],
- title: '续签历史'
- });
- },
- confirm: function (id) {
- layer.confirm('是否确认?', {icon: 3, title: '是否确认'}, function () {
- var config = {type: 'PUT', url: '/admin/process/confirm/' + id};
- config.success = function (result) {
- layer.msg(result.message, {icon: 6, time: 1500}, function () {
- window.location.reload();
- });
- };
- tips.ajax(config);
- });
- },
- deploy: function (site_process_id) { //部署
- var config = {
- type: 'GET',
- url: '/admin/process/deploy/' + site_process_id
- };
- config.success = function (result) {
- layer.msg(result.message, {icon: 6, time: 1500}, function () {
- window.location.reload();
- });
- };
- tips.ajax(config);
- }
- // customerInfo: function (siteId) {
- // layer.open({
- // title: '客户信息表',
- // type: 2,
- // content: '/admin/sites/' + siteId + '/customer?noSide=1',
- // area: ['90%', '90%']
- //
- // });
- // }
- };
- </script>
- @endsection
|