spring
2026-03-30 f6427b5dea54bbb8761fade351e9f86404b2fb61
src/pages/consumablesLogistics/stockManagement/index.vue
@@ -6,8 +6,8 @@
      <view class="search-row">
        <view class="search-input-wrap">
          <up-input
            v-model="searchForm.productName"
            placeholder="产品大类"
            v-model="searchForm.model"
            placeholder="规格型号"
            clearable
          />
        </view>
@@ -39,7 +39,7 @@
              <view class="row"><text class="l">规格型号</text><text class="r">{{ item.model }}</text></view>
              <view class="row"><text class="l">单位</text><text class="r">{{ item.unit }}</text></view>
              <view class="row"><text class="l">总库存数</text><text class="r highlight">{{ item.qualitity }}</text></view>
              <view class="row"><text class="l">冻结数量</text><text class="r">{{ item.lockedQuantity || 0 }}</text></view>
              <!-- <view class="row"><text class="l">冻结数量</text><text class="r">{{ item.lockedQuantity || 0 }}</text></view> -->
              <view class="row"><text class="l">可用库存</text><text class="r">{{ item.unLockedQuantity ?? (item.qualitity - (item.lockedQuantity || 0)) }}</text></view>
              <view class="row"><text class="l">最近更新时间</text><text class="r">{{ item.updateTime }}</text></view>
            </view>
@@ -50,11 +50,11 @@
              :class="{ disabled: !(item.unLockedQuantity > 0) }"
              @click="openSubtract(item)"
            >出库</view>
            <view
            <!-- <view
              class="btn-link btn-link-warn"
              v-if="item.unLockedQuantity > 0"
              @click="openFrozen(item)"
            >冻结</view>
            >冻结</view> -->
            <view
              class="btn-link btn-link-plain"
              v-if="(item.lockedQuantity || 0) > 0"
@@ -231,13 +231,10 @@
const goDetail = (item) => {
  if (!item) return;
  try {
    uni.setStorageSync(
      "stockDetailItem",
      JSON.stringify({
        item,
        type: isQualified() ? "0" : "1",
      })
    );
    uni.setStorageSync('stockDetailItem', JSON.stringify({
      item,
      type: '0'
    }))
  } catch (e) {}
  if (!item.id) {
    uni.navigateTo({ url: "/pages/consumablesLogistics/stockManagement/view" });