This commit is contained in:
pushuo 2022-08-16 19:15:48 +08:00
parent f6e02c9990
commit ba67262e9e
2 changed files with 5 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class RmaController extends Controller
$data = [
'orderProduct' => OrderProductRepo::find($orderProductId),
'statuses' => RmaRepo::getStatuses(),
'reasons' => RmaReasonRepo::list(),
'reasons' => RmaReasonRepo::list()->toArray(),
'types' => RmaRepo::getTypes(),
];

View File

@ -70,11 +70,13 @@
<option value="1"></option>
</select>
</div>
<div class="col-sm-6 mb-4">
<label class="form-label">退换原因</label>
<select class="form-select" name="opened">
<option selected value="0"></option>
<option value="1"></option>
@foreach ($reasons as $item)
<option value="{{ $item['id'] }}" {{ $item['id'] == old('opened', '') ? 'selected': '' }}>{{ $item['name'] }}</option>
@endforeach
</select>
</div>