gongchunyi
3 天以前 f0da4c9667baefbf65e62df30e1d1a25d1fae930
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>
@@ -58,6 +58,7 @@
              <el-table-column label="产品大类" prop="productCategory" />
              <el-table-column label="规格型号" prop="specificationModel" />
              <el-table-column label="单位" prop="unit" />
              <el-table-column label="件数" prop="packagingSpec" />
              <el-table-column label="入库审核状态" prop="stockInApprovalStatus" width="120">
                <template #default="scope">
                  <el-tag :type="getStockInApprovalStatusType(scope.row.stockInApprovalStatus)" size="small">
@@ -208,6 +209,7 @@
          <el-table-column label="产品大类" prop="productCategory" />
          <el-table-column label="规格型号" prop="specificationModel" />
          <el-table-column label="单位" prop="unit" width="70" />
          <el-table-column label="件数" prop="packagingSpec" width="120" show-overflow-tooltip />
          <el-table-column label="数量" prop="quantity" width="70" />
<!--          <el-table-column label="库存预警数量" prop="warnNum" width="120" show-overflow-tooltip />-->
          <el-table-column label="税率(%)" prop="taxRate" width="80" />
@@ -307,6 +309,13 @@
              <el-select v-model="productForm.taxRate" placeholder="请选择" clearable @change="mathNum">
                <el-option v-for="dict in tax_rate" :key="dict.value" :label="dict.label" :value="dict.value" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="30">
          <el-col :span="12">
            <el-form-item label="件数:" prop="packagingSpec">
              <el-input v-model="productForm.packagingSpec"  clearable />
            </el-form-item>
          </el-col>
        </el-row>
@@ -480,9 +489,9 @@
  return typeMap[status] || "";
};
// 入库状态显示:入库中也展示为完全入库
// 入库状态显示:入库中(部分审核通过入库)展示为部分入库
const formatStockInStatus = status => {
  if (status === "入库中") return "完全入库";
  if (status === "入库中") return "部分入库";
  return status;
};
@@ -490,7 +499,7 @@
const getStockInStatusType = status => {
  const typeMap = {
    "待入库": "info", // 待入库 - 灰色
    "入库中": "success", // 入库中 - 绿色
    "入库中": "warning", // 部分入库 - 橙色
    "完全入库": "success", // 完全入库 - 绿色
  };
  return typeMap[status] || "";
@@ -671,6 +680,7 @@
    productModelId: "",
    specificationModel: "",
    unit: "",
    packagingSpec: "",
    quantity: "",
    taxInclusiveUnitPrice: "",
    taxRate: "",