wugg 2 роки тому
батько
коміт
98cbf5c399

+ 1 - 0
app/admin/controller/Goodup.php

@@ -3230,6 +3230,7 @@ class Goodup extends Base
 
         $count = Db::name('change_log')
             ->where([['code',"=", $param['code']],["type","=",$param['type']]])
+            ->json(["after_info","before_info"])
             ->order("id desc")
             ->findOrEmpty();
 

+ 0 - 20
app/admin/controller/Purchin.php

@@ -1167,11 +1167,6 @@ class Purchin extends Base
             return error_show(1004,"参数 order_num 不为空");
         }
         $error_list = isset($this->post['error_list']) && $this->post['error_list']!==''?$this->post['error_list']:"";
-//        $result = GetUserInfo($this->post['token']);
-//        if((!empty($result) && $result['code']!=0) ||empty($result) ){
-//            return error_show($result['code'],$result['message']);
-//        }
-//        $userinfo = $result['data'];
         Db::startTrans();
         try{
             $order = ["order_code"=>$incode,"status"=>$info['status'],"action_remark"=>'',"action_type"=>"edit"];
@@ -1520,11 +1515,6 @@ class Purchin extends Base
         }
         $error_remark = isset($this->post['error_remark']) &&$this->post['error_remark']!=="" ? trim($this->post['error_remark']):"" ;
         $remark = isset($this->post['remark']) &&$this->post['remark']!=="" ? trim($this->post['remark']):"" ;
-//        $result = GetUserInfo($this->post['token']);
-//        if((!empty($result) && $result['code']!=0) ||empty($result) ){
-//            return error_show($result['code'],$result['message']);
-//        }
-//        $userinfo = $result['data'];
          $cgdinfo=Db::name("purchease_order")->where(['cgdNo'=>$info['cgdNo'],"is_del"=>0])->find();
             if(empty($cgdinfo)){
                 return error_show(1002,"未找到采购单数据");
@@ -1536,7 +1526,6 @@ class Purchin extends Base
         Db::startTrans();
        try{
            $sto = ["order_code"=>$incode,"status"=>$info['status'],"action_remark"=>'',"action_type"=>"edit"];
-//      $info['status'] =$info['wsm_num']==$wsm_num ? 4 :5;
         $info['status'] = $info['send_num'] == $wsm_num ? 4 : 5;//艳蓉说,这里不能用入库数量比较,应该是用入库数量,即总数来比较
         $info['is_th'] =$return_num>0 ?1:0;
         $info['wsm_num']= $wsm_num;
@@ -1547,12 +1536,6 @@ class Purchin extends Base
             $uid = Db::name('warehouse_info')
                 ->where(['wsm_code' => $info['wsm_code'], 'is_del' => 0])
                 ->column('contactor');
-//                        $uid = Db::name('user_role')
-//                            ->where([
-//                                ['is_del', '=', 0],
-//                                ['roleid', 'in', [31, 41]],
-//                                ['status', '=', 1]
-//                            ])->column('uid');
                 $handle_user_list=implode(",",$uid);
             if($info['status']==4){
                 $order = ["order_code"=>$info['cgdNo'],"status"=>$cgdinfo['status'],"action_remark"=>'',"action_type"=>"edit"];
@@ -1568,7 +1551,6 @@ class Purchin extends Base
                 }
                 ActionLog::logAdd(['id' => $this->uid, 'nickname' => $this->uname], $order, "CGD", $cgdinfo['status'], $cgdinfo);
 
-//                $holder_id = Db::name('supplier')->where(['code' => $cgdinfo['supplierNo'], 'is_del' => 0])->value('personid', 0);
                 if($cgdinfo['status']==1 || $cgdinfo['status']==2){
                     $is_stock = Db::name('good_basic')
                         ->where(['is_del'=>0,'spuCode'=>$cgdinfo['spuCode']])
@@ -1577,8 +1559,6 @@ class Purchin extends Base
                         //库存品,推给仓库对应的负责人
 
                         if(!in_array($this->uid,$uid)) throw new Exception('库存品订单只能由库管人员操作');
-
-//                        $process=["order_code"=>$info['cgdNo'],"order_id"=>$cgdinfo['id'],"order_status"=>$cgdinfo['status'],"order_type"=>'CGD',"before_status"=>$order['status'],'holder_id'=>Db::name('supplier')->where(['code' => $cgdinfo['supplierNo'], 'is_del' => 0])->value('personid', 0),'handle_user_list'=>implode(',', $uid)];
                     }else{
 //                        $holder_id = Db::name('supplier')->where(['code' => $cgdinfo['supplierNo'], 'is_del' => 0])->value('personid', 0);
                         if($this->uid != $holder_id)throw new Exception('非库存品和采返商品只能由供应商负责人操作');

+ 1 - 10
app/admin/route/app.php

@@ -141,11 +141,6 @@ Route::rule('user_role_list', 'admin/User/userRoleList');//账号角色查询
 Route::rule('setrole', 'admin/User/setRole');//账号角色修改
 Route::rule('userinfo', 'admin/User/userInfo');
 Route::rule('userall', 'admin/User/userAll');
-//Route::rule("userstatus", "admin/User/userStatus");
-//Route::rule("usersave", "admin/User/UserSave");
-//Route::rule("passset", "admin/User/setPwd");
-//Route::rule("userinfobyid", "admin/User/info");
-//Route::rule("usergetinfo", "admin/User/getinfo");
 Route::rule('usersinglelist', 'admin/User/userSingleList');//超管账号列表
 Route::rule('passSetByPassword', 'admin/User/passSetByPassword');
 
@@ -264,11 +259,7 @@ Route::rule('action_process_all', 'admin/ActionProcess/getAll');
 Route::rule("expresslist", "admin/Express/list");
 Route::rule("expressuse", "admin/Express/SetUse");
 Route::rule("express", "admin/Express/GetExpress");
-//Route::rule('getSupplierExpress', 'admin/Express/getSupplierExpress');
-//Route::rule('setSupplierExpress', 'admin/Express/setSupplierExpress');
-//Route::rule('statusSupplierExpress', 'admin/Express/statusSupplierExpress');
-//Route::rule('infoSupplierExpress', 'admin/Express/infoSupplierExpress');
-//Route::rule('deleteSupplierExpress', 'admin/Express/deleteSupplierExpress');
+
 
 Route::rule('catlist', 'admin/Cat/list');
 Route::rule('catplist', 'admin/Cat/plist');