From 8399d182aef8207d5bcd38a50d1aeb1750593bc0 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 01 十二月 2023 13:36:35 +0800
Subject: [PATCH] 提交信息
---
src/views/followvisit/discharge/index.vue | 424 ++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 321 insertions(+), 103 deletions(-)
diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue
index 3b969de..7c5e1cd 100644
--- a/src/views/followvisit/discharge/index.vue
+++ b/src/views/followvisit/discharge/index.vue
@@ -2,7 +2,6 @@
<div class="app-container">
<el-row :gutter="20">
<!--鐢ㄦ埛鏁版嵁-->
-
<el-form
:model="topqueryParams"
ref="queryForm"
@@ -88,36 +87,12 @@
>
</el-col>
<el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="medium"
- :disabled="single"
- @click="handleUpdate"
- v-hasPermi="['system:user:edit']"
- >淇敼</el-button
- >
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="medium"
- :disabled="multiple"
- @click="handleDelete"
- v-hasPermi="['system:user:remove']"
- >鍒犻櫎</el-button
- >
- </el-col>
- <el-col :span="19">
<div class="documentf">
<div class="document">
<el-button
type="warning"
plain
- icon="el-icon-download"
+ icon="el-icon-upload2"
size="medium"
@click="handleExport"
v-hasPermi="['system:user:export']"
@@ -126,13 +101,80 @@
</div>
</div>
</el-col>
+ <el-col :span="1.5">
+ <div class="documentf">
+ <div class="document">
+ <el-button
+ type="success"
+ plain
+ icon="el-icon-download"
+ size="medium"
+ @click="toleadExport"
+ v-hasPermi="['system:user:export']"
+ >瀵煎叆</el-button
+ >
+ </div>
+ </div>
+ </el-col>
+ <el-col :span="1.5">
+ <div class="documentf">
+ <div class="document">
+ <el-button
+ type="info"
+ icon="el-icon-refresh"
+ size="medium"
+ @click="TaskReset"
+ v-hasPermi="['system:user:export']"
+ >浠诲姟閲嶇疆</el-button
+ >
+ </div>
+ </div>
+ </el-col>
+ <el-col :span="1.5">
+ <div class="documentf">
+ <div class="document">
+ <el-button
+ type="success"
+ icon="el-icon-position"
+ size="medium"
+ @click="AllStarted"
+ v-hasPermi="['system:user:export']"
+ >鍏ㄩ儴寮�濮�</el-button
+ >
+ </div>
+ </div>
+ </el-col>
+ <el-col :span="1.5">
+ <div class="documentf">
+ <div class="document">
+ <el-button
+ type="warning"
+ icon="el-icon-remove"
+ size="medium"
+ @click="AllStop"
+ v-hasPermi="['system:user:export']"
+ >鍏ㄩ儴鍋滄</el-button
+ >
+ </div>
+ </div>
+ </el-col>
+ <el-col :span="1.5">
+ <div class="documentf">
+ <div class="document">
+ <el-button
+ type="primary"
+ icon="el-icon-remove"
+ size="medium"
+ @click="Sendtimesetting"
+ v-hasPermi="['system:user:export']"
+ >鍙戦�佹椂闂磋缃�</el-button
+ >
+ </div>
+ </div>
+ </el-col>
+
<!-- <el-col :span="1.5"> </el-col> -->
</el-row>
- <!-- <right-toolbar
- :showSearch.sync="showSearch"
- @queryTable="getList"
- :columns="columns"
- ></right-toolbar> -->
<el-table
v-loading="loading"
:data="userList"
@@ -147,41 +189,37 @@
/>
<el-table-column
- label="浠诲姟鍚嶇О"
+ label="鐥呭巻鍙�"
align="center"
sortable
key="userName"
prop="userName"
- :show-overflow-tooltip="true"
+ width="120"
/>
+ <el-table-column label="濮撳悕" align="center" key="types" prop="types" />
<el-table-column
- label="鏈嶅姟妯℃澘"
- align="center"
- key="types"
- prop="types"
- />
- <el-table-column
- label="鍒涘缓鏃ユ湡"
+ label="骞撮緞"
align="center"
key="nickName"
prop="nickName"
/>
<el-table-column
- label="寰呮墽琛�/鎬绘暟"
+ label="搴婂彿"
+ align="center"
+ key="nickName"
+ prop="nickName"
+ />
+ <el-table-column
+ label="鐥呭尯"
align="center"
key="phonenumber"
prop="phonenumber"
width="120"
>
- <template slot-scope="scope">
- <span style="margin-left: 10px"
- >{{ scope.row.date }}/{{ scope.row.data }}</span
- >
- </template>
</el-table-column>
<el-table-column
- label="鎵ц鐘舵��"
+ label="鐤剧梾鍚嶇О"
align="center"
key="topicnumber"
prop="topicnumber"
@@ -189,21 +227,52 @@
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
- <div>鎵ц瀹屾垚/鎵ц澶辫触</div>
+ <div>杞诲害楠ㄨ</div>
</template>
</el-table-column>
<el-table-column
- label="瀹℃牳浜�"
+ label="闅忚鐘舵��"
+ align="center"
+ key="topicnumber"
+ prop="topicnumber"
+ width="120"
+ :show-overflow-tooltip="true"
+ >
+ <template slot-scope="scope">
+ <div>鏈畬鎴�</div>
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="闅忚鏂规"
align="center"
key="topicnumberaa"
prop="topicnumberaa"
- sortable
width="120"
- :show-overflow-tooltip="true"
+ />
+ <el-table-column
+ label="瀹f暀鏉愭枡"
+ align="center"
+ key="topicnumberaa"
+ prop="topicnumberaa"
+ width="120"
+ />
+ <el-table-column
+ label="闅忚鏂瑰紡"
+ align="center"
+ key="topicnumberaa"
+ prop="topicnumberaa"
+ width="120"
+ />
+ <el-table-column
+ label="闅忚浜哄憳"
+ align="center"
+ key="topicnumberaa"
+ prop="topicnumberaa"
+ width="120"
/>
<el-table-column
- label="瀹℃牳鏃堕棿"
+ label="灏辫瘖鏃堕棿"
sortable
align="center"
prop="createTime"
@@ -214,25 +283,30 @@
</template>
</el-table-column>
<el-table-column
- label="鎿嶄綔"
+ label="闅忚鏃堕棿"
+ sortable
align="center"
- width="120"
- class-name="small-padding fixed-width"
+ prop="createTime"
+ width="160"
>
<template slot-scope="scope">
- <el-button
- size="medium"
- type="text"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['system:user:edit']"
- ><span class="button-zx"
- ><i class="el-icon-s-promotion"></i>寮�濮嬫墽琛�</span
- ></el-button
- >
+ <span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column
- label="浠诲姟璇︽儏"
+ 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="鎿嶄綔"
align="center"
width="200"
class-name="small-padding fixed-width"
@@ -241,28 +315,28 @@
<el-button
size="medium"
type="text"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['system:user:edit']"
- ><span class="button-xq"
- ><i class="el-icon-s-data"></i>璇︽儏</span
- ></el-button
- >
- <el-button
- size="medium"
- type="text"
- @click="handleUpdate(scope.row)"
+ @click="followupvisit(scope.row)"
v-hasPermi="['system:user:edit']"
><span class="button-bb"
- ><i class="el-icon-s-order"></i>鎶ヨ〃</span
+ ><i class="el-icon-s-promotion"></i>閲嶆柊闅忚</span
></el-button
>
<el-button
size="medium"
type="text"
- @click="handleUpdate(scope.row)"
+ @click="handlestop(scope.row)"
v-hasPermi="['system:user:edit']"
><span class="button-sc"
- ><i class="el-icon-delete"></i>鍒犻櫎</span
+ ><i class="el-icon-delete"></i>鍋滄</span
+ ></el-button
+ >
+ <el-button
+ size="medium"
+ type="text"
+ @click="Seedetails(scope.row)"
+ v-hasPermi="['system:user:edit']"
+ ><span class="button-zx"
+ ><i class="el-icon-s-order"></i>鏌ョ湅璇︽儏</span
></el-button
>
</template>
@@ -331,6 +405,81 @@
<el-button @click="cancel">杩� 鍥�</el-button>
</div>
</el-dialog>
+ <!-- 淇敼鍙戦�佹椂闂村璇濇 -->
+ <el-dialog
+ title="鍙戦�佹椂闂磋缃�"
+ :visible.sync="modificationVisible"
+ width="45%"
+ >
+ <div style="margin-bottom: 20px; color: red">
+ 缁熶竴淇敼褰撳ぉ鏈彂閫佺殑浠诲姟鏃堕棿
+ </div>
+
+ <el-form
+ :model="ruleForm"
+ :rules="rules"
+ ref="ruleForm"
+ label-width="120px"
+ class="demo-ruleForm"
+ >
+ <el-form-item label="鍙戦�佹棩鏈�">
+ <el-date-picker
+ v-model="ruleForm.value1"
+ type="date"
+ placeholder="閫夋嫨鏃ユ湡"
+ >
+ </el-date-picker>
+ </el-form-item>
+
+ <el-form-item label="鏃堕棿娈�" prop="type">
+ <el-checkbox-group v-model="ruleForm.type">
+ <el-checkbox label="涓婂崍" name="type"></el-checkbox>
+ <el-checkbox label="涓嬪崍" name="type"></el-checkbox>
+ <el-checkbox label="鏅氫笂" name="type"></el-checkbox>
+ </el-checkbox-group>
+ </el-form-item>
+ <el-form-item label="涓婂崍鏃堕棿鍖洪棿" required>
+ <el-time-picker
+ is-range
+ v-model="ruleForm.value2"
+ range-separator="鑷�"
+ start-placeholder="寮�濮嬫椂闂�"
+ end-placeholder="缁撴潫鏃堕棿"
+ placeholder="閫夋嫨鏃堕棿鑼冨洿"
+ >
+ </el-time-picker>
+ </el-form-item>
+ <el-form-item label="涓嬪崍鏃堕棿鍖洪棿" required>
+ <el-time-picker
+ is-range
+ v-model="ruleForm.value3"
+ range-separator="鑷�"
+ start-placeholder="寮�濮嬫椂闂�"
+ end-placeholder="缁撴潫鏃堕棿"
+ placeholder="閫夋嫨鏃堕棿鑼冨洿"
+ >
+ </el-time-picker>
+ </el-form-item>
+ <el-form-item label="鏅氫笂鏃堕棿鍖洪棿" required>
+ <el-time-picker
+ is-range
+ v-model="ruleForm.value4"
+ range-separator="鑷�"
+ start-placeholder="寮�濮嬫椂闂�"
+ end-placeholder="缁撴潫鏃堕棿"
+ placeholder="閫夋嫨鏃堕棿鑼冨洿"
+ >
+ </el-time-picker>
+ </el-form-item>
+ </el-form>
+
+ <span slot="footer" class="dialog-footer">
+ <el-button @click="modificationVisible = false">鍙� 娑�</el-button>
+ <el-button type="primary" @click="modificationVisible = false"
+ >纭� 瀹�</el-button
+ >
+ </span>
+ </el-dialog>
</div>
</template>
@@ -371,6 +520,8 @@
title: "鏂板闂ㄨ瘖闅忚",
// 鏄惁鏄剧ず淇敼銆佹坊鍔犲脊鍑哄眰
addalteropen: false,
+ // 淇敼鍙戦�佹椂闂村璇濇
+ modificationVisible: false,
// 閮ㄩ棬鍚嶇О
deptName: undefined,
// 榛樿瀵嗙爜
@@ -379,8 +530,9 @@
dateRange: [],
// 宀椾綅閫夐」
postOptions: [],
- // 瑙掕壊閫夐」
- roleOptions: [],
+ ruleForm: {
+ type: [],
+ },
dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」
inputVisible: false,
inputValue: "",
@@ -696,20 +848,20 @@
// });
},
/** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row) {
- this.reset();
- const userId = row.userId || this.ids;
- getUser(userId).then((response) => {
- this.form = response.data;
- this.postOptions = response.posts;
- this.roleOptions = response.roles;
- this.$set(this.form, "postIds", response.postIds);
- this.$set(this.form, "roleIds", response.roleIds);
- this.addalteropen = true;
- this.title = "淇敼鐢ㄦ埛";
- this.form.password = "";
- });
- },
+ // handleUpdate(row) {
+ // this.reset();
+ // const userId = row.userId || this.ids;
+ // getUser(userId).then((response) => {
+ // this.form = response.data;
+ // this.postOptions = response.posts;
+ // this.roleOptions = response.roles;
+ // this.$set(this.form, "postIds", response.postIds);
+ // this.$set(this.form, "roleIds", response.roleIds);
+ // this.addalteropen = true;
+ // this.title = "淇敼鐢ㄦ埛";
+ // this.form.password = "";
+ // });
+ // },
/** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */
handleResetPwd(row) {
this.$prompt('璇疯緭鍏�"' + row.userName + '"鐨勬柊瀵嗙爜', "鎻愮ず", {
@@ -761,6 +913,62 @@
})
.catch(() => {});
},
+ // 鍏ㄩ儴鍋滄
+ AllStop() {
+ this.$modal
+ .confirm("鏄惁鍋滄鍏ㄩ儴浠诲姟锛�")
+ .then(function () {
+ return console.log("鍋滄鎴愬姛");
+ })
+ .then(() => {
+ this.getList();
+ this.$modal.msgWarning("鍋滄鎴愬姛");
+ })
+ .catch(() => {});
+ },
+ // 鍏ㄩ儴寮�濮�
+ AllStarted() {
+ this.$modal
+ .confirm("鏄惁寮�鍚叏閮ㄤ换鍔★紵")
+ .then(function () {
+ return console.log("寮�鍚垚鍔�");
+ })
+ .then(() => {
+ this.getList();
+ this.$modal.msgSuccess("寮�鍚垚鍔�");
+ })
+ .catch(() => {});
+ },
+ // 浠诲姟閲嶇疆
+ TaskReset() {
+ this.$modal
+ .confirm("鏄惁閲嶇疆閫変腑鐨勪换鍔¢」锛�")
+ .then(function () {
+ return console.log("閫変腑鎴愬姛");
+ })
+ .then(() => {
+ this.getList();
+ this.$modal.msgSuccess("閲嶇疆鎴愬姛");
+ })
+ .catch(() => {});
+ },
+ // 璁剧疆鍙戦�佹椂闂�
+ Sendtimesetting() {
+ this.modificationVisible = true;
+ },
+ // 璺宠浆璇︽儏椤�
+ Seedetails() {
+ // this.$router.push({
+ // path: "/followvisit/record/detailpage/",
+ // query: { id: "1" },
+ // });
+ this.$router.push({
+ path: "/followvisit/particty",
+ query: { type: 3, },
+ });
+ },
+ // 瀵煎叆鎸夐挳
+ toleadExport() {},
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
handleExport() {
this.download(
@@ -783,7 +991,7 @@
}
.document {
- width: 100px;
+ // width: 100px;
height: 50px;
}
@@ -866,15 +1074,24 @@
}
.button-bb {
font-weight: 500;
- color: #2ba05c;
+ background-color: #2ba05c;
+ padding: 5px;
+ border-radius: 1px;
+ color: #ffffff;
}
.button-xq {
font-weight: 500;
- color: #409eff;
+ background-color: #409eff;
+ padding: 5px;
+ border-radius: 1px;
+ color: #ffffff;
}
.button-sc {
font-weight: 500;
- color: #dd302a;
+ background-color: #dd302a;
+ padding: 5px;
+ border-radius: 1px;
+ color: #ffffff;
}
.button-zx {
background: #4fabe9;
@@ -889,9 +1106,10 @@
}
}
-::v-deep.el-checkbox-group {
- span {
- font-size: 24px;
- }
-}
+// 閫夐」瀛椾綋鏀惧ぇ
+// ::v-deep.el-checkbox-group {
+// span {
+// font-size: 24px;
+// }
+// }
</style>
--
Gitblit v1.9.3