|
|
@@ -11,15 +11,15 @@ class StationTaskCommodity extends Model
|
|
|
{
|
|
|
use ModelLogChanging;
|
|
|
|
|
|
- protected $fillable= ['station_id','material_box_id','commodity_id','amount','order_id','status',"bin_number","station_task_batch_id","material_box_position"];
|
|
|
+ protected $fillable= ['station_id','station_task_material_box_id','commodity_id','amount','order_id','status',"bin_number","station_task_batch_id","material_box_position"];
|
|
|
|
|
|
public function commodity(): BelongsTo
|
|
|
{ //商品
|
|
|
return $this->belongsTo(Commodity::class);
|
|
|
}
|
|
|
- public function materialBox(): BelongsTo
|
|
|
+ public function StationTaskMaterialBox(): BelongsTo
|
|
|
{ //料箱
|
|
|
- return $this->belongsTo(MaterialBox::class);
|
|
|
+ return $this->belongsTo(StationTaskMaterialBox::class);
|
|
|
}
|
|
|
function stationTask(): BelongsTo
|
|
|
{
|