|
|
@@ -58,8 +58,7 @@ class ServiceWorkSparePartLists extends BaseWorkerDataLists implements ListsSear
|
|
|
$id = ServiceWork::where($this->searchWhere)->value('id');
|
|
|
$spare_parts = [];
|
|
|
if($id){
|
|
|
- $spare_parts['spare_parts'] = ServiceWorkSpare::getLists($id, 1);
|
|
|
- $spare_parts['self_spare_parts'] = ServiceWorkSpare::getLists($id, 2);
|
|
|
+ $spare_parts = ServiceWorkSpare::getLists($id);
|
|
|
}
|
|
|
return $spare_parts?array_values($spare_parts):[];
|
|
|
}
|