chuweiqiang 1 سال پیش
والد
کامیت
fa9a413990
2فایلهای تغییر یافته به همراه216 افزوده شده و 1 حذف شده
  1. 34 1
      app/admin/controller/Repair.php
  2. 182 0
      app/admin/view/repair/acceptance.html

+ 34 - 1
app/admin/controller/Repair.php

@@ -20,6 +20,7 @@ use app\data\model\DataRecruitment;
 use app\data\model\DataPoolTalent;
 use app\data\model\DataTeachingKnowledge;
 use app\data\model\DataUser;
+use app\data\model\DataUserAcceptance;
 use app\data\model\DataUserRepair;
 use app\data\model\DataUserRepairOffer;
 use app\data\model\DataZhicheng;
@@ -81,7 +82,7 @@ class Repair extends Controller
     }
 
     public function offer(){
-        $this->title='接单列表';
+        $this->title='接单记录';
         $name=input('title');
         $order_no = input('order_no');
         $data = input();
@@ -112,8 +113,40 @@ class Repair extends Controller
         $result->page();
     }
 
+    public function acceptance(){
+        $this->title='接单记录';
+        $name=input('title');
+        $data = input();
+        $where = [];
+        //
+        if(isset($data['name']) && $data['name'] != ''){
+            $where[] = ['name','like','%'.$data['name'].'%'] ;
+        }
+        if(isset($data['company_name'])&& $data['company_name'] != ''){
+            $where[] = ['company_name','like','%'.$data['company_name'].'%'] ;
+        }
+        if(isset($data['create_at'])&& $data['create_at'] != ''){
+            $where['create_at'] = $data['create_at'];
+        }
+        $result = DataUserAcceptance::mQuery()
+            ->when($name,function (Query $query) use ($name) {
+                $query->hasWhere('user',function (Query $query) use ($name) {
+                    $query->whereLike('nickname',"%{$name}%");
+                });
+
+            })
+            ->dateBetween('create_at')
+            ->with(['user'])
+            ->where($where)
+            ->order('id','desc');
+//            ->layTable();
+//        $this->amount = $result->db()->sum('success_price');
+        $result->page();
+    }
+
     protected function _offer_page_filter(&$data)
     {
+        $this->title='接单列表';
         //dump($data);die;
     }
 

+ 182 - 0
app/admin/view/repair/acceptance.html

