gaoluyang
2026-06-16 ffe58e0cf73fa61d8b05de09645c5d8d89007ce5
src/views/productionPlan/productionPlan/index.vue
@@ -377,6 +377,30 @@
      },
    },
    {
      label: "审批状态",
      prop: "approvalStatus",
      width: "100px",
      dataType: "tag",
      formatType: params => {
        const typeMap = {
          0: "info",
          1: "warning",
          2: "success",
          3: "danger",
        };
        return typeMap[params] || "info";
      },
      formatData: cell => {
        const statusMap = {
          0: "待审批",
          1: "审批中",
          2: "已通过",
          3: "已驳回",
        };
        return statusMap[cell] || "-";
      },
    },
    {
      label: "已下发数量",
      prop: "quantityIssued",
      width: "120px",
@@ -775,6 +799,7 @@
    mergeForm.totalAssignedQuantity = totalAssignedQuantity;
    mergeForm.planCompleteTime = firstRow.requiredDate || "";
    mergeForm.productId = firstRow.productId || "";
    mergeForm.createTime = dayjs().format("YYYY-MM-DD HH:mm:ss");
    mergeForm.ids = selectedRows.value.map(row => row.id);
    // 打开弹窗