123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>仓库盘点</title>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <link href="/css/ims/base.css" rel="stylesheet">
- <link href="/css/ims/ims.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
- <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
- <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
- <style>
- .green {
- color: green;
- }
- .red {
- color: red;
- }
- .ims-box {
- margin: 20px;
- }
- .screen > div {
- float: left;
- margin-right: 5px;
- }
- .screen > span {
- line-height: 30px;
- margin-right: 5px;
- }
- .screen .date > input {
- height: 30px;
- border-radius: 4px;
- border: 1px solid #ccc;
- box-shadow: none;
- text-indent: 10px;
- }
- .screen button {
- padding: 4px 12px;
- }
- .table-box {
- margin-top: 30px;
- }
- .btn-formal-order {
- cursor: pointer;
- }
- .application-number-box {
- margin-top: 50px;
- text-align: center;
- }
- .application-number-box span {
- margin-right: 20px;
- }
- .layui-layer-btn .layui-layer-btn0 {
- border-color: #2977ff !important;
- background-color: #2977ff !important;
- color: #fff;
- }
- .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
- line-height: 140px;
- text-align: center;
- }
- .blue-color{
- color:blue;
- cursor: pointer;
- }
- #record-table,th{
- text-align: center;
- }
- .plan-require{
- cursor: pointer;
- color:#00BBFF;
- }
- .layer-relate{
- width: 481px;
- height: 217px;
- }
- </style>
- </head>
- <body>
- <div class="ims-box">
- <form action="<?php echo Yii::app()->createUrl('imsStore/newStock'); ?>" method="get">
- <div class="screen clearfix">
- <div class="date">
- 计划名称:<input type="text" name="planName" class="plan_name" value=""/>
- </div>
- <div class="date fl">
- <span>创建计划日期:</span>
- <input type="text" readonly name="startStockDate" class="some_class" value="" id="some_class_1"/> --
- <input type="text" readonly name="endStockDate" class="some_class" value="" id="some_class_2"/>
- </div>
- <button type="submit" class="label-primary-s bth-s">搜索</button>
- </div>
- </form>
- <div class="table-box">
- <table id="record-table"
- class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
- style="font-size:12px">
- <thead>
- <tr>
- <th>计划序号</th>
- <th>盘点计划名称</th>
- <th>创建人</th>
- <th>起止时间</th>
- <th>已提交仓库数</th>
- <th>盘点要求</th>
- <th>提交状态</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <?php if (isset($list) && $list): ?>
- <?php $no = 1;?>
- <?php foreach ($list as $value): ?>
- <tr>
- <td><?php echo $no;?></td>
- <td><?php echo $value['title'] ?></td>
- <td><?php echo $value['createName'] ?></td>
- <td><?php echo date('Y-m-d', strtotime($value['beginTime']));?> 至 <?php echo date('Y-m-d', strtotime($value['endTime']));?></td>
- <td><?php echo $value['commitedCount']; ?></td>
- <td class="plan-require" planId="<?php echo $value['pId'];?>">盘点要求</td>
- <div style="display: none" class="plan-require-<?php echo $value['pId'];?>"><?php echo isset($value["remark"])?$value["remark"]:'';?></div>
- <?php if(isset($value['status'])):?>
- <?php if($value['status'] == 0):?>
- <td>审批中</td>
- <td class="blue-color plan-view" planId="<?php echo $value['pId'];?>" statusId="<?php echo $value['status'];?>">盘点单</td>
- <?php elseif($value['status'] == 1):?>
- <td>审批通过</td>
- <td class="blue-color plan-view" planId="<?php echo $value['pId'];?>" statusId="<?php echo $value['status'];?>">盘点单</td>
- <?php elseif($value['status'] == 2):?>
- <td>不通过</td>
- <td class="blue-color plan-view" planId="<?php echo $value['pId'];?>" statusId="<?php echo $value['status'];?>">盘点单</td>
- <?php elseif($value['status'] == 3):?>
- <td>已终止</td>
- <td class="blue-color plan-view" planId="<?php echo $value['pId'];?>" statusId="<?php echo $value['status'];?>">盘点单</td>
- <?php endif;?>
- <?php else:?>
- <td>待提交</td>
- <td class="blue-color add-new-list" planId="<?php echo $value['pId'];?>">新建</td>
- <?php endif;?>
- </tr>
- <?php $no++;?>
- <?php endforeach; ?>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if (isset($page) && $page): ?>
- <div class="col-sm-12">
- <ul class="pagination">
- <?php
- $params = array();
- if (isset($_GET['startStockDate']) && $_GET['startStockDate']) {
- $params['startStockDate'] = $_GET['startStockDate'];
- }
- if (isset($_GET['endStockDate']) && $_GET['endStockDate']) {
- $params['endStockDate'] = $_GET['endStockDate'];
- }
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- } else {
- $params['page'] = 1;
- }
- echo formatPage($page, 'imsStore/newStock', $params)
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- </div>
-
- <!-- 关联正式订单弹层 -->
- <div class="layer-relate" style="display: none">
- <div class="layer-filter"></div>
- </div>
- <script src="/js/jquery-2.2.2.min.js"></script>
- <script src="/js/jquery.datetimepicker.js"></script>
- <script src="/js/layer/layer.js"></script>
- <script src="/js/xsgl.js"></script>
- <script>
- $(document).ready(function () {
- $('.some_class').datetimepicker({
- format: "Y-m-d", //格式化日期
- timepicker: false //关闭时间选项
- });
- <?php if (isset($_GET['startStockDate'])):?>
- $("#some_class_1").attr("value", "<?php echo $_GET['startStockDate']?>");
- <?php endif;?>
- <?php if (isset($_GET['endStockDate'])):?>
- $("#some_class_2").attr("value", "<?php echo $_GET['endStockDate']?>");
- <?php endif;?>
- <?php if (isset($_GET['planName'])):?>
- $(".plan_name").val("<?php echo $_GET['planName']?>");
- <?php endif;?>
- $('.some_class').datetimepicker({
- format: "Y-m-d", //格式化日期
- timepicker: false //关闭时间选项
- });
-
- //新建盘点单
- $("body").delegate(".add-new-list", "click", function() {
- var planId = $(this).attr("planId");
- if(planId){
- window.location.href = "<?php echo Yii::app()->createUrl('imsStore/createPlanList');?>"+"?planId="+planId;
- }else{
- layer.msg("请指定盘点计划");
- }
- });
-
- //查看盘点单
- $("body").delegate(".plan-view", "click", function() {
- var planId = $(this).attr("planId");
- var statusId = $(this).attr("statusId");
- if(planId){
- window.location.href = "<?php echo Yii::app()->createUrl('imsStore/viewPlanList');?>"+"?planId="+planId+"&statusId="+statusId;
- }else{
- layer.msg("请指定盘点计划");
- }
- });
- //查看盘点要求
- $("body").delegate(".plan-require", "click", function() {
- var planId = $(this).attr("planId");
- if(planId){
- $('.layer-relate .layer-filter').html($(".plan-require-"+planId).html());
- layer.open({
- type: 1,
- title: '盘点要求',
- btn: ['关闭'],
- area: ['510px', '320px'], //宽高
- btnAlign: 'c',
- content: $('.layer-relate'),
- yes: function (index, layero) {
- layer.closeAll();
- }
- });
- }
-
- });
- });
- </script>
- </body>
- </html>
|