544782275@qq.com 3 years ago
parent
commit
1d707a1d0d

+ 73 - 0
application/store/controller/SendLog.php

@@ -0,0 +1,73 @@
+<?php
+
+// +----------------------------------------------------------------------
+// | ThinkAdmin
+// +----------------------------------------------------------------------
+// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
+// +----------------------------------------------------------------------
+// | 官方网站: http://demo.thinkadmin.top
+// +----------------------------------------------------------------------
+// | 开源协议 ( https://mit-license.org )
+// +----------------------------------------------------------------------
+// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
+// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
+// +----------------------------------------------------------------------
+
+namespace app\store\controller;
+
+use library\Controller;
+use library\tools\Data;
+use think\Db;
+
+/**
+ * 指派记录
+ * Class GoodsCate
+ * @package app\store\controller
+ */
+class SendLog extends Controller
+{
+    /**
+     * 绑定数据表
+     * @var string
+     */
+    protected $table = 'store_send_log';
+
+    /**
+     * 装修需求管理
+     * @auth true
+     * @menu true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function index()
+    {
+        $this->title = '指派记录管理';
+        $query = $this->_query($this->table);
+        if($this->request->request('order_no')){
+            $where[]=['a.order_no','like','%'.$this->request->request('order_no').'%'];
+        }
+        $query
+            ->alias('a')
+            ->join('store_engineer m','a.user_id = m.id')
+            ->where($where)
+            ->order('a.id desc')
+            ->page();
+    }
+
+    /**需求列表处理
+     * @param array $data
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     */
+    protected function _index_page_filter(array &$data)
+    {
+        foreach ($data as &$vo) {
+
+        }
+    }
+
+}

+ 58 - 0
application/store/view/send_log/index.html

@@ -0,0 +1,58 @@
+{extend name='admin@main'}
+
+{block name="content"}
+<div class="think-box-shadow">
+    {include file='send_log/index_search'}
+    <table class="layui-table margin-top-10" lay-skin="line">
+        {notempty name='list'}
+        <thead>
+        <tr>
+            <th class='list-table-check-td think-checkbox'>
+                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
+            </th>
+            <th class="text-left nowrap">指派的工程师信息</th>
+            <th class="text-left nowrap">被指派的工程师信息</th>
+            <th class='text-left nowrap'>订单编号</th>
+            <th class='text-left nowrap'>指派时间</th>
+        </tr>
+        </thead>
+        {/notempty}
+        <tbody>
+        {foreach $list as $key=>$vo}
+        <tr>
+            <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
+            <td class="text-left nowrap relative">
+                {notempty name='vo.worker.headimg'}
+                <img data-tips-image style="width:40px;height:40px" src="{$vo.worker.headimg|default=''}" class="margin-right-5 text-top">
+                {/notempty}
+                <div class="inline-block">
+                    工程师姓名:{$vo.worker.name|default='--'}<br>
+                    工程师手机:{$vo.worker.phone|default='--'}<br>
+                </div>
+            </td>
+            <td class="text-left nowrap relative">
+                {notempty name='vo.send_worker.headimg'}
+                <img data-tips-image style="width:40px;height:40px" src="{$vo.send_worker.headimg|default=''}" class="margin-right-5 text-top">
+                {/notempty}
+                <div class="inline-block">
+                    工程师姓名:{$vo.send_worker.name|default='--'}<br>
+                    工程师手机:{$vo.send_worker.phone|default='--'}<br>
+                </div>
+            </td>
+            <td class='text-left nowrap'>
+                {$vo.order_no}
+            </td>
+
+            <td class='text-left nowrap'>
+               {$vo.create_at}
+            </td>
+
+        </tr>
+        {/foreach}
+        </tbody>
+    </table>
+
+    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
+
+</div>
+{/block}

+ 19 - 0
application/store/view/send_log/index_search.html

@@ -0,0 +1,19 @@
+<fieldset>
+    <legend>条件搜索</legend>
+    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
+        <div class="layui-form-item layui-inline">
+            <label class="layui-form-label">订单编号</label>
+            <div class="layui-input-inline">
+                <input name="order_no" value="{$Think.get.order_no|default=''}" placeholder="请输入订单编号" class="layui-input">
+            </div>
+        </div>
+
+        <div class="layui-form-item layui-inline">
+            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
+        </div>
+
+    </form>
+    <script>
+        window.form.render();
+    </script>
+</fieldset>