@@ -0,0 +1,182 @@
+{extend name='table'}
+{block name="button"}
+{if auth("add")}
+
+{/if}
+{/block}
+{block name="content"}
+
+<!--<div class="think-box-notify">-->
+<!-- 0 $total, 1 $count, 2 $audit, 3 $locks -->
+<!--    订单金额统计 <b>{$amount|default=0.00}</b> 元。-->
+<!--</div>-->
+<div class="layui-tab layui-tab-card">
+    <div class="layui-tab-content">
+        <form class="layui-form layui-form-pane form-search" action="{:sysuri()}" onsubmit="return false" method="get" autocomplete="off">
+            <div class="layui-form-item layui-inline">
+                <label class="layui-form-label">姓名</label>
+                <label class="layui-input-inline">
+                    <input name="name" value="{$get.name|default=''}" placeholder="姓名" class="layui-input">
+                </label>
+            </div>
+            <div class="layui-form-item layui-inline">
+                <label class="layui-form-label">单位名称</label>
+                <label class="layui-input-inline">
+                    <input name="company_name" value="{$get.company_name|default=''}" placeholder="单位名称" class="layui-input">
+                </label>
+            </div>
+            <div class="layui-form-item layui-inline">
+                <label class="layui-form-label">发布时间</label>
+                <label class="layui-input-inline">
+                    <input class="layui-input" data-date-range name="create_at" placeholder="发布时间" value="{$get.create_at|default=''}">
+                </label>
+            </div>
+            <div class="layui-form-item layui-inline">
+                <input type="hidden" name="type" value="{$type|default='index'}">
+                <button class="layui-btn layui-btn-primary" type="submit"><i class="layui-icon">&#xe615;</i> 搜 索</button>
+            </div>
+        </form>
+        <!--        <table id="Table" data-url="{:sysuri()}" data-target-search="form.form-search"></table>-->
+        <div class="layui-tab-content">
+
+            <table class="layui-table margin-top-10" lay-skin="line" >
+                {notempty name='list'}
+                <thead>
+                <tr>
+                    <th>姓名</th>
+                    <th>单位名称</th>
+                    <th>营业执照</th>
+                    <th>身份证正面</th>
+                    <th>身份证反面</th>
+                    <th>手机号</th>
+                    <th>邮箱</th>
+                    <th>地址</th>
+                    <th>工作简历</th>
+                    <th>特长</th>
+                    <th>是否隐藏</th>
+                    <th>省市区</th>
+                    <th>发布时间</th>
+                    特长
+                    工作简历
+                    <!--                    <th>操作面板</th>-->
+                </tr>
+                </thead>
+                {/notempty}
+                <tbody>
+                {foreach $list as $key=>$vo}
+                <tr>
+                    <!--                <td class='list-table-check-td think-checkbox'>-->
+                    <!--                    <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>-->
+                    <!--                </td>-->
+                    <!--                    <td class="nowrap">-->
+                    <!--                        {$vo.id}-->
+                    <!--                    </td>-->
+
+                    <td class="nowrap">
+                        {$vo.name}
+                    </td>
+
+                    <td class="nowrap">
+                        {$vo.company_name}
+                    </td>
+                    <td class="nowrap">
+                        <div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image='{$vo.business_img}' style="background-image:url('{$vo.business_img}')"></div>&nbsp;
+                    </td>
+                    <td class="nowrap">
+                        <div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image='{$vo.id_card_zheng}' style="background-image:url('{$vo.id_card_zheng}')"></div>&nbsp;
+                    </td>
+                    <td class="nowrap">
+                        <div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image='{$vo.id_card_fan}' style="background-image:url('{$vo.id_card_fan}')"></div>&nbsp;
+                    </td>
+                    <td class="nowrap">
+                        {$vo.phone}
+                    </td>
+                    <td class="nowrap">
+                        {$vo.email}
+                    </td>
+                    <td class="nowrap">
+                        {$vo.address}
+                    </td>
+                    <td class="nowrap">
+                        {$vo.job_resume}
+                    </td>
+                    <td class="nowrap">
+                        {$vo.specialty}
+                    </td>
+                    <td class="nowrap">
+                        {if $vo.hidden == 1}
+                        不隐藏
+                        {else}
+                        隐藏
+                        {/if}
+                    </td>
+                    <td class="nowrap">
+                        {$vo.province}/{$vo.city}/{$vo.area}
+                    </td>
+                    <td class="nowrap">
+                        {$vo.create_at}
+                    </td>
+                </tr>
+                {/foreach}
+                </tbody>
+            </table>
+            {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
+
+        </div>
+    </div>
+</div>
+<!--<script>
+    $(function () {
+        $('#Table').layTable({
+            even: true, height: 'full',
+            sort: {field: 'id', type: 'desc'},
+            where: {},
+            cols: [[
+                {field: 'shipyardname', title: '用户', align: 'center', templet: function (d) {
+                        return  d.user.nickname
+                    }},
+                {field: 'order_no', title: '订单号', align: 'center'},
+                {field: 'imgs', title: '图片',  align: 'center', templet:function (d) {
+                        if (d.imgs.length<1){
+                            return '无图片'
+                        }else {
+                            let b = ''
+                            for (var a=0;a<d.imgs.length;a++){
+                                b = b + '<div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image='+ d.imgs[a] +' style="background-image:url('+ d.imgs[a] +')"></div>&nbsp;'
+                            }
+                            return laytpl(b).render(d)
+                        }
+                    }},
+                {field: 'start_time', title: '维修开始时间', align: 'center'},
+                {field: 'end_time', title: '维修结束时间', align: 'center'},
+                {field: 'success_price', title: '匹配成功价格', align: 'center',templet:function (d) {
+                        if (d.success_price==0.00){
+                            return '未匹配'
+                        }else {
+                            return d.success_price
+                        }
+                    }},
+                {field: 'province', title: '地址', align: 'center',templet:function (d) {
+                        return d.province+d.city+d.area+d.address
+                    }},
+                {field: 'describe', title: '故障描述', align: 'center'},
+                {field: 'quick', title: '是否快修', align: 'center',templet:function (d) {
+                    if (d.quick==1){
+                        return '否'
+                    }else {
+                        return '是'
+                    }
+                    }},
+
+
+                {field: 'create_at', title: '创建时间', align: 'center'},
+                {toolbar: '#toolbar', title: '操作', align: 'center', fixed: 'right'}
+            ]]
+        });
+    });
+</script>-->
+
+
+<!-- 列表排序权重模板 -->
+
+{/block}