|
|
@@ -103,8 +103,8 @@ sql;
|
|
|
public function checkUsableBox(int $boxId):bool
|
|
|
{
|
|
|
/** @var MaterialBox|\stdClass $box */
|
|
|
- $box = MaterialBox::query()->find($boxId);
|
|
|
- if (!$this->getBoxLocation($box->code))return false;
|
|
|
+ //$box = MaterialBox::query()->find($boxId);
|
|
|
+ //if (!$this->getBoxLocation($box->code))return false;
|
|
|
if (StationTaskMaterialBox::query()->select(DB::raw(1))->where("status","!=",'完成')->where("material_box_id",$boxId)->first())return false;
|
|
|
return true;
|
|
|
}
|