"退货单", ]; public function items() { //出库规则 return $this->hasMany(OwnerPriceOperationItem::class,"owner_price_operation_id","id"); } public function owners() { //货主 return $this->belongsToMany(Owner::class,"owner_price_operation_owner","owner_price_operation_id","owner_id"); } public function taxRate() { //税率 return $this->belongsTo(TaxRate::class); } public function getFeatureFormatAttribute() { if ($this->strategy == '默认')return "/"; return app("FeatureService")->formatFeature(self::$features,$this->feature,self::$columnMapping); } }