waybillEdit.blade.php 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. @extends('layouts.app')
  2. @section('content')
  3. <div id="nav2">
  4. @component('waybill.menu')
  5. <li class="nav-item">
  6. <a class="nav-link" href="{{URL::current()}}" :class="{active:isActive('edit',4)}">修改</a>
  7. </li>
  8. @endcomponent
  9. </div>
  10. <div class="container-fluid mt-3">
  11. <div class="card">
  12. <div class="card-body">
  13. <form method="POST" action='{{url("waybill/waybillUpdate/{$waybill->id}")}}'>
  14. @csrf
  15. <div class="form-group row">
  16. <label for="type" class="col-2 col-form-label text-right text-primary">运单类型 *</label>
  17. @if($waybill->type=="直发车")
  18. <div class="col-8" style="padding-top: 1%">
  19. <label class="radio-inline"><input type="radio" name="type" value="直发车" checked>直发车</label>
  20. <label class="radio-inline" style="margin-left: 5%"><input type="radio" name="type" value="专线">专线</label>
  21. </div>
  22. @else
  23. <div class="col-8" style="padding-top: 1%">
  24. <label class="radio-inline"><input type="radio" name="type" value="直发车" >直发车</label>
  25. <label class="radio-inline" style="margin-left: 5%"><input type="radio" name="type" value="专线" checked>专线</label>
  26. </div>
  27. @endif
  28. </div>
  29. </div>
  30. <div class="form-group row">
  31. <label for="province_id" class="col-2 col-form-label text-right text-primary">货主 *</label>
  32. <div class="col-8">
  33. <select name="owner_id" class="form-control" style="width: 30%;">
  34. @foreach($owners as $owner)
  35. @if($owner->id==$waybill->owner_id)
  36. <option value="{{$owner->id}}" selected>{{$owner->name}}</option>
  37. @else
  38. <option value="{{$owner->id}}">{{$owner->name}}</option>
  39. @endif
  40. @endforeach
  41. </select>
  42. </div>
  43. </div>
  44. <div class="form-group row">
  45. <label for="wms_bill_number" class="col-2 col-form-label text-right text-muted">WMS单号</label>
  46. <div class="col-8">
  47. <input type="text" class="form-control @error('wms_bill_number') is-invalid @enderror"
  48. name="wms_bill_number" autocomplete="off" value="@if(old('wms_bill_number')){{ old('wms_bill_number') }}@else{{$waybill->wms_bill_number}}@endif" >
  49. @error('wms_bill_number')
  50. <span class="invalid-feedback" role="alert">
  51. <strong>{{ $message }}</strong>
  52. </span>
  53. @enderror
  54. </div>
  55. </div>
  56. <div class="form-group row">
  57. <label for="origination" class="col-2 col-form-label text-right text-primary">始发地 *</label>
  58. <div class="col-8">
  59. <input type="text" class="form-control @error('origination') is-invalid @enderror"
  60. name="origination" autocomplete="off" value="@if(old('origination')){{ old('origination') }}@else{{$waybill->origination}}@endif" >
  61. @error('origination')
  62. <span class="invalid-feedback" role="alert">
  63. <strong>{{ $message }}</strong>
  64. </span>
  65. @enderror
  66. </div>
  67. </div>
  68. <div class="form-group row">
  69. <label for="destination" class="col-2 col-form-label text-right text-primary">目的地 *</label>
  70. <div class="col-8">
  71. <input type="text" class="form-control @error('destination') is-invalid @enderror"
  72. name="destination" autocomplete="off" value="@if(old('destination')){{ old('destination') }}@else{{$waybill->destination}}@endif" >
  73. @error('origination')
  74. <span class="invalid-feedback" role="alert">
  75. <strong>{{ $message }}</strong>
  76. </span>
  77. @enderror
  78. </div>
  79. </div>
  80. <div class="form-group row">
  81. <label for="recipient" class="col-2 col-form-label text-right text-primary">收件人 *</label>
  82. <div class="col-8">
  83. <input type="text" class="form-control @error('recipient') is-invalid @enderror"
  84. name="recipient" autocomplete="off" value="@if(old('recipient')){{ old('recipient') }}@else{{$waybill->recipient}}@endif" >
  85. @error('recipient')
  86. <span class="invalid-feedback" role="alert">
  87. <strong>{{ $message }}</strong>
  88. </span>
  89. @enderror
  90. </div>
  91. </div>
  92. <div class="form-group row">
  93. <label for="recipient_mobile" class="col-2 col-form-label text-right text-primary">收件人电话 *</label>
  94. <div class="col-8">
  95. <input type="text" class="form-control @error('recipient_mobile') is-invalid @enderror"
  96. name="recipient_mobile" autocomplete="off" value="@if(old('recipient_mobile')){{ old('recipient_mobile') }}@else{{$waybill->recipient_mobile}}@endif" >
  97. @error('recipient_mobile')
  98. <span class="invalid-feedback" role="alert">
  99. <strong>{{ $message }}</strong>
  100. </span>
  101. @enderror
  102. </div>
  103. </div>
  104. <div class="form-group row">
  105. <label for="charge" class="col-2 col-form-label text-right text-primary">收费(元) *</label>
  106. <div class="col-8">
  107. <input type="text" class="form-control @error('charge') is-invalid @enderror"
  108. name="charge" autocomplete="off" value="@if(old('charge')){{ old('charge') }}@else{{$waybill->charge}}@endif" >
  109. @error('charge')
  110. <span class="invalid-feedback" role="alert">
  111. <strong>{{ $message }}</strong>
  112. </span>
  113. @enderror
  114. </div>
  115. </div>
  116. <div class="form-group row">
  117. <label for="collect_fee" class="col-2 col-form-label text-right text-muted">到付金额(元)</label>
  118. <div class="col-8">
  119. <input type="text" class="form-control @error('collect_fee') is-invalid @enderror"
  120. name="collect_fee" autocomplete="off" value="@if(old('collect_fee')){{ old('collect_fee') }}@else{{$waybill->collect_fee}}@endif" >
  121. @error('collect_fee')
  122. <span class="invalid-feedback" role="alert">
  123. <strong>{{ $message }}</strong>
  124. </span>
  125. @enderror
  126. </div>
  127. </div>
  128. <div class="form-group row">
  129. <label for="ordering_remark" class="col-2 col-form-label text-right text-muted">下单备注</label>
  130. <div class="col-8">
  131. <textarea class="form-control @error('ordering_remark') is-invalid @enderror"
  132. name="ordering_remark" autocomplete="off" >@if(old('ordering_remark')){{ old('ordering_remark') }}@else{{$waybill->ordering_remark}}@endif</textarea>
  133. @error('ordering_remark')
  134. <span class="invalid-feedback" role="alert">
  135. <strong>{{ $message }}</strong>
  136. </span>
  137. @enderror
  138. </div>
  139. </div>
  140. <div class="form-group row">
  141. <div class="col-8 offset-2">
  142. <input type="submit" class="btn btn-outline-dark form-control">
  143. </div>
  144. </div>
  145. </form>
  146. </div>
  147. </div>
  148. </div>
  149. @endsection