Преглед изворни кода

window.manuallyHairouRequesting=true

LD пре 4 година
родитељ
комит
1c783dda21
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      resources/views/station/monitor/show.blade.php

+ 4 - 3
resources/views/station/monitor/show.blade.php

@@ -403,10 +403,10 @@
                         this.current_stationTaskBatch.runningStatus=''
                 },
                 manuallyTakeBoxOut(){
-                    if(typeof(window.manuallyHairouRequesting)!='undefined'
-                        &&window.manuallyHairouRequesting===false){
+                    if(typeof(window.manuallyHairouRequesting)==='undefined'
+                        ||window.manuallyHairouRequesting===false){
                         window.manuallyHairouRequesting=true;
-                    }
+                    }else{return;}
                     let text = this.inputs.manuallyTakeBox.text.trim();
                     if(!text){
                         alert('请输入料箱号')
@@ -419,6 +419,7 @@
                         tempTip.okWindow(err,'确定')
                     }).finally(function(){
                         this.inputs.manuallyTakeBox.text='';
+                        window.manuallyHairouRequesting=false;
                     })
                 },
                 runTheTaskBatch(){