From d54ac083e2992a5613f5cb22849db9742dbe9a9b Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 22 十月 2025 11:06:14 +0800
Subject: [PATCH] 问卷联调
---
src/views/followvisit/tasklist/index.vue | 128 ++++--------------------------------------
1 files changed, 13 insertions(+), 115 deletions(-)
diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index a3f2c46..44eeed6 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/src/views/followvisit/tasklist/index.vue
@@ -253,9 +253,10 @@
><span class="button-xj">渚濈収鏂板</span></el-button
>
<el-button
+ v-if="scope.row.sendState != 5"
size="medium"
type="text"
- @click="handleAddpatient(scope.row)"
+ @click="handleAddpatient(scope.row.taskid, scope.row.type)"
><span class="button-hz"
><i class="el-icon-circle-plus-outline"></i>鏂板鎮h��</span
></el-button
@@ -381,9 +382,7 @@
<Patient-Selection
ref="Patient"
:dialogVisiblepatient="dialogVisiblepatient"
- :overallCase="Patientlist"
- :tableLabel="tableLabelhz"
- @addoption="dialogVisiblepatient = false"
+ @addoption="addoption"
@kkoption="dialogVisiblepatient = true"
/>
</div>
@@ -400,12 +399,7 @@
} from "@/api/system/user";
import {
getTasklist,
- getTaskInfo,
- Editsingletask,
delTaskInfo,
- Questionnairetasklist,
- Questionnairetaskget,
- Questionnairetasksponsor,
TaskTemplateSendExecution,
} from "@/api/AiCentre/index";
import store from "@/store";
@@ -417,7 +411,7 @@
export default {
name: "Tasklist",
dicts: ["sys_normal_disable", "sys_user_sex", "task_status"],
- components: { Treeselect },
+ components: { Treeselect, PatientSelection },
data() {
return {
// 閬僵灞�
@@ -656,6 +650,7 @@
this.tasktopic = this.$route.query.tasktopic
? this.$route.query.tasktopic
: this.tasktopic;
+ this.tasktopic = Number(this.tasktopic);
this.getList();
this.getConfigKey("sys.user.initPassword").then((response) => {
this.initPassword = response.msg;
@@ -696,7 +691,7 @@
label: "闂嵎闅忚",
},
];
- this.topqueryParams.type = 2;
+ // this.topqueryParams.type = 2;
} else if (this.tasktopic == 4 || this.tasktopic == 8) {
if (!this.topqueryParams.type) this.topqueryParams.type = "3";
this.longtermlist = [
@@ -722,7 +717,7 @@
label: "瀹f暀鍏虫��",
},
];
- this.topqueryParams.type = 2;
+ // this.topqueryParams.type = 2;
}
this.topqueryParams.beginTime = this.dateRange[0];
this.topqueryParams.endTime = this.dateRange[1];
@@ -1057,110 +1052,13 @@
const item = data.find((item) => item.value === value);
return item ? item.label : null;
},
- //鎮h�呮坊鍔犵浉鍏�
- handleAddpatient(row) {
- this.allpids = [];
- this.overallCase.forEach((item) => {
- this.allpids.push(item.patid);
- });
- if (this.patientqueryParams.allhosp == 4) {
- this.tableLabelhz = [
- // { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" },
- { label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" },
- { label: "鎮h��", width: "", prop: "name" },
- { label: "鎮h�呰瘖鏂�", width: "", prop: "leavediagname" },
- { label: "韬唤璇�", width: "200", prop: "idcardno" },
- { label: "鎬у埆", width: "", prop: "sex" },
- { label: "骞撮緞", width: "", prop: "age" },
- { label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
- { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
- { label: "鍖荤敓", width: "", prop: "drname" },
- { label: "绉戝", width: "180", prop: "dept" },
- { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
- ];
- } else if (this.patientqueryParams.allhosp == 1) {
- this.tableLabelhz = [
- { label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" },
- { label: "鎮h��", width: "", prop: "name" },
- { label: "鎮h�呰瘖鏂�", width: "", prop: "leavediagname" },
- { label: "韬唤璇�", width: "200", prop: "idcardno" },
- { label: "鎬у埆", width: "", prop: "sex" },
- { label: "骞撮緞", width: "", prop: "age" },
- { label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
- { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
- { label: "鍖荤敓", width: "", prop: "drname" },
- { label: "绉戝", width: "180", prop: "dept" },
- { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
- ];
- }
- if (this.allpids[0]) {
- this.patientqueryParams.pids = this.allpids;
- } else {
- this.patientqueryParams.pids = null;
- }
- // 鏉ユ簮鍒ゆ柇
-
- if (this.patientqueryParams.allhosp == 4) {
- this.patientqueryParams.hospitaldistrictcodes = [];
- this.patientqueryParams.deptcodes = [];
- } else if (this.patientqueryParams.allhosp == 1) {
- this.patientqueryParams.deptcodes =
- this.patientqueryParams.leaveldeptcodes;
- this.patientqueryParams.hospitaldistrictcodes =
- this.patientqueryParams.leavehospitaldistrictcodes;
- this.patientqueryParams.leavehospitaldistrictcodes = [];
- this.patientqueryParams.leaveldeptcodes = [];
- }
- getTaskpatientQC(this.patientqueryParams).then((response) => {
- this.patientuserList = response.rows;
- this.patientuserList.forEach((item) => {
- if (item.endtime) {
- item.endDay = this.daysBetween(item.endtime);
- }
- });
- this.patienttotal = response.total;
- this.loading = false;
- this.Restorecheck();
- });
- this.dialogVisiblepatient = true;
+ handleAddpatient(taskid) {
+ this.$refs.Patient.handleAddpatient(taskid);
+ this.dialogVisiblepatient = true; // 鎵嬪姩鎺у埗寮圭獥鏄剧ず
},
- // 鏌ヨ
- handleQuery() {
- // 鑾峰彇澶栭儴鎮h��
-
- if (this.patientqueryParams.allhosp == 6) {
- this.Externallist();
- console.log();
-
- return;
- }
- if (this.patientqueryParams.searchscope == 1) {
- this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
- (obj) => obj.deptCode
- );
- this.patientqueryParams.leavehospitaldistrictcodes = [];
- } else if (this.patientqueryParams.searchscope == 2) {
- this.patientqueryParams.leavehospitaldistrictcodes =
- store.getters.belongWards.map((obj) => obj.districtCode);
- this.patientqueryParams.leaveldeptcodes = [];
- } else {
- this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
- (obj) => obj.deptCode
- );
- this.patientqueryParams.leavehospitaldistrictcodes =
- store.getters.belongWards.map((obj) => obj.districtCode);
- }
- if (
- !this.patientqueryParams.leavehospitaldistrictcodes ||
- !this.patientqueryParams.leavehospitaldistrictcodes[0]
- )
- this.patientqueryParams.leavehospitaldistrictcodes = null;
- if (
- !this.patientqueryParams.leaveldeptcodes ||
- !this.patientqueryParams.leaveldeptcodes[0]
- )
- this.patientqueryParams.leaveldeptcodes = null;
- this.handleAddpatient();
+ addoption() {
+ this.dialogVisiblepatient = false; // 鎵嬪姩鎺у埗寮圭獥鏄剧ず
+ this.handleQuery();
},
},
};
--
Gitblit v1.9.3