| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- class TaskTransaction extends Model
- {
- use ModelLogChanging;
- protected $fillable = [
- "doc_code",
- "bar_code",
- "fm_station_id",
- "to_station_id",
- "material_box_id",
- "task_id",
- "commodity_id",
- "amount",
- "type",
- "status",
- "user_id",
- "mark"
- ];
- const STATUS = [
- 0 => "待做",
- 1 => "完成",
- 2 => "失败"
- ];
- const MARK = [
- 0 => "无",
- 1 => "缓存架半箱入库"
- ];
- public function materialBox()
- { //料箱
- return $this->belongsTo(MaterialBox::class);
- }
- }
|