Procházet zdrojové kódy

入库预约 关于入库单的校验

loustwo před 4 roky
rodič
revize
0567493e52

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

@@ -682,8 +682,10 @@ html;
     {
         $this->gate("入库管理-入库预约-预约");
         $asn = preg_split('/[,, ]+/is', request("asn"));
-        $owner = request("owner_id");
         if (!$asn || strlen(request("asn"))<13)$this->error("非法ASN单号");
+        $asnNos = $this->checkAndGetAsn($asn);
+        if(!$asnNos) $this->error("无此ASN单号");
+        $owner = request("owner_id");
         $query = Store::query()->whereIn("asn_code",$asn);
         if ($owner)$query->where("owner_id",$owner);
         $stores = $query->with("storeItems")->get();