| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- class OwnerWayBillFeeDetail extends Model
- {
- use ModelLogChanging;
- public $fillable = [
- 'waybill_id',
- 'unit_id',
- 'step',//计数区间
- 'fuel_fee',//燃油附加费
- 'service_fee',//信息费
- 'originate_fee',//起始计费
- 'originate_count',//起始计数
- 'price',//单价
- 'delivery_fee'//送货费
- ];
- public function waybill()
- {
- return $this->belongsTo(Waybill::class);
- }
- public function unit()
- {
- return $this->belongsTo(Unit::class);
- }
- /**
- * 根据插入数组构建查询数组
- * @param $data
- * @return array
- */
- public static function buildSelectData($data): array
- {
- return [];
- }
- }
|