Explorar el Código

手持-立库-站点解绑增加料箱号

zhaohuanhuan hace 2 meses
padre
commit
bf1cdd1c58
Se han modificado 1 ficheros con 8 adiciones y 8 borrados
  1. 8 8
      src/views/haikang/boxReturn/boxReturn/index.vue

+ 8 - 8
src/views/haikang/boxReturn/boxReturn/index.vue

@@ -20,7 +20,7 @@
         <van-tab title="解绑站点" name="2"  ></van-tab>
       </van-tabs>
         <div class="content-code">
-          <div class="barcode-input" v-if="active!=2 || mode!=='asrs' ">
+          <div class="barcode-input" >
             <van-search
               ref="boxRef"
               v-model.lazy="scanBox"
@@ -112,14 +112,14 @@ const _handlerScan = (code) => {
   }
 }
 const onActive=(type)=>{
-  if(type==2 && mode.value=='asrs'){
-    scanType.value=2
-  }else{
-    scanType.value=1
-  }
+  // if(type==2 && mode.value=='asrs'){
+  //   scanType.value=2
+  // }else{
+  //   scanType.value=1
+  // }
 }
 const onConfirm=()=>{
-  if(!scanBox.value && active.value!=2){
+  if(!scanBox.value ){
     tips.value='请先扫描料箱编号'
     scanType.value=1
     showNotify({ type: 'danger', duration: 3000, message:'请先扫描料箱编号' })
@@ -207,7 +207,7 @@ const _boxAndStationUnbindTask=()=>{
 }
 //立库解绑
 const _asrsBoxAndStationUnbindTask=()=>{
-  const data={warehouse, stationCode:scanStation.value}
+  const data={warehouse, stationCode:scanStation.value,containerCode:scanBox.value}
   showLoading()
   asrsBoxAndStationUnbindTask(data).then(res=>{
     if(res.data){