From fb34ba28cb908bd328cf6690ab0b19a56428f4e2 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 13 十一月 2026 10:56:55 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/propaganda/QuestionnaireTask.vue | 107 ++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 97 insertions(+), 10 deletions(-)
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index 4235af7..091f496 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -70,6 +70,28 @@
/>
</el-form-item>
+ <!-- <el-form-item
+ label="鐐逛綅缂栫爜"
+ v-if="
+ isTongdeCampus && (serviceType == 6 || serviceType == 14)
+ "
+ >
+ <el-select
+ v-model="form.pointLocation"
+ style="width: 220px"
+ clearable
+ filterable
+ placeholder="璇烽�夋嫨鐐逛綅"
+ >
+ <el-option
+ v-for="item in pointOptions"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
+ </el-form-item> -->
+
<el-form-item label="鏈嶅姟褰㈠紡">
<SortCheckbox
v-model="checkList"
@@ -209,8 +231,29 @@
>鑽搧鍏宠仈</el-radio
>
<el-radio label="5">浠诲姟缁�</el-radio>
+ <el-radio label="7" v-if="isTongdeCampus&& (serviceType == 6 || serviceType == 14)">鐐逛綅鍏宠仈</el-radio>
</el-radio-group>
</el-form-item>
+
+ <!-- 鐐逛綅鍏宠仈 -->
+ <el-row v-if="form.appltype == 7">
+ <el-form-item label="鍏宠仈鐐逛綅" prop="pointLocation">
+ <el-select
+ v-model="form.pointLocation"
+ style="width: 400px"
+ clearable
+ filterable
+ placeholder="璇烽�夋嫨鐐逛綅"
+ >
+ <el-option
+ v-for="item in pointOptions"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
+ </el-form-item>
+ </el-row>
<!-- 鑽搧鍏宠仈 -->
<el-row v-if="form.appltype == 6">
@@ -333,7 +376,9 @@
</el-row>
<!-- 缂欎簯鍘夸汉姘戝尰闄細瓒呮椂鏈畬鎴愭槸鍚﹀啀娆¢殢璁� / 鍐嶆闅忚鍏宠仈浠诲姟 -->
- <el-row v-if="form.appltype == 1 && orgname == '缂欎簯鍘夸汉姘戝尰闄�'">
+ <el-row
+ v-if="form.appltype == 1 && orgname == '缂欎簯鍘夸汉姘戝尰闄�'"
+ >
<el-col :span="12">
<el-form-item label="瓒呮椂鏈畬鎴愭槸鍚﹀啀娆¢殢璁�">
<el-radio-group v-model="form.nexttaskflag">
@@ -1487,6 +1532,7 @@
} from "@/api/AiCentre/index";
import { listMedication } from "@/api/knowledge/drug";
import { getIvrtask } from "@/api/smartor/ivrtask";
+import { deptTreeSelect } from "@/api/system/user";
import OptionalForm from "@/components/OptionalForm";
import SFtable from "@/components/SFtable";
import SortCheckbox from "@/components/SortCheckbox";
@@ -1691,6 +1737,7 @@
templatename: "",
templateid: null,
libtemplateid: null,
+ pointLocation: "",
kcb:
"浜茬埍鐨勬偅鑰�/瀹跺睘锛屾垜浠槸" +
localStorage.getItem("orgname") +
@@ -1711,14 +1758,6 @@
detailList: [],
},
},
- taskoptions: [
- { value: "4", label: "鍑洪櫌鐥呬汉" },
- { value: "1", label: "鍦ㄩ櫌鐥呬汉" },
- { value: "2", label: "闂ㄨ瘖鐥呬汉" },
- { value: "3", label: "浣撴鐥呬汉" },
- { value: "6", label: "闄㈠鎮h��" },
- { value: "5", label: "鎵嬫湳鐥呬汉" },
- ],
source: [
{ value: 0, label: "鎵�灞炴偅鑰�" },
{ value: 1, label: "绉戝鎮h��" },
@@ -1757,6 +1796,8 @@
queryParamsdept: {},
quote: false,
serviceType: null,
+ // 鍙�夌偣浣嶏紙鍚屽痉闄㈠尯锛宒eptType=3锛�
+ pointOptions: [],
// 鍐嶆闅忚鍏宠仈浠诲姟锛堢紮浜戝幙浜烘皯鍖婚櫌锛�
nextTaskDialogVisible: false,
nextTaskLoading: false,
@@ -1785,6 +1826,7 @@
this.getillnesslist();
this.Getdetails();
this.getQtemplateclassify();
+ this.getPointOptions();
},
activated() {
if (this.id != this.$route.query.id) {
@@ -1802,6 +1844,26 @@
},
remaining() {
return this.illnesslist.length - 10;
+ },
+ // 鎮h�呯被鍨嬩笅鎷夛紙鏂板绫诲瀷锛夛細鎸変换鍔$被鍨嬮檺鍒跺彲閫夎寖鍥�
+ taskoptions() {
+ const options = [
+ { value: "4", label: "鍑洪櫌鐥呬汉" },
+ { value: "1", label: "鍦ㄩ櫌鐥呬汉" },
+ { value: "2", label: "闂ㄨ瘖鐥呬汉" },
+ { value: "3", label: "浣撴鐥呬汉" },
+ { value: "6", label: "闄㈠鎮h��" },
+ { value: "5", label: "鎵嬫湳鐥呬汉" },
+ ];
+ // 鍑洪櫌闅忚锛坰erviceType=2锛夛細鍙兘閫夋嫨鍦ㄩ櫌鎮h��
+ if (this.serviceType == 2) {
+ return options.filter((item) => item.value == "1");
+ }
+ // 鍏ラ櫌闅忚锛坰erviceType=18锛夛細涓嶅彲閫夋嫨鍑洪櫌鎮h��
+ if (this.serviceType == 18) {
+ return options.filter((item) => item.value != "4");
+ }
+ return options;
},
},
methods: {
@@ -1836,6 +1898,23 @@
},
// ---------- 鏁版嵁鍔犺浇 ----------
+ getPointOptions() {
+ // 浠呭悓寰烽櫌鍖猴細鐐逛綅涓嬫媺锛坉eptType=3锛�
+ if (!this.isTongdeCampus) return;
+ deptTreeSelect(3).then((response) => {
+ const flat = [];
+ const walk = (nodes) => {
+ (Array.isArray(nodes) ? nodes : []).forEach((n) => {
+ if (n.label && n.deptCode) {
+ flat.push({ label: n.label, value: String(n.deptCode) });
+ }
+ if (n.children && n.children.length) walk(n.children);
+ });
+ };
+ walk(response && response.data);
+ this.pointOptions = flat;
+ });
+ },
Acquisitiontype() {
let queryParams = {
pageNum: this.topqueryParams.pageNum,
@@ -1937,6 +2016,7 @@
templatename: "",
templateid: null,
libtemplateid: null,
+ pointLocation: "",
kcb:
"浜茬埍鐨勬偅鑰�/瀹跺睘锛屾垜浠槸" +
localStorage.getItem("orgname") +
@@ -2256,8 +2336,8 @@
this.deptcodesWards = [];
this.medicalCodes = [];
this.medicalOptions = [];
- // this.queryParamsdept.taskId = this.form.taskid;
this.queryParamsdept.taskId = this.form.taskid;
+ this.queryParamsdept.taskid = this.form.taskid;
if (this.form.appltype == 5) {
rwztaskdepthospgetsonlist(this.queryParamsdept).then((res) => {
@@ -2907,6 +2987,12 @@
this.leavehospitaldistrictcodes = [];
this.illnesscodes = [];
this.form.oplevelcode = null;
+ } else if (this.form.appltype == 7) {
+ this.deptcodesWards = [];
+ this.leavehospitaldistrictcodes = [];
+ this.illnesscodes = [];
+ this.form.oplevelcode = null;
+ this.medicalCodes = [];
}
// 鏈嶅姟褰㈠紡鏍¢獙
@@ -2926,6 +3012,7 @@
this.diagglist[0] ||
this.form.oplevelcode ||
this.medicalCodes[0] ||
+ this.form.pointLocation ||
this.form.longTask == 2 ||
this.serviceType == 3 ||
this.form.appltype == 5;
--
Gitblit v1.9.3