From b4fe2c16274a91fee4fb26d91374f95fbe2dbcec Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 09 十一月 2026 15:28:21 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/archives/generateConfig/index.vue | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 56 insertions(+), 2 deletions(-)
diff --git a/src/views/patient/archives/generateConfig/index.vue b/src/views/patient/archives/generateConfig/index.vue
index 6570053..2a2c077 100644
--- a/src/views/patient/archives/generateConfig/index.vue
+++ b/src/views/patient/archives/generateConfig/index.vue
@@ -182,6 +182,20 @@
</el-table-column>
<el-table-column
+ label="闅忚鍛ㄦ湡"
+ align="center"
+ min-width="180"
+ :show-overflow-tooltip="true"
+ >
+ <template slot-scope="scope">
+ <span v-if="formatFollowupCycle(scope.row)">
+ {{ formatFollowupCycle(scope.row) }}
+ </span>
+ <span v-else style="color: #c0c4cc">鈥�</span>
+ </template>
+ </el-table-column>
+
+ <el-table-column
label="澶囨敞"
align="center"
prop="remark"
@@ -241,7 +255,7 @@
<el-dialog
:title="dialogTitle"
:visible.sync="dialogVisible"
- width="45%"
+ width="60%"
:close-on-click-modal="false"
@close="cancelForm"
>
@@ -337,6 +351,16 @@
<div class="form-tip">浠庣柧鐥呰瘖鏂〃涓�夋嫨锛屾寜 ICD10 缂栫爜鍖归厤鎮h��</div>
</el-form-item>
+ <el-form-item label="闅忚鍛ㄦ湡閰嶇疆">
+ <EditableTable
+ :data.sync="form.followupCycle"
+ :editing="true"
+ :columns="followupColumns"
+ auto-seq="seq"
+ />
+ <div class="form-tip">瀹氫箟璇ヨ鍒欏尮閰嶅悗寤烘。鐨勯殢璁胯鍒掞紙闅忚鍛ㄦ湡 / 鏂瑰紡 / 鍐呭锛�</div>
+ </el-form-item>
+
<el-form-item label="澶囨敞" prop="remark">
<el-input
v-model="form.remark"
@@ -375,6 +399,7 @@
} from "@/api/smartor/specificArchiveGenerateConfig";
import { getillnesslist } from "@/api/AiCentre/index";
import OptionalForm from "@/components/OptionalForm";
+import EditableTable from "../components/EditableTable.vue";
// 閮ㄩ棬绫诲瀷锛�1 绉戝锛�2 鐥呭尯
const DEPT_TYPE_OPTIONS = [
@@ -403,7 +428,7 @@
export default {
name: "GenerateConfig",
- components: { OptionalForm },
+ components: { OptionalForm, EditableTable },
data() {
// 绉戝/鐥呭尯缂栫爜 涓� 璇婃柇缂栫爜 鑷冲皯濉啓涓�椤癸紝鍚﹀垯璇ヨ鍒欐棤娉曞尮閰嶄换浣曟偅鑰�
const validateDeptOrIcd = (rule, value, callback) => {
@@ -420,6 +445,14 @@
// 甯搁噺
DEPT_TYPE_OPTIONS,
DEPT_CATEGORY_OPTIONS,
+
+ // 闅忚鍛ㄦ湡閰嶇疆鍒楋紙闅忚璁″垝妯℃澘锛氬簭鍙� / 闅忚鍛ㄦ湡 / 闅忚鏂瑰紡 / 闅忚鍐呭锛�
+ followupColumns: [
+ { prop: "seq", label: "搴忓彿", width: 60 },
+ { prop: "cycle", label: "闅忚鍛ㄦ湡", width: 180 },
+ { prop: "method", label: "闅忚鏂瑰紡", width: 160 },
+ { prop: "content", label: "闅忚鍐呭", minWidth: 240 },
+ ],
// 閬僵灞�
loading: false,
@@ -461,6 +494,7 @@
archiveType: "",
deptCodes: [],
icdList: [],
+ followupCycle: [],
remark: "",
},
// 琛ㄥ崟鏍¢獙
@@ -583,6 +617,7 @@
archiveType: row.archiveType || "",
deptCodes: this.parseJsonArray(row.deptCodes),
icdList: this.resolveIcdCodes(row.icd10Codes),
+ followupCycle: this.parseJsonArray(row.followupPeriod),
remark: row.remark || "",
};
},
@@ -657,6 +692,10 @@
this.form.icdList && this.form.icdList.length
? JSON.stringify(this.form.icdList.map((d) => d.icdcode))
: "[]";
+ data.followupPeriod =
+ this.form.followupCycle && this.form.followupCycle.length
+ ? JSON.stringify(this.form.followupCycle)
+ : "[]";
saveSpecificArchiveGenerateConfig(data)
.then((response) => {
@@ -694,6 +733,7 @@
archiveType: "",
deptCodes: [],
icdList: [],
+ followupCycle: [],
remark: "",
};
},
@@ -759,6 +799,20 @@
.join("銆�");
},
+ /** 闅忚鍛ㄦ湡 -> 灞曠ず鏂囨湰锛堥殢璁垮懆鏈� / 闅忚鏂瑰紡 鎷兼帴锛� */
+ formatFollowupCycle(row) {
+ const list = this.parseJsonArray(row.followupPeriod);
+ if (!list.length) return "";
+ return list
+ .map((c) => {
+ const cycle = c.cycle || "";
+ const method = c.method ? "(" + c.method + ")" : "";
+ return cycle + method;
+ })
+ .filter((s) => s.trim())
+ .join("銆�");
+ },
+
/** 瑙f瀽鍚庣杩斿洖鐨� JSON 瀛楃涓诧紙deptCodes / icd10Codes锛� */
parseJsonArray(val) {
if (!val) return [];
--
Gitblit v1.9.3