Преглед изворни кода

编制项目添加审批流程

laiguoran пре 6 година
родитељ
комит
9ac1cd7a48

+ 1 - 0
protected/config/routes.conf.php

@@ -76,6 +76,7 @@ $route['*']['/sproject/:pid/section/:pmid/files/user/:userid/page/:pindex/num/:n
 $route['*']['/sproject/:pid/section/:pmid/files/num/:numpname/page/:pindex/user/:userid'] = array('SProjectController', 'proSectionFiles');
 $route['*']['/sproject/:pid/section/:pmid/files/page/:pindex/num/:numpname/user/:userid'] = array('SProjectController', 'proSectionFiles');
 $route['*']['/sproject/:pid/section/:pmid/files/page/:pindex/user/:userid/num/:numpname'] = array('SProjectController', 'proSectionFiles');
+$route['*']['/sproject/:pid/section/:pmid/report/:mpid'] = array('SProjectController', 'proReport');
 // 登入登出API
 $route['*']['/user/profile'] = array('UserController', 'index');
 $route['*']['/user/profile/sms'] = array('UserController', 'sms');

+ 157 - 4
protected/controller/SProjectController.php

@@ -25,7 +25,7 @@ Doo::loadClass('change');
 class SProjectController extends DooController
 {
 
-    private $aconfig,$data, $sign, $concern, $auth, $change, $attfile, $profile, $project, $contractact, $actmeasure, $numofperact, $measureauditact, $itemmeasurenum, $itemfle, $att;
+    private $aconfig,$data, $sign, $concern, $auth, $change, $attfile, $profile, $project, $contractact, $actmeasure, $numofperact, $measureauditact, $itemmeasurenum, $itemfle, $att, $statusArray = array('uncheck' => '未审批', 'checking' => '审批中', 'checked' => '已审批', 'checkno' => '未通过');
 
     public function beforeRun($resource, $action)
     {
@@ -362,6 +362,8 @@ class SProjectController extends DooController
                 $this->data['MeasureArray'][$key]['lessTotal'] = 0;
             }
         }
+        $numStatusArray = $this->numofperact->getLastStatus3($this->params['pid'], $this->params['pmid']);
+        $this->data['mpid'] = $numStatusArray['mpid'];
         $this->data['pid'] = $this->params['pid'];
         $this->data['pmid'] = $this->params['pmid'];
         // 获取当前合同段的期数
@@ -565,7 +567,8 @@ class SProjectController extends DooController
 
         $this->data['pid'] = $this->params['pid'];
         $this->data['pmid'] = $this->params['pmid'];
-        $this->data['mpid'] = $this->params['mpid'];
+        $numStatusArray = $this->numofperact->getLastStatus3($this->params['pid'], $this->params['pmid']);
+        $this->data['mpid'] = $numStatusArray['mpid'];
         $this->data['userid'] = $this->params['userid'];
         $this->data['num'] = $this->params['numpname'];
         $this->data['pager'] = $pager->output;
@@ -669,7 +672,8 @@ class SProjectController extends DooController
         }
         $this->data['pid'] = $this->params['pid'];
         $this->data['pmid'] = $this->params['pmid'];
-        $this->data['mpid'] = $this->params['mpid'];
+        $numStatusArray = $this->numofperact->getLastStatus3($this->params['pid'], $this->params['pmid']);
+        $this->data['mpid'] = $numStatusArray['mpid'];
         $this->data['pager'] = $pager->output;
         $this->render('s-project-section-files-recover', $this->data, TRUE);
     }
@@ -832,7 +836,8 @@ class SProjectController extends DooController
         $this->data['phasenolist'] = isset($phasenolist) ? $phasenolist : '';
         $this->data['pager'] = $pager->output;
 
