From dacf3c6ae5ede1c0a8a8b4afb24e2a3b62f0e368 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 21 十一月 2023 15:39:28 +0800
Subject: [PATCH] Merge branch 'wulong' of http://116.62.18.175:6699/r/~yxh/smartor-web into yxh01
---
src/views/patient/patient/index.vue | 113 ++++++++++++++++++++------------------------------------
1 files changed, 40 insertions(+), 73 deletions(-)
diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue
index 34442e1..a90e1da 100644
--- a/src/views/patient/patient/index.vue
+++ b/src/views/patient/patient/index.vue
@@ -470,30 +470,30 @@
</template>
<script>
+import { delUser } from "@/api/system/user";
import {
- delUser,
- addUser,
- updateUser,
- resetUserPwd,
- changeUserStatus,
- deptTreeSelect,
-} from "@/api/system/user";
+ listpat_archive,
+ getpat_archive,
+ addpat_archive,
+ updatepat_archive,
+ delpat_archive,
+} from "@/api/smartorpor/pat_archive";
import {
- listpatient,
messagelistpatient,
alterpatient,
addpatient,
+ particularpatient,
deletepatient,
Exporterrorpatient,
+ toleadpatient,
} from "@/api/patient/homepage";
import { listtag } from "@/api/system/label";
-
import { getToken } from "@/utils/auth";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
- name: "User",
+ name: "Userhuanze",
dicts: ["sys_normal_disable", "sys_user_sex"],
components: { Treeselect },
data() {
@@ -637,10 +637,6 @@
created() {
this.getList();
this.gettabList();
- this.getDeptTree();
- this.getConfigKey("sys.user.initPassword").then((response) => {
- this.initPassword = response.msg;
- });
},
methods: {
/** 鏌ヨ鎮h�呭垪琛� */
@@ -656,7 +652,7 @@
/** 鏌ヨ鏍囩鍒楄〃 */
gettabList() {
const queryParams = {};
- listtag(this.addDateRange(queryParams)).then((response) => {
+ listtag().then((response) => {
console.log(response);
this.optionstag = response.rows;
});
@@ -670,12 +666,7 @@
this.loading = false;
});
},
- /** 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */
- getDeptTree() {
- deptTreeSelect().then((response) => {
- this.deptOptions = response.data;
- });
- },
+
// 绛涢�夎妭鐐�
filterNode(value, data) {
if (!value) return true;
@@ -686,24 +677,10 @@
this.queryParams.deptId = data.id;
this.handleQuery();
},
- // 鐢ㄦ埛鐘舵�佷慨鏀�
- handleStatusChange(row) {
- let text = row.status === "0" ? "鍚敤" : "鍋滅敤";
- this.$modal
- .confirm('纭瑕�"' + text + '""' + row.userName + '"鐢ㄦ埛鍚楋紵')
- .then(function () {
- return changeUserStatus(row.userId, row.status);
- })
- .then(() => {
- this.$modal.msgSuccess(text + "鎴愬姛");
- })
- .catch(function () {
- row.status = row.status === "0" ? "1" : "0";
- });
- },
+
// 鍙栨秷鎸夐挳
cancel() {
- this.open = false;
+ this.Labelchange = false;
this.reset();
},
// 琛ㄥ崟閲嶇疆
@@ -743,54 +720,44 @@
handleAdd() {
this.reset();
this.Labelchange = true;
+ this.amendtag = false;
},
/** 淇敼鎸夐挳鎿嶄綔 */
handleUpdate(row) {
+ console.log(row);
+ const userIds = row.patid || this.ids;
+ particularpatient(userIds).then((response) => {
+ console.log(response);
+ this.form = response.data;
+ });
this.amendtag = true;
this.Labelchange = true;
},
+
//淇敼/鏂板鎮h��
- updatevaluedate() {
+ submitForm() {
if (this.amendtag) {
- this.form.tagcategoryid = this.idds;
- // toamendtagcategory(this.addDateRange(this.classifyform)).then(
- // (response) => {
- // console.log(response);
- // this.gitclasify();
- // }
- // );
+ alterpatient(this.form)
+ .then((response) => {
+ console.log(response);
+ })
+ .then(() => {
+ this.getList();
+ this.$modal.msgSuccess("淇敼鎴愬姛");
+ });
} else {
- // addtagcategory(this.addDateRange(this.classifyform)).then(
- // (response) => {
- // console.log(response);
- // this.gitclasify();
- // }
- // );
+ addpatient(this.form)
+ .then((response) => {
+ console.log(response);
+ })
+ .then(() => {
+ this.getList();
+ this.$modal.msgSuccess("娣诲姞鎴愬姛");
+ });
}
this.reset();
// this.idds = "";
this.Labelchange = false;
- },
- /** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */
- handleResetPwd(row) {
- this.$prompt('璇疯緭鍏�"' + row.userName + '"鐨勬柊瀵嗙爜', "鎻愮ず", {
- confirmButtonText: "纭畾",
- cancelButtonText: "鍙栨秷",
- closeOnClickModal: false,
- inputPattern: /^.{5,20}$/,
- inputErrorMessage: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿",
- })
- .then(({ value }) => {
- resetUserPwd(row.userId, value).then((response) => {
- this.$modal.msgSuccess("淇敼鎴愬姛锛屾柊瀵嗙爜鏄細" + value);
- });
- })
- .catch(() => {});
- },
- /** 鍒嗛厤瑙掕壊鎿嶄綔 */
- handleAuthRole: function (row) {
- const userId = row.userId;
- this.$router.push("/system/user-auth/role/" + userId);
},
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
@@ -799,7 +766,7 @@
this.$modal
.confirm('鏄惁纭鍒犻櫎鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」锛�')
.then(function () {
- return delUser(userIds);
+ return deletepatient(userIds);
})
.then(() => {
this.getList();
--
Gitblit v1.9.3