123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724 |
- <!DOCTYPE html>
- <html>
- <!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>引擎力-培养走向世界的企业</title>
- <meta name="keywords" content="引擎力后台">
- <meta name="description"
- content="引擎力定位于海外数字营销专家,用数据说话,引领外贸企业迈向全球化!拥有多项核心自主知识产权,一直在不断的发展和拓展我们的网络营销范围。拥有120余人海外推广团队,80%以上执创人员,5年以上专业外贸推广经验,为您的外贸网站量身定制打造高质量的流量及询盘。">
- <meta name="robots" content="noodp"/>
- <link rel="shortcut icon" href="{{asset('favicon.ico')}}">
- <link href="{{asset('css/bootstrap.min14ed.css?v=3.3.6')}}" rel="stylesheet">
- <link href="{{asset('css/font-awesome.min93e3.css?v=4.4.0')}}" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="{{asset('css/admin/flow/style.css')}}"/>
- <link href="{{asset('css/animate.min.css')}}" rel="stylesheet">
- </head>
- <body>
- <div class="sep-yql-header">
- <a href="/" class="sep-logo">
- <img src="/img/y-top-logo.png" alt=""/>
- </a>
- <div class="logo-texts" style="font-size: 30px">
- {{$siteInfo->cn_title??''}} 建站流程表(内部)@if($type==1)
- <a href="{{url('/admin/flow/siteConstructionProcess/'.$siteId.'/type/0')}}" style="color: #ffffff">[全部任务
- 切换]</a>@else
- <a href="{{url('/admin/flow/siteConstructionProcess/'.$siteId.'/type/1')}}" style="color: #ffffff">[个人任务
- 切换]</a> @endif <br>
- 进度{{$count-$toBeCompletedCount}}/{{$count}}
- @if(!empty($newNodeDate)) 原定{{$nodeDate}}上线,更新至{{$newNodeDate}}上线!@else {{$nodeDate}}上线! @endif [ctrl+s 保存]
- <button type="button" class="btn2" style="width: 100px; margin:0 auto;" onclick="deploy({{$siteId}})">部署测试站</button>
- @if(!empty($roles->is_super))
- <button type="button" class="btn2"
- onclick="resetting({{$siteId}})">
- 全部重置
- </button>
- @endif
- <br>
- <a href="http://{{$domain}}" target="_blank" style="color: #ffffff">{{$domain}}</a>
- </div>
- </div>
- <div class="sep-yql-body">
- <div class="sep-xmzl-boxs fix">
- <form action="{{url('/admin/flow/siteConstructionProcess/'.$siteId.'/type/'.$type)}}"
- method="post" id="form1">
- <div class="sep-container fix">
- <div class="sep-xwcgss-ul-boxs fix">
- @foreach($list as $stageInx=>$stage)
- @php
- static $num=0;
- $result=explode(':',$stageInx);
- if($result[2]=='进行中' || $result[2]=='未完成'){
- $num++;
- }
- @endphp
- <div class="xwcgss-lists @if($num==1 && $result[2]!='完成') active @endif fix">
- <div class="xwcgss-lists-titles fix">
- <div class="titles-left">
- @php
- echo $result[0].' ';
- if($result[2]=='完成'){
- echo "<span style='color:green;'>{$result[2]}</span>";
- }elseif ($result[2]=='未完成'){
- echo "<span style='color:red;'>{$result[2]}</span>";
- }else{
- echo "<span style='color:orange;'>{$result[2]}</span>";
- }
- @endphp
- </div>
- <div class="titles-right" style="font-size:16px">
- @php
- echo '阶段时间:'.$taskLastDateStart[$result[1]]??'';
- echo ' - '.$taskLastDateEnd[$result[1]]??'';
- @endphp
- </div>
- <div class="titles-right">
- </div>
- <div class="i-boxs" style="padding-left: -200px">
- </div>
- <div class="number-boxs">
- STEP
- <div class="nw">
- @php
- echo $result[1];
- @endphp
- </div>
- <div class="lines"></div>
- </div>
- </div>
- <div class="xwcgss-table-boxs fix">
- <table border="" cellspacing="" cellpadding="">
- <tr>
- <td colspan="14">
- @php
- echo $result[0];
- @endphp
- </td>
- </tr>
- <tr>
- <td style="width: 7%;text-align: center">状态/时间</td>
- <td style="width: 6%;text-align: center">具体事项</td>
- <td style="width: 7%;text-align: center">事项备注</td>
- <td style="width: 5%;text-align: center">负责人/工时<br>(单位:天)</td>
- <td style="width: 7%;text-align: center">验收标准</td>
- <td style="width: 5%;text-align: center">节点时间</td>
- <td style="width: 7%;text-align: center">逾期天数/原因</td>
- <td style="width: 7%;text-align: center">质检人员/质检打分</td>
- <td style="width: 7%;text-align: center">打分节点<br>(客户)</td>
- <td style="width: 10%;text-align: center">参考文档</td>
- <td style="width: 10%;text-align: center">备注</td>
- <td style="width: 3%;text-align: center">操作</td>
- </tr>
- @foreach($stage as $key=>$item)
- <tr>
- <td style="text-align: center">
- @if(empty($item['status']))
- <button type="button" style="margin:0 auto;" class="btn2"
- name="btnReset"
- onclick="taskByStatus(this,'#{{$item['id'].'-status'}}')">
- 未完成
- </button>
- @else
- <div style="text-align: center">{{$item['status']}}</div>
- <button type="button"
- style="margin:0 auto"
- class="btn"
- name="btnReset"
- onclick="taskByStatus(this,'#{{$item['id'].'-status'}}')">
- 完成
- </button>
- @endif
- <input type="hidden" name="{{$item['id'].'-status'}}"
- id="{{$item['id'].'-status'}}"
- value="{{$item['status']?? ''}}">
- </td>
- <td>
- <input type="hidden" name="{{$item['id'].'-id'}}"
- id="{{$item['id'].'-id'}}"
- value="{{$item['id']?? 0}}">
- <span style="font-weight:bold">{{$item['title']??''}}</span><br>
- </td>
- <td>
- <textarea name="{{$item['id'].'-memo'}}"
- id="{{$item['id'].'-memo'}}"
- style="border: none;width: 100%;height: 60px">{{$item['memo']??''}}
- </textarea>
- </td>
- <td>
- @foreach($item['roles'] as $key=>$value)
- @if($key==\App\Http\Models\Role::TYPE_CUSTOMER)
- {{--客户--}}
- <div class="person">
- <span class="workingHours">
- @if($roles->role_id ==\App\Http\Models\Role::TYPE_CUSTOMER)
- <span
- style="color:#893448 ">{{$siteName}}</span> @else {{$siteName}}
- @endif
- </span>
- </div>
- @endif
- @if($key==\App\Http\Models\Role::TYPE_SELLER)
- {{--销售--}}
- <div class="person">
- <span class="workingHours">
- <input type="hidden"
- id="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_SELLER}}"
- name="{{$item['id'].'-user_id-1'}}"
- value="{{$value->user_id??''}}">@if(!empty($value->user_id) && $roles->id == $value->user_id)
- <span
- style="color:#893448 ">{{$value->user_id??''}}</span> @else {{$value->nickname??''}} @endif
- </span>
- @if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
- <input type="text" class="form-control"
- style="width:50%;"
- name="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_SELLER}}"
- id="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_SELLER}}"
- value="{{$value->working_hours??''}}">
- @endif
- </div>
- @endif
- @if($key==\App\Http\Models\Role::TYPE_SERVER)
- {{--项目管家--}}
- <div class="person">
- <span class="workingHours">
- <input type="hidden"
- id="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_SERVER}}"
- name="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_SERVER}}"
- value="{{$value->user_id??''}}">
- @if(!empty($value->user_id) && $roles->id == $value->user_id)
- <span
- style="color:#893448 ">{{$value->nickname??'未分配项目管家'}}</span>
- @else {{$value->nickname??''}} @endif
- </span>
- @if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
- <input type="text" class="form-control"
- style="width:50%;"
- name="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_SERVER}}"
- id="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_SERVER}}"
- value="{{$value->working_hours??''}}">
- @endif
- </div>
- @endif
- @if($key==\App\Http\Models\Role::TYPE_MANAGE_HELPER)
- {{--项目经理--}}
- <div class="person">
- <span class="workingHours">
- <input type="hidden"
- id="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_MANAGE_HELPER}}"
- name="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_MANAGE_HELPER}}"
- value="{{$value->user_id??''}}">@if(!empty($value->user_id) && $roles->id == $value->user_id)
- <span
- style="color:#893448 ">{{$value->nickname??'未分配项目经理'}}</span> @else {{$value->nickname??'未分配项目经理'}} @endif
- </span>
- @if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
- <input type="text" class="form-control"
- style="width:50%;"
- name="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_MANAGE_HELPER}}"
- id="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_MANAGE_HELPER}}"
- value="{{$value->working_hours??''}}">
- @endif
- </div>
- @endif
- @if($key==\App\Http\Models\Role::TYPE_PLANNER)
- {{--策划--}}
- <div class="person">
- <span class="workingHours">
- <input type="hidden"
- id="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_PLANNER}}"
- name="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_PLANNER}}"
- value="{{$value->user_id??''}}">@if(!empty($value->user_id) && $roles->id == $value->user_id)
- <span
- style="color:#893448 ">{{$value->nickname??'未分配策划'}}</span> @else {{$value->nickname??'策划'}} @endif
- </span>
- @if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
- <input type="text" class="form-control"
- style="width:50%;"
- name="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_PLANNER}}"
- id="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_PLANNER}}"
- value="{{$value->working_hours??''}}">
- @endif
- </div>
- @endif
- @if($key==\App\Http\Models\Role::TYPE_AE)
- {{--采编--}}
- <div class="person">
- <span class="workingHours">
- <input type="hidden"
- id="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_AE}}"
- name="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_AE}}"
- value="{{$value->user_id??''}}">@if(!empty($value->user_id) && $roles->id == $value->user_id)
- <span
- style="color:#893448 ">{{$value->nickname??'未分配采编'}}</span> @else {{$value->nickname??'未分配采编'}} @endif
- </span>
- @if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
- <input type="text" class="form-control"
- style="width:50%;"
- name="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_AE}}"
- id="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_AE}}"
- value="{{$value->working_hours??''}}">
- @endif
- </div>
- @endif
- @if($key==\App\Http\Models\Role::TYPE_WEB)
- {{--前端--}}
- <div class="person">
- <span class="workingHours">
- <input type="hidden"
- id="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_WEB}}"
- name="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_WEB}}"
- value="{{$value->user_id??''}}">@if(!empty($value->user_id) && $roles->id == $value->user_id)
- <span
- style="color:#893448 ">{{$value->nickname??'未分配前端'}}</span> @else {{$value->nickname??'未分配前端'}} @endif
- </span>
- @if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
- <input type="text" class="form-control"
- style="width:50%;"
- name="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_WEB}}"
- id="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_WEB}}"
- value="{{$value->working_hours??''}}">
- @endif
- </div>
- @endif
- @if($key==\App\Http\Models\Role::TYPE_DESIGNER)
- {{--设计--}}
- <div class="person">
- <span class="workingHours">
- <input type="hidden"
- id="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_DESIGNER}}"
- name="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_DESIGNER}}"
- value="{{$value->user_id??''}}">@if(!empty($value->user_id) && $roles->id == $value->user_id)
- <span
- style="color:#893448 ">{{$value->nickname??'未分配设计'}}</span> @else {{$value->nickname??'未分配设计'}} @endif
- </span>
- @if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
- <input type="text" class="form-control"
- style="width:50%;"
- name="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_DESIGNER}}"
- id="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_DESIGNER}}"
- value="{{$value->working_hours??''}}">
- @endif
- </div>
- @endif
- @if($key==\App\Http\Models\Role::TYPE_QUALITY)
- {{--质检--}}
- <div class="person">
- <span class="workingHours">
- <input type="hidden"
- id="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_QUALITY}}"
- name="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_QUALITY}}"
- value="{{$value->user_id??''}}">@if(!empty($value->user_id) && $roles->id == $value->user_id)
- <span
- style="color:#893448 ">{{$value->nickname??'未分配质检'}}</span> @else {{$value->nickname??'未分配质检'}} @endif
- </span>
- @if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
- <input type="text" class="form-control"
- style="width:50%;"
- name="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_QUALITY}}"
- id="{{$item['id'].'-working_hours-&'.\App\Http\Models\Role::TYPE_QUALITY}}"
- value="{{$value->working_hours??''}}">
- @endif
- </div>
- @endif
- @if($key==\App\Http\Models\Role::TYPE_OPTIMIZER)
- {{--优化--}}
- <div class="person">
- <span class="workingHours">
- <input type="hidden"
- id="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_OPTIMIZER}}"
- name="{{$item['id'].'-user_id-'.\App\Http\Models\Role::TYPE_OPTIMIZER}}"
- value="{{$value->user_id??''}}">@if(!empty($value->user_id) && $roles->id == $value->user_id)
- <span
- style="color:#893448 ">{{$value->nickname??'未分配优化师'}}</span> @else {{$value->nickname??'未分配优化师'}} @endif
- </span>
- @if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
- <input type="text" class="form-control"
- style="width:50%;"
- name="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_OPTIMIZER}}"
- id="{{$item['id'].'-working_hours-'.\App\Http\Models\Role::TYPE_OPTIMIZER}}"
- value="{{$value->working_hours??''}}">
- @endif
- </div>
- @endif
- @endforeach
- </td>
- <td>
- {{$item['acceptance']??''}}
- </td>
- <td>
- {{$item['node']??''}}
- <br>
- @if(strtotime($item['node_date'])<strtotime($date))
- <span
- style="color:#893448;font-size: 14px;font-weight:bold;">{{$item['node_date']??''}}</span>
- @else
- <span
- style="color:#4ea397;font-size: 14px;font-weight:bold;">{{$item['node_date']??''}}</span>
- @endif
- </td>
- <td style="padding-left: 10px">
- @php
- //完成时间>节点时间、未完成时间小于当天时间时为逾期
- if(!empty($item['status'])){
- if(strtotime(date('Y-m-d',strtotime($item['status'])))>strtotime($item['node_date'])){
- $beOverdueDay=(strtotime(date('Y-m-d',strtotime($item['status'])))-strtotime($item['node_date']))/3600/24;
- echo '逾期'.round($beOverdueDay).'天';
- }
- }else{
- if(strtotime($item['node_date'])< strtotime(date('Y-m-d'))){
- $beOverdueDay=(strtotime(date('Y-m-d'))-strtotime($item['node_date']))/3600/24;
- echo '逾期'.round($beOverdueDay).'天';
- }
- }
- @endphp
- @if(!empty($item['status']))
- @if(strtotime(date('Y-m-d',strtotime($item['status'])))>strtotime($item['node_date']))
- <select class="form-control" style="width:100%;"
- name="{{$item['id'].'-reasons_for_overdue'}}"
- id="{{$item['id'].'-reasons_for_overdue'}}">
- @foreach($reasonsForOverdueList as $k=>$v)
- <option value="{{$k}}"
- @if(!empty($item['reasons_for_overdue']) && $item['reasons_for_overdue']==$k) selected @endif>{{$v}}</option>
- @endforeach
- </select>
- @endif
- @else
- @if(strtotime($item['node_date'])< strtotime(date('Y-m-d')))
- <select class="form-control" style="width:100%;"
- name="{{$item['id'].'-reasons_for_overdue'}}"
- id="{{$item['id'].'-reasons_for_overdue'}}">
- @foreach($reasonsForOverdueList as $k=>$v)
- <option value="{{$k}}"
- @if(!empty($item['reasons_for_overdue']) && $item['reasons_for_overdue']==$k) selected @endif>{{$v}}</option>
- @endforeach
- </select>
- @endif
- @endif
- </td>
- <td>
- @if(!empty($item['is_inspection_score']))
- 媛媛、笑笑
- <select class="form-control" style="width:100%;"
- name="{{$item['id'].'-inspection_score'}}"
- id="{{$item['id'].'-inspection_score'}}">
- <option value="0">未评分</option>
- @foreach($scoreList as $k=>$v)
- <option value="{{$k}}"
- @if(!empty($item['inspection_score']) &&!empty($item['inspection_score']) && $item['inspection_score']==$k) selected @endif>{{$v}}</option>
- @endforeach
- </select>
- @endif
- </td>
- <td>
- @if(!empty($item['client_score']))
- {{$item['client_score']}}
- @endif
- </td>
- <td>
- <ul>
- @if(isset($item['file_list']))
- @foreach(\GuzzleHttp\json_decode($item['file_list'],true) as $value)
- <li>
- <a href="https://yqlguestdata.oss-cn-hangzhou.aliyuncs.com/{{$value}}"
- download="https://yqlguestdata.oss-cn-hangzhou.aliyuncs.com/{{$value}}">{{$value}}</a>
- </li>
- @endforeach
- @endif
- </ul>
- </td>
- <td>
- <textarea name="{{$item['id'].'-overdue_memo'}}"
- id="{{$item['id'].'-overdue_memo'}}"
- style="border: none;width: 100%;height: 60px">{{$item['overdue_memo']}}
- </textarea>
- </td>
- <td>
- <button type="button" class="btn2"
- onclick="taskResetting({{$item['id']}})"
- style="width: 70px; margin:0 auto;">重置
- </button>
- </td>
- </tr>
- @endforeach
- </table>
- </div>
- <div class="number-boxs">
- STEP
- <div class="nw">
- @php
- echo $result[1];
- @endphp
- </div>
- <div class="lines"></div>
- </div>
- </div>
- @endforeach
- </div>
- </div>
- <div class="sep-gzgh-boxs fix">
- <div class="sep-container fix">
- <div class="gzgh-boxs fix">
- <div class="sep-gzgh-titles-boxs fix">
- 工作规划与记录
- </div>
- <div class="fix">
- <table border="" cellspacing="" cellpadding="">
- <tr>
- <td colspan="6">当周工作安排</td>
- </tr>
- <tr>
- <td class="gtj-centers" style="width: 15%">阶段</td>
- <td class="gtj-centers" style="width: 15%">具体事项</td>
- <td class="gtj-centers" style="width: 15%">事项备注</td>
- <td class="gtj-centers" style="width: 15%">人员</td>
- <td class="gtj-centers" style="width: 15%">节点时间</td>
- <td class="gtj-centers" style="width: 15%">备注</td>
- </tr>
- @foreach($thisWeekTaskList as $item)
- <tr>
- <td class="gtj-centers">{{$item->rank??''}}</td>
- <td class="gtj-centers">{{$item->title??''}}</td>
- <td class="gtj-centers">{{$item->memo??''}}</td>
- <td class="gtj-centers">{{$item->userNames??''}}</td>
- <td class="gtj-centers">{{$item->node_date??''}}</td>
- <td class="gtj-centers">
- <textarea name="{{$item->id.'-planning_week'}}"
- id="{{$item->id.'-planning_week'}}"
- style="border: none;width: 100%;height: 60px">{{$item->planning_week??''}}
- </textarea>
- </td>
- </tr>
- @endforeach
- </table>
- </div>
- <div class="fix">
- <table border="" cellspacing="" cellpadding="">
- <tr>
- <td colspan="6">下周工作安排</td>
- </tr>
- <tr>
- <td class="gtj-centers" style="width: 15%">阶段</td>
- <td class="gtj-centers" style="width: 15%">具体事项</td>
- <td class="gtj-centers" style="width: 15%">事项备注</td>
- <td class="gtj-centers" style="width: 15%">人员</td>
- <td class="gtj-centers" style="width: 15%">节点时间</td>
- <td class="gtj-centers" style="width: 15%">备注</td>
- </tr>
- @foreach($nextWeekTaskList as $item)
- <tr>
- <td class="gtj-centers">{{$item->rank??''}}</td>
- <td class="gtj-centers">{{$item->title??''}}</td>
- <td class="gtj-centers">{{$item->memo??''}}</td>
- <td class="gtj-centers">{{$item->userNames??''}}</td>
- <td class="gtj-centers">{{$item->node_date??''}}</td>
- <td class="gtj-centers">
- <textarea name="{{$item->id.'-planning_next_week'}}"
- id="{{$item->id.'-planning_next_week'}}"
- style="border: none;width: 100%;height: 60px">{{$item->planning_next_week??''}}
- </textarea>
- </td>
- </tr>
- @endforeach
- </table>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- <div class="sep-yql-footer">
- <div class="sep-container fix">
- <div class="footer-texts">
- 浙江引擎力营销策划有限公司
- </div>
- </div>
- </div>
- <script src="{{asset('js/jquery.min.js?v=2.1.4')}}"></script>
- <script src="{{asset('js/bootstrap.min.js')}}"></script>
- <script src="{{asset('js/plugins/layer-v3.1.1/layer/layer.js')}}"></script>
- <script src="{{asset('js/tools/tips.js')}}"></script>
- <script>
- $(".sep-gzgh-ul-boxs .gzgh-lists").each(function () {
- $(this).find(".lasts").click(function () {
- var _this = $(this);
- if (!_this.hasClass("ons")) {
- _this.addClass("ons");
- _this.siblings(".tr-lists").removeClass("active");
- } else {
- _this.removeClass("ons");
- _this.siblings(".tr-lists").addClass("active");
- }
- });
- });
- $(".sep-xwcgss-ul-boxs .xwcgss-lists").each(function () {
- var _this1 = $(this);
- $(this).find(".i-boxs").click(function () {
- var _this = $(this);
- if (!_this.parent().parent(".xwcgss-lists").hasClass("active")) {
- _this.parent().parent(".xwcgss-lists").addClass("active");
- _this.parent().parent(".xwcgss-lists").siblings().removeClass("active");
- } else {
- _this.parent().parent(".xwcgss-lists").removeClass("active");
- }
- });
- });
- function taskByStatus(tis, input) {
- if ($(tis).hasClass('btn2')) {
- $(tis).removeClass('btn2');
- $(tis).addClass('btn');
- $(tis).text('完成');
- $(input).attr('value', '{{$date}}');
- } else {
- $(tis).removeClass('btn');
- $(tis).addClass('btn2');
- $(tis).text('未完成');
- $(input).attr('value', 0);
- }
- }
- function taskResetting(taskId) {
- layer.confirm('确定重置此条任务吗?', {icon: 3, title: '重置此条任务'}, function (index, layero) {
- var ajaxConfig = {
- url: '/admin/flow/taskResetting',
- type: 'put',
- data: {taskId: taskId},
- success: function () {
- layer.msg('操作成功', {
- icon: 1,
- time: 1500 //2秒关闭(如果不配置,默认是3秒)
- }, function () {
- window.location.href = "{{url('/admin/flow/siteConstructionProcess/'.$siteId.'/type/0')}}";
- });
- }
- };
- tips.ajax(ajaxConfig);
- });
- }
- $(document).on('click', '[name=file_upload]', function () {
- $(this).next().trigger('click');
- });
- $(document).on('change', '[name=uploadFile]', function () {
- var _this = this;
- if (!$(this)[0].files[0]) {
- return;
- }
- var formData = new FormData();
- formData.append('file', $(this)[0].files[0]);
- var size = $(this)[0].files[0].size;
- if (size > (8 * 1024 * 1024)) {
- layer.alert("文件不能大于8MB", {icon: 5});
- return;
- }
- var ln;
- $.ajax({
- url: '/admin/flow/uploadSiteFile',
- type: 'POST',
- cache: false,
- data: formData,
- processData: false,
- contentType: false,
- beforeSend: function () {
- ln = layer.load();
- },
- complete: function () {
- layer.close(ln);
- },
- success: function (result) {
- var data = result.data;
- $(_this).next().val(data.file_url);
- $(_this).prev().addClass('file');
- layer.alert('上传成功');
- },
- error: function (XMLHttpRequest) {
- if (XMLHttpRequest.status === 500) {
- layer.alert("异步请求失败", {icon: 5});
- return;
- }
- layer.alert(JSON.parse(XMLHttpRequest.responseText).message, {icon: 0});
- }
- });
- });
- function resetting(siteId) {
- layer.confirm('确定全部重置吗?', {icon: 3, title: '全部重置'}, function (index, layero) {
- var ajaxConfig = {
- url: '/admin/flow/resetting',
- type: 'put',
- data: {siteId: siteId},
- success: function () {
- layer.msg('操作成功', {
- icon: 1,
- time: 1500 //2秒关闭(如果不配置,默认是3秒)
- }, function () {
- window.location.href = "{{url('/admin/flow/siteConstructionProcess/'.$siteId.'/type/0')}}";
- });
- }
- };
- tips.ajax(ajaxConfig);
- });
- }
- function deploy(siteId) {
- layer.confirm('是否确认部署?', {icon: 3, title: '是否确认部署'}, function () {
- var config = {
- type: 'GET',
- url: '/admin/process/deploy/' + siteId
- };
- config.success = function (result) {
- layer.msg(result.message, {icon: 6, time: 1500}, function () {
- window.location.reload();
- });
- };
- tips.ajax(config);
- });
- }
- function open() {
- window.open("http://{{$domain}}");
- }
- window.addEventListener("keydown", function (e) {
- //可以判断是不是mac,如果是mac,ctrl变为花键
- //event.preventDefault() 方法阻止元素发生默认的行为。
- if (e.keyCode === 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
- e.preventDefault();
- // Process event...
- $('#form1').submit();
- //window.location.reload();
- }
- }, false);
- </script>
- </body>
- </html>
|