Эх сурвалжийг харах

审核记录增加操作来源字段

wufeng 2 жил өмнө
parent
commit
4e0c75d2cb

+ 1 - 2
app/abutment/controller/Index.php

@@ -113,13 +113,12 @@ class Index extends BaseController
         return IndexLogic::getCompanyNoList($param['keyword']);
     }
 
-
     //专属类型列表
     public function getExclusiveList(){
 
         $pid =  $this->request->filter('trim')->post('pid/d',0);
         $where=[["is_del","=",0],["pid","=",$pid]];
-        
+
         $cat_name=$this->request->filter('trim')->post('cat_name','');
         if($cat_name!=="") $where[]=['cat_name',"like","%$cat_name%"];
 

+ 1 - 1
app/admin/controller/Process.php

@@ -85,7 +85,7 @@ class Process extends Base
         $rs = Db::name("process_order")
             ->where(["order_type" => $process_type])
             ->whereIn('action_process', $order_process_s)
-            ->field('id,action_uid,action_name,addtime,action_process,order_type');
+            ->field('id,action_uid,action_name,addtime,action_process,order_type,source');
         if (is_numeric($orderCode)) $rs->where('order_id', $orderCode);
         else $rs->where('order_code', $orderCode);
 

+ 6 - 2
app/admin/model/ProcessOrder.php

@@ -42,8 +42,12 @@ class ProcessOrder extends \think\Model
         //手动排除竞价单ZXD
         if($order['order_type']!='ZXD') ProcessWait::add($data, isset($order['wait_id']) ? $order['wait_id'] : 0, isset($order['wait_name']) ? $order['wait_name'] : '');
 
-        if(self::insert($data)){
-          Workflow::SaveFlow($data);
+        $insert = $data;
+        //如果是【供应商】应用,即abutment,增加字段source==2(操作来源为供应商)
+        if (strtolower(app('http')->getName()) == 'abutment') $insert['source'] = 2;
+
+        if (self::insert($insert)) {
+            Workflow::SaveFlow($data);
         };
     }
     public static function workdel($order){