浏览代码

手持收货,上架页面 回馈信息展示时间延长

haozi 4 年之前
父节点
当前提交
d09a34db62

+ 5 - 5
app/Http/Controllers/TestController.php

@@ -256,12 +256,12 @@ sql;
 
     public function testZC()
     {
-        $batches=Batch::query()
+        $batch=Batch::query()
             ->with('orders.orderCommodities.commodity.barcodes')
-            ->where('owner_id',372)
-            ->where('id',149507)
+            ->where('code','W210814000158')
             ->first();
-        dd($batches);
-        app(ForeignZhenCangService::class)->broadcastBatch($batches);
+//        dd($batch);
+        app(ForeignZhenCangService::class)->broadcastBatch($batch);
+        dd('上传成功');
     }
 }

+ 6 - 6
resources/views/store/handInStorage/putaway.blade.php

@@ -149,7 +149,7 @@
                                             return true;
                                         } else {
                                             $('#'+element.id).prop('checked', false);
-                                            window.tempTip.setDuration(2000);
+                                            window.tempTip.setDuration(3000);
                                             window.tempTip.show('货主,批次不同,不可同时上架');
                                         }
                                     });
@@ -195,10 +195,10 @@
                                         }, 100);
                                         return;
                                     }
-                                    window.tempTip.setDuration(2000);
+                                    window.tempTip.setDuration(3000);
                                     window.tempTip.show(res.data.data);
                                 }).catch(err => {
-                                window.tempTip.setDuration(2000);
+                                window.tempTip.setDuration(3000);
                                 window.tempTip.show("网络错误:" + err);
                             })
                         },
@@ -217,7 +217,7 @@
                             if (JSON.stringify(this.errors)==='{}') window.axios.post(url,{info:this.info,checkData:this.checkData})
                                 .then(res=>{
                                     if (res.data.success){
-                                        window.tempTip.setDuration(2000);
+                                        window.tempTip.setDuration(3000);
                                         window.tempTip.showSuccess(res.data.data);
                                         this.info={};
                                         this.checkData=[];
@@ -226,10 +226,10 @@
                                         document.getElementById("trackNumber").focus();
                                         return;
                                     }
-                                    window.tempTip.setDuration(2000);
+                                    window.tempTip.setDuration(3000);
                                     window.tempTip.show(res.data.data);
                                 }).catch(err=>{
-                                window.tempTip.setDuration(2000);
+                                window.tempTip.setDuration(3000);
                                 window.tempTip.show("网络错误:"+err);
                             })
 

+ 3 - 3
resources/views/store/handInStorage/receiveDetailPage.blade.php

@@ -292,12 +292,12 @@
                                 this.$forceUpdate()
                                 return;
                             }else {
-                                window.tempTip.setDuration(2000);
+                                window.tempTip.setDuration(3000);
                                 window.tempTip.show(res.data.data);
                                 this.isInit=true;
                             }
                         }).catch(err=>{
-                        window.tempTip.setDuration(2000);
+                        window.tempTip.setDuration(3000);
                         window.tempTip.show("网络错误:"+err);
                     })
                 },
@@ -328,7 +328,7 @@
                                 document.getElementById("sku").select();
                                 return;
                             }
-                            window.tempTip.setDuration(2000);
+                            window.tempTip.setDuration(3000);
                             window.tempTip.show(res.data.data);
                         }).catch(err=>{
                         window.tempTip.setDuration(2000);