| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- @extends('layouts.app')
- @section('content')
- <div id="nav2">
- @component('waybill.menu')
- <li class="nav-item">
- <a class="nav-link" href="{{URL::current()}}" :class="{active:isActive('waybillEdit',2)}">修改</a>
- </li>
- @endcomponent
- </div>
- <div class="container-fluid mt-3" id="update">
- <div class="card">
- <div class="card-body">
- <form method="POST" action='{{url("waybill/waybillUpdate/{$waybill->id}")}}'>
- @csrf
- <div class="form-group row">
- <label for="type" class="col-2 col-form-label text-right text-primary">运单类型 *</label>
- <div class="h5 mb-3 col-8">
- <button type="button" @click="type='专线'" class="btn" :class="type=='专线'?'btn-primary':'btn-outline-primary'">专线</button>
- <button type="button" @click="type='直发车'" class="btn ml-2" :class="type!='专线'?'btn-primary':'btn-outline-primary'">直发车</button>
- </div>
- </div>
- <input hidden type="text" name="type" :value="type">
- <div class="form-group row">
- <label for="province_id" class="col-2 col-form-label text-right text-primary">货主 *</label>
- <div class="col-8">
- <select name="owner_id" class="form-control" style="width: 30%;">
- @foreach($owners as $owner)
- @if($owner->id==$waybill->owner_id)
- <option value="{{$owner->id}}" selected>{{$owner->name}}</option>
- @else
- <option value="{{$owner->id}}">{{$owner->name}}</option>
- @endif
- @endforeach
- </select>
- </div>
- </div>
- <div class="form-group row">
- <label for="wms_bill_number" class="col-2 col-form-label text-right text-muted">WMS单号</label>
- <div class="col-8">
- <input type="text" class="form-control @error('wms_bill_number') is-invalid @enderror"
- name="wms_bill_number" autocomplete="off" value="@if(old('wms_bill_number')){{ old('wms_bill_number') }}@else{{$waybill->wms_bill_number}}@endif" >
- @error('wms_bill_number')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <label for="origination" class="col-2 col-form-label text-right text-primary">始发地 *</label>
- <div class="col-8">
- <input type="text" class="form-control @error('origination') is-invalid @enderror"
- name="origination" autocomplete="off" value="@if(old('origination')){{ old('origination') }}@else{{$waybill->origination}}@endif" >
- @error('origination')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <label for="destination" class="col-2 col-form-label text-right text-primary">目的地 *</label>
- <div class="col-8">
- <input type="text" class="form-control @error('destination') is-invalid @enderror"
- name="destination" autocomplete="off" value="@if(old('destination')){{ old('destination') }}@else{{$waybill->destination}}@endif" >
- @error('origination')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <label for="recipient" class="col-2 col-form-label text-right text-primary">收件人 *</label>
- <div class="col-8">
- <input type="text" class="form-control @error('recipient') is-invalid @enderror"
- name="recipient" autocomplete="off" value="@if(old('recipient')){{ old('recipient') }}@else{{$waybill->recipient}}@endif" >
- @error('recipient')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <label for="recipient_mobile" class="col-2 col-form-label text-right text-primary">收件人电话 *</label>
- <div class="col-8">
- <input type="text" class="form-control @error('recipient_mobile') is-invalid @enderror"
- name="recipient_mobile" autocomplete="off" value="@if(old('recipient_mobile')){{ old('recipient_mobile') }}@else{{$waybill->recipient_mobile}}@endif" >
- @error('recipient_mobile')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <label for="charge" class="col-2 col-form-label text-right text-primary">运输收费(元) *</label>
- <div class="col-8">
- <input type="text" class="form-control @error('charge') is-invalid @enderror"
- name="charge" autocomplete="off" value="@if(old('charge')){{ old('charge') }}@else{{$waybill->charge}}@endif" >
- @error('charge')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <label for="other_charge" class="col-2 col-form-label text-right text-muted">其他收费(元)</label>
- <div class="col-8">
- <input type="text" class="form-control @error('other_charge') is-invalid @enderror"
- name="other_charge" autocomplete="off" value="@if(old('other_charge')){{ old('other_charge') }}@else{{$waybill->other_charge}}@endif" >
- @error('other_charge')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <label for="other_charge_remark" class="col-2 col-form-label text-right text-muted">其他收费备注</label>
- <div class="col-8">
- <input type="text" class="form-control @error('other_charge') is-invalid @enderror"
- name="other_charge_remark" autocomplete="off" value="@if(old('other_charge_remark')){{ old('other_charge_remark') }}@else{{$waybill->other_charge_remark}}@endif" >
- @error('other_charge_remark')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>·
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <label for="collect_fee" class="col-2 col-form-label text-right text-muted">到付金额(元)</label>
- <div class="col-8">
- <input type="text" class="form-control @error('collect_fee') is-invalid @enderror"
- name="collect_fee" autocomplete="off" value="@if(old('collect_fee')){{ old('collect_fee') }}@else{{$waybill->collect_fee}}@endif" >
- @error('collect_fee')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <label for="ordering_remark" class="col-2 col-form-label text-right text-muted">下单备注</label>
- <div class="col-8">
- <textarea class="form-control @error('ordering_remark') is-invalid @enderror"
- name="ordering_remark" autocomplete="off" >@if(old('ordering_remark')){{ old('ordering_remark') }}@else{{$waybill->ordering_remark}}@endif</textarea>
- @error('ordering_remark')
- <span class="invalid-feedback" role="alert">
- <strong>{{ $message }}</strong>
- </span>
- @enderror
- </div>
- </div>
- <div class="form-group row">
- <div class="col-8 offset-2">
- <input type="submit" class="btn btn-outline-dark form-control">
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- @endsection
- @section('lastScript')
- <script>
- new Vue({
- el:"#update",
- data:{
- type:"{{$waybill->type}}",
- },
- });
- </script>
- @endsection
|