Quellcode durchsuchen

修改后台地址

zhouzhendong vor 4 Jahren
Ursprung
Commit
ea73eb4b80
1 geänderte Dateien mit 24 neuen und 2 gelöschten Zeilen
  1. 24 2
      resources/views/station/monitor/show.blade.php

+ 24 - 2
resources/views/station/monitor/show.blade.php

@@ -207,14 +207,15 @@
                                 <textarea  name="" id="" cols="30" rows="3" class="form-control" v-model="inputs.manuallyTakeBox.text"
                                 <textarea  name="" id="" cols="30" rows="3" class="form-control" v-model="inputs.manuallyTakeBox.text"
                                            placeholder="点选此处写入料箱号,可以省略IDE前缀和0,多个用空格分隔,例入:5121 156"></textarea>
                                            placeholder="点选此处写入料箱号,可以省略IDE前缀和0,多个用空格分隔,例入:5121 156"></textarea>
                                             <button class="btn btn-sm btn-primary btn-lg" @click="paddingEmptyBox">填充空箱</button>
                                             <button class="btn btn-sm btn-primary btn-lg" @click="paddingEmptyBox">填充空箱</button>
-                                            <div class="row mt-1">
+                                            <button class="btn btn-info btn-lg" @click="manuallyTakeBoxOut">出库</button>
+<!--                                            <div class="row mt-1">
                                                 <select class="form-control ml-3" v-model="type" style="width:150px">
                                                 <select class="form-control ml-3" v-model="type" style="width:150px">
                                                     <option v-for="strategy in strategies" :value="strategy.code">@{{ strategy.name }}</option>
                                                     <option v-for="strategy in strategies" :value="strategy.code">@{{ strategy.name }}</option>
                                                 </select>
                                                 </select>
                                                 <select class="form-control ml-1" v-model="stationCode" style="width:150px">
                                                 <select class="form-control ml-1" v-model="stationCode" style="width:150px">
                                                     <option v-for="st in stations" :value="st.code">@{{ st.code }}</option>
                                                     <option v-for="st in stations" :value="st.code">@{{ st.code }}</option>
                                                 </select>
                                                 </select>
-                                            </div>
+                                            </div>-->
                                         </div>
                                         </div>
                                     </div>
                                     </div>
                                 </div>
                                 </div>
@@ -385,6 +386,27 @@
                 this._listenAllTaskBroadcast();
                 this._listenAllTaskBroadcast();
             },
             },
             methods:{
             methods:{
+                manuallyTakeBoxOut(){
+                    let _this=this;
+                    if(typeof(window.manuallyHairouRequesting)==='undefined'
+                        ||window.manuallyHairouRequesting===false){
+                        window.manuallyHairouRequesting=true;
+                    }else{return;}
+                    let text = this.inputs.manuallyTakeBox.text.trim();
+                    if(!text){
+                        alert('请输入料箱号')
+                        return
+                    }
+                    axios.post('{{url('/api/thirdPart/haiq/storage/takeOutToULine')}}',{codes:text})
+                        .then(function(response){
+                            tempTip.okWindow(response.data.result,'确定')
+                        }).catch(function(err){
+                        tempTip.okWindow(err,'确定')
+                    }).finally(function(){
+                        _this.inputs.manuallyTakeBox.text='';
+                        window.manuallyHairouRequesting=false;
+                    })
+                },
                 _makeMenuHiding(){
                 _makeMenuHiding(){
                     $('.navbar,.nav1,.nav2').hide();
                     $('.navbar,.nav1,.nav2').hide();
                     $('.nav3').on('mouseenter', function () {
                     $('.nav3').on('mouseenter', function () {