Просмотр исходного кода

大件拣货去掉剩余数量

zhaohuanhuan 1 год назад
Родитель
Сommit
7e5ed559d2

+ 6 - 6
src/views/outbound/components/BigPicking.vue

@@ -9,13 +9,13 @@
       <div class="big-task-item" v-for="(item,index) in props.taskDetailList" :key="index" >
         <div class="big-task-content"  >
           <div class="big-content" :style="item.hours>=2?'color:#ee0a24;font-weight: 500':''">{{item.orderNo}}</div>
-          <div  class="big-carrier" v-if="item.availableQty===item.totalItemNum"><van-notice-bar :background="'none'" :speed="10" color="#333" :text="item.carrierName" /></div>
-          <div class="big-content"><span style="font-size: 12px">共</span>{{item.totalItemNum}}<span style="font-size: 12px">件</span></div>
-          <div class="big-content" v-if="item.availableQty!==item.totalItemNum"><span style="font-size: 12px">剩</span>{{item.availableQty}}<span style="font-size: 12px">件</span></div>
-        </div>
-        <div style="margin-top: -5px" v-if="item.availableQty!==item.totalItemNum">
-          <van-notice-bar :background="'none'" style="font-size: 12px" color="#333" :speed="10" :text="item.carrierName" />
+          <div  class="big-carrier"><van-notice-bar :background="'none'" :speed="10" color="#333" :text="item.carrierName" /></div>
+          <div class="big-content">{{item.totalItemNum}}<span style="font-size: 12px">件</span></div>
+<!--          <div class="big-content" v-if="item.availableQty!==item.totalItemNum"><span style="font-size: 12px">剩</span>{{item.availableQty || 0}}<span style="font-size: 12px">件</span></div>-->
         </div>
+<!--        <div style="margin-top: -5px" v-if="item.availableQty!==item.totalItemNum">-->
+<!--          <van-notice-bar :background="'none'" style="font-size: 12px" color="#333" :speed="10" :text="item.carrierName" />-->
+<!--        </div>-->
         <div class="big-task-button">
           <div class="big-button" @click="onTypeOrder(item,'LOCATION_PICK')">按库位查看</div>
           <div class="big-button" @click="onTypeOrder(item,'AISLE_PICK')">按巷道查看</div>

+ 2 - 2
src/views/outbound/picking/list/index.vue

@@ -374,7 +374,7 @@ const _handlerScan=(code)=> {
           const combineSkuMap=toMap(res.data,'barcode')
           const matchedSkuList=barcodeCombine(modelLocative.list,combineSkuMap)
           if(matchedSkuList.length>0){
-            if(modelLocative.list.length==matchedSkuList.length){
+            if(matchedSkuList.length==res.data.length){
               matchedSku.value=matchedSkuList
               barcodeCombineRef.value.show()
             }else{
@@ -437,10 +437,10 @@ const validate = (data,type) => {
 const jumpLoading=ref(false);
 const onCount=(item,type)=>{
   const data=JSON.parse(JSON.stringify(item))
-  data.container=containerNo.value
   data.operationTime=formatDateTime(new Date())
   const params=[data]
   if(type==0){
+    data.container=containerNo.value
     data.quantity=data.count
   }else {
     data.quantity=0