| | |
| | | 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" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { allocationList, } from "@/api/businessApi"; |
| | | import { allocationList } from "@/api/businessApi"; |
| | | import Pagination from "@/components/Pagination"; |
| | | |
| | | export default { |
| | |
| | | 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) |
| | |
| | | handleView(row) { |
| | | this.$router.push({ |
| | | path: "/case/allocationInfo", |
| | | query: { id: row.infoid } |
| | | query: { id: row.id, infoid: row.infoid } |
| | | }); |
| | | }, |
| | | // 新增按钮操作 |
| | |
| | | }, |
| | | // 修改按钮操作 |
| | | 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; |