From a99e82da2b087d7019cdce015c25befc620b9d61 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 10 十一月 2026 14:14:16 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/propaganda/QuestionnaireTask.vue | 231 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 220 insertions(+), 11 deletions(-)
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index b81f5a9..d54357c 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -70,6 +70,19 @@
/>
</el-form-item>
+ <el-form-item
+ label="鐐逛綅缂栫爜"
+ v-if="
+ isTongdeCampus && (serviceType == 6 || serviceType == 14)
+ "
+ >
+ <el-input
+ style="width: 220px"
+ v-model="form.pointLocation"
+ placeholder="璇疯緭鍏ョ偣浣嶇紪鐮�"
+ />
+ </el-form-item>
+
<el-form-item label="鏈嶅姟褰㈠紡">
<SortCheckbox
v-model="checkList"
@@ -330,6 +343,37 @@
</el-option>
</el-select> </el-form-item
></el-col>
+ </el-row>
+
+ <!-- 缂欎簯鍘夸汉姘戝尰闄細瓒呮椂鏈畬鎴愭槸鍚﹀啀娆¢殢璁� / 鍐嶆闅忚鍏宠仈浠诲姟 -->
+ <el-row
+ v-if="form.appltype == 1 && orgname == '缂欎簯鍘夸汉姘戝尰闄�'"
+ >
+ <el-col :span="12">
+ <el-form-item label="瓒呮椂鏈畬鎴愭槸鍚﹀啀娆¢殢璁�">
+ <el-radio-group v-model="form.nexttaskflag">
+ <el-radio label="1">鏄�</el-radio>
+ <el-radio label="0">鍚�</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ </el-col>
+ <el-col :span="12">
+ <el-form-item label="鍐嶆闅忚鍏宠仈浠诲姟">
+ <el-input
+ style="width: 300px"
+ :disabled="true"
+ v-model="nexttaskname"
+ placeholder="璇风偣鍑诲彸渚ч�夋嫨浠诲姟"
+ />
+ <el-button
+ style="margin-left: 10px"
+ type="primary"
+ icon="el-icon-edit"
+ circle
+ @click="openNextTaskDialog"
+ ></el-button>
+ </el-form-item>
+ </el-col>
</el-row>
<!-- 鐥呭尯鍏宠仈 -->
@@ -929,6 +973,30 @@
</div>
</div>
</div>
+ <div class="examine-jic">
+ <div class="headline">
+ <div>浜屾闅忚浠诲姟閰嶇疆</div>
+ </div>
+ <div class="jic-value">
+ <el-form label-width="125px">
+ <el-form-item label="浜屾闅忚浠诲姟">
+ <el-input
+ style="width: 300px"
+ :disabled="true"
+ v-model="nexttaskname"
+ placeholder="璇风偣鍑诲彸渚ч�夋嫨浠诲姟"
+ />
+ <el-button
+ style="margin-left: 10px"
+ type="primary"
+ icon="el-icon-edit"
+ circle
+ @click="openNextTaskDialog"
+ ></el-button>
+ </el-form-item>
+ </el-form>
+ </div>
+ </div>
</div>
<el-button type="primary" @click="nextstep('ruleForm')">{{
quote ? "绔嬪嵆鍒涘缓" : "娲惧彂鎮h�呴厤缃�"
@@ -1330,6 +1398,68 @@
</div>
</div>
</el-drawer>
+ <!-- 閫夋嫨鍐嶆闅忚鍏宠仈浠诲姟 -->
+ <el-dialog
+ title="閫夋嫨浠诲姟"
+ :visible.sync="nextTaskDialogVisible"
+ width="60%"
+ :close-on-click-modal="false"
+ >
+ <el-form :inline="true" size="small">
+ <el-form-item label="浠诲姟鍚嶇О">
+ <el-input
+ v-model="nextTaskQuery.taskName"
+ placeholder="璇疯緭鍏ヤ换鍔″悕绉�"
+ @keyup.enter.native="handleNextTaskQuery"
+ ></el-input>
+ </el-form-item>
+ <el-form-item>
+ <el-button
+ type="primary"
+ icon="el-icon-search"
+ @click="handleNextTaskQuery"
+ >鎼滅储</el-button
+ >
+ <el-button icon="el-icon-refresh" @click="resetNextTaskQuery"
+ >閲嶇疆</el-button
+ >
+ </el-form-item>
+ </el-form>
+ <el-table :data="nextTaskList" border v-loading="nextTaskLoading">
+ <el-table-column
+ label="浠诲姟鍚嶇О"
+ prop="taskName"
+ show-overflow-tooltip
+ />
+ <el-table-column
+ label="浠诲姟鎻忚堪"
+ prop="taskDesc"
+ show-overflow-tooltip
+ />
+ <el-table-column
+ label="鏈嶅姟椤圭洰"
+ prop="templatename"
+ show-overflow-tooltip
+ />
+ <el-table-column label="鎿嶄綔" width="100" align="center">
+ <template slot-scope="scope">
+ <el-button type="text" @click="selectNextTask(scope.row)"
+ >閫夋嫨</el-button
+ >
+ </template>
+ </el-table-column>
+ </el-table>
+ <pagination
+ v-show="nextTaskTotal > 0"
+ :total="nextTaskTotal"
+ :page.sync="nextTaskQuery.pageNum"
+ :limit.sync="nextTaskQuery.pageSize"
+ @pagination="getNextTaskList"
+ />
+ <span slot="footer" class="dialog-footer">
+ <el-button @click="nextTaskDialogVisible = false">鍙� 娑�</el-button>
+ </span>
+ </el-dialog>
<Optional-Form
ref="child"
:dialogVisiblepatient="dialogVisiblepatientjb"
@@ -1368,8 +1498,10 @@
rwztaskdepthospgetsonlist,
rwztaskdiaggetlist,
taskopergetlist,
+ getTasklist,
} from "@/api/AiCentre/index";
import { listMedication } from "@/api/knowledge/drug";
+import { getIvrtask } from "@/api/smartor/ivrtask";
import OptionalForm from "@/components/OptionalForm";
import SFtable from "@/components/SFtable";
import SortCheckbox from "@/components/SortCheckbox";
@@ -1566,11 +1698,15 @@
orgname: localStorage.getItem("orgname"),
form: {
patTaskRelevances: [],
+ nexttaskflag: "0",
+ nexttaskid: null,
+ nexttaskname: "",
sendType: 1,
longTask: 0,
templatename: "",
templateid: null,
libtemplateid: null,
+ pointLocation: "",
kcb:
"浜茬埍鐨勬偅鑰�/瀹跺睘锛屾垜浠槸" +
localStorage.getItem("orgname") +
@@ -1591,14 +1727,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��" },
@@ -1637,6 +1765,13 @@
queryParamsdept: {},
quote: false,
serviceType: null,
+ // 鍐嶆闅忚鍏宠仈浠诲姟锛堢紮浜戝幙浜烘皯鍖婚櫌锛�
+ nextTaskDialogVisible: false,
+ nextTaskLoading: false,
+ nextTaskList: [],
+ nextTaskTotal: 0,
+ nextTaskQuery: { pageNum: 1, pageSize: 10, taskName: "" },
+ nexttaskname: "",
// 妯℃澘鎼滅储
templateOptions: [],
templateLoading: false,
@@ -1675,6 +1810,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: {
@@ -1802,11 +1957,15 @@
Getdetails() {
this.form = {
patTaskRelevances: [],
+ nexttaskflag: "0",
+ nexttaskid: null,
+ nexttaskname: "",
sendType: 1,
sendDay: 5,
templatename: "",
templateid: null,
libtemplateid: null,
+ pointLocation: "",
kcb:
"浜茬埍鐨勬偅鑰�/瀹跺睘锛屾垜浠槸" +
localStorage.getItem("orgname") +
@@ -1831,6 +1990,15 @@
Questionnairetaskgetson({ taskid: this.id }).then((res) => {
if (res.code == 200) {
this.form = res.data;
+ // 鍥炴樉鍐嶆闅忚鍏宠仈浠诲姟
+ if (this.form.nexttaskflag == null) this.form.nexttaskflag = "0";
+ this.nexttaskname = "";
+ if (this.form.nexttaskid) {
+ getIvrtask(this.form.nexttaskid).then((r) => {
+ this.nexttaskname = (r.data && r.data.taskName) || "";
+ this.form.nexttaskname = (r.data && r.data.taskName) || "";
+ });
+ }
// 濡傛灉杩斿洖浜� serviceTaskScheduleVO锛岃В鏋愭槑缁嗕腑鐨� content
if (
this.form.serviceTaskScheduleVO &&
@@ -1933,6 +2101,10 @@
this.time2 = "";
this.time3 = "";
this.time4 = "";
+ this.form.nexttaskflag = "0";
+ this.form.nexttaskid = null;
+ this.form.nexttaskname = "";
+ this.nexttaskname = "";
// 閲嶇疆浠诲姟缁�
this.form.serviceTaskScheduleVO = {
scheduleStyle: 0,
@@ -2113,8 +2285,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) => {
@@ -2282,6 +2454,43 @@
}
}
);
+ },
+
+ // ---------- 鍐嶆闅忚鍏宠仈浠诲姟 ----------
+ openNextTaskDialog() {
+ this.nextTaskQuery = { pageNum: 1, pageSize: 10, taskName: "" };
+ this.nextTaskDialogVisible = true;
+ this.getNextTaskList();
+ },
+ getNextTaskList() {
+ this.nextTaskLoading = true;
+ getTasklist({
+ pageNum: this.nextTaskQuery.pageNum,
+ pageSize: this.nextTaskQuery.pageSize,
+ taskName: this.nextTaskQuery.taskName || undefined,
+ })
+ .then((res) => {
+ this.nextTaskList = res.rows || [];
+ this.nextTaskTotal = res.total || 0;
+ this.nextTaskLoading = false;
+ })
+ .catch(() => {
+ this.nextTaskLoading = false;
+ });
+ },
+ handleNextTaskQuery() {
+ this.nextTaskQuery.pageNum = 1;
+ this.getNextTaskList();
+ },
+ resetNextTaskQuery() {
+ this.nextTaskQuery = { pageNum: 1, pageSize: 10, taskName: "" };
+ this.getNextTaskList();
+ },
+ selectNextTask(row) {
+ this.form.nexttaskid = row.taskid;
+ this.form.nexttaskname = row.taskName;
+ this.nexttaskname = row.taskName;
+ this.nextTaskDialogVisible = false;
},
// ---------- 鎮h�呴�夋嫨 ----------
@@ -2836,10 +3045,10 @@
this.form.serviceType = this.serviceType;
this.form.icd10code = this.diagglist
- .map((item) => item.icdcode)
+ .map((item) => item.icd10code || item.icdcode)
.join(",");
this.form.icd10name = this.diagglist
- .map((item) => item.icdname)
+ .map((item) => item.icdname || item.icd10name)
.join(",");
// 鐤剧梾/鎵嬫湳/鑽搧鍏宠仈鐨勭瀹�/鐥呭尯鏍¢獙
if (
--
Gitblit v1.9.3