From f9902f7a3b79d22bde9f199263ac36de26816470 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 08 五月 2026 14:46:10 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/tasklist/index.vue | 151 ++++++++++----------------------------------------
1 files changed, 30 insertions(+), 121 deletions(-)
diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index a3f2c46..9640683 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 {
// 閬僵灞�
@@ -468,6 +462,7 @@
previewtype: 2, //棰勮褰卞儚闅忚绫诲瀷
total: 0, // 鎬绘潯鏁�
ImportQuantity: 999, //瀵煎奖鍍忛殢璁挎暟閲�
+ orgname: null,
//棰勮褰卞儚闅忚淇℃伅
previewvalue: {
username: "杩欎釜鍖荤敓瀵逛綘鎬庝箞鏍�",
@@ -591,6 +586,8 @@
pageNum: 1,
pageSize: 10,
type: 2,
+ leaveldeptcodes: [],
+ leavehospitaldistrictcodes: [],
userName: undefined,
tagid: undefined,
topic: undefined,
@@ -648,14 +645,18 @@
},
watch: {},
created() {
- // this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
- // (obj) => obj.deptCode
- // );
- // this.topqueryParams.leavehospitaldistrictcodes =
- // store.getters.belongWards.map((obj) => obj.districtCode);
+ this.orgname = localStorage.getItem("orgname");
+ if (this.orgname == "鍗楀崕澶у闄勫睘绗竴鍖婚櫌") {
+ this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+ (obj) => obj.deptCode
+ );
+ this.topqueryParams.leavehospitaldistrictcodes =
+ store.getters.belongWards.map((obj) => obj.districtCode);
+ }
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;
@@ -683,6 +684,7 @@
this.tasktopic == 1 ||
this.tasktopic == 7 ||
this.tasktopic == 5 ||
+ this.tasktopic == 18 ||
this.tasktopic == 6
) {
if (!this.topqueryParams.type) this.topqueryParams.type = "2";
@@ -696,8 +698,12 @@
label: "闂嵎闅忚",
},
];
- this.topqueryParams.type = 2;
- } else if (this.tasktopic == 4 || this.tasktopic == 8) {
+ // this.topqueryParams.type = 2;
+ } else if (
+ this.tasktopic == 4 ||
+ this.tasktopic == 8 ||
+ this.tasktopic == 17
+ ) {
if (!this.topqueryParams.type) this.topqueryParams.type = "3";
this.longtermlist = [
{
@@ -722,7 +728,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 +1063,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