wupengfei 2 years ago
parent
commit
cee10c9b91

+ 2 - 1
.idea/workspace.xml

@@ -3,6 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/synth/controller/BillHeader.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/synth/controller/BillHeader.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/synth/view/bill_header/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/synth/view/bill_header/index.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -210,7 +211,7 @@
       <workItem from="1672793409629" duration="408000" />
       <workItem from="1672793834653" duration="24306000" />
       <workItem from="1672880479757" duration="22897000" />
-      <workItem from="1672966192005" duration="13295000" />
+      <workItem from="1672966192005" duration="13427000" />
     </task>
     <servers />
   </component>

+ 3 - 2
application/synth/controller/BillHeader.php

@@ -26,8 +26,9 @@ class BillHeader extends Controller
         $were[] = ['i.is_deleted','=',0];
         if($this->request->request('user_name'))    $where[]= ['m.name','like','%'.$this->request->request('user_name').'%'];
         if($this->request->request('title'))         $where[]= ['i.title','like','%'.$this->request->request('title').'%'];
-        $query->alias('i')->field('i.* ,m.headimg,m.name as user_name,m.phone')
-            ->join('store_member m',' m.id = i.user_id ','LEFT');
+        $query->alias('i')->field('i.* ,t.title type_name,m.headimg,m.name as user_name,m.phone')
+            ->join('store_member m',' m.id = i.user_id ','LEFT')
+            ->join('bill_type b',' b.id = i.type ','LEFT');
         if(!empty($where)) $query->where($where);
         $query ->order('i.id desc')->page();
     }

+ 2 - 0
application/synth/view/bill_header/index.html

@@ -7,6 +7,7 @@
         <tr>
             <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>
@@ -28,6 +29,7 @@
                     邮箱:{$vo.email|default='--'}<br>
                 </div>
             </td>
+            <td class='text-left nowrap'>{$vo.type_name|default='--'}</td>
             <td class='text-left' >
                 <a data-title="查 看" class="layui-btn layui-btn-sm" data-modal='{:url("edit")}?id={$vo.id}'>查 看</a>
                 <span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','remove','{$vo.id}');">删 除</span>