Compare commits
2 Commits
544f83d118
...
8545e8f1d6
| Author | SHA1 | Date |
|---|---|---|
|
|
8545e8f1d6 | |
|
|
619a7b2ee3 |
|
|
@ -4453,7 +4453,7 @@ export function editPatientInfo(data) {
|
||||||
//修正患者基本信息
|
//修正患者基本信息
|
||||||
export function amendmentPatientInfo(data) {
|
export function amendmentPatientInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/Study/amendmentPatientInfo`,
|
url: `/Inspection/Study/amendmentPatientInfo`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -358,6 +358,19 @@
|
||||||
<PreviewFile v-if="previewObj.visible" :file-path="previewObj.filePath" :file-type="previewObj.fileType" />
|
<PreviewFile v-if="previewObj.visible" :file-path="previewObj.filePath" :file-type="previewObj.fileType" />
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<el-dialog v-if="signVisible" :visible.sync="signVisible" :close-on-click-modal="false" width="600px"
|
||||||
|
append-to-body custom-class="base-dialog-wrapper">
|
||||||
|
<div slot="title">
|
||||||
|
<span style="font-size: 18px">{{
|
||||||
|
$t('common:dialogTitle:sign')
|
||||||
|
}}</span>
|
||||||
|
<span style="font-size: 12px; margin-left: 5px">{{
|
||||||
|
`(${$t('common:label:sign')}${currentUser})`
|
||||||
|
}}</span>
|
||||||
|
</div>
|
||||||
|
<SignForm ref="signForm" :sign-code-enum="signCode" :subject-visit-id="subjectVisitId"
|
||||||
|
@closeDialog="closeSignDialog" />
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -378,7 +391,9 @@ import PreviousOther from './previousOther'
|
||||||
import PreviousFiles from './previousFiles'
|
import PreviousFiles from './previousFiles'
|
||||||
import clinicalDataQuestions from '@/components/clinicalDataQuestions'
|
import clinicalDataQuestions from '@/components/clinicalDataQuestions'
|
||||||
import PreviewFile from '@/components/PreviewFile/index'
|
import PreviewFile from '@/components/PreviewFile/index'
|
||||||
|
import SignForm from '@/views/trials/components/newSignForm'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
import const_ from '@/const/sign-code'
|
||||||
export default {
|
export default {
|
||||||
name: 'uploadPetClinicalData',
|
name: 'uploadPetClinicalData',
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -388,6 +403,7 @@ export default {
|
||||||
PreviousFiles,
|
PreviousFiles,
|
||||||
clinicalDataQuestions,
|
clinicalDataQuestions,
|
||||||
PreviewFile,
|
PreviewFile,
|
||||||
|
SignForm
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
data: {
|
data: {
|
||||||
|
|
@ -489,7 +505,10 @@ export default {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
formLoading: false,
|
formLoading: false,
|
||||||
isPatientFormCanEdit: false
|
isPatientFormCanEdit: false,
|
||||||
|
signVisible: false,
|
||||||
|
signCode: '',
|
||||||
|
currentUser: zzSessionStorage.getItem('userName')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -845,24 +864,45 @@ export default {
|
||||||
try {
|
try {
|
||||||
let valid = await this.$refs.patientForm.validate()
|
let valid = await this.$refs.patientForm.validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
this.formLoading = true
|
|
||||||
let res = null
|
|
||||||
if (this.isAudit) {
|
if (this.isAudit) {
|
||||||
res = await amendmentPatientInfo(this.formData)
|
const { CorrectImageExaminationInformation } = const_.processSignature
|
||||||
|
this.signCode = CorrectImageExaminationInformation
|
||||||
|
this.signVisible = true
|
||||||
} else {
|
} else {
|
||||||
res = await editPatientInfo(this.formData)
|
this.formLoading = true
|
||||||
}
|
let res = await editPatientInfo(this.formData)
|
||||||
this.formLoading = false
|
this.formLoading = false
|
||||||
if (res && res.IsSuccess) {
|
if (res && res.IsSuccess) {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
this.$emit('close')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
this.formLoading = false
|
this.formLoading = false
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
async closeSignDialog(isSign, signInfo) {
|
||||||
|
try {
|
||||||
|
if (isSign) {
|
||||||
|
let data = {
|
||||||
|
data: this.formData,
|
||||||
|
signInfo
|
||||||
|
}
|
||||||
|
let res = await amendmentPatientInfo(data)
|
||||||
|
if (res && res.IsSuccess) {
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
this.signVisible = false
|
||||||
|
this.$emit('close')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch(e) {
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -921,7 +921,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!--petct临床数据预览-->
|
<!--petct临床数据预览-->
|
||||||
<el-dialog v-if="petVisible" :show-close="true" :visible.sync="petVisible" append-to-body>
|
<el-dialog v-if="petVisible" :show-close="true" :visible.sync="petVisible" append-to-body>
|
||||||
<uploadPetClinicalData :subject-visit-id="data.Id" :data="data" :studyData="rowData" :allow-add-or-edit="false" :isPatientFormAllowEdit="isAuditToEdit" :isAudit="isAuditToEdit"/>
|
<uploadPetClinicalData :subject-visit-id="data.Id" :data="data" :studyData="rowData" :allow-add-or-edit="false" :isPatientFormAllowEdit="isAuditToEdit" :isAudit="isAuditToEdit" @close="petVisible = false"/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue