提交访视时,签名时的说明中的临床数据名称需要与实际配置的临床数据名称一致
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
9c5e3570b5
commit
05c6a9a8fc
|
@ -3907,3 +3907,11 @@ export function setTaskValid(data) {
|
|||
data
|
||||
})
|
||||
}
|
||||
// 一致性分析临床数据设置任务为有效
|
||||
export function getVisitClinicalDataName(data) {
|
||||
return request({
|
||||
url: `/ReadingClinicalData/getVisitClinicalDataName`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
|
@ -1,7 +1,9 @@
|
|||
<template>
|
||||
<div v-loading="loading" class="sign-form-wrapper">
|
||||
<div class="sign-form-body">
|
||||
<h4 v-if="signText" style="color:red;white-space: pre-line;">* {{ signText }}</h4>
|
||||
<h4 v-if="signText" style="color: red; white-space: pre-line">
|
||||
* {{ signText }}
|
||||
</h4>
|
||||
<el-form
|
||||
ref="signForm"
|
||||
:model="signForm"
|
||||
|
@ -13,7 +15,11 @@
|
|||
:label="$t('common:form:sign:userName')"
|
||||
prop="userName"
|
||||
:rules="[
|
||||
{ required: true, message: $t('common:ruleMessage:specify'), trigger: 'blur' }
|
||||
{
|
||||
required: true,
|
||||
message: $t('common:ruleMessage:specify'),
|
||||
trigger: 'blur',
|
||||
},
|
||||
]"
|
||||
>
|
||||
<el-input v-model="signForm.userName" />
|
||||
|
@ -23,18 +29,37 @@
|
|||
:label="$t('common:form:sign:password')"
|
||||
prop="password"
|
||||
:rules="[
|
||||
{ required: true, message: $t('common:ruleMessage:specify'), trigger: 'blur' }
|
||||
{
|
||||
required: true,
|
||||
message: $t('common:ruleMessage:specify'),
|
||||
trigger: 'blur',
|
||||
},
|
||||
]"
|
||||
>
|
||||
<el-input v-model="signForm.password" show-password auto-complete="new-password" />
|
||||
<el-input
|
||||
v-model="signForm.password"
|
||||
show-password
|
||||
auto-complete="new-password"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer sign-form-footer">
|
||||
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleclose">
|
||||
<el-button
|
||||
:disabled="btnLoading"
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="handleclose"
|
||||
>
|
||||
{{ $t('common:button:cancel') }}
|
||||
</el-button>
|
||||
<el-button :loading="btnLoading" :disabled="unsigned" size="small" type="primary" @click="handleVerifySignature">
|
||||
<el-button
|
||||
:loading="btnLoading"
|
||||
:disabled="unsigned"
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="handleVerifySignature"
|
||||
>
|
||||
{{ $t('common:button:sign') }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
@ -49,44 +74,56 @@ export default {
|
|||
props: {
|
||||
signCodeEnum: {
|
||||
type: Number,
|
||||
required: true
|
||||
required: true,
|
||||
},
|
||||
subjectVisitId: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
default: '',
|
||||
},
|
||||
signReplaceText: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
signForm: {
|
||||
userName: '',
|
||||
password: ''
|
||||
password: '',
|
||||
},
|
||||
signText: '',
|
||||
signCodeId: '',
|
||||
signCode: '',
|
||||
btnLoading: false,
|
||||
loading: false,
|
||||
unsigned: false
|
||||
unsigned: false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.loading = true
|
||||
this.$store.dispatch('trials/getSignInfo', { signCode: this.signCodeEnum })
|
||||
this.$store
|
||||
.dispatch('trials/getSignInfo', { signCode: this.signCodeEnum })
|
||||
.then((res) => {
|
||||
this.unsigned = false
|
||||
this.loading = false
|
||||
if (this.signReplaceText) {
|
||||
this.signText = res.SignText.replace('xxx', this.signReplaceText)
|
||||
} else {
|
||||
this.signText = res.SignText
|
||||
}
|
||||
this.signCode = res.SignCode
|
||||
this.signCodeId = res.SignCodeId
|
||||
}).catch(() => {
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
this.unsigned = true
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
handleVerifySignature() {
|
||||
const currentUser = zzSessionStorage.getItem('userName').toLocaleLowerCase()
|
||||
const currentUser = zzSessionStorage
|
||||
.getItem('userName')
|
||||
.toLocaleLowerCase()
|
||||
this.$refs.signForm.validate((valid) => {
|
||||
if (!valid) return
|
||||
if (this.signForm.userName.trim().toLocaleLowerCase() !== currentUser) {
|
||||
|
@ -103,38 +140,37 @@ export default {
|
|||
SignCode: this.signCode,
|
||||
SignText: this.signText,
|
||||
SignCodeId: this.signCodeId,
|
||||
SubjectVisitId: this.subjectVisitId
|
||||
SubjectVisitId: this.subjectVisitId,
|
||||
}
|
||||
this.$emit('closeDialog', true, param)
|
||||
})
|
||||
},
|
||||
handleclose() {
|
||||
this.$emit('closeDialog', false)
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.sign-form-wrapper{
|
||||
.sign-form-body{
|
||||
padding:5px 10px 10px 10px;
|
||||
.sign-form-wrapper {
|
||||
.sign-form-body {
|
||||
padding: 5px 10px 10px 10px;
|
||||
// border: 1px solid #e0e0e0;
|
||||
max-height:650px;
|
||||
max-height: 650px;
|
||||
overflow-y: auto;
|
||||
// /deep/ .el-form-item__label{
|
||||
// color: #fff;
|
||||
// }
|
||||
}
|
||||
.sign-form-footer{
|
||||
padding:10px;
|
||||
.sign-form-footer {
|
||||
padding: 10px;
|
||||
margin-top: 10px;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
<style>
|
||||
.el-dialog__body .sign-form-body h4{
|
||||
word-break: normal!important;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.el-dialog__body .sign-form-body h4 {
|
||||
word-break: normal !important;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1085,6 +1085,7 @@
|
|||
<SignForm
|
||||
ref="signForm"
|
||||
:sign-code-enum="signCode"
|
||||
:sign-replace-text="signReplaceText"
|
||||
:subject-visit-id="rowData.Id"
|
||||
@closeDialog="closeSignDialog"
|
||||
/>
|
||||
|
@ -1496,6 +1497,7 @@ import {
|
|||
cRCCancelConfirmClinical,
|
||||
getClinicalTableList,
|
||||
getClinicalDateList,
|
||||
getVisitClinicalDataName,
|
||||
} from '@/api/trials'
|
||||
import { cRCRequestToQC } from '@/api/trials/visit'
|
||||
import { cRCVisitList_Export } from '@/api/export'
|
||||
|
@ -1578,6 +1580,7 @@ export default {
|
|||
selectArr: [],
|
||||
signVisible: false,
|
||||
signCode: null,
|
||||
signReplaceText: null,
|
||||
currentUser: zzSessionStorage.getItem('userName'),
|
||||
pickerOption: {
|
||||
disabledDate: (time) => {
|
||||
|
@ -1970,9 +1973,17 @@ export default {
|
|||
.then(() => {
|
||||
if (this.rowData.IsBaseLine) {
|
||||
if (this.otherInfo.ClinicalInformationTransmissionEnum > 0) {
|
||||
const { ClinicalDataConfirmation } = const_.processSignature
|
||||
getVisitClinicalDataName({ id: this.rowData.Id })
|
||||
.then((res) => {
|
||||
this.signReplaceText = res.Result.ClinicalDataName
|
||||
const { ClinicalDataConfirmation } =
|
||||
const_.processSignature
|
||||
this.signCode = ClinicalDataConfirmation
|
||||
this.signVisible = true
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
} else {
|
||||
this.submit()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue