heshaofeng
2025-11-14 5beb11143d51268dc2ee6b4ad5d59f4535e1103e
ÏîÄ¿´úÂë/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue
@@ -148,8 +148,8 @@
            <span><i class="el-icon-tickets"></i> ç»„盘数据</span>
            <span class="list-actions">
              <el-tag type="primary" size="small">共 {{ materials.length }} æ¡</el-tag>
              <el-tag type="primary" size="small">已组盘 {{ totalStockCount }}</el-tag>
              <el-tag type="primary" size="small">库存 {{ totalStockSum }}{{ uniqueUnit }}</el-tag>
              <el-tag type="primary" size="small">未组盘 {{ totalStockCount }}</el-tag>
              <el-tag type="primary" size="small">未入库数量 {{ totalStockSum }}{{ uniqueUnit }}</el-tag>
              <el-tag v-if="trayBarcode" type="success" size="small">托盘: {{ trayBarcode }}</el-tag>
              <el-tag v-if="form.locationType" type="info" size="small">区域: {{ currentLocationDesc }}</el-tag>
            </span>
@@ -198,6 +198,7 @@
import { ElLoading, ElMessage,ElMessageBox  } from 'element-plus';
import { ref, onMounted, onUnmounted } from 'vue'
import InboundOrder from '../../../views/inbound/inboundOrder.vue';
import { th } from 'element-plus/es/locales.mjs';
export default {
  name: 'BarcodeScanner',
@@ -436,7 +437,7 @@
        // æ‰‹åŠ¨æ£€æŸ¥locationType,正确处理值为0的情况
        if (this.form.locationType === null || this.form.locationType === undefined || this.form.locationType === '') {
          this.error = '请先选择仓库区域';
          this.$message.warning('请先选择仓库区域');
          //this.$message.warning('请先选择仓库区域');
        } else {
          // å¦‚果值存在(包括0),但验证不通过,可能是其他验证错误
          this.error = '请检查表单填写是否正确';
@@ -616,7 +617,7 @@
  // å…ˆç›´æŽ¥æ£€æŸ¥locationType,避免表单验证的异步问题
  if (!this.form.locationType) {
    this.error = '请先选择仓库区域';
    this.$message.warning('请先选择仓库区域');
    //this.$message.warning('请先选择仓库区域');
    return;
  }
  
@@ -728,7 +729,7 @@
                duration: 2000
              });
         
            this.fetchStockStatistics();
            // æ¸…空物料输入框并保持聚焦
            this.barcode = '';
            this.scanCode = ''; // æ¸…空扫码缓存
@@ -775,7 +776,7 @@
 if(!response.status){
   this.error = response.message || '查询条码信息失败,请重试';
 }
        // ç¡®ä¿è¿”回的数据包含所有必需的字段
        return  materialData;
        
      } catch (error) {
@@ -850,6 +851,8 @@
              type: 'success',
              message: '删除成功!'
            });
            this.fetchStockStatistics();
          }).catch(() => {
            // å–消删除
          });