From d1367a2eafbc26cadf07abb3caa94a0d64d09cab Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 13 八月 2024 14:14:12 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/patient/index.vue | 205 +++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 197 insertions(+), 8 deletions(-)
diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue
index d248b18..3331263 100644
--- a/src/views/patient/patient/index.vue
+++ b/src/views/patient/patient/index.vue
@@ -171,6 +171,16 @@
>鍒犻櫎</el-button
>
</el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="primary"
+ plain
+ icon="el-icon-s-promotion"
+ size="medium"
+ @click="distribute"
+ >鍚戜换鍔℃淳鍙戞偅鑰�</el-button
+ >
+ </el-col>
<el-col :span="6">
<div class="documentf">
<div class="document">
@@ -354,6 +364,127 @@
</el-row>
</div>
</div>
+ <el-dialog title="閫夋嫨浠诲姟" :visible.sync="distributeVisible" width="70%">
+ <div class="preview-left">
+ <el-form
+ :model="queryParams"
+ ref="queryForm"
+ size="small"
+ :inline="true"
+ label-width="98px"
+ >
+ <el-select
+ @change="distribute"
+ v-model="tasktopic"
+ placeholder="璇烽�夋嫨浠诲姟绫诲瀷"
+ >
+ <el-option
+ v-for="item in taskoptions"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ >
+ </el-option>
+ </el-select>
+ </el-form>
+ <el-table v-loading="loading" :data="taskuserList">
+ <el-table-column
+ label="浠诲姟鍚嶇О"
+ fixed
+ align="center"
+ key="taskName"
+ prop="taskName"
+ width="140"
+ :show-overflow-tooltip="true"
+ />
+ <el-table-column
+ label="浠诲姟鎻忚堪"
+ align="center"
+ key="taskDesc"
+ prop="taskDesc"
+ width="180"
+ :show-overflow-tooltip="true"
+ />
+ <el-table-column
+ label="鏈嶅姟椤圭洰"
+ align="center"
+ key="templatename"
+ prop="templatename"
+ />
+ <el-table-column
+ label="寰呮墽琛�/鎬讳换鍔�"
+ align="center"
+ key="nickName"
+ prop="nickName"
+ >
+ <template slot-scope="scope">
+ <span>{{ scope.row.wfs }}/{{ scope.row.yfs }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="鍒涘缓浜�"
+ align="center"
+ key="createBy"
+ prop="createBy"
+ width="120"
+ :show-overflow-tooltip="true"
+ />
+ <el-table-column
+ label="鍒涘缓鏃堕棿"
+ sortable
+ align="center"
+ prop="createTime"
+ width="160"
+ >
+ <template slot-scope="scope">
+ <span>{{ parseTime(scope.row.createTime) }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="鐘舵��"
+ fixed="right"
+ align="center"
+ key="sendState"
+ prop="sendState"
+ width="120"
+ >
+ <template slot-scope="scope">
+ <dict-tag
+ :options="dict.type.task_status"
+ :value="scope.row.sendState"
+ />
+ </template>
+ </el-table-column>
+
+ <el-table-column
+ label="浠诲姟璇︽儏"
+ fixed="right"
+ align="center"
+ width="200"
+ class-name="small-padding fixed-width"
+ >
+ <template slot-scope="scope">
+ <el-button
+ size="medium"
+ type="text"
+ @click="handleUpdate(scope.row)"
+ ><span class="button-xq"
+ ><i class="el-icon-s-data"></i>閫夋嫨娲惧彂</span
+ ></el-button
+ >
+ </template>
+ </el-table-column>
+ </el-table>
+
+ <pagination
+ v-show="tasktotal > 0"
+ :total="tasktotal"
+ :page.sync="queryParams.pageNum"
+ :limit.sync="queryParams.pageSize"
+ @pagination="distribute"
+ />
+ </div>
+ </el-dialog>
<!-- 娣诲姞鎴栦慨鏀圭敤鎴烽厤缃璇濇 -->
<el-dialog
@@ -660,19 +791,16 @@
Exporterrorpatient,
toleadpatient,
} from "@/api/patient/homepage";
-import {
- getTaskservelist,
- getTaskInfo,
- Editsingletask,
-} from "@/api/AiCentre/index";
+import { getTasklist } from "@/api/AiCentre/index";
import { listtag } from "@/api/system/label";
import { getToken } from "@/utils/auth";
import Treeselect from "@riophae/vue-treeselect";
+import store from "@/store";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
name: "Userhuanze",
- dicts: ["sys_normal_disable", "sys_user_sex"],
+ dicts: ["sys_normal_disable", "task_status", "sys_user_sex"],
components: { Treeselect },
data() {
return {
@@ -688,8 +816,10 @@
showSearch: true,
// 鎬绘潯鏁�
total: 0,
+ tasktotal: 0,
// 鐢ㄦ埛琛ㄦ牸鏁版嵁
userList: null,
+ taskuserList: null,
// 寮瑰嚭灞傛爣棰�
title: "",
// 閮ㄩ棬鏍戦�夐」
@@ -704,8 +834,19 @@
amendtag: false, //鏄惁淇敼
serviceVisible: false,
serviceradio: 1,
+ distributeVisible: false,
+ tasktopic: "5", //鏂板绫诲瀷
+ // 鏌ヨ鍙傛暟
+ topqueryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ userName: undefined,
+ tagid: undefined,
+ topic: undefined,
+ },
// 鏃ユ湡鑼冨洿
dateRange: [],
+ taskoptions: [],
paperstypes: [
{ papersname: "韬唤璇�" },
{ papersname: "鎶ょ収" },
@@ -864,6 +1005,8 @@
created() {
this.getList();
this.gettabList();
+ //鑾峰彇宸茬瓫閫夊悗鐨勫彲閫変换鍔$被鍨�
+ this.taskoptions = store.getters.Serviceauthority;
},
methods: {
/** 鏌ヨ鎮h�呭垪琛� */
@@ -879,6 +1022,10 @@
},
handleClick() {
this.getList();
+ },
+ findLabelByValue(data, value) {
+ const item = data.find((item) => item.value === value);
+ return item ? item.label : null;
},
/** 鏌ヨ鏍囩鍒楄〃 */
gettabList() {
@@ -962,10 +1109,10 @@
this.amendtag = true;
this.Labelchange = true;
},
-
//淇敼/鏂板鎮h��
submitForm() {
if (this.amendtag) {
+ this.form.isoperation = 2;
alterpatient(this.form)
.then((response) => {
console.log(response);
@@ -975,7 +1122,8 @@
this.$modal.msgSuccess("淇敼鎴愬姛");
});
} else {
- addpatient(this.form)
+ this.form.isoperation = 1;
+ alterpatient(this.form)
.then((response) => {
console.log(response);
})
@@ -1008,6 +1156,31 @@
this.$router.push({
path: "/followvisit/particty",
query: { type: this.serviceradio },
+ });
+ },
+ distribute() {
+ this.distributeVisible = true;
+ if (this.tasktopic == 1) {
+ this.topqueryParams.type = 3;
+ } else if (this.tasktopic == 2) {
+ this.topqueryParams.type = 1;
+ } else if (this.tasktopic == 3) {
+ this.topqueryParams.type = 1;
+ } else if (this.tasktopic == 4) {
+ this.topqueryParams.type = 1;
+ } else if (this.tasktopic == 5) {
+ this.topqueryParams.type = 1;
+ } else if (this.tasktopic == 6) {
+ this.topqueryParams.type = 2;
+ }
+ this.topqueryParams.typename = this.findLabelByValue(
+ this.taskoptions,
+ this.tasktopic
+ );
+ getTasklist(this.topqueryParams).then((response) => {
+ this.taskuserList = response.rows;
+ this.tasktotal = response.total;
+ this.$forceUpdate();
});
},
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
@@ -1109,6 +1282,22 @@
display: center !important;
}
}
+.preview-left {
+ margin: 20px;
+ // margin: 20px;
+ padding: 30px;
+ background: #ffff;
+ border: 1px solid #dcdfe6;
+ -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+ 0 0 6px 0 rgba(0, 0, 0, 0.04);
+ .scriptTopic-dev {
+ margin-bottom: 25px;
+ font-size: 20px !important;
+ .dev-text {
+ margin-bottom: 10px;
+ }
+ }
+}
::v-deep.el-tabs--left,
.el-tabs--right {
overflow: hidden;
--
Gitblit v1.9.3