From 4c9fdc87987140e8b2c3f0dfc2f6608cdb6be774 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 21 十月 2026 17:39:24 +0800
Subject: [PATCH] 青岛维护
---
src/views/business/maintain/index.vue | 118 ++++++++++++++++++++++++++++++++++++++--------------------
1 files changed, 77 insertions(+), 41 deletions(-)
diff --git a/src/views/business/maintain/index.vue b/src/views/business/maintain/index.vue
index 9021261..d417797 100644
--- a/src/views/business/maintain/index.vue
+++ b/src/views/business/maintain/index.vue
@@ -114,23 +114,12 @@
/>
-->
<el-table-column
- label="鎹愮尞缂栧彿"
- align="center"
- prop="donorno"
- width="120"
- />
- <el-table-column
label="浣忛櫌鍙�"
align="center"
prop="inpatientno"
width="120"
/>
- <el-table-column
- label="濮撳悕"
- align="center"
- prop="name"
- width="120"
- />
+ <el-table-column label="濮撳悕" align="center" prop="name" width="120" />
<el-table-column label="鎬у埆" align="center" prop="sex" width="80">
<template slot-scope="scope">
<dict-tag
@@ -139,7 +128,21 @@
/>
</template>
</el-table-column>
- <el-table-column label="骞撮緞" align="center" prop="age" width="80" />
+ <el-table-column label="骞撮緞" align="center" prop="age" width="100">
+ <template slot-scope="scope">
+ {{
+ `${
+ scope.row.age && scope.row.age !== 0
+ ? `${scope.row.age}${scope.row.ageunit || ""}`
+ : ""
+ } ${
+ scope.row.age2 && scope.row.age2 !== 0
+ ? `${scope.row.age2}${scope.row.ageunit2}`
+ : ""
+ }`.trim()
+ }}
+ </template>
+ </el-table-column>
<el-table-column
label="琛�鍨�"
align="center"
@@ -156,17 +159,42 @@
label="鐤剧梾璇婃柇"
align="center"
prop="diagnosisname"
- min-width="180"
+ width="200"
show-overflow-tooltip
/>
-
+ <el-table-column
+ label="鎹愮尞绫诲瀷"
+ align="center"
+ prop="donationcategory"
+ width="180"
+ >
+ <template slot-scope="scope">
+ <dict-tag
+ :options="dict.type.sys_DonationCategory"
+ :value="scope.row.donationcategory"
+ />
+ </template>
+ </el-table-column>
<!-- <el-table-column
label="缁存姢椤圭洰"
align="center"
prop="itemName"
width="120"
show-overflow-tooltip
- /> -->
+ /> -->
+ <el-table-column
+ label="缁存姢鐘舵��"
+ align="center"
+ prop="state"
+ width="100"
+ >
+ <template slot-scope="scope">
+ <dict-tag
+ :options="dict.type.maintain_type"
+ :value="scope.row.state"
+ />
+ </template>
+ </el-table-column>
<el-table-column
label="棣栨缁存姢鏃堕棿"
align="center"
@@ -175,9 +203,7 @@
>
<template slot-scope="scope">
<span>{{
- scope.row.updateTime
- ? parseTime(scope.row.updateTime)
- : "-"
+ scope.row.updateTime ? parseTime(scope.row.updateTime) : "-"
}}</span>
</template>
</el-table-column>
@@ -189,9 +215,7 @@
>
<template slot-scope="scope">
<span>{{
- scope.row.updateTime
- ? parseTime(scope.row.updateTime)
- : "-"
+ scope.row.updateTime ? parseTime(scope.row.updateTime) : "-"
}}</span>
</template>
</el-table-column>
@@ -210,7 +234,7 @@
label="涓婃姤鍖婚櫌"
align="center"
prop="treatmenthospitalname"
- width="150"
+ width="200"
show-overflow-tooltip
/>
<!-- <el-table-column
@@ -232,9 +256,15 @@
width="100"
/>
<el-table-column
+ label="鎹愮尞缂栧彿"
+ align="center"
+ prop="caseNo"
+ width="220"
+ />
+ <el-table-column
label="鎿嶄綔"
align="center"
- width="120"
+ min-width="180"
fixed="right"
class-name="small-padding fixed-width"
>
@@ -244,7 +274,14 @@
type="text"
icon="el-icon-view"
@click.stop="handleView(scope.row)"
- >璇︽儏</el-button
+ >鏌ョ湅</el-button
+ >
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-edit"
+ @click.stop="handleUpdate(scope.row)"
+ >缂栬緫</el-button
>
</template>
</el-table-column>
@@ -269,7 +306,12 @@
export default {
name: "MaintenanceList",
components: { Pagination },
- dicts: ["sys_user_sex",'sys_BloodType'],
+ dicts: [
+ "sys_user_sex",
+ "sys_BloodType",
+ "maintain_type",
+ "sys_DonationCategory"
+ ],
data() {
return {
// 閬僵灞�
@@ -356,19 +398,6 @@
if (response.code === 200) {
this.maintenanceList = response.data;
this.total = response.total || 0;
-
- // 澶勭悊骞撮緞鏄剧ず
- this.maintenanceList.forEach(item => {
- if (item.startAge !== undefined && item.endAge !== undefined) {
- item.age = `${item.startAge}-${item.endAge}`;
- } else if (item.startAge !== undefined) {
- item.age = `${item.startAge}+`;
- } else if (item.endAge !== undefined) {
- item.age = `0-${item.endAge}`;
- } else {
- item.age = "-";
- }
- });
} else {
this.$message.error(response.msg || "鑾峰彇鏁版嵁澶辫触");
}
@@ -428,14 +457,21 @@
handleRowClick(row) {
this.$router.push({
path: "/case/maintainInfo",
- query: { id: row.id, infoid: row.infoid }
+ query: { id: row.id, infoid: row.infoid, mode: "view" }
});
},
// 鏌ョ湅璇︽儏
handleView(row) {
this.$router.push({
path: "/case/maintainInfo",
- query: { id: row.id, infoid: row.infoid }
+ query: { id: row.id, infoid: row.infoid, mode: "view" }
+ });
+ },
+ // 缂栬緫
+ handleUpdate(row) {
+ this.$router.push({
+ path: "/case/maintainInfo",
+ query: { id: row.id, infoid: row.infoid, mode: "edit" }
});
},
// 瀵煎嚭鎸夐挳鎿嶄綔
--
Gitblit v1.9.3