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/assess/index.vue | 122 ++++++++++++++++++++++------------------
1 files changed, 66 insertions(+), 56 deletions(-)
diff --git a/src/views/business/assess/index.vue b/src/views/business/assess/index.vue
index e756a18..f35b5f0 100644
--- a/src/views/business/assess/index.vue
+++ b/src/views/business/assess/index.vue
@@ -126,15 +126,10 @@
<el-table-column
label="浣忛櫌鍙�"
align="center"
- prop="caseNo"
+ 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
@@ -145,12 +140,38 @@
</el-table-column>
<el-table-column label="骞撮緞" align="center" prop="age" width="80" />
<el-table-column
+ label="琛�鍨�"
+ align="center"
+ prop="bloodtype"
+ width="80"
+ >
+ <template slot-scope="scope">
+ <dict-tag
+ :options="dict.type.sys_BloodType"
+ :value="scope.row.bloodtype"
+ />
+ </template>
+ </el-table-column>
+ <el-table-column
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="鎵�鍦ㄥ尰鐤楁満鏋�"
@@ -170,7 +191,7 @@
</template>
</el-table-column>
-->
-
+
<el-table-column
label="璇勪及鐘舵��"
align="center"
@@ -178,9 +199,10 @@
width="100"
>
<template slot-scope="scope">
- <el-tag :type="statusFilter(scope.row.assessState)">
- {{ statusTextFilter(scope.row.assessState) }}
- </el-tag>
+ <dict-tag
+ :options="dict.type.state_Evaluation"
+ :value="scope.row.assessState"
+ />
</template>
</el-table-column>
<el-table-column
@@ -204,9 +226,15 @@
width="100"
/>
<el-table-column
+ label="鎹愮尞缂栧彿"
+ align="center"
+ prop="caseNo"
+ width="220"
+ />
+ <el-table-column
label="鎿嶄綔"
align="center"
- width="200"
+ min-width="180"
fixed="right"
class-name="small-padding fixed-width"
>
@@ -216,27 +244,15 @@
type="text"
icon="el-icon-view"
@click.stop="handleView(scope.row)"
- >璇︽儏</el-button
+ >鏌ョ湅</el-button
>
<el-button
- v-if="
- scope.row.assessState != '3' ||
- scope.row.assessState != '4'
- "
size="mini"
type="text"
icon="el-icon-edit"
- @click.stop="handleAssess(scope.row)"
- >璇勪及</el-button
+ @click.stop="handleUpdate(scope.row)"
+ >缂栬緫</el-button
>
- <!-- <el-button
- v-if="scope.row.assessState === '3'"
- size="mini"
- type="text"
- icon="el-icon-check"
- @click.stop="handleConfirm(scope.row)"
- >纭</el-button
- > -->
</template>
</el-table-column>
</el-table>
@@ -260,7 +276,7 @@
export default {
name: "AssessmentList",
components: { Pagination },
- dicts: ["sys_user_sex"],
+ dicts: ["sys_user_sex", "state_Evaluation", "sys_BloodType", "sys_DonationCategory"],
data() {
return {
// 閬僵灞�
@@ -359,12 +375,18 @@
}
// 澶勭悊鏃堕棿鑼冨洿鏌ヨ
- if (this.queryParams.applyTimeRange && this.queryParams.applyTimeRange.length === 2) {
+ if (
+ this.queryParams.applyTimeRange &&
+ this.queryParams.applyTimeRange.length === 2
+ ) {
params.startApplyTime = this.queryParams.applyTimeRange[0];
params.endApplyTime = this.queryParams.applyTimeRange[1];
}
- if (this.queryParams.assessTimeRange && this.queryParams.assessTimeRange.length === 2) {
+ if (
+ this.queryParams.assessTimeRange &&
+ this.queryParams.assessTimeRange.length === 2
+ ) {
params.startAssessTime = this.queryParams.assessTimeRange[0];
params.endAssessTime = this.queryParams.assessTimeRange[1];
}
@@ -378,19 +400,19 @@
if (Array.isArray(response.data)) {
// 濡傛灉杩斿洖鐨勬槸鏁扮粍
this.assessmentList = response.data;
- this.total = response.data.length;
+ this.total = response.total;
} else if (response.data.rows) {
// 濡傛灉杩斿洖鐨勬槸鍒嗛〉鏁版嵁缁撴瀯
this.assessmentList = response.data.rows;
- this.total = response.data.total;
+ this.total = response.total;
} else if (Array.isArray(response.data.list)) {
// 濡傛灉杩斿洖鐨勬槸list瀛楁
this.assessmentList = response.data.list;
- this.total = response.data.total || response.data.list.length;
+ this.total = response.total || response.data.list.length;
} else {
// 鍏朵粬鏁版嵁缁撴瀯锛屽皾璇曠洿鎺ヤ娇鐢╠ata
this.assessmentList = response.data;
- this.total = response.total || response.data.length;
+ this.total = response.total || response.total;
}
} else {
// 濡傛灉data涓虹┖锛屼娇鐢ㄦ牴绾у埆鐨剅ows鎴杔ist
@@ -439,14 +461,7 @@
handleView(row) {
this.$router.push({
path: "/case/assessInfo",
- query: { id: row.id, infoid: row.infoid }
- });
- },
- // 杩涜璇勪及
- handleAssess(row) {
- this.$router.push({
- path: "/case/assessInfo",
- query: { id: row.id, infoid: row.infoid, assess: true }
+ query: { id: row.id, infoid: row.infoid, mode: "view" }
});
},
// 纭璇勪及
@@ -463,7 +478,7 @@
// 鍒锋柊鍒楄〃
this.getList();
} catch (error) {
- if (error !== 'cancel') {
+ if (error !== "cancel") {
console.error("纭澶辫触:", error);
}
}
@@ -472,14 +487,11 @@
handleCreate() {
this.$router.push("/case/assessment/add");
},
- // 淇敼鎸夐挳鎿嶄綔
- handleUpdate() {
- if (this.ids.length === 0) return;
-
- const id = this.ids[0];
+ // 缂栬緫
+ handleUpdate(row) {
this.$router.push({
- path: "/case/assessment/edit",
- query: { id: id }
+ path: "/case/assessInfo",
+ query: { id: row.id, infoid: row.infoid, mode: "edit" }
});
},
// 鍒犻櫎鎸夐挳鎿嶄綔
@@ -496,7 +508,6 @@
// 杩欓噷闇�瑕佽皟鐢ㄥ垹闄ゆ帴鍙o紝鏆傛椂妯℃嫙鎴愬姛
this.$message.success("鍒犻櫎鎴愬姛");
this.getList();
-
} catch (error) {
if (error !== "cancel") {
console.error("鍒犻櫎澶辫触:", error);
@@ -529,7 +540,6 @@
} else {
this.$message.error("瀵煎嚭澶辫触锛�" + (response.msg || "鏈煡閿欒"));
}
-
} catch (error) {
if (error !== "cancel") {
console.error("瀵煎嚭澶辫触:", error);
@@ -548,11 +558,11 @@
// 妯℃嫙鏂囦欢涓嬭浇
const blob = new Blob([JSON.stringify(data, null, 2)], {
- type: 'application/vnd.ms-excel'
+ type: "application/vnd.ms-excel"
});
- const link = document.createElement('a');
+ const link = document.createElement("a");
link.href = URL.createObjectURL(blob);
- link.download = '鍖诲璇勪及鏁版嵁.xlsx';
+ link.download = "鍖诲璇勪及鏁版嵁.xlsx";
link.click();
},
// 鏃堕棿鏍煎紡鍖�
--
Gitblit v1.9.3