-
+        $numStatusArray = $this->numofperact->getLastStatus3($this->params['pid'], $this->params['pmid']);
+        $this->data['mpid'] = $numStatusArray['mpid'];
         $this->data['pid'] = $this->params['pid'];
         $this->data['pmid'] = $this->params['pmid'];
         $this->render('s-project-section-intermediate', $this->data, TRUE);
@@ -1031,6 +1036,154 @@ class SProjectController extends DooController
         $this->render('sign-view-page', $this->data, TRUE);
     }
 
+    // 审批流程页
+    public function proReport() {
+        $this->data['currproArray'] = $this->data['allproArray'] = NULL;
+        $proArray = $this->actmeasure->getGroupProject($this->auth->getUid());
+        foreach ($proArray as $v) {
+            $pidArray[] = $v['pid'];
+        }
+        $pidstr = implode(',', $pidArray);
+        // 项目名称
+        $allproArray = $this->project->getFewRow($pidstr);
+        // 面包屑导航项目
+        foreach ($allproArray as $kk => $vv) {
+            if ($vv['pid'] == $this->params['pid']) {
+                $this->data['currproArray'] = $vv;
+            } else {
+                $this->data['allproArray'][] = $vv;
+            }
+        }
+        // 面包屑导航合同
+        $conArray = $this->contractact->getAll();
+        $measureArray = $this->actmeasure->getRowByPmid($this->params['pmid']);
+        if (isset($measureArray['stid'])) {
+            foreach ($conArray as $kkk => $vvv) {
+                if ($vvv['stid'] == $measureArray['stid']) {
+                    $this->data['currconArray'] = $vvv;
+                } else {
+                    if ($vvv['pid'] == $this->params['pid'])
+                        $this->data['allconArray'][] = $vvv;
+                }
+            }
+        } else {
+            $this->data['currconArray'] = $this->data['allconArray'] = NULL;
+        }
+        // 面包屑导航标段
+        $this->data['curractmeasureArray'] = NULL;
+        $this->data['allactmeasureArray'] = [];
+        $actmeasureArray = $this->actmeasure->getRowUser($this->auth->getUid());
+        foreach ($actmeasureArray as $kkkk => $vvvv) {
+            if ($vvvv['stid'] == $measureArray['stid']) {
+                if (($vvvv['pmid'] == $this->params['pmid'])) {
+                    $this->data['curractmeasureArray'] = $vvvv;
+                } else {
+                    $this->data['allactmeasureArray'][] = $vvvv;
+                }
+            }
+        }
+
+
+        // 期数列表
+        $tmpArray = $this->numofperact->getGroupByLastOne2($this->params['pmid']);
+        foreach ($tmpArray as $k => $v) {
+            $intTime = $this->numofperact->getMaxTimes($v['pmid'], $v['numpname'])['times'];
+            $nfArray[] = $this->numofperact->getRow($v['pmid'], $v['numpname'], $intTime);
+        }
+        foreach ($nfArray as $k => $v) {
+            if ($v['mpid'] == $this->params['mpid']) {
+                $this->data['mpid'] = $v['mpid'];
+                $this->data['MeasureArray2'][] = $v;
+                $this->data['currnum'] = $v['numpname'];
+            } else {
+                $this->data['numArray'][] = $v;
+            }
+        }
+        $measureArray = $this->actmeasure->getRowByPmid($this->params['pmid']);
+        foreach ($this->data['MeasureArray2'] as $key => $value) {
+            if ($value['mpid'] == $this->params['mpid']) {
+                $this->data['MeasureArray2'][$key]['currstatus'] = $this->statusArray[$value['currstatus']];
+                if ($measureArray['contracttotal'] > ($value['currdone'] > 0)) {
+                    $this->data['MeasureArray2'][$key]['lessTotal'] = round(($value['currdone'] / $measureArray['contracttotal']) * 100);
+                } else {
+                    $this->data['MeasureArray2'][$key]['lessTotal'] = 0;
+                }
+            }
+        }
+        //
+        $lastRowArray = $this->numofperact->getLastNew2($this->params['pmid']);
+        $maxTimes = $this->numofperact->getMaxTimes($lastRowArray['pmid'], $lastRowArray['numpname']);
+//        $auditUserArray = $this->measureauditact->getAllAudit($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times']);
+//        $maxtimez = $this->measureauditact->getRowGroupByTimes($this->params['mpid']);
+        $maxtimez = $this->numofperact->getRowByMpid($this->params['mpid']);
+        $auditUserArray = $this->measureauditact->getRowByMpidTimes($this->params['mpid'], $maxtimez['numpname'], $maxtimez['times']);
+        $auditArray = $this->measureauditact->getLastNewRowInfo($lastRowArray['pmid'], $lastRowArray['numpname'], $this->auth->getUid());
+        $this->data['pmid'] = $lastRowArray['pmid'];
+        $this->data['numpname'] = $lastRowArray['numpname'];
+        $this->data['times'] = $lastRowArray['times'];
+        $this->data['pid'] = $this->params['pid'];
+        $firstUser = 0;
+        foreach ($auditUserArray as $key => $value) {
+            $strAvatar = $this->auth->getAvatar($value['auditoruid']);
+            $i = $key + 1;
+            if ($value['auditoruid'] == $this->auth->getUid()) {
+                $this->data['mastatus'] = $value['mastatus'];
+                $this->data['maid'] = $value['maid'];
+                if($key == 0){
+                    $firstUser = 1;
+                }else{
+                    $this->data['lastUserID'] = $auditUserArray[$key-1]['auditoruid'];
+                    $this->data['lastUsername'] = $this->profile->getProWithUid($auditUserArray[$key-1]['auditoruid'])['name'];
+                    $this->data['lastUserCompany'] = $this->profile->getProWithUid($auditUserArray[$key-1]['auditoruid'])['company'];
+                }
+            }
+            if ($value['mastatus'] == 'uncheck') {
+                $statuStr = '';
+                $statucolorStr = '';
+                $statushtml = '<li title="" class=""><img src="' . $strAvatar . '"></li>';
+            }
+            if ($value['mastatus'] == 'checking') {
+                $statuStr = '<h4 class="colOrange">审批中</h4>';
+                $statucolorStr = 'colOrange';
+                $statushtml = '<li title="审批中" class="wait"><span data-icon="k" aria-hidden="true"></span> <img src="' . $strAvatar . '"></li>';
+            }
+            if ($value['mastatus'] == 'checked') {
+                $statuStr = '<h4 class="colGreen">审批完成(' . date('Y-m-d', $value['audittime']) . ')</h4>';
+                $statucolorStr = 'colGreen';
+                $statushtml = '<li title="审批通过" class="pass"><span data-icon="d" aria-hidden="true"></span><img src="' . $strAvatar . '"></li>';
+            }
+            if ($value['mastatus'] == 'checkno') {
+                $statuStr = '<h4 class="colRed">审批不通过(' . date('Y-m-d', $value['audittime']) . ')</h4>';
+                $statucolorStr = 'colRed';
+                $statushtml = '<li title="审批不通过" class="notpass"><span data-icon="e" aria-hidden="true"></span><img src="' . $strAvatar . '"></li>';
+            }
+            $auditUserArray[$key]['statuStr'] = $statuStr;
+            $auditUserArray[$key]['statucolorStr'] = $statucolorStr;
+            $auditUserArray[$key]['statushtml'] = $statushtml;
+            $auditUserArray[$key]['k'] = $i;
+            $auditUserArray[$key]['name'] = $this->profile->getProWithUid($value['auditoruid'])['name'];
+        }
+        $strAvatar = $this->auth->getAvatar($measureArray['uid']);
+        $orginArray['avatar'] = '<img src="' . $strAvatar . '"></li>';
+        $orginArray['name'] = $this->profile->getProWithUid($measureArray['uid'])['name'];
+
+        // 获取原报时间
+        // 利用mpid和uid获取原报人当前期数下上传的第一份文件时间,即为原报时间
+//        $attfileArray = $this->attfile->getFirstFile($lastRowArray['pmid'], $lastRowArray['numpname'], $lastRowArray['times']);
+        $attfileArray = $this->attfile->getFirstFile($lastRowArray['pmid'], $maxtimez['numpname'], $maxtimez['times']);
+
+        $orginArray['time'] = date('Y-m-d', $attfileArray['intime']);
+        $this->data['auditArray'] = $auditUserArray;
+        $this->data['orginArray'] = $orginArray;
+        $this->data['pmid'] = $this->params['pmid'];
+        $this->data['pid'] = $this->params['pid'];
+        $this->data['mpid'] = $this->params['mpid'];
+        $this->data['firstUser'] = $firstUser;
+//        var_dump($this->data);
+//        exit;
+        $this->render('s-project-section-report', $this->data, TRUE);
+    }
+
     function is_pjax(){
         return array_key_exists('HTTP_X_PJAX', $_SERVER) && $_SERVER['HTTP_X_PJAX'] === 'true';
     }

