|
@@ -21,9 +21,14 @@ class Waybill extends Model
|
|
|
'status','type','waybill_number','owner_id','wms_bill_number','origination','destination','recipient','recipient_mobile','charge','ordering_remark',
|
|
'status','type','waybill_number','owner_id','wms_bill_number','origination','destination','recipient','recipient_mobile','charge','ordering_remark',
|
|
|
'logistic_id','carrier_bill','origination_city_id','destination_city_id','warehouse_weight','warehouse_weight_unit_id','carrier_weight','carrier_weight_unit_id','carType_id',
|
|
'logistic_id','carrier_bill','origination_city_id','destination_city_id','warehouse_weight','warehouse_weight_unit_id','carrier_weight','carrier_weight_unit_id','carType_id',
|
|
|
'car_owner_info','fee','pick_up_fee','other_fee','collect_fee','dispatch_remark','waybill_price_model_id','warehouse_weight_other','warehouse_weight_unit_id_other'
|
|
'car_owner_info','fee','pick_up_fee','other_fee','collect_fee','dispatch_remark','waybill_price_model_id','warehouse_weight_other','warehouse_weight_unit_id_other'
|
|
|
- ,'carrier_weight_other','carrier_weight_unit_id_other','source_bill','mileage','amount','inquire_tel','amount_unit_id','other_charge','other_charge_remark','deliver_at'
|
|
|
|
|
|
|
+ ,'carrier_weight_other','carrier_weight_unit_id_other','source_bill','mileage','amount','inquire_tel','amount_unit_id','other_charge','other_charge_remark','deliver_at',
|
|
|
|
|
+ "district_id"
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
+ public function district()
|
|
|
|
|
+ { //区
|
|
|
|
|
+ return $this->belongsTo(Region::class,"district_id","id")->where("type",3);
|
|
|
|
|
+ }
|
|
|
public function owner(){
|
|
public function owner(){
|
|
|
return $this->hasOne('App\Owner','id','owner_id');
|
|
return $this->hasOne('App\Owner','id','owner_id');
|
|
|
}
|
|
}
|