WXL
2026-04-25 996206735df06887e3f3e453797b1289a2a793e7
src/views/business/allocation/index.vue
@@ -44,7 +44,7 @@
          >
            <el-option label="全部" value="" />
            <el-option
              v-for="dict in dict.type.allocation_Status"
              v-for="dict in dict.type.organ_allocation_status"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
@@ -121,12 +121,7 @@
          prop="donorno"
          width="120"
        />
        <el-table-column
          label="姓名"
          align="center"
          prop="name"
          width="100"
        />
        <el-table-column label="姓名" align="center" prop="name" width="100" />
        <el-table-column
          label="住院号"
          align="center"
@@ -176,7 +171,7 @@
        >
          <template slot-scope="scope">
            <dict-tag
              :options="dict.type.allocation_Status"
              :options="dict.type.organ_allocation_status"
              :value="scope.row.allocationStatus"
            />
          </template>
@@ -187,13 +182,6 @@
          prop="allocationTime"
          width="160"
        >
          <template slot-scope="scope">
            <span>{{
              scope.row.allocationTime
                ? parseTime(scope.row.allocationTime, "{y}-{m}-{d} {h}:{i}")
                : "-"
            }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="登记人"
@@ -263,7 +251,7 @@
</template>
<script>
import { allocationList,  } from "@/api/businessApi";
import { allocationList } from "@/api/businessApi";
import Pagination from "@/components/Pagination";
export default {
@@ -315,9 +303,14 @@
      delete params.allocationTimeRange;
      // 如果有时间范围参数
      if (this.queryParams.allocationTimeRange && this.queryParams.allocationTimeRange.length === 2) {
        params.allocationTimeStart = this.queryParams.allocationTimeRange[0] + ' 00:00:00';
        params.allocationTimeEnd = this.queryParams.allocationTimeRange[1] + ' 23:59:59';
      if (
        this.queryParams.allocationTimeRange &&
        this.queryParams.allocationTimeRange.length === 2
      ) {
        params.allocationTimeStart =
          this.queryParams.allocationTimeRange[0] + " 00:00:00";
        params.allocationTimeEnd =
          this.queryParams.allocationTimeRange[1] + " 23:59:59";
      }
      allocationList(params)
@@ -357,7 +350,7 @@
    handleView(row) {
      this.$router.push({
        path: "/case/allocationInfo",
        query: { id: row.infoid }
        query: { id: row.id, infoid: row.infoid }
      });
    },
    // 新增按钮操作
@@ -366,15 +359,15 @@
    },
    // 修改按钮操作
    handleUpdate(row) {
      const id = row.infoid || this.ids[0];
      this.$router.push({
        path: "/case/allocationInfo",
        query: { id: id }
        query: { id: row.id, infoid: row.infoid }
      });
    },
    // 删除按钮操作
    handleDelete(row) {
      const selectedRow = row || (this.selectedRows.length === 1 ? this.selectedRows[0] : null);
      const selectedRow =
        row || (this.selectedRows.length === 1 ? this.selectedRows[0] : null);
      if (!selectedRow) {
        this.$message.warning("请选择一条记录");
        return;