OwnerWayBillFeeDetail.php 989 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. /**
  33. * 根据插入数组构建查询数组
  34. * @param $data
  35. * @return array
  36. */
  37. public static function buildSelectData($data): array
  38. {
  39. return [];
  40. }
  41. }