From 7e2292c7051bfb957a435a944863a22d9fb117a2 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 24 Apr 2024 11:21:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?oa=E9=A1=B5=E9=9D=A2=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 3 +- src/components/BaseForm/search-form.vue | 162 +++++++++++++----- src/layout/components/Sidebar/SidebarItem.vue | 4 +- src/utils/uploadZip.js | 3 +- src/views/recompose/index.vue | 1 + src/views/system/hospital/index.vue | 9 +- src/views/system/user/list/index.vue | 31 +++- src/views/trials/trials-list/index.vue | 4 +- .../reading/dicoms/components/ReportPage.vue | 7 +- .../reading/reading-tracking/index.vue | 7 +- .../trial-summary/trial-information/index.vue | 86 +++++----- 11 files changed, 217 insertions(+), 100 deletions(-) diff --git a/src/App.vue b/src/App.vue index 0b6ce56..cdebbf6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -103,7 +103,8 @@ export default { }; }, mounted() { - this.show = process.env.VUE_APP_OSS_PATH === "/hir_test/dist"; + // this.show = process.env.VUE_APP_OSS_PATH === "/hir_test/dist"; + this.show = true; }, methods: { changeValue(target, attr, e) { diff --git a/src/components/BaseForm/search-form.vue b/src/components/BaseForm/search-form.vue index dfaadf4..43d416c 100644 --- a/src/components/BaseForm/search-form.vue +++ b/src/components/BaseForm/search-form.vue @@ -2,18 +2,28 @@ - + - - - + + - - {{ ra.label }} + + {{ ra.label }} - - {{ ra.label }} + + {{ ra.label }} - - {{ ch.label }} + + {{ ch.label }} - + - + - + + + - + - + - {{ item.label }} + {{ item.label }} @@ -76,47 +154,45 @@ export default { props: { that: { type: Object, - default: this + default: this, }, isHandle: { type: Boolean, - default: true + default: true, }, labelWidth: { type: String, - default: '' + default: "", }, size: { type: String, - default: 'mini' + default: "mini", }, searchForm: { type: Array, - default: () => [] + default: () => [], }, searchHandle: { type: Array, - default: () => [] + default: () => [], }, searchData: { type: Object, - default: () => {} - } + default: () => {}, + }, }, methods: { handleClick(emitKey) { // emit事件 - this.$emit(`${emitKey}`) - } - } - -} - + this.$emit(`${emitKey}`); + }, + }, +}; diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index ea30dbe..c54888e 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -3,14 +3,14 @@ - + - + { await setfolder(item); } } catch (err) { + flag = false; console.log(err); } }; @@ -81,7 +82,7 @@ const setfolder = async (item) => { zipObj = null; }); }) - .catch((reason) => { }); + .catch((reason) => { flag = false; }); }; const handleBatchDown = async (item, zip) => { return new Promise((resolve) => { diff --git a/src/views/recompose/index.vue b/src/views/recompose/index.vue index c4d1bcc..6b04452 100644 --- a/src/views/recompose/index.vue +++ b/src/views/recompose/index.vue @@ -175,6 +175,7 @@ export default { NewUserName: this.password.NewUserName, NewPassWord: md5(this.password.NewPassWord), OldPassWord: md5(this.password.OldPassWord), + CheckCode: this.password.CheckCode, }; this.loading = true; modifyPassword(param) diff --git a/src/views/system/hospital/index.vue b/src/views/system/hospital/index.vue index 1958cd7..18dc553 100644 --- a/src/views/system/hospital/index.vue +++ b/src/views/system/hospital/index.vue @@ -13,7 +13,10 @@ - + @@ -38,7 +41,7 @@ @@ -53,7 +56,7 @@ > - + { Asc: true, RealName: "", SortField: "", + CreateTimeArr: [], + BeginCreateTime: null, + EndCreateTime: null, }; }; export default { @@ -162,10 +165,17 @@ export default { sortable: "custom", showOverflowTooltip: true, }, + { + prop: "CreateTime", + label: this.$t("system:userlist:table:createTime"), + minWidth: 200, + sortable: "custom", + showOverflowTooltip: true, + }, { type: "operate", label: this.$t("common:action:action"), - minWidth: 200, + minWidth: 100, operates: [ { name: this.$t("common:button:edit"), @@ -257,6 +267,13 @@ export default { props: { label: "UserType", value: "Id" }, // 下拉选项配置信息,必填 placeholder: "", }, + { + type: "Daterange", + label: this.$t("system:userlist:label:CreateTime"), + prop: "CreateTimeArr", + width: "100px", + placeholder: "", + }, ], searchHandle: [ { @@ -289,6 +306,18 @@ export default { // 获取用户信息 getList() { this.loading = true; + if ( + this.searchData.CreateTimeArr[0] && + this.searchData.CreateTimeArr[1] + ) { + this.searchData.BeginCreateTime = + this.searchData.CreateTimeArr[0].toISOString(); + this.searchData.EndCreateTime = + this.searchData.CreateTimeArr[1].toISOString(); + } else { + this.searchData.BeginCreateTime = null; + this.searchData.EndCreateTime = null; + } getUserList(this.searchData) .then((res) => { this.loading = false; diff --git a/src/views/trials/trials-list/index.vue b/src/views/trials/trials-list/index.vue index 893740e..166196f 100644 --- a/src/views/trials/trials-list/index.vue +++ b/src/views/trials/trials-list/index.vue @@ -208,7 +208,7 @@ sortable="custom" /> - - + --> - {{$t('trials:dicoms:button:evaluationReport')}} + {{$t('trials:dicoms:button:evaluationReport')}} { @@ -317,6 +317,7 @@ export default { loading: false, total: 0, // 修改检查 + reportBtnLoading: false, }; }, created() { @@ -330,12 +331,16 @@ export default { }, // 评估报告 async showReport(item) { + if (this.reportBtnLoading) return; let data = { VisitTaskId: item.Id, }; try { + this.reportBtnLoading = true; let res = await downLoadReadReport(data); + this.reportBtnLoading = false; } catch (err) { + this.reportBtnLoading = false; console.log(err); } }, diff --git a/src/views/trials/trials-panel/trial-summary/trial-information/index.vue b/src/views/trials/trials-panel/trial-summary/trial-information/index.vue index 2bbd568..5d1a3e0 100644 --- a/src/views/trials/trials-panel/trial-summary/trial-information/index.vue +++ b/src/views/trials/trials-panel/trial-summary/trial-information/index.vue @@ -1,48 +1,33 @@ - - - - {{ trialInfo.TrialCode }} - - ( {{ $fd("TrialStatusEnum", trialInfo.TrialStatusStr) }} ) - - + {{ $fd("TrialType", trialInfo.TrialType) }} - - - {{ trialInfo.ExperimentName }} - {{ trialInfo.ResearchProgramNo }} - - - {{ trialInfo.HeadPI }} + + + {{ trialInfo.ExperimentName }} + + + + {{ trialInfo.MedicineName }} {{ trialInfo.Sponsor }} - - - {{ trialInfo.CRO }} - - - - {{ trialInfo.MedicineName }} + + + {{ trialInfo.HeadPI }} @@ -52,16 +37,6 @@ {{ trialInfo.Indication }} - - - {{ - trialInfo.ModalityIds - ? trialInfo.ModalityIds.map((item) => - $fd("Modality", item, "id") - ).join(", ") - : "" - }} - + + + {{ trialInfo.CRO }} + + + {{ trialInfo.AuthorizationDuration }} - - - {{ trialInfo.AuthorizationDate }} - 项目授权信息 - + {{ otherInfo.PurchaseDuration }} + + + {{ trialInfo.AuthorizationDate }} + + + + {{ trialInfo.AuthorizationDate }} + Date: Wed, 24 Apr 2024 16:07:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +- src/components/visitSelect/index.vue | 10 + .../components/add-trials-list.vue | 200 ++++++++++++++---- .../components/confirm-visit-list.vue | 55 +++-- src/views/trials/trials-myinfo/account.vue | 3 + src/views/trials/trials-myinfo/index.vue | 19 +- src/views/trials/trials-myinfo/mine.vue | 11 - src/views/trials/trials-myinfo/password.vue | 115 +++++----- .../study/components/edit-visit.vue | 6 +- .../subject-list/components/add-subject.vue | 90 +++++--- .../components/patient-study-list.vue | 132 ++++++++++++ .../subject/subject-list/index.vue | 25 ++- .../trial-summary/login-log/index.vue | 4 +- 13 files changed, 482 insertions(+), 192 deletions(-) create mode 100644 src/views/trials/trials-panel/subject/subject-list/components/patient-study-list.vue diff --git a/src/App.vue b/src/App.vue index cdebbf6..60d0099 100644 --- a/src/App.vue +++ b/src/App.vue @@ -192,8 +192,8 @@ export default { } else { this.tableData = Object.assign([], this.arr); } - console.log(JSON.stringify(this.$path)); - console.log(JSON.stringify(this.tableData)); + // console.log(JSON.stringify(this.$path)); + // console.log(JSON.stringify(this.tableData)); }, }, }; diff --git a/src/components/visitSelect/index.vue b/src/components/visitSelect/index.vue index 742b19b..2bf2203 100644 --- a/src/components/visitSelect/index.vue +++ b/src/components/visitSelect/index.vue @@ -71,6 +71,11 @@ export default { let res = await this.formatVisit(); if (!res) return; this.$emit("update:modelData", this.visit); + let data = { + StudyId: this.studyData.StudyId || this.studyData.SCPStudyId, + VisitId: this.visit, + }; + this.$emit("putVisit", data); } catch (err) { console.log(err); } @@ -120,6 +125,11 @@ export default { } ).then(() => { this.$emit("update:modelData", this.visit); + let data = { + StudyId: this.studyData.StudyId || this.studyData.SCPStudyId, + VisitId: this.visit, + }; + this.$emit("putVisit", data); }); } return true; diff --git a/src/views/trials/trials-inspection/components/add-trials-list.vue b/src/views/trials/trials-inspection/components/add-trials-list.vue index bdc3e77..13c64ec 100644 --- a/src/views/trials/trials-inspection/components/add-trials-list.vue +++ b/src/views/trials/trials-inspection/components/add-trials-list.vue @@ -19,13 +19,14 @@ :model="submitMessage" class="demo-form-inline" :rules="rules" - label-width="150px" + label-width="130px" > - - - - - + + - - - - + + + + + + + {{ $t("trials:selectSubject:button:add") }} + + + + {{ + bindPatientTip.map((item) => item.PatientIdStr).join(", ") + }} + + + + + + + + + + + + + + + {{ $t("common:button:confirm") }} + + + {{ $t("common:button:cancel") }} + + + \ No newline at end of file diff --git a/src/views/trials/trials-panel/subject/subject-list/index.vue b/src/views/trials/trials-panel/subject/subject-list/index.vue index 8a90acf..1453050 100644 --- a/src/views/trials/trials-panel/subject/subject-list/index.vue +++ b/src/views/trials/trials-panel/subject/subject-list/index.vue @@ -111,6 +111,10 @@ {{ index === scope.row.PatientList.length - 1 @@ -280,10 +284,18 @@ @handleOpenDialog="handleOpenDialog" @getList="getList" /> + +
项目授权信息