Browse Source

预约单号

loustwo 4 years ago
parent
commit
e82dafa6db
1 changed files with 2 additions and 1 deletions
  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单号");