gongchunyi
2026-09-20 b57a8f32a7e529bd203e0b9552894406ccd10669
fix: 采购台账入库状态添加部分入库
已修改1个文件
8 ■■■■■ 文件已修改
src/views/procurementManagement/procurementLedger/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/procurementLedger/index.vue
@@ -27,7 +27,7 @@
            <el-select v-model="searchForm.stockInStatus" placeholder="请选择" clearable style="width: 240px"
              @change="handleQuery">
              <el-option label="待入库" value="待入库" />
              <el-option label="入库中" value="入库中" />
              <el-option label="部分入库" value="入库中" />
              <el-option label="完全入库" value="完全入库" />
            </el-select>
          </el-form-item>
@@ -489,9 +489,9 @@
  return typeMap[status] || "";
};
// 入库状态显示:入库中也展示为完全入库
// 入库状态显示:入库中(部分审核通过入库)展示为部分入库
const formatStockInStatus = status => {
  if (status === "入库中") return "完全入库";
  if (status === "入库中") return "部分入库";
  return status;
};
@@ -499,7 +499,7 @@
const getStockInStatusType = status => {
  const typeMap = {
    "待入库": "info", // 待入库 - 灰色
    "入库中": "success", // 入库中 - 绿色
    "入库中": "warning", // 部分入库 - 橙色
    "完全入库": "success", // 完全入库 - 绿色
  };
  return typeMap[status] || "";