From d3c60e18b95b50751f8088fa2d23cd8ff7f173bc Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 01 七月 2026 11:05:17 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/tasklist/index.vue | 51 ++++++++++++++++++++++++++++++++++-----------------
1 files changed, 34 insertions(+), 17 deletions(-)
diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 44eeed6..aafd22e 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/src/views/followvisit/tasklist/index.vue
@@ -462,6 +462,7 @@
previewtype: 2, //棰勮褰卞儚闅忚绫诲瀷
total: 0, // 鎬绘潯鏁�
ImportQuantity: 999, //瀵煎奖鍍忛殢璁挎暟閲�
+ orgname: null,
//棰勮褰卞儚闅忚淇℃伅
previewvalue: {
username: "杩欎釜鍖荤敓瀵逛綘鎬庝箞鏍�",
@@ -585,6 +586,8 @@
pageNum: 1,
pageSize: 10,
type: 2,
+ leaveldeptcodes: [],
+ leavehospitaldistrictcodes: [],
userName: undefined,
tagid: undefined,
topic: undefined,
@@ -642,11 +645,14 @@
},
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;
@@ -678,6 +684,8 @@
this.tasktopic == 1 ||
this.tasktopic == 7 ||
this.tasktopic == 5 ||
+ this.tasktopic == 18 ||
+ this.tasktopic == 19 ||
this.tasktopic == 6
) {
if (!this.topqueryParams.type) this.topqueryParams.type = "2";
@@ -692,7 +700,11 @@
},
];
// this.topqueryParams.type = 2;
- } else if (this.tasktopic == 4 || this.tasktopic == 8) {
+ } else if (
+ this.tasktopic == 4 ||
+ this.tasktopic == 8 ||
+ this.tasktopic == 17
+ ) {
if (!this.topqueryParams.type) this.topqueryParams.type = "3";
this.longtermlist = [
{
@@ -991,17 +1003,22 @@
// 鏆傚仠
stop(row) {
- console.log(row);
- if (row.sendState == 2) {
- this.TaskOperation.taskId = row.taskid;
- this.TaskOperation.sendState = 3;
- this.TaskOperation.sendType = "";
- this.TaskOperation.taskType = row.type;
- TaskTemplateSendExecution(this.TaskOperation).then((res) => {
- this.$modal.msgSuccess("浠诲姟宸叉殏鍋�");
- this.getList();
- });
- }
+ this.$modal
+ .confirm('鏄惁纭鏆傚仠"' + row.taskName + '"锛�')
+ .then(function () {
+ if (row.sendState == 2) {
+ this.TaskOperation.taskId = row.taskid;
+ this.TaskOperation.sendState = 3;
+ this.TaskOperation.sendType = "";
+ this.TaskOperation.taskType = row.type;
+ TaskTemplateSendExecution(this.TaskOperation).then((res) => {
+ this.$modal.msgSuccess("浠诲姟宸叉殏鍋�");
+ this.getList();
+ });
+ }
+ })
+
+ .catch(() => {});
},
/** 鎻愪氦鎸夐挳 */
--
Gitblit v1.9.3