From 38b17821f508620d6c8bbf8b1b1fd1a72e2d71f2 Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期五, 24 十一月 2023 12:39:48 +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 | 145 +++++++++++++++++++++-------------------------- 1 files changed, 65 insertions(+), 80 deletions(-) diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue index 34442e1..a700041 100644 --- a/src/views/patient/patient/index.vue +++ b/src/views/patient/patient/index.vue @@ -155,6 +155,31 @@ </template> </el-table-column> <el-table-column + label="骞撮緞" + align="center" + key="age" + prop="age" + width="120" + /> + <el-table-column + label="鍑虹敓骞存湀" + align="center" + key="archivetime" + prop="archivetime" + width="160" + > + <template slot-scope="scope"> + <span>{{ parseTime(scope.row.createTime) }}</span> + </template> + </el-table-column> + <el-table-column + label="瀹跺涵浣忓潃" + align="center" + key="age" + prop="age" + width="120" + /> + <el-table-column label="鎮h�呮爣绛�" align="center" key="tagList" @@ -178,13 +203,6 @@ key="iccardno" prop="iccardno" width="190" - /> - <el-table-column - label="骞撮緞" - align="center" - key="age" - prop="age" - width="120" /> <el-table-column @@ -470,30 +488,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 +655,6 @@ created() { this.getList(); this.gettabList(); - this.getDeptTree(); - this.getConfigKey("sys.user.initPassword").then((response) => { - this.initPassword = response.msg; - }); }, methods: { /** 鏌ヨ鎮h�呭垪琛� */ @@ -656,7 +670,7 @@ /** 鏌ヨ鏍囩鍒楄〃 */ gettabList() { const queryParams = {}; - listtag(this.addDateRange(queryParams)).then((response) => { + listtag().then((response) => { console.log(response); this.optionstag = response.rows; }); @@ -670,12 +684,7 @@ this.loading = false; }); }, - /** 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */ - getDeptTree() { - deptTreeSelect().then((response) => { - this.deptOptions = response.data; - }); - }, + // 绛涢�夎妭鐐� filterNode(value, data) { if (!value) return true; @@ -686,24 +695,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 +738,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 +784,7 @@ this.$modal .confirm('鏄惁纭鍒犻櫎鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」锛�') .then(function () { - return delUser(userIds); + return deletepatient(userIds); }) .then(() => { this.getList(); -- Gitblit v1.9.3