Pārlūkot izejas kodu

入库管理--预约管理,添加asn单号筛选条件

hu hao 4 gadi atpakaļ
vecāks
revīzija
82f3cd3a66

+ 3 - 2
app/Services/DeliveryAppointmentService.php

@@ -1,4 +1,4 @@
-<?php 
+<?php
 
 namespace App\Services;
 
@@ -33,6 +33,7 @@ class DeliveryAppointmentService
             'created_at_end' => ['alias' => 'created_at' , 'endDate' => ' 23:59:59'],
             'appointment_date_end' => ['alias' => 'appointment_date' , 'endDate' => ' 23:59:59'],
             "owner_id"=>['multi' => ','],
+            "asn_number"=>['like' => '','timeLimit' => 15],
             "id"=>['multi' => ','],
         ])->orderByDesc("id")->whereIn("owner_id",$owners)->with(["cars.car","details.commodity.barcodes"]);
     }
@@ -198,4 +199,4 @@ class DeliveryAppointmentService
         $total = $warehouse->production_capacity*DeliveryAppointment::HOUR[$period];
         return $total-$result->capacity;
     }
-}
+}

+ 2 - 1
resources/views/store/deliveryAppointment/list.blade.php

@@ -290,6 +290,7 @@
                             {name:'created_at_end',type:'dateTime',tip:"选择显示创建日期的结束时间"},
                             {name:'appointment_date_end',type:'dateTime',tip:"选择显示预约日期的结束时间"},
                             {name:'warehouse_id',type:'select',placeholder: '仓库',data:this.warehouses},
+                            {name:'asn_number',type:'input',tip:'不支持多ASN单号,默认查询近15天内数据,模糊搜索可在两侧增加百分号(%)进行',placeholder:'ASN单号'},
                         ],
                     ];
                     let form = new query({
@@ -457,4 +458,4 @@
             },
         });
     </script>
-@stop
+@stop