#
zhou zhou
2025-12-19 8dbae264b163b253e46bec4638914c7ec58f28c5
pages/stock/stockQuery.vue
@@ -42,9 +42,9 @@
               <view class="loc-info">
                  <text class="loc-no">{{item.locNo}}</text>
               </view>
               <view class="qty-badge">
               <!-- <view class="qty-badge">
                  <text class="qty-text">{{item.anfme}}</text>
               </view>
               </view> -->
            </view>
            <view class="card-body">
               <view class="info-row">
@@ -67,6 +67,12 @@
                  <view class="info-col half">
                     <text class="info-label">批号</text>
                     <text class="info-value batch">{{item.batch || '-'}}</text>
                  </view>
               </view>
               <view class="info-row">
                  <view class="info-col half">
                     <text class="info-label">数量</text>
                     <text class="info-value qty">{{item.anfme}}</text>
                  </view>
               </view>
            </view>
@@ -132,22 +138,22 @@
         // 搜索物料
         findMat() {
            let that = this;
            let m = that.matnr.split(";");
            let matnr1 = m[0].slice(3);
            setTimeout(() => {
               that.matnr = matnr1;
            }, 100);
            // let m = that.matnr.split(";");
            // let matnr1 = m[0].slice(3);
            // setTimeout(() => {
            //    that.matnr = matnr1;
            // }, 100);
         },
         search() {
            let that = this;
            that.loading = true;
            uni.request({
               url: that.baseUrl + '/manLocDetl/list/auth',
               url: that.baseUrl + '/locDetl/list/auth',
               header: { 'token': uni.getStorageSync('token') },
               data: {
                  curr: 1,
                  limit: 100,
                  loc_no: that.locNo,
                  locNo: that.locNo,
                  matnr: that.matnr
               },
               method: "GET",
@@ -288,7 +294,7 @@
   }
   
   .count-badge {
      background: linear-gradient(135deg, #F4C823 0%, #E6A817 100%);
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 16rpx;
      padding: 2rpx 12rpx;
      margin-left: 12rpx;
@@ -317,7 +323,7 @@
      display: flex;
      align-items: center;
      padding: 14rpx 16rpx;
      background: linear-gradient(135deg, #F4C823 0%, #E6A817 100%);
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   }
   
   .card-index {
@@ -393,12 +399,18 @@
   }
   
   .info-value.code {
      color: #F4C823;
      color: #303133;
      font-weight: 600;
   }
   
   .info-value.batch {
      color: #e6a23c;
      color: #667eea;
   }
   .info-value.qty {
      font-size: 28rpx;
      color: #303133;
      font-weight: 600;
   }
   
   /* 空状态 */