zhangwencui
6 小时以前 db76255e483a8829c3c79e752fa0538c9b226289
src/pages/procurementManagement/procurementLedger/index.vue
@@ -45,10 +45,14 @@
          </view>
          <up-divider></up-divider>
          <view class="item-details">
            <!-- <view class="detail-row">
              <text class="detail-label">销售合同号</text>
              <text class="detail-value">{{ item.salesContractNo }}</text>
            </view> -->
            <view class="detail-row">
              <text class="detail-label">入库状态</text>
              <view class="detail-value">
                <u-tag :type="getStockInStatusType(item.stockInStatus)">
                  {{ item.stockInStatus || '--' }}
                </u-tag>
              </view>
            </view>
            <view class="detail-row">
              <text class="detail-label">供应商名称</text>
              <text class="detail-value">{{ item.supplierName }}</text>
@@ -78,7 +82,7 @@
            </view>
            <!-- 仅非“审批通过”的台账展示删除按钮 -->
            <view class="detail-row"
                  v-if="item.approvalStatus !== 3"
                  v-if="item.approvalStatus !== 3 && item.stockInStatus !== '完全入库'"
                  style="justify-content: flex-end; margin-top: 8px;">
              <up-button type="error"
                         size="small"
@@ -130,6 +134,14 @@
      4: "error", // 审批失败 - 红色
    };
    return typeMap[status] || "";
  };
  const getStockInStatusType = status => {
    const typeMap = {
      待入库: "info",
      入库中: "warning",
      完全入库: "success",
    };
    return typeMap[status] || "info";
  };
  // 搜索关键词
  const purchaseContractNumber = ref("");
@@ -201,6 +213,13 @@
          });
          return;
        }
        if (row.stockInStatus === "完全入库") {
          uni.setStorageSync("editData", JSON.stringify(row));
          uni.navigateTo({
            url: "/pages/procurementManagement/procurementLedger/view",
          });
          return;
        }
        // 录入人编辑:存储数据并跳转到编辑页面
        uni.setStorageSync("editData", JSON.stringify(row));