123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
- <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
- <title></title>
- <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
- <link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
- <link rel="stylesheet" href="../../css/projeck.css">
- <style>
- html,body{
- background: #fff;
- }
- .api_layout{
- width: 100%;
- position: relative;
- padding: 16px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- }
- .column-list{
- padding: 10px 13px;
- border: 2px solid #f2f4fb;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- border-top:2px solid #16a085;
- margin-bottom: 10px;
- }
- .column-list li:last-child{
- margin-bottom: 0;
- }
- .header-img{
- width: 50px;
- height: 50px;
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- border-radius: 50%;
- object-fit: cover;
- margin-right: 10px;
- }
- .wordOrder-info span{
- display: block;
- font-size: 14px;
- color: #002257;
- }
- .examine-status{
- font-size: 12px;
- font-style: normal;
- color: #16a085;
- position: absolute;
- top: 5px;
- right: 0;
- }
- .examine-process{
- margin-top: 10px;
- }
- .column{
- border: 1px solid #eaeff3;
- background: #fff;
- padding: 10px;
- border-radius: 5px;
- }
- .small_title{
- font-size:12px;
- color: #74b9e7;
- display: block;
- font-style: normal;
- }
- .large_title{
- margin: 10px 0;
- }
- .technological-process{
- margin-top: 10px;
- display: flex;
- justify-content: flex-start;
- /* flex-wrap: wrap; */
- white-space: nowrap;
- overflow-x: scroll;
- -webkit-overflow-scrolling: touch;
- }
- .col{
- color: red;
- font-size: 12px;
- display: inline-flex;
- justify-content: space-between;
- align-items: center;
- flex-wrap: nowrap;
- padding-right: 10px;
- /*width: 25%;*/
- }
- .name-adopt,
- .name-reject,
- .name-waited,
- .name-waiting {
- display: block;
- padding: 3px 6px;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- margin-bottom: 5px;
- }
- .name-adopt {
- border: 1px solid #16a085;
- color: #16a085;
- }
- .name-reject {
- border: 1px solid red;
- color: red;
- }
- .name-waited {
- border: 1px solid #fa8c16;
- color: #fa8c16;
- }
- .name-waiting {
- border: 1px solid #bfbfbf;
- color: #bfbfbf;
- }
- .name:last-child{
- margin-bottom: 0;
- }
- .ico-j{
- display: block;
- width: 15px;
- height: 15px;
- background: url("../../image/Arrow.png") no-repeat;
- background-size: contain;
- margin-left: 10px;
- }
- .col:last-child{
- padding-right: 0;
- }
- .col:last-child .ico-j{
- display: none;
- }
- .examine-success{
- background: #1abc9c;
- }
- .staff_name{
- width: 50px;
- height: 50px;
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- border-radius: 50%;
- margin-right: 10px;
- line-height: 50px;
- text-align: center;
- color: #fff;
- }
- .message-section-staff,
- .message-id-time {
- display: flex;
- }
- </style>
- </head>
- <body>
- <div class="api_layout">
- <ul id="seeApply">
- </ul>
- </div>
- <div class="noText hide">
- <img src="../../image/noText.png" alt="">
- </div>
- </body>
- </html>
- <script type="text/template" id="templateApply">
- {{ for (var i = 0;i<it.length;i++) { }}
- <li class="column-list" onclick="openExamineDetails('{{=it[i].id}}','{{=it[i].status}}')">
- <div class="wordOrder-info relative">
- <div class="img-title flex-start">
- {{?it[i].staff_avatar === null}}
- <p class="staff_name" style="background:#{{=Math.random().toString(16).slice(2,8)}}">{{=it[i].staff.substr(it[i].staff.length-1,1)}}</p>
- {{??}}
- <img src="{{=it[i].staff_avatar}}" alt="" class="header-img">
- {{?}}
- <div class="message-container">
- <div class="message-section-staff">
- <span>{{=it[i].staff}}</span>
- <span style="margin-left: 15px">{{=it[i].section}}</span>
- </div>
- <div class="message-id-time">
- <span>编号:#{{=it[i].id}}</span>
- <span style="margin-left: 15px">{{=it[i].created_at}}</span>
- </div>
- </div>
- </div>
- <i class="examine-status">通过</i>
- </div>
- <div class="examine-process">
- <div class="column">
- <i class="small_title">{{=it[i].classify}}</i>
- <h2 class="large_title">{{=it[i].title}}</h2>
- <div class="technological-process">
- {{ for(var prop in it[i].flows) { }}
- <div class="col">
- <div class="name_list">
- {{?it[i].flows[prop].status == 2}}
- {{ for (var j = 0;j<it[i].flows[prop].flow.length;j++) { }}
- <span class="name-adopt name">{{=it[i].flows[prop].flow[j]}}</span>
- {{ } }}
- {{??it[i].flows[prop].status == 3}}
- {{ for (var j = 0;j<it[i].flows[prop].flow.length;j++) { }}
- <span class="name-reject name">{{=it[i].flows[prop].flow[j]}}</span>
- {{ } }}
- {{??it[i].flows[prop].status == 1}}
- {{ for (var j = 0;j<it[i].flows[prop].flow.length;j++) { }}
- <span class="name-waited name">{{=it[i].flows[prop].flow[j]}}</span>
- {{ } }}
- {{??it[i].flows[prop].status == 0}}
- {{ for (var j = 0;j<it[i].flows[prop].flow.length;j++) { }}
- <span class="name-waiting name">{{=it[i].flows[prop].flow[j]}}</span>
- {{ } }}
- {{?}}
- </div>
- <i class="ico-j"></i>
- </div>
- {{ } }}
- </div>
- </div>
- </div>
- </li>
- {{ } }}
- </script>
- <script type="text/javascript" src="../../script/api.js"></script>
- <script type="text/javascript" src="../../script/doT.min.js"></script>
- <script src="../../script/config.js" charset="utf-8"></script>
- <script type="text/javascript">
- var toast = new auiToast();
- apiready = function () {
- $api.fixStatusBar($api.dom('header'));
- var token = api.pageParam.data;
- var headers = {
- "Authorization": "Bearer " + token
- };
- getApplyList(headers)
- };
- function getApplyList(headers) {
- $http.fnReuestData(UrlRouter.getApplyList,headers,'get',{status:2},function (ret,err) {
- if (ret.code === 0) {
- toast.hide()
- if (ret.data.data.length>0) {
- $api.addCls($api.dom('.noText'), 'hide');
- $apis.html(seeApply,'#templateApply',ret.data.data);
- }else {
- $apis.html(seeApply,'#templateApply',ret.data.data);
- $api.removeCls($api.dom('.noText'), 'hide');
- }
- }else {
- toast.hide()
- $api.removeCls($api.dom('.noText'), 'hide');
- }
- })
- }
- // 审核,详情
- function openExamineDetails(id,status) {
- var params={
- ID:id,
- status:status
- }
- $event.openWin('myWordOrderReject_win','myWordOrderReject_win',params,'')
- }
- </script>
|