loustwo %!s(int64=4) %!d(string=hai) anos
pai
achega
e82dafa6db
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Http/Controllers/DeliveryAppointmentController.php

+ 2 - 1
app/Http/Controllers/DeliveryAppointmentController.php

@@ -686,7 +686,8 @@ html;
         if(!$asnNos) $this->error("无此ASN单号");
         if (!$asn || strlen(request("asn"))<13)$this->error("非法ASN单号");
         $owner = request("owner_id");
-        $query = Store::query()->whereIn("asn_code",$asn);
+        $asnNos = preg_split('/[,, ]+/u', $asnNos);
+        $query = Store::query()->whereIn("asn_code",$asnNos);
         if ($owner)$query->where("owner_id",$owner);
         $stores = $query->with("storeItems")->get();
         if (!$stores)$this->error("无此ASN单号");