From dc082351978a1e9f75d7a1471a0ca7ebeac552a5 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期一, 01 六月 2026 11:07:50 +0800
Subject: [PATCH] opo维护
---
src/views/project/donatebaseinfo/index.vue | 119 ++++++++++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 92 insertions(+), 27 deletions(-)
diff --git a/src/views/project/donatebaseinfo/index.vue b/src/views/project/donatebaseinfo/index.vue
index 6442bd2..63e3fca 100644
--- a/src/views/project/donatebaseinfo/index.vue
+++ b/src/views/project/donatebaseinfo/index.vue
@@ -101,6 +101,12 @@
</template>
</el-table-column>
<el-table-column
+ label="浣忛櫌鍙�"
+ align="center"
+ prop="inpatientno"
+ width="200"
+ />
+ <el-table-column
label="鎹愮尞杩涘害"
align="center"
prop="workflow"
@@ -129,12 +135,7 @@
/>
</template>
</el-table-column>
- <el-table-column
- label="妗堜緥缂栧彿"
- align="center"
- prop="caseNo"
- width="200"
- />
+
<el-table-column label="鎬у埆" align="center" prop="sex" width="100">
<template slot-scope="scope">
<dict-tag
@@ -158,16 +159,12 @@
}}
</template>
</el-table-column>
-<<<<<<< HEAD
- <el-table-column label="GCS璇勫垎" align="center" prop="gcsScore" width="100"/>
-=======
<el-table-column
- label="涓婃姤鍖婚櫌"
+ label="GCS璇勫垎"
align="center"
- prop="treatmenthospitalname"
+ prop="gcsScore"
+ width="100"
/>
- <el-table-column label="GCS璇勫垎" align="center" prop="gcsScore" />
->>>>>>> 059398ad3ad81ea49dfb75ac09f268bc0b0f6145
<el-table-column label="琛�鍨�" align="center" prop="bloodtype" width="100">
<template slot-scope="scope">
<dict-tag
@@ -176,20 +173,24 @@
/>
</template>
</el-table-column>
+
+ <el-table-column label="浼犳煋鐥�" align="center" prop="infectious">
+ <template slot-scope="scope">
+ <span v-for="item in scope.row.infectious.split(',')"
+ ><dict-tag :options="dict.type.sys_Infectious" :value="item" />
+ </span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鐤剧梾璇婃柇" align="center" prop="diagnosisname" />
<el-table-column
- label="鎶ュ憡鍖婚櫌"
+ label="鍗忚皟鍛�"
align="center"
- prop="treatmenthospitalname"
- />
- <el-table-column
- label="鎶ュ憡浜�"
- align="center"
- prop="reportername"
+ prop="coordinatorName"
width="100"
/>
<el-table-column
label="鎿嶄綔"
- width="190"
+ width="220"
align="center"
class-name="small-padding fixed-width"
fixed="right"
@@ -204,14 +205,29 @@
>
璇︽儏
</el-button>
+
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleOpenEdit(scope.row)"
v-hasPermi="['project:donatebaseinfo:edit']"
- >缂栬緫</el-button
+ v-if="scope.row.recordstate !== '4'"
>
+ 缂栬緫
+ </el-button>
+
+ <!-- 鉁� 鏂板锛氬綊妗f寜閽� -->
+ <el-button
+ size="mini"
+ type="text"
+ style="color:#E6A23C;"
+ @click="handleArchive(scope.row)"
+ v-if="scope.row.recordstate !== '4'"
+ >
+ 褰掓。
+ </el-button>
+
<el-button
size="mini"
type="text"
@@ -223,6 +239,7 @@
>
缁堟
</el-button>
+
<el-button
size="mini"
type="text"
@@ -270,7 +287,8 @@
import {
listDonatebaseinfo,
addDonatebaseinfo,
- exportDonatebaseinfo
+ exportDonatebaseinfo,
+ updateDonatebaseinfo
} from "@/api/project/donatebaseinfo";
import Li_area_select from "@/components/Address";
import OrgSelecter from "@/views/project/components/orgselect";
@@ -287,6 +305,7 @@
dicts: [
"sys_user_sex",
"sys_BloodType",
+ "sys_Infectious",
"sys_DonationCategory",
"sys_donornode"
],
@@ -455,7 +474,52 @@
this.currentRecord = { ...row };
this.modalVisible = { ...this.modalVisible, restore: true };
},
+ /** 褰掓。 */
+ handleArchive(row) {
+ this.$confirm("纭灏嗚妗堜緥褰掓。锛熷綊妗e悗灏嗕笉鍙紪杈戙��", "鎻愮ず", {
+ confirmButtonText: "纭畾",
+ cancelButtonText: "鍙栨秷",
+ type: "warning"
+ })
+ .then(async () => {
+ try {
+ const res = await updateDonatebaseinfo({
+ id: row.id,
+ recordstate: "4",
+ filingtime: this.getCurrentTime()
+ });
+ if (res.code === 200) {
+ this.$modal.msgSuccess("褰掓。鎴愬姛");
+ this.getList();
+ } else {
+ this.$modal.msgError(res.msg || "褰掓。澶辫触");
+ }
+ } catch (err) {
+ this.$modal.msgError("鎿嶄綔澶辫触");
+ }
+ })
+ .catch(() => {});
+ },
+ // 鑾峰彇褰撳墠鏃堕棿
+ getCurrentTime() {
+ const now = new Date();
+ return `${now.getFullYear()}-${(now.getMonth() + 1)
+ .toString()
+ .padStart(2, "0")}-${now
+ .getDate()
+ .toString()
+ .padStart(2, "0")} ${now
+ .getHours()
+ .toString()
+ .padStart(2, "0")}:${now
+ .getMinutes()
+ .toString()
+ .padStart(2, "0")}:${now
+ .getSeconds()
+ .toString()
+ .padStart(2, "0")}`;
+ },
getTimeList() {
if (!this.selecttime) {
// this.queryParams.starttime = "1998-01-01 00:00:00";
@@ -541,12 +605,13 @@
this.loading = false;
}
},
- /** 鎵撳紑缂栬緫寮圭獥 */
handleOpenEdit(row) {
- // 纭繚鍦ㄦ墦寮�寮规鍓嶉噸缃甤urrentEditData
- this.currentEditData = {};
+ if (row.recordstate === "4") {
+ this.$modal.msgWarning("褰掓。妗堜緥涓嶅彲缂栬緫");
+ return;
+ }
- // 浣跨敤$nextTick纭繚DOM鏇存柊瀹屾垚
+ this.currentEditData = {};
this.$nextTick(() => {
this.currentEditData = { ...row };
this.editModalVisible = true;
--
Gitblit v1.9.3