src/views/salesManagement/returnOrder/index.vue
@@ -120,7 +120,8 @@
const documentStatusOptions = ref([
  { label: "待处理", value: 0 },
  { label: "已处理", value: 1 }
  { label: "已处理", value: 1 },
  { label: "已撤销", value: 2 }
]);
const defaultColumns = [
@@ -144,7 +145,7 @@
      { name: "编辑", disabled: (row) => row.status !== 0, type: "text", clickFun: (row) => openForm("edit", row) },
      { name: "退款处理", disabled: (row) => row.status !== 0, type: "text", clickFun: (row) => handleRowHandle(row) },
      { name: "详情", type: "text", clickFun: (row) => openDetail(row) },
      { name: "删除", disabled: (row) => row.status !== 0, type: "text", clickFun: (row) => handleRowDelete(row) },
      { name: "删除", disabled: (row) => row.status === 1 || row.status === 2, type: "text", clickFun: (row) => handleRowDelete(row) },
    ],
  },
];
@@ -206,7 +207,8 @@
const getStatusType = (status) => {
  const statusMap = {
    0: "warning",
    1: "success"
    1: "success",
    2: "warning"
  };
  return statusMap[status] || "info";
};
@@ -214,7 +216,8 @@
const getStatusText = (status) => {
  const statusMap = {
    0: "待处理",
    1: "已处理"
    1: "已处理",
    2: "已撤销"
  };
  return statusMap[status] || "未知";
};