From 348f6969c1d053d410f6b40476aaf5ed9791540d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Thu, 7 Aug 2025 16:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 + src/views/common/home.vue | 243 ++++---- src/views/components/commonBookTags/tags.vue | 21 +- src/views/main-content.vue | 75 ++- .../modules/medicalrecords/addCertificate.vue | 6 +- src/views/modules/medicalrecords/examine.vue | 544 ++++++++++++++++++ .../modules/medicalrecords/medicalList.vue | 323 +++++++++-- src/views/modules/medicalrecords/userList.vue | 10 +- 8 files changed, 1030 insertions(+), 195 deletions(-) create mode 100644 src/views/modules/medicalrecords/examine.vue diff --git a/package.json b/package.json index 9de7829..38923c9 100644 --- a/package.json +++ b/package.json @@ -17,12 +17,15 @@ "axios": "0.17.1", "babel-plugin-component": "0.10.1", "babel-polyfill": "6.26.0", + "docx": "^9.5.1", "element-ui": "^2.15.14", + "file-saver": "^2.0.5", "gulp": "4.0.2", "gulp-concat": "2.6.1", "gulp-load-plugins": "2.0.5", "gulp-replace": "1.0.0", "gulp-shell": "0.8.0", + "html-docx-js": "^0.3.1", "lodash": "4.17.5", "mammoth": "^1.9.1", "node-sass": "^4.0.0", diff --git a/src/views/common/home.vue b/src/views/common/home.vue index 046e887..9353361 100644 --- a/src/views/common/home.vue +++ b/src/views/common/home.vue @@ -1,143 +1,166 @@ - diff --git a/src/views/components/commonBookTags/tags.vue b/src/views/components/commonBookTags/tags.vue index 4161493..3548d9e 100644 --- a/src/views/components/commonBookTags/tags.vue +++ b/src/views/components/commonBookTags/tags.vue @@ -7,7 +7,7 @@ > 当前{{ currentNode && - ["wait", "false", "all", "success"].includes(currentNode.data.id) + ["wait", "false", "all", "success",'caogao','shengpi'].includes(currentNode.data.id) ? "状态" : "标签" }}: {{ node.label }}{{ node.label }}{{ data.number?`  (${data.number})`:'' }} @@ -422,13 +423,25 @@ export default { this.addForm = {}; // console.log(this.$refs.tree.handleClickNodes(), "当前选中节点"); console.log(node, data, "当前选中节点-----------"); - this.currentNode = node; + if(data.id=='success'){ + this.$set(this.currentNode, 'data', node.data.children[0]) + + + console.log('this.currentNode at line 427:', this.currentNode) + data={...node.data.children[0]} + node={data:{...node.data.children[0]}} + this.$forceUpdate() + }else{ + this.currentNode = node; + } + this.isFresh = false; this.isFresh = true; this.$forceUpdate(); var form = {}; if (this.source == "shop") { + await this.selectShop(data); } else if (this.source == "tags") { switch (type) { diff --git a/src/views/main-content.vue b/src/views/main-content.vue index abe2250..0b0ca87 100644 --- a/src/views/main-content.vue +++ b/src/views/main-content.vue @@ -168,31 +168,60 @@ export default { } }, created() { - this.$http({ - url: this.$http.adornUrl( - "/master/medicalRecords/getMedicalRecordsListCheck" - ), - method: "post", - data: this.$http.adornData({ - current: 1, - limit: 999999, - state: 1 - }) - }).then(({ data }) => { - if (data.page.total > 0) { - console.log("data at line 181:", data); - const h = this.$createElement; - this.$notify({ - title: "待审核医案处理通知", - message: h( - "i", - { style: "color: teal" }, - `待审核的共有 【${data.page.total}】 条,请及时处理!!!` - ) - }); - } + + Promise.all([ + this.$http({ + url: this.$http.adornUrl("/master/medicalRecords/getMedicalRecordsListCheck"), + method: "post", + data: this.$http.adornData({ + current: 1, + limit: 999999, + state: 1 + }) + }), + this.$http({ + url: this.$http.adornUrl("/master/medicalRecords/getMedicalRecordsListCheck"), + method: "post", + data: this.$http.adornData({ + current: 1, + limit: 999999, + state: 3 + }) + }) +]).then(([res1, res3]) => { + const totalCheck = res1.data.page.total || 0; // 待审核 + const totalApprove = res3.data.page.total || 0; // 待审批 + + if (totalCheck > 0 || totalApprove > 0) { + const h = this.$createElement; + const messageNodes = []; + + if (totalCheck > 0) { + messageNodes.push( + h("i", { + style: "color: #c97902; display: block; margin-bottom: 4px;" + }, `待审核的共有 【${totalCheck}】 条,请及时处理!`) + ); + } + + if (totalApprove > 0) { + messageNodes.push( + h("i", { + style: "color: #2568d9; display: block;" + }, `待审批的共有 【${totalApprove}】 条,请及时处理!`) + ); + } + + this.$notify({ + title: "医案处理提醒", + message: h("div", messageNodes) }); + } +}); + + + } }; diff --git a/src/views/modules/medicalrecords/addCertificate.vue b/src/views/modules/medicalrecords/addCertificate.vue index aa29a5b..3b3bd78 100644 --- a/src/views/modules/medicalrecords/addCertificate.vue +++ b/src/views/modules/medicalrecords/addCertificate.vue @@ -8,7 +8,7 @@ : type == 'add' ? '新增医案' : `医案详情${ - addCertificateForm.state == 1 ? ' ( 待审核 ) ' : ' ( 已拒绝 ) ' + addCertificateForm.state == 1 ? ' ( 待审核 ) ' : addCertificateForm.state == 3?' ( 审批 ) ':' ( 已拒绝 ) ' }` }` " @@ -609,14 +609,14 @@ :clearable="true" > - 是否加入 Ai 训练库 + > --> + + + + + + + + + + + + + + + + A + B + C + + + + + A + B + C + + + + + A + B + C + + + + + 取消 + 确定 + + + + + + + diff --git a/src/views/modules/medicalrecords/medicalList.vue b/src/views/modules/medicalrecords/medicalList.vue index 4dc8ea3..cd011f4 100644 --- a/src/views/modules/medicalrecords/medicalList.vue +++ b/src/views/modules/medicalrecords/medicalList.vue @@ -19,7 +19,9 @@
@@ -88,7 +90,8 @@ > ( {{ currentNode.data ? currentNode.data.title : "" }} ) - - + + + + +