Compare commits
No commits in common. "8545e8f1d6aba928040a06407d0b4c096a2745ca" and "544f83d118ab865313e2a1280a519d8863ef215d" have entirely different histories.
8545e8f1d6
...
544f83d118
|
|
@ -4453,7 +4453,7 @@ export function editPatientInfo(data) {
|
||||||
//修正患者基本信息
|
//修正患者基本信息
|
||||||
export function amendmentPatientInfo(data) {
|
export function amendmentPatientInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/Inspection/Study/amendmentPatientInfo`,
|
url: `/Study/amendmentPatientInfo`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -358,19 +358,6 @@
|
||||||
<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>
|
||||||
|
|
@ -391,9 +378,7 @@ 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: {
|
||||||
|
|
@ -403,7 +388,6 @@ export default {
|
||||||
PreviousFiles,
|
PreviousFiles,
|
||||||
clinicalDataQuestions,
|
clinicalDataQuestions,
|
||||||
PreviewFile,
|
PreviewFile,
|
||||||
SignForm
|
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
data: {
|
data: {
|
||||||
|
|
@ -505,10 +489,7 @@ export default {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
formLoading: false,
|
formLoading: false,
|
||||||
isPatientFormCanEdit: false,
|
isPatientFormCanEdit: false
|
||||||
signVisible: false,
|
|
||||||
signCode: '',
|
|
||||||
currentUser: zzSessionStorage.getItem('userName')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -864,45 +845,24 @@ 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) {
|
||||||
const { CorrectImageExaminationInformation } = const_.processSignature
|
res = await amendmentPatientInfo(this.formData)
|
||||||
this.signCode = CorrectImageExaminationInformation
|
|
||||||
this.signVisible = true
|
|
||||||
} else {
|
} else {
|
||||||
this.formLoading = true
|
res = await editPatientInfo(this.formData)
|
||||||
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" @close="petVisible = false"/>
|
<uploadPetClinicalData :subject-visit-id="data.Id" :data="data" :studyData="rowData" :allow-add-or-edit="false" :isPatientFormAllowEdit="isAuditToEdit" :isAudit="isAuditToEdit"/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue