qifengquan 1 year ago
parent
commit
77d03be65d
2 changed files with 13 additions and 1 deletions
  1. 5 1
      app/data/controller/shop/Goods.php
  2. 8 0
      app/data/view/shop/goods/index.html

+ 5 - 1
app/data/controller/shop/Goods.php

@@ -318,6 +318,8 @@ class Goods extends Controller
             ShopGoods::mSave($this->_vali([
                 'examine.in:0,1,2'  => '状态值范围异常!',
                 'examine.require' => '状态值不能为空!',
+                'examine_time' => date('Y-m-d H:i:s'),
+                'examine_adminid' => AdminService::getUserName()
             ]), 'code');
         }else{
             ShopGoods::mForm('examinex_form', 'id');
@@ -331,7 +333,9 @@ class Goods extends Controller
             if (empty($data['examine_cause'])) $this->error('不能为空!');
             $updata = [
                 'examine_cause'=>$data['examine_cause'],
-                'examine'=>2
+                'examine'=>2,
+                'examine_time'=>date('Y-m-d H:i:s'),
+                'examine_adminid'=>AdminService::getUserName()
             ];
             ShopGoods::update($updata,['id'=>$data['id']]);
             $this->success('操作成功');

+ 8 - 0
app/data/view/shop/goods/index.html

@@ -47,6 +47,8 @@
                 <th class='text-left nowrap'>商家名称</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>
                 <th class='text-left nowrap'>审核状态</th>
                 {if $admin_id !=10000}
 
@@ -91,6 +93,12 @@
                 <td>
                     {$vo.user.contact_phone}
                 </td>
+                <td>
+                    {$vo.examine_time}
+                </td>
+                <td>
+                    {$vo.examine_adminid}
+                </td>
                 <td class='nowrap'>
                     库存 <b>{$vo.stock_total}</b> 件;
                     <div class="notselect margin-top-5">