|
@@ -44,7 +44,7 @@
|
|
|
<div class="col-3" style="position: relative">
|
|
<div class="col-3" style="position: relative">
|
|
|
<select class="form-control @error('logistic_id') is-invalid @enderror" id="logistic_id" name="logistic_id"
|
|
<select class="form-control @error('logistic_id') is-invalid @enderror" id="logistic_id" name="logistic_id"
|
|
|
:class="errors['logistic_id'] ? 'is-invalid' :''" v-model="waybill.logistic_id">
|
|
:class="errors['logistic_id'] ? 'is-invalid' :''" v-model="waybill.logistic_id">
|
|
|
- <option v-for="logistic in logistics" :value="logistic.id">@{{logistic.name}}</option>
|
|
|
|
|
|
|
+ <option v-for="logistic in logistics" :value="logistic.id" v-if="logistic.tag.indexOf(waybill.type)!==-1">@{{logistic.name}}</option>
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
<label for="carrier_bill" class="col-2 col-form-label text-right">承运商单号</label>
|
|
<label for="carrier_bill" class="col-2 col-form-label text-right">承运商单号</label>
|
|
@@ -407,7 +407,7 @@
|
|
|
data:{
|
|
data:{
|
|
|
cities:[@foreach($cities as $city){id:'{{$city->id}}',name:'{{$city->name}}'},@endforeach],
|
|
cities:[@foreach($cities as $city){id:'{{$city->id}}',name:'{{$city->name}}'},@endforeach],
|
|
|
units:[@foreach($units as $unit){id:'{{$unit->id}}',name:'{{$unit->name}}',},@endforeach],
|
|
units:[@foreach($units as $unit){id:'{{$unit->id}}',name:'{{$unit->name}}',},@endforeach],
|
|
|
- logistics:[@foreach($logistics as $logistic){id:'{{$logistic->id}}',name:'{{$logistic->name}}',},@endforeach],
|
|
|
|
|
|
|
+ logistics:[@foreach($logistics as $logistic){id:'{{$logistic->id}}',name:'{{$logistic->name}}',tag:"{{$logistic->tag}}"},@endforeach],
|
|
|
carTypes:[@foreach($carTypes as $carType){!! $carType !!},@endforeach],
|
|
carTypes:[@foreach($carTypes as $carType){!! $carType !!},@endforeach],
|
|
|
deliveryTypes:[@foreach($deliveryTypes as $deliveryType){!! $deliveryType !!},@endforeach],
|
|
deliveryTypes:[@foreach($deliveryTypes as $deliveryType){!! $deliveryType !!},@endforeach],
|
|
|
errors:[],
|
|
errors:[],
|