|
|
@@ -121,7 +121,7 @@ class StorageService
|
|
|
->where("status",0)->first();
|
|
|
if (!$task)return;
|
|
|
//蓝灯闪烁
|
|
|
- if ($task->type == '入库' && $task->mark == 1)app("CacheShelfService")->stationLightUp($stationTaskMaterialBox->station->code,null,'2','2',"机器人取箱中,禁止操作");
|
|
|
+ if ($task->type == '入库' && $task->mark == 1)app("CacheShelfService")->lightUp($stationTaskMaterialBox->station->code,'2','2',["title"=>'机器人取箱中,禁止操作',]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -362,12 +362,12 @@ sql;
|
|
|
if ($inv->locationid==$task->fmlocation){
|
|
|
$columns = '';
|
|
|
$values = '';
|
|
|
- DB::connection("oracle")->update(DB::raw("UPDATE inv_lot_loc_id SET qty = qty-? WHERE lotnum = ? AND locationid = ? AND traceid = ?"),[
|
|
|
- $amount,$inv->lotnum,$inv->locationid,$inv->traceid
|
|
|
+ DB::connection("oracle")->update(DB::raw("UPDATE inv_lot_loc_id SET qty = qty-?,qtymvout = qtymvout-? WHERE lotnum = ? AND locationid = ? AND traceid = ?"),[
|
|
|
+ $amount,$amount,$inv->lotnum,$inv->locationid,$inv->traceid
|
|
|
]);
|
|
|
foreach ($inv as $key=>$val){
|
|
|
if (Str::upper($key)=='TRACEID') $val = "WAS".$task->fmid;
|
|
|
- if (Str::upper($key)=='QTY') $val = $amount;
|
|
|
+ if (Str::upper($key)=='QTY' || Str::upper($key)=='QTYMVOUT') $val = $amount;
|
|
|
$columns .= $key.",";
|
|
|
$values .= $this->valFormat($val) .",";
|
|
|
}
|