123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>库存盘点查看</title>
- <link href="/css/ims/base.css" rel="stylesheet">
- <link href="/css/ims/ims.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css" />
- <link rel="stylesheet" type="text/css" href="/css/ace.min.css" />
- <link rel="stylesheet" type="text/css" href="/css/ims/fonts/iconfont.css">
- <style>
- .ims-box {
- margin: 20px;
- }
- .screen {
- padding-left: 20px;
- height: 44px;
- line-height: 44px;
- background-color: #eff4fa;
- }
- .screen li {
- float: left;
- margin-right: 65px;
- }
- .bg-d9bf6e {
- margin-left: 5px;
- padding: 0 20px;
- color: #fff;
- background-color: #d9bf6e;
- }
- .list {
- padding:0 40px;
- /*margin-top: 40px;*/
- overflow: hidden;
- }
- .list h2 {
- line-height: 30px;
- font-size: 14px;
- }
- .list .student-list_box {
- width: 300px;
- }
- .list .student-list_box>ul{
- height: 260px;
- overflow: auto;
- padding: 20px;
- background-color: #eef3ff;
- }
- .list .student-list_box li {
- line-height: 30px;
- cursor: pointer;
- }
- .list .student-selected_box {
- margin-left: 60px;
- }
- .list .student-list {
- display: none;
- margin-left: 20px;
- }
- .list .student-list li.active .btn-select_all {
- display: inline-block;
- }
- .list .student-list span {
- cursor: pointer;
- }
- .list .btn-select_all {
- margin-left: 84px;
- color: #008000;
- }
- .student-name_box li {
- position: relative;
- margin-left: 28px;
- line-height: 30px;
- }
- .student-name_box input {
- position: absolute;
- left: 155px;
- top: 8px;
- }
- .btn-select_all,
- .student-name_box {
- display: none;
- }
- .student-selected {
- width: 320px;
- height: 300px;
- overflow: auto;
- }
- .student-selected li {
- float: left;
- margin-right: 24px;
- margin-bottom: 12px;
- width: 280px;
- height: 26px;
- line-height: 26px;
- text-indent: 20px;
- background-color: #f2f2f2;
- }
- .student-selected .btn-delete {
- float: right;
- margin-right: 20px;
- color: red;
- cursor: pointer;
- }
- .btn-confirm_purchase {
- display: block;
- margin: 0 auto;
- margin-top: 100px;
- margin-bottom: 50px;
- width: 430px;
- line-height: 54px;
- color: #fff;
- font-family: PingFangSC-Regular, "PingFang SC";
- font-weight: 400;
- font-style: normal;
- font-size: 20px;
- text-align: center;
- background-color: rgba(0, 153, 102, 1);
- cursor: pointer;
- }
- .icon-error{color: #FF0000;}
- .icon-prompt{color: #FFFF00;}
- .icon-jiantou2{color: orange}
- .icon-prompt{color: #0B61A4}
- #imgPreview img{
- max-width: 100px;max-height: 100px;margin-right: 5px;cursor: pointer;
- }
- .more-show{
- width: 70%;overflow: hidden; text-overflow:ellipsis; white-space: nowrap;cursor: pointer;
- }
- </style>
- </head>
- <body>
- <div class="leader-tabs">
- <ul class="layui-tab-title clearfix">
- <?php foreach ($process as $pro):?>
- <!-- 0.通过;1,不通过;2,当前;3.终止;4.未进行-->
- <?php if ($pro['status']==1):?>
- <li class="fl leader-this" activityType="<?php echo $pro['activityType'];?>" taskId="<?php echo $pro['taskId']?$pro['taskId']:0?>">
- <i class="iconfont icon-error"></i>
- <?php echo $pro['name']?>
- </li>
- <?php elseif ($pro['status']==2):?>
- <li class="fl disabled" activityType="<?php echo $pro['activityType'];?>" taskId="<?php echo $pro['taskId']?$pro['taskId']:0?>">
- <i class="iconfont icon-jiantou2"></i>
- <?php echo $pro['name']?>
- </li>
- <?php elseif ($pro['status']==3):?>
- <li class="fl disabled" activityType="<?php echo $pro['activityType'];?>" taskId="<?php echo $pro['taskId']?$pro['taskId']:0?>">
- <i class="iconfont icon-prompt"></i>
- <?php echo $pro['name']?>
- </li>
- <?php elseif ($pro['status']==4):?>
- <li class="fl disabled" activityType="<?php echo $pro['activityType'];?>" taskId="<?php echo $pro['taskId']?$pro['taskId']:0?>">
- <i class="iconfont icon-weixuanzhong"></i>
- <?php echo $pro['name']?>
- </li>
- <?php else:?>
- <li class="fl" activityType="<?php echo $pro['activityType'];?>" taskId="<?php echo $pro['taskId']?$pro['taskId']:0?>">
- <i class="iconfont icon-xuanzhong"></i>
- <?php echo $pro['name']?>
- </li>
- <?php endif;?>
- <?php endforeach;?>
- </ul>
- <div class="layui-tab-content" style="min-height: 60px;">
- <div class="layui-tab-item layui-show detial-show">
- <div class="clearfix">
- <span class="fl">申请人:<?php echo $startUserName;?></span>
- <span class="fl">开始时间:<?php echo $createTime;?></span>
- </div>
- </div>
- </div>
- </div>
- <div class="sale-table">
- <table width="100%">
- <tr>
- <th>标题</th>
- <td colspan="3"><?php echo $detail['stockTitle'];?></td>
- </tr>
- <tr>
- <th>品目类型</th>
- <td colspan="3"><?php echo $itemTypeName;?></td>
- </tr>
- <tr>
- <th>品目名称</th>
- <td colspan="3"><?php echo $detail['itemName'];?>
- <span class="fr">规格:<?php echo $detail['itemSpec'];?>
- 单位:<?php echo isset($detail['unitName'])?$detail['unitName']:'';?>
- 理论数量:<?php echo $detail['theoreticalNo'];?></span>
- </td>
- </tr>
- <?php if ($detail['itemType']==0):?>
- <tr>
- <th>固定资产编号</th>
- <td colspan="3" title="<?php echo implode(',',$detail['fixedCodes']);?>" class="more-show">
- <?php echo implode(',',$detail['fixedCodes']);?>
- </td>
- </tr>
- <?php endif;?>
- <tr>
- <th>盘点日期</th>
- <td colspan="3"><?php echo date('Y-m-d',strtotime($detail['stocktakingDate']));?></td>
- </tr>
- <tr>
- <th>盘点数量</th>
- <td colspan="3"><?php echo $detail['stockNo'];?></td>
- </tr>
- <tr>
- <!-- more less same-->
- <td colspan="4" class="sale-num get-status">
- <?php if ($detail['lossType']==2):?>
- <em class="same">平</em>
- <?php elseif ($detail['lossType']==1):?>
- <em class="more">盈</em>
- <?php else:?>
- <em class="less">亏</em>
- <?php endif;?>
- 盈亏数:<span class="red"><?php echo $detail['lossNo']?></span>
- </td>
- </tr>
- <tr>
- <th>盘点凭证</th>
- <td colspan="3">
- <div id="imgPreview">
- <?php foreach ($detail['images'] as $image):?>
- <img src="<?php echo $image;?>" title="点击放大">
- <?php endforeach;?>
- </div>
- </td>
- </tr>
- <tr>
- <!-- more less same-->
- <td colspan="4" class="sale-num get-status">
- </td>
- </tr>
- <tr>
- <th>备注</th>
- <td colspan="3">
- <?php echo $detail['remark'];?>
- </td>
- </tr>
- </table>
- </div>
- <script src="/js/jquery-2.2.2.min.js" ></script>
- <script src="/js/layer/layer.js"></script>
- <script src="/js/ims/xsgl.js"></script>
- <script>
- $(document).ready(function() {
- //查看所有内容
- $('body').on('click','.more-show', function () {
- layer.open({
- type: 1,
- title: '查看全部固定资产编号',
- btn: ['关闭'],
- area: ['400px', '200px'], //宽高
- btnAlign: 'c',
- content: $(this).attr('title'),
- yes: function (index, layero) {
- layer.closeAll();
- }
- });
- })
- //查看图片
- $('body').on('click', '#imgPreview img', function () {
- var src = $(this).attr('src');
- layer.open({
- type: 1,
- title: '查看图片',
- btn: ['关闭'],
- area: ['800px', '500px'], //宽高
- btnAlign: 'c',
- content: '<img src="'+src+'" alt="" style="margin-top:5px;width: 100%;height: 100%">',
- yes: function (index, layero) {
- layer.closeAll();
- }
- });
- })
- $(".leader-tabs li").click(function(){
- if($(this).hasClass('disabled')){
- }else{
- var activityType = $(this).attr('activityType');
- var taskId = $(this).attr('taskId');
- var startUserName = "<?php echo $startUserName;?>";
- var createTime = "<?php echo $createTime;?>";
- var endTime = "<?php echo $endTime;?>";
- if(activityType=='startEvent'){
- var html = '';
- html+='<div class="clearfix">';
- html+='<span class="fl">申请人:'+startUserName+'</span>';
- html+='<span class="fl">开始时间:'+createTime+'</span>';
- html+='</div>';
- }
- if(activityType=='userTask'){
- $.ajax({
- type: 'post',
- url: "<?php echo Yii::app()->createUrl('imsStore/getTask') ;?>",
- data: {'taskId': taskId},
- dataType:'json',
- success:function (res) {
- if(res.status){
- var status = res.data.form[0]['value'];
- if(status==0){
- var statusName = "通过";
- }
- if(status==1){
- var statusName = "不通过";
- }
- if(status==3){
- var statusName = "终止";
- }
- if(status==4){
- var statusName = "未进行";
- }
- if(status==2){
- var statusName = "当前";
- }
- var comment = res.dara.form[1]['value'];
- var html = '';
- html+='<div class="clearfix">';
- html+='<span class="fl">审批人:'+res.data.assignee+'</span>';
- html+='<span class="fl">审批时间:'+res.data.endDate+'</span>';
- html+='<span class="fl">审批结果:'+statusName+'</span>';
- html+='</div>';
- html+='<div>审批意见:'+comment+'</div>'
- }
- },
- error:function () {
- }
- });
- }
- if(activityType=='endEvent'){
- var html = '';
- html+='<div class="clearfix">';
- html+='<span class="fl">此流程已结束</span>';
- html+='<span class="fl">结束时间:'+endTime+'</span>';
- html+='</div>';
- }
- $('.detial-show').html(html);
- }
- })
- });
- </script>
- </body>
- </html>
|