| | |
| | | :inline="true" |
| | | label-width="100px" |
| | | > |
| | | <el-form-item label="住院号" prop="hospitalNo"> |
| | | <el-form-item label="住院号" prop="inpatientno"> |
| | | <el-input |
| | | v-model="queryParams.hospitalNo" |
| | | v-model="queryParams.inpatientno" |
| | | placeholder="请输入住院号" |
| | | clearable |
| | | style="width: 200px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="捐献者姓名" prop="donorName"> |
| | | <el-form-item label="捐献者姓名" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.donorName" |
| | | v-model="queryParams.name" |
| | | placeholder="请输入捐献者姓名" |
| | | clearable |
| | | style="width: 200px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="获取状态" prop="procurementStatus"> |
| | | <el-form-item label="获取状态" prop="recordstate"> |
| | | <el-select |
| | | v-model="queryParams.procurementStatus" |
| | | v-model="queryParams.recordstate" |
| | | placeholder="请选择获取状态" |
| | | clearable |
| | | style="width: 200px" |
| | | > |
| | | <el-option label="已获取" value="procured" /> |
| | | <el-option label="待获取" value="pending" /> |
| | | <el-option label="已获取" value="1" /> |
| | | <el-option label="待获取" value="0" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | @click="handleUpdate" |
| | | >修改</el-button |
| | | > |
| | | <el-button |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | >删除</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="8" style="text-align: right"> |
| | | <el-tooltip content="刷新" placement="top"> |
| | |
| | | <el-table-column |
| | | label="住院号" |
| | | align="center" |
| | | prop="hospitalNo" |
| | | prop="inpatientno" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="捐献者姓名" |
| | | align="center" |
| | | prop="donorName" |
| | | prop="name" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="性别" align="center" prop="gender" width="80"> |
| | | <el-table-column label="性别" align="center" prop="sex" width="80"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.sys_user_sex" |
| | | :value="parseInt(scope.row.gender)" |
| | | :value="scope.row.sex" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-table-column |
| | | label="疾病诊断" |
| | | align="center" |
| | | prop="diagnosis" |
| | | prop="diagnosisname" |
| | | min-width="180" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | label="获取状态" |
| | | align="center" |
| | | prop="procurementStatus" |
| | | prop="recordstate" |
| | | width="100" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-tag :type="scope.row.procurementStatus === 'procured' ? 'success' : 'warning'"> |
| | | {{ scope.row.procurementStatus === 'procured' ? '已获取' : '待获取' }} |
| | | <el-tag |
| | | :type="scope.row.recordstate === '1' ? 'success' : 'warning'" |
| | | > |
| | | {{ scope.row.recordstate === "1" ? "已获取" : "待获取" }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="获取时间" |
| | | label="获取手术时间" |
| | | align="center" |
| | | prop="procurementTime" |
| | | prop="operationendtime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ |
| | | scope.row.procurementTime |
| | | ? parseTime(scope.row.procurementTime, "{y}-{m}-{d} {h}:{i}") |
| | | scope.row.operationendtime |
| | | ? parseTime(scope.row.operationendtime, "{y}-{m}-{d} {h}:{i}") |
| | | : "-" |
| | | }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="登记人" |
| | | label="手术医生" |
| | | align="center" |
| | | prop="registrant" |
| | | prop="operationdoctor" |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | label="登记时间" |
| | | label="负责人" |
| | | align="center" |
| | | prop="registrationTime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ |
| | | scope.row.registrationTime |
| | | ? parseTime(scope.row.registrationTime, "{y}-{m}-{d} {h}:{i}") |
| | | : "-" |
| | | }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | prop="responsibleusername" |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | width="150" |
| | | width="210" |
| | | fixed="right" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | >修改</el-button |
| | | > |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | style="color: #F56C6C" |
| | | @click="handleDelete(scope.row)" |
| | | >删除</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listOrganProcurement, delOrganProcurement } from "./organProcurement"; |
| | | // import { witnessList, delWitness } from "@/api/case/witness"; |
| | | import { witnessList } from "@/api/businessApi"; |
| | | import Pagination from "@/components/Pagination"; |
| | | |
| | | export default { |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | hospitalNo: undefined, |
| | | donorName: undefined, |
| | | procurementStatus: undefined |
| | | inpatientno: undefined, |
| | | name: undefined, |
| | | recordstate: undefined |
| | | } |
| | | }; |
| | | }, |
| | |
| | | // 查询器官获取列表 |
| | | getList() { |
| | | this.loading = true; |
| | | listOrganProcurement(this.queryParams) |
| | | witnessList(this.queryParams) |
| | | .then(response => { |
| | | if (response.code === 200) { |
| | | this.organProcurementList = response.data.rows; |
| | | this.total = response.data.total; |
| | | this.organProcurementList = response.data; |
| | | this.total = response.total; |
| | | } else { |
| | | this.$message.error("获取数据失败"); |
| | | this.$message.error(response.msg || "获取数据失败"); |
| | | } |
| | | this.loading = false; |
| | | }) |
| | |
| | | handleView(row) { |
| | | this.$router.push({ |
| | | path: "/case/GetWitnessInfo", |
| | | query: { id: row.id } |
| | | query: { id: row.id, infoid: row.infoid } |
| | | }); |
| | | }, |
| | | // 新增按钮操作 |
| | |
| | | }, |
| | | // 修改按钮操作 |
| | | handleUpdate(row) { |
| | | const id = row.id || this.ids[0]; |
| | | this.$router.push({ |
| | | path: "/case/GetWitnessInfo", |
| | | query: { id: id } |
| | | query: { id: row.id, infoid: row.infoid } |
| | | }); |
| | | }, |
| | | // 删除按钮操作 |
| | | handleDelete(row) { |
| | | const ids = row.id ? [row.id] : this.ids; |
| | | this.$confirm("是否确认删除选中的数据项?", "警告", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return delOrganProcurement(ids); |
| | | }) |
| | | .then(response => { |
| | | if (response.code === 200) { |
| | | this.$message.success("删除成功"); |
| | | this.getList(); |
| | | } |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | // 时间格式化 |
| | | parseTime(time, pattern) { |