wugg 3 månader sedan
förälder
incheckning
3b7ef75dd9
2 ändrade filer med 6 tillägg och 1 borttagningar
  1. 4 1
      app/cxinv/command/MakeSeal.php
  2. 2 0
      app/cxinv/controller/FinancialManager.php

+ 4 - 1
app/cxinv/command/MakeSeal.php

@@ -45,6 +45,9 @@ class MakeSeal extends Command
             (new ProductFz)->save($item);
         };
         (new ProductSeal)->saveAll($this->getProductLog($item,$ist->id));
+        $item['status']=2;
+        $item['remark']='';
+        (new ProductFz)->save($item);
     }
 
     public function getProductLog($item,$lastId){
@@ -66,7 +69,7 @@ class MakeSeal extends Command
                   'in_num'=>"0",
                   'out_num'=>"0",
                   'balance_num'=>$balance[$item['product_id']]??"0",
-                   'fz_id'=>$item['fz_id'],
+                  'fz_id'=>$item['fz_id'],
               ];
           }
           if($item['type']==3|| $item['type']==1){

+ 2 - 0
app/cxinv/controller/FinancialManager.php

@@ -138,6 +138,8 @@ class FinancialManager extends Base{
 //                $check = $this->model->CheckDatas($item);
 //                if(!empty($check)) return error("数据校验不通过",1004,$check);
 //            }
+            $item['apply_id']=$this->uid;
+            $item['apply_name']=$this->uname;
             $item['code']= makeNo("PM", count($list)==1?"":str_pad(strval($key),4,0,STR_PAD_LEFT));
         }
         $this->model->startTrans();