Przeglądaj źródła

Merge branch 'zzd' of ssh://was.baoshi56.com:10022/var/git/bswas

LD 5 lat temu
rodzic
commit
e20cf10d3a

+ 2 - 3
app/Http/Controllers/WaybillPriceModelController.php

@@ -6,7 +6,6 @@ use App\Region;
 use App\WaybillPriceModel;
 use App\Events\WaybillPriceModelEvent;
 use App\Imports\WaybillPriceModelsImport;
-use App\Province;
 use App\Unit;
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\Auth;
@@ -21,7 +20,7 @@ class WaybillPriceModelController extends Controller
     {
         if(!Gate::allows('计费模型-查询')){ return redirect(url('/'));  }
         $logistics=app('LogisticService')->getSelection(["id","name"],"物流");
-        $provinces=Province::query()->get();
+        $provinces=Region::query()->where("type",1)->get();
         $data=$request->input();
         $waybillPriceModels= WaybillPriceModel::query()->with(["logistic","province","city","unit"])->orderBy('id', 'DESC');
         if ($data){
@@ -159,7 +158,7 @@ class WaybillPriceModelController extends Controller
             'WaybillPriceModel.province_id'=>'required|integer',
             'WaybillPriceModel.logistic_id'=>'required|integer',
             'WaybillPriceModel.unit_id'=>'required|integer',
-            'WaybillPriceModel.city_id'=>'nullable|Integer',
+            'WaybillPriceModel.city_id'=>'nullable|integer',
             'WaybillPriceModel.range_min'=> 'nullable|min:0|numeric|max:999999',
             'WaybillPriceModel.range_max'=> "nullable|min:{$min}|numeric|max:999999",
             'WaybillPriceModel.unit_price'=>'required|min:0|numeric|max:999999',

+ 1 - 1
resources/views/transport/waybill/index.blade.php

@@ -124,7 +124,7 @@
                             </table>
                         </div>
                     </td>
-                    <td class="td-warm">@{{waybill.type}} <span class="badge badge-sm bg-warning" v-if="(waybill.collect_fee && waybill.collect_fee>0) || waybill.is_to_pay">到付</span></td>
+                    <td class="td-warm">@{{waybill.type}} <span class="badge badge-sm bg-warning" v-if="(waybill.collect_fee && waybill.collect_fee>0) || waybill.is_to_pay=='1'">到付</span></td>
                     <td class="td-warm">@{{waybill.owner}}</td>
                     <td class="td-warm toptd" :title="waybill.remark? '置顶备注:'+waybill.remark :''">@{{waybill.source_bill}}</td>
                     <td class="td-warm">