|
|
@@ -67,5 +67,18 @@ class MasterWorkerRegister extends BaseModel
|
|
|
}
|
|
|
return $status[$data['other_exp_type']] ?? '';
|
|
|
}
|
|
|
+ public function getVehicleTypeTextAttr($value,$data):string{
|
|
|
+ $default = Cache::get('WORKER_VEHICLE_TYPE');
|
|
|
+ if (!$default) {
|
|
|
+ $status = DictData::where('type_value', 'worker_vehicle_type')->column('name','value');
|
|
|
+ Cache::set('WORKER_VEHICLE_TYPE', json_encode($status,true),5);
|
|
|
+ } else {
|
|
|
+ $status = json_decode($default,true);
|
|
|
+ }
|
|
|
+ return $status[$data['vehicle_type']] ?? '';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|