diff --git a/src/api/trials.js b/src/api/trials.js index 61611e95..882dc72d 100644 --- a/src/api/trials.js +++ b/src/api/trials.js @@ -4317,4 +4317,28 @@ export function deleteAuditRecord(auditRecordId) { url: `/AuditDocument/deleteAuditRecord/${auditRecordId}`, method: 'delete' }) +} +// 核对中心人员发送邮件 +export function sendCheckSiteSurveyUserEmail(data) { + return request({ + url: `/TrialSiteSurvey/sendCheckSiteSurveyUserEmail`, + method: 'post', + data + }) +} +// 更新中心人员发送邮件 +export function sendUpdateSiteSurveyUserEmail(data) { + return request({ + url: `/TrialSiteSurvey/sendUpdateSiteSurveyUserEmail`, + method: 'post', + data + }) +} +// 更新中心人员发送邮件 +export function getTrialSiteLatestSurvey(params) { + return request({ + url: `/TrialSiteSurvey/getTrialSiteLatestSurvey`, + method: 'get', + params + }) } \ No newline at end of file diff --git a/src/views/research/login.vue b/src/views/research/login.vue index 4f249d01..8e56c895 100644 --- a/src/views/research/login.vue +++ b/src/views/research/login.vue @@ -7,16 +7,8 @@ - + @@ -35,13 +27,10 @@ - - + + @@ -54,13 +43,14 @@ {{ $t('trials:researchForm:button:updateQsForm') }} - + {{ $t('trials:researchForm:button:cancelUpdateQsForm') }} - - + + @@ -74,13 +64,9 @@ - {{ this.$t('trials:researchForm:button:send') }} {{ sendTitle ? `${sendTitle}` : null }} + {{ + this.$t('trials:researchForm:button:send') }} {{ sendTitle ? `${sendTitle}` : null }} @@ -203,7 +189,8 @@ export default { timer: null, msg: '', lang: 'zh', - isHaveSiteSurveyRecord: false + isHaveSiteSurveyRecord: false, + isUpload: false } }, computed: { @@ -221,6 +208,14 @@ export default { this.trialId = this.$route.query.trialId this.initPage() } + if (this.$route.query.isUpload) { + this.isUpload = true + this.form.IsUpdate = true + let { email, oldEMail, trialSiteId } = this.$route.query + if (trialSiteId) this.form.TrialSiteId = trialSiteId + if (oldEMail) this.form.ReplaceUserEmailOrPhone = oldEMail + if (email) this.form.EmailOrPhone = email + } }, methods: { ...mapMutations({ setLanguage: 'lang/setLanguage' }), @@ -235,6 +230,9 @@ export default { this.form[key] = Result[key] } }) + if (this.isUpload) { + this.handleSiteChange(this.form.TrialSiteId) + } this.loading = false }).catch(() => { this.loading = false }) }, @@ -347,6 +345,7 @@ export default {