OwnerWayBillFeeDetail.php 799 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\ModelLogChanging;
  5. class OwnerWayBillFeeDetail extends Model
  6. {
  7. use ModelLogChanging;
  8. public $fillable = [
  9. 'owner_fee_detail_id',
  10. 'waybill_id',
  11. 'util_id',
  12. 'step',//计数区间
  13. 'fuel_fee',//燃油附加费
  14. 'service_fee',//信息费
  15. 'originate_fee',//起始计费
  16. 'originate_count',//起始计数
  17. 'price',//单价
  18. 'delivery_fee'//送货费
  19. ];
  20. public function ownerFeeDetail()
  21. {
  22. return $this->belongsTo(OwnerFeeDetail::class);
  23. }
  24. public function waybill()
  25. {
  26. return $this->belongsTo(Waybill::class);
  27. }
  28. public function unit()
  29. {
  30. return $this->belongsTo(Unit::class);
  31. }
  32. }