| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- {include file="public/header"}
- <form action="order" method="GET" class="form-inline">
- <div class="form-group">
- <label>搜索</label>
- <select name="type" class="form-control">
- <option value="1">订单号</option>
- </select>
- </div>
- <div class="form-group">
- <input type="text" class="form-control" name="keyword" placeholder="搜索内容">
- </div>
- <button type="submit" class="btn btn-primary">搜索</button>
- </form>
- <div class="table-responsive" style="padding-top: 10px;">
- <table class="table table-striped" border='1'>
- <thead>
- <tr>
- <th style="text-align: center;">订单号</th>
- <th style="text-align: center;">报修人</th>
- <th style="text-align: center;">联系电话</th>
- <th style="text-align: center;">维修者</th>
- <th style="text-align: center;">订单问题</th>
- <th style="text-align: center;">创建时间</th>
- <th style="text-align: center;">订单更新时间</th>
- <th style="text-align: center;">订单状态</th>
- <th style="text-align: center;">操作</th>
- </tr>
- </thead>
- <tbody style="text-align: center;">
- {volist name="order_info" id="vo"}
- <tr>
- <td><b>{$vo.order_id}</b></td>
- <td>{$vo.linkman}</td>
- <td>{$vo.linktel}</td>
- <td>
- {if condition = "$vo.repuser eq null"}
- 暂无
- {else /}
- {$vo.repuser}
- {/if}
- </td>
- <td>{$vo.title}</td>
- <td>{$vo.create_time}</td>
- <td>{$vo.update_time | date='Y-m-d H:i',###}</td>
- <td>
- {if condition="$vo.status eq '0'"}
- <font color="green">接单中</font>
- {elseif condition="$vo.status eq '1'"}
- <font color="green">处理中</font>
- {else /}
- <font color="red">完成</font>
- {/if}
- </td>
- <td>
- <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-info buttoninfo">查看</button>
- <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-danger buttoneidt">编辑</button>
- <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-success buttonmessage">评论</button>
- </td>
- </tr>
- {/volist}
- </tbody>
- <thead>
- <tr>
- <th style="text-align: center;">订单号</th>
- <th style="text-align: center;">报修人</th>
- <th style="text-align: center;">联系电话</th>
- <th style="text-align: center;">维修者</th>
- <th style="text-align: center;">订单问题</th>
- <th style="text-align: center;">创建时间</th>
- <th style="text-align: center;">订单更新时间</th>
- <th style="text-align: center;">订单状态</th>
- <th style="text-align: center;">操作</th>
- </tr>
- </thead>
- </table>
- </div>
- <div style="text-align:center;">
- {$order_info->render()}
- </div>
- <script src="__LOGIN__/js/jquery.min.js"></script>
- <script>
- $(function () {
- //查看信息
- $('.buttoninfo').click(function () {
- //获取到当前订单
- let orderid = $(this).attr('data-orderid');
- window.location.href = "__URL__/order_info?orderid="+orderid;
- });
- //编辑信息
- $('.buttoneidt').click(function () {
- //获取到当前订单
- let orderid = $(this).attr('data-orderid');
- window.location.href = "__URL__/edit_order_info?orderid="+orderid;
- });
- //评论订单
- $('.buttonmessage').click(function () {
- //获取到当前订单
- let orderid = $(this).attr('data-orderid');
- console.log(orderid);
- window.location.href = "__URL__/order_message?orderid="+orderid;
- });
- });
- </script>
|