OwnerWayBillFeeDetail.php 852 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. 'waybill_id',
  10. 'unit_id',
  11. 'step',//计数区间
  12. 'fuel_fee',//燃油附加费
  13. 'service_fee',//信息费
  14. 'originate_fee',//起始计费
  15. 'originate_count',//起始计数
  16. 'price',//单价
  17. 'delivery_fee'//送货费
  18. ];
  19. public function waybill()
  20. {
  21. return $this->belongsTo(Waybill::class);
  22. }
  23. public function unit()
  24. {
  25. return $this->belongsTo(Unit::class);
  26. }
  27. /**
  28. * 根据插入数组构建查询数组
  29. * @param $data
  30. * @return array
  31. */
  32. public static function buildSelectData($data): array
  33. {
  34. return [];
  35. }
  36. }