From a90765e9ee65717c6ba9923a90b3fc21c03753c1 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 18 十一月 2026 15:29:51 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/detailpage/index.vue | 92 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 91 insertions(+), 1 deletions(-)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index 9321ac3..0340bf4 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -1465,6 +1465,7 @@
import {
messagelistpatient,
alterpatient,
+ particularpatient,
listcontactinformation,
} from "@/api/patient/homepage";
import CallButton from "@/components/CallButton";
@@ -1846,7 +1847,8 @@
unansweredQuestions() {
return (this.tableDatatop || [])
.map((item, i) => ({ index: i + 1, title: item.scriptContent || "鏈懡鍚嶉鐩�", raw: item }))
- .filter((q) => !this.hasOptionValue(q.raw));
+ // astrict=1 琛ㄧず璇ラ鍥犻�夐」璺宠浆琚烦杩囷紙宸查殣钘忥級锛岃烦杩囬涓嶇畻鈥滄湭浣滅瓟鈥�
+ .filter((q) => !q.raw.astrict && !this.hasOptionValue(q.raw));
},
callStatusText() {
if (this.customCallStatus) {
@@ -2043,6 +2045,35 @@
const newPos = start + text.length;
target.setSelectionRange(newPos, newPos);
});
+
+ // 蹇嵎璇寘鍚�滄浜♀�濇椂锛岃繃婊ゆ帓闄よ鎮h��
+ if (text && text.includes("姝讳骸")) {
+ this.filterDeathPatient(text);
+ }
+ },
+ // 蹇嵎璇寘鍚�滄浜♀�濇椂杩囨护鎺掗櫎鎮h�咃紙鍙傝�� discharge 椤垫偅鑰呰繃婊わ級
+ filterDeathPatient(text) {
+ this.$modal
+ .confirm(
+ "璇ュ揩鎹疯鍖呭惈鈥滄浜♀�濓紝纭灏嗚鎮h�呰繃婊ゆ帓闄ゅ悧锛熻繃婊ゅ悗璇ユ偅鑰呮墍鏈夎繘琛屼腑浠诲姟灏嗗叏閮ㄥ仠姝紝涓旀棤娉曞尮閰嶆柊鐨勯殢璁夸换鍔★紝璇疯皑鎱庢搷浣滐紒"
+ )
+ .then(() => {
+ particularpatient(this.patid).then((response) => {
+ const patient = response.data;
+ patient.isoperation = 2;
+ patient.notrequiredFlag = 1;
+ patient.notrequiredreason = text;
+ patient.filterDrname = store.getters.nickName;
+ alterpatient(patient).then((res) => {
+ if (res.code == 200) {
+ this.$modal.msgSuccess("鎮h�呰繃婊ゆ垚鍔�");
+ } else {
+ this.$modal.msgError("鎮h�呰繃婊ゅけ璐�");
+ }
+ });
+ });
+ })
+ .catch(() => {});
},
// 鑾峰彇闂嵎鏁版嵁
getsearchrResults(id) {
@@ -2082,6 +2113,8 @@
});
this.taskname = res.data.taskName;
this.overdata();
+ // 鏍规嵁宸蹭繚瀛樼瓟妗堝洖鏀鹃�夐」璺宠浆閫昏緫锛屾仮澶嶈璺宠繃棰樼洰鐨勯殣钘忕姸鎬�
+ this.restoreJumpState();
}
});
},
@@ -3252,6 +3285,63 @@
}
});
},
+ // 鏍规嵁宸蹭繚瀛樼瓟妗堝洖鏀锯�滈�夐」璺宠浆鈥濋�昏緫锛屾仮澶嶈璺宠繃棰樼洰鐨勯殣钘忕姸鎬侊紙astrict锛�
+ restoreJumpState() {
+ const list = this.tableDatatop;
+ if (!list || !list.length) return;
+
+ // 鍏堝叏閮ㄧ疆涓哄彲瑙�
+ list.forEach((item) => {
+ this.$set(item, "astrict", 0);
+ this.$set(item, "hiddenByEnd", false);
+ });
+
+ for (let i = 0; i < list.length; ) {
+ const q = list[i];
+ let jumped = false;
+
+ // 鍙湁鈥滃崟閫� + 鐢遍�夐」閰嶇疆璺宠浆鈥濅笖宸蹭綔绛旂殑棰樼洰鎵嶅彲鑳戒骇鐢熻烦杞�
+ if (q.branchFlag == 1 && q.scriptType == 1 && this.hasOptionValue(q)) {
+ const opt = (q.svyTaskTemplateTargetoptions || []).find(
+ (o) => o.optioncontent == q.scriptResult
+ );
+ const next = opt ? opt.nextQuestion : null;
+
+ if (next !== null && next !== undefined && next !== "") {
+ const targetNum = Number(next);
+
+ // 缁撴潫闂瓟锛氶殣钘忓悗闈㈡墍鏈夐
+ if (targetNum === 0) {
+ for (let j = i + 1; j < list.length; j++) {
+ this.$set(list[j], "astrict", 1);
+ this.$set(list[j], "hiddenByEnd", true);
+ }
+ break;
+ }
+
+ const target = targetNum - 1; // 杞� 0-indexed
+ if (target > i && target < list.length) {
+ // 闅愯棌褰撳墠棰樺拰鐩爣棰樹箣闂寸殑棰�
+ for (let j = i + 1; j < target; j++) {
+ this.$set(list[j], "astrict", 1);
+ this.$set(list[j], "hiddenByEnd", false);
+ }
+ // 鐩爣棰樹繚鎸佸彲瑙�
+ this.$set(list[target], "astrict", 0);
+ this.$set(list[target], "hiddenByEnd", false);
+ i = target;
+ jumped = true;
+ }
+ }
+ }
+
+ if (!jumped) {
+ i++;
+ }
+ }
+
+ this.$forceUpdate();
+ },
// 鍒囨崲闅忚绫诲瀷鍚庯紝閲嶇疆鍖荤敓澶勭悊鎰忚鐨勬牎楠岀姸鎬侊紙蹇呭~鏉′欢闅忕被鍨嬪彉鍖栵級
handleResourceChange() {
this.$nextTick(() => {
--
Gitblit v1.9.3