+ 5 - 1
protected/module/admin/view/admin-userlist.html

@@ -53,7 +53,7 @@
                                 href="{{rootUrl}}manage/user/{{userlist' value.uid}}/isstop" class="colRed"
                                 onclick="return confirm_stop();">停用</a><!-- else --><a
                                 href="{{rootUrl}}manage/user/{{userlist' value.uid}}/isstop" class="colGreen"
-                                onclick="return confirm_stop();">启用</a><!-- endif --> <a
+                                onclick="return confirm_start();">启用</a><!-- endif --> <a
                                 href="{{rootUrl}}manage/user/edit/{{userlist' value.uid}}/uid">编辑</a> <a
                                 data-toggle="modal" href="#sendpw" data-keyboard="false" data-backdrop="ture"
                                 class="colGray" onclick="return confirm_resetpasswd({{userlist' value.uid}});">重置密码</a>
@@ -91,6 +91,10 @@
         if (confirm('是否停用此用户?'))
             $('#myform').submit();
     }
+    function confirm_start() {
+        if (confirm('是否启用此用户?'))
+            $('#myform').submit();
+    }
     function confirm_resetpasswd(uid) {
         $.get("{{rootUrl}}manage/user/repasswd/" + uid + "/uid", function (data) {
             $('#email').html(data);

+ 6 - 2
protected/view/r-project-section-report.html

@@ -280,8 +280,12 @@
 <script type="text/javascript">
     $(document).ready(function () {
         $(".auditclass").click(function () {
-            var $textarea = $(this).parent().siblings('.modal-body').find("textarea");
-            var content = $textarea.val();
+            if($(this).attr('act') != 'back') {
+                var $textarea = $(this).parent().siblings('.modal-body').find("textarea");
+                var content = $textarea.val();
+            } else {
+                var content = '';
+            }
             if(content.length <= 255){
                 var pmid = $(this).attr('pmid');
                 var numpname = $(this).attr('numpname');

+ 1 - 0
protected/view/s-project-section-detail.html

@@ -64,6 +64,7 @@
 				</li>
 				<li><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/files">附件</a></li>
 				<!-- if {{imediateSwitch}} == 1 --><li><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/intermediate">中间计量草图</a></li><!-- endif -->
+				<li><a href="<!-- if !empty({{mpid}}) -->{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/report/{{mpid}}<!-- else -->javascript:void(0);<!-- endif -->" <!-- if empty({{mpid}}) -->style="cursor: no-drop;"<!-- endif -->>审批流程</a></li>
 			</ul>
 			<div class="project">
 				<div class="proSection clearfix">

+ 1 - 0
protected/view/s-project-section-files-recover.html

@@ -68,6 +68,7 @@
                 </li>
                 <li class="active"><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/files">附件</a></li>
                 <!-- if {{imediateSwitch}} == 1 --><li><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/intermediate">中间计量草图</a></li><!-- endif -->
+                <li><a href="<!-- if !empty({{mpid}}) -->{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/report/{{mpid}}<!-- else -->javascript:void(0);<!-- endif -->" <!-- if empty({{mpid}}) -->style="cursor: no-drop;"<!-- endif -->>审批流程</a></li>
             </ul>
             <!--导航-->
 

+ 1 - 0
protected/view/s-project-section-files.html

@@ -68,6 +68,7 @@
                 </li>
                 <li class="active"><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/files">附件</a></li>
                 <!-- if {{imediateSwitch}} == 1 --><li><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/intermediate">中间计量草图</a></li><!-- endif -->
+                <li><a href="<!-- if !empty({{mpid}}) -->{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/report/{{mpid}}<!-- else -->javascript:void(0);<!-- endif -->" <!-- if empty({{mpid}}) -->style="cursor: no-drop;"<!-- endif -->>审批流程</a></li>
             </ul>
             <!--导航-->
             <!--筛选工具-->

+ 1 - 0
protected/view/s-project-section-intermediate.html

@@ -64,6 +64,7 @@
         </li>
         <li><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/files">附件</a></li>
         <li class="active"><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/intermediate">中间计量草图</a></li>
+        <li><a href="<!-- if !empty({{mpid}}) -->{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/report/{{mpid}}<!-- else -->javascript:void(0);<!-- endif -->" <!-- if empty({{mpid}}) -->style="cursor: no-drop;"<!-- endif -->>审批流程</a></li>
       </ul>
       <!--导航-->
       <div class="project">

+ 203 - 0
protected/view/s-project-section-report.html

@@ -0,0 +1,203 @@
+<!DOCTYPE html>
+<html lang=zh-cn>
+<head>
+    <meta charset=utf-8>
+    <title>纵横计量支付系统</title>
+    <meta name=description content=计量支付>
+    <meta name=copyright content=smartcost.com.cn>
+    <meta name="viewport" content="width=device-width,initial-scale=1.0">
+    <link rel=stylesheet href="{{rootUrl}}global/css/bootstrap.css">
+    <link rel=stylesheet href="{{rootUrl}}global/css/style.css">
+    <script src="{{rootUrl}}global/js/jquery-1.9.1.min.js"></script>
+    <script src="{{rootUrl}}global/js/bootstrap.js"></script>
+    <script src="{{rootUrl}}global/js/jl.js"></script>
+    <script src="http://s1.bdstatic.com/r/www/cache/ecom/esl/1-6-10/esl.js"></script>
+</head>
+<body>
+<!-- include "top" -->
+<div class="wrapContent">
+    <!-- include "left" -->
+    <div class="mainContainer">
+        <!--内容-->
+        <div class="mainContent">
+            <div class="title clearfix">
+                <ul class="nav nav-pills">
+                    <li class="dropdown"><a title="返回" href="{{rootUrl}}sproject/{{currproArray.pid}}/section"><span
+                            class="closePanel" aria-hidden="true" data-icon="Z"></span></a></li>
+                    <li class="dropdown">
+                        <a href="{{rootUrl}}sproject/{{currproArray.pid}}/section" data-toggle="dropdown" class="dropdown-toggle">
+                            {{currproArray.pname}}<b class="caret"></b>
+                        </a>
+                        <ul class="dropdown-menu">
+                            <!-- loop allproArray -->
+                            <li><a href="{{rootUrl}}sproject/{{allproArray' value.pid}}/section">{{allproArray' value.pname}}</a></li>
+                            <!-- endloop -->
+                        </ul>
+                    </li>
+                    <li class="dropdown">
+                        <a href="{{rootUrl}}sproject/{{currproArray.pid}}/section" data-toggle="dropdown"
+                           class="dropdown-toggle">
+                            {{currconArray.stname}}<b class="caret"></b>
+                        </a>
+                        <ul class="dropdown-menu">
+                            <!-- loop allconArray -->
+                            <li><a href="{{rootUrl}}sproject/{{currproArray.pid}}/section">{{allconArray' value.stname}}</a></li>
+                            <!-- endloop -->
+                        </ul>
+                    </li>
+                    <li class="dropdown">
+                        <a href="{{rootUrl}}sproject/{{currproArray.pid}}/section" data-toggle="dropdown"
+                           class="dropdown-toggle">
+                            {{curractmeasureArray.pmname}}<b class="caret"></b>
+                        </a>
+                        <ul class="dropdown-menu">
+                            <!-- loop allactmeasureArray -->
+                            <li>
+                                <a href="{{rootUrl}}sproject/{{currproArray.pid}}/section/{{allactmeasureArray' value.pmid}}/detail">{{allactmeasureArray' value.pmname}}</a></li>
+                            <!-- endloop -->
+                            <!--				    <li class="divider"></li>
+                                                <li><a href="#">共18标段,查看更多</a></li>-->
+                        </ul>
+                    </li>
+                    <li class="dropdown">
+                        <a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/report/{{mpid}}" data-toggle="dropdown"
+                           class="dropdown-toggle">
+                            第{{ToChinaseNum(currnum)}}期<b class="caret"></b>
+                        </a>
+                        <ul class="dropdown-menu">
+                            <!-- loop numArray -->
+                            <li><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/report/{{numArray' value.mpid}}">第{{ToChinaseNum(numArray' value.numpname)}}期</a></li>
+                            <!-- endloop -->
+                        </ul>
+                    </li>
+                </ul>
+            </div>
+            <!--导航-->
+            <ul class="nav nav-tabs">
+                <li>
+                    <a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/detail">标段概况</a>
+                </li>
+                <li>
+                    <a href="/sproject/{{pid}}/section/{{pmid}}/files">附件</a>
+                </li>
+                <!-- if {{imediateSwitch}} == 1 --><li><a href="{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/intermediate">中间计量草图</a></li><!-- endif -->
+                <!-- if {{mpid}}>0 -->
+                <li class="active">
+                    <a href="<!-- if !empty({{mpid}}) -->{{rootUrl}}sproject/{{pid}}/section/{{pmid}}/report/{{mpid}}<!-- else -->javascript:void(0);<!-- endif -->" <!-- if empty({{mpid}}) -->style="cursor: no-drop;"<!-- endif -->>审批流程</a>
+                </li>
+                <!-- endif -->
+
+            </ul>
+            <!--导航-->
+            <!--本期数据-->
+            <div>
+                <table class="table table-striped">
+                    <thead>
+                    <tr>
+                        <th width="8%">期数</th>
+                        <th class="taC" width="16%">本期合同计量</th>
+                        <th class="taC" width="16%">本期数量变更计量</th>
+                        <th class="taC" width="16%">截止上期累计完成</th>
+                        <th class="taC" width="16%">本期完成计量</th>
+                        <th class="taC" width="16%">累计完成计量</th>
+                        <th class="taC">状态</th>
+                    </tr>
+                    <!--<tr>-->
+                    <!--<td>第七期&nbsp;<span data-toggle="tooltip" data-placement="bottom" title="上报:2015-09-09;通过:2015-09-13" class="icon-time"></span></td><td class="taR">0</td><td class="taR">0</td><td class="taR">0</td><td class="taR">0</td><td class="taR">0</td><td class="taR"><b class="colOrange">审批中</b></td>-->
+                    <!--</tr>-->
+                    <!-- loop MeasureArray2 -->
+                    <tr>
+                        <td width="8%">第{{ToChinaseNum(MeasureArray2' value.numpname)}}期&nbsp;<span
+                                data-toggle="tooltip" data-placement="bottom"
+                                title="上报:{{formatDate(MeasureArray2' value.intime,'Y-m-d')}} <!-- if {{MeasureArray2' value.audittime}}!='0' -->;通过:{{formatDate(MeasureArray2' value.audittime,'Y-m-d')}}<!-- endif -->"
+                                class="icon-time"></span></td>
+                        <td width="16%" class="taR">{{MeasureArray2' value.currcontractval}}</td>
+                        <td width="16%" class="taR">{{MeasureArray2' value.currchangeval}}</td>
+                        <td width="16%" class="taR">{{MeasureArray2' value.stopnowtotal}}</td>
+                        <td width="16%" class="taR">{{MeasureArray2' value.currdone}}</td>
+                        <td width="16%" class="taR">{{MeasureArray2' value.curralltotal}}</td>
+                        <td width="16%" class="taR">{{MeasureArray2' value.currstatus}}</td>
+                    </tr>
+                    <!-- endloop -->
+                    </tbody>
+                </table>
+            </div>
+            <!--原报信息-->
+            <!-- if {{orginArray.time}} != '1970-01-01' -->
+            <div class="reportList">
+                <div class="avatarBar clearfix">
+                    <div class="fR">
+                        <h4 class="colGreen">原报上报({{orginArray.time}})</h4>
+                    </div>
+                    <ul class="avatar clearfix">
+                        <li class="num" style="font-size:14px">原报</li>
+                        <li title="审批通过" class="pass"><span data-icon="d" aria-hidden="true"></span>{{orginArray.avatar}}</li>
+                        <li class="name colGreen">{{orginArray.name}}</li>
+                        <li class="con"></li>
+                    </ul>
+                </div>
+            </div>
+            <!-- endif -->
+            <!-- loop auditArray -->
+            <div class="reportList">
+                <div class="avatarBar clearfix">
+                    <div class="fR">
+                        {{auditArray' value.statuStr}}
+                    </div>
+                    <ul class="avatar clearfix">
+                        <li class="num">{{auditArray' value.k}}</li>
+                        {{auditArray' value.statushtml}}
+                        <li class="name {{auditArray' value.statucolorStr}}">{{auditArray' value.name}}</li>
+                        <li class="con"><p>{{auditArray' value.auditcontent}}</p></li>
+                    </ul>
+                </div>
+            </div>
+            <!-- endloop -->
+            <!--审批列表-->
+        </div>
+
+        <!--内容-->
+    </div>
+</div>
+<script type="text/javascript">autoFlashHeight();</script>
+<script type="text/javascript">
+    $(document).ready(function () {
+        $(".auditclass").click(function () {
+            if($(this).attr('act') != 'back') {
+                var $textarea = $(this).parent().siblings('.modal-body').find("textarea");
+                var content = $textarea.val();
+            } else {
+                var content = '';
+            }
+            if(content.length <= 255){
+                var pmid = $(this).attr('pmid');
+                var numpname = $(this).attr('numpname');
+                var times = $(this).attr('times');
+                var act = $(this).attr('act');
+                var maid = $(this).attr('maid');
+                var last = $(this).attr('last');
+                $.ajax({
+                    type: "POST",
+                    dataType: "json",
+                    cache: false,
+                    data: {"act": act, "pmid": pmid, "numpname": numpname, "times": times, "content": content, "last": last},
+                    url: "/rproject/{{pid}}/section/{{pmid}}/report/{{mpid}}",
+                    success: function (data) {
+                        if (data['status'] == 1) {
+                            window.location.href = "{{rootUrl}}rproject/{{pid}}/section/{{pmid}}/report/{{mpid}}";
+                        }
+                    }
+                });
+            }else{
+                $textarea.parent().addClass('has-error');
+                $textarea.parent().append('<span class="help-block">您输入的审批意见太长了,请精简一点点。</span>');
+            }
+        });
+
+        $('textarea[name="content"]').focus(function(){
+            $(this).parent().removeClass('has-error');
+            $(this).parent().children('span').remove();
+        });
+    })
+</script>
+</body>