Compare commits

..

No commits in common. "8545e8f1d6aba928040a06407d0b4c096a2745ca" and "544f83d118ab865313e2a1280a519d8863ef215d" have entirely different histories.

3 changed files with 12 additions and 52 deletions

View File

@ -4453,7 +4453,7 @@ export function editPatientInfo(data) {
//修正患者基本信息
export function amendmentPatientInfo(data) {
return request({
url: `/Inspection/Study/amendmentPatientInfo`,
url: `/Study/amendmentPatientInfo`,
method: 'post',
data
})

View File

@ -358,19 +358,6 @@
<PreviewFile v-if="previewObj.visible" :file-path="previewObj.filePath" :file-type="previewObj.fileType" />
</div>
</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>
</template>
<script>
@ -391,9 +378,7 @@ import PreviousOther from './previousOther'
import PreviousFiles from './previousFiles'
import clinicalDataQuestions from '@/components/clinicalDataQuestions'
import PreviewFile from '@/components/PreviewFile/index'
import SignForm from '@/views/trials/components/newSignForm'
import moment from 'moment'
import const_ from '@/const/sign-code'
export default {
name: 'uploadPetClinicalData',
components: {
@ -403,7 +388,6 @@ export default {
PreviousFiles,
clinicalDataQuestions,
PreviewFile,
SignForm
},
props: {
data: {
@ -505,10 +489,7 @@ export default {
],
},
formLoading: false,
isPatientFormCanEdit: false,
signVisible: false,
signCode: '',
currentUser: zzSessionStorage.getItem('userName')
isPatientFormCanEdit: false
}
},
mounted() {
@ -864,45 +845,24 @@ export default {
try {
let valid = await this.$refs.patientForm.validate()
if (!valid) return
this.formLoading = true
let res = null
if (this.isAudit) {
const { CorrectImageExaminationInformation } = const_.processSignature
this.signCode = CorrectImageExaminationInformation
this.signVisible = true
res = await amendmentPatientInfo(this.formData)
} else {
this.formLoading = true
let res = await editPatientInfo(this.formData)
this.formLoading = false
if (res && res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.$emit('close')
}
res = await editPatientInfo(this.formData)
}
this.formLoading = false
if (res && res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
}
} catch(e) {
this.formLoading = false
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>
<style lang="scss">

View File

@ -921,7 +921,7 @@
</div>
<!--petct临床数据预览-->
<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" @close="petVisible = false"/>
<uploadPetClinicalData :subject-visit-id="data.Id" :data="data" :studyData="rowData" :allow-add-or-edit="false" :isPatientFormAllowEdit="isAuditToEdit" :isAudit="isAuditToEdit"/>
</el-dialog>
</div>
</template>