123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <!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 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>
- .ims-box {
- margin: 20px;
- }
- .screen > div {
- float: left;
- margin-right: 8px;
- }
- .screen .date > input {
- height: 30px;
- border-radius: 4px;
- border: 1px solid #ccc;
- box-shadow: none;
- text-indent: 10px;
- }
- .screen .purposeOrderNo > 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;
- }
- .application-number-box span {
- margin-right: 20px;
- }
- .layui-layer-btn .layui-layer-btn0 {
- border-color: #15ae68 !important;
- background-color: #15ae68 !important;
- color: #fff;
- }
- </style>
- </head>
- <body>
- <div class="ims-box">
- <form action="<?php echo Yii::app()->createUrl('imsSale/searchGoodsChange'); ?>" method="get">
- <div class="screen">
- <select name="schoolYearId" id="schoolYearId" style="width: 100px;">
- <option value="0">请选择学年</option>
- <?php
- if($schoolYear){
- foreach ($schoolYear as $value){
- if(isset($_GET['schoolYearId']) && $_GET['schoolYearId']==$value['schoolYearId']){
- echo '<option value="'.$value['schoolYearId'].'" selected>'.$value['schoolYearName'].'</option>';
- }else{
- echo '<option value="'.$value['schoolYearId'].'">'.$value['schoolYearName'].'</option>';
- }
- }
- }
- ?>
- </select>
- <select name="grade" id="grade" style="width: 100px;">
- <option value="0">请选择年级</option>
- <?php
- if(Yii::app()->params['grade_list']){
- foreach (Yii::app()->params['grade_list'] as $val){
- if(isset($_GET['grade']) && $_GET['grade']==$val['id']){
- echo '<option value="'.$val['id'].'" selected>'.$val['grade_name'].'</option>';
- }else{
- echo '<option value="'.$val['id'].'" >'.$val['grade_name'].'</option>';
- }
- }
- }
- ?>
- </select>
- <button type="submit" class="label-primary-s bth-s">查询</button>
- </div>
- </form>
- <div class="table-box">
- <table id="intention-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>
- <th>审批状态</th>
- </tr>
- </thead>
- <tbody>
- <?php if ($list): ?>
- <?php foreach ($list as $item): ?>
- <tr>
- <td><?php echo $item['orderNo'];?></td>
- <td><?php echo $item['schoolYearName'] ?></td>
- <td><?php echo $item['changeTypeName'] ?></td>
- <td><?php echo $item['gradeName'];?></td>
- <td><?php echo $item['goodsName'];?></td>
- <td><?php echo $item['quantity'];?></td>
- <td><?php echo $item['adjustNum'];?></td>
- <td><?php echo $item['remark']; ?></td>
- <td><?php echo $item['statusName'];?></td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if ($page): ?>
- <div class="col-sm-12">
- <ul class="pagination">
- <?php
- $params = array();
- if (isset($_GET['schoolYearId']) && $_GET['schoolYearId']) {
- $params['schoolYearId'] = $_GET['schoolYearId'];
- }
- if (isset($_GET['grade']) && $_GET['grade']) {
- $params['grade'] = $_GET['grade'];
- }
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- }else{
- $params['page'] = 1;
- }
- echo formatPage($page, 'imsSale/searchGoodsChange', $params);
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- </div>
- </body>
- </html>
|