工作台稽查文档查看修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
bb798ce4ad
commit
4aa43b009b
|
@ -4243,6 +4243,14 @@ export function getAuditRecordList(data) {
|
|||
data
|
||||
})
|
||||
}
|
||||
// 稽查管理-列表(EA)
|
||||
export function getAuditRecordSelectList(data) {
|
||||
return request({
|
||||
url: `/AuditDocument/getAuditRecordSelectList`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 稽查管理-列表新增修改
|
||||
export function addOrUpdateAuditRecord(data) {
|
||||
return request({
|
||||
|
|
|
@ -417,7 +417,11 @@ export default {
|
|||
this.searchData.IsAuthorization = null
|
||||
}
|
||||
if (this.AuditRecordId) this.searchData.AuditRecordId = this.AuditRecordId
|
||||
if (!this.isAudit) this.searchData.IsCurrentAuditRecordAuthorization = true
|
||||
if (!this.isAudit) {
|
||||
this.searchData.IsCurrentAuditRecordAuthorization = true
|
||||
} else {
|
||||
this.searchData.IsCurrentAuditRecordAuthorization = null
|
||||
}
|
||||
let res = await getAuditDocumentData(this.searchData)
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
<template>
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||
<el-tab-pane v-for="item in tabs" :key="item.Id" :label="`${item.AuditTime} ${item.CompanyName}`"
|
||||
:name="item.Id">
|
||||
<auditDocument v-if="activeName === item.Id" :isManage="false" :AuditRecordId="item.Id" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
import { getAuditRecordSelectList } from '@/api/trials'
|
||||
import auditDocument from "@/views/trials/trials-workbench/components/auditDocument"
|
||||
export default {
|
||||
name: "auditDocumentView",
|
||||
components: { auditDocument },
|
||||
data() {
|
||||
return {
|
||||
activeName: '',
|
||||
tabs: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getTabs()
|
||||
},
|
||||
methods: {
|
||||
handleClick(row) {
|
||||
this.activeName = row.name
|
||||
},
|
||||
async getTabs() {
|
||||
try {
|
||||
let res = await getAuditRecordSelectList({})
|
||||
if (res.IsSuccess) {
|
||||
this.tabs = res.Result
|
||||
this.activeName = res.Result[0].Id
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<el-dialog v-if="visible" :visible.sync="visible" :close-on-click-modal="false"
|
||||
:title="$t(`trials:trials-workbench:inspectionManagement:dialogTitle:${state}`)" width="600px"
|
||||
custom-class="base-dialog-wrapper" v-dialogDrag>
|
||||
custom-class="base-dialog-wrapper" v-dialogDrag :before-close="handleCancle">
|
||||
<el-form :model="from" size="mini" :rules="rules" ref="dataForm" label-width="120px">
|
||||
<div class="base-dialog-body">
|
||||
<!-- 公司名称 -->
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<el-dialog v-if="visible" :visible.sync="visible" :close-on-click-modal="false" :fullscreen="true"
|
||||
:title="$t(`trials:trials-workbench:inspectionManagement:dialogTitle:${isAudit}`)"
|
||||
:before-close="close" :title="$t(`trials:trials-workbench:inspectionManagement:dialogTitle:${isAudit}`)"
|
||||
custom-class="base-dialog-wrapper">
|
||||
<auditDocument :isManage="false" :AuditRecordId="AuditRecordId" :isAudit="isAudit" />
|
||||
</el-dialog>
|
||||
|
@ -23,6 +23,12 @@ export default {
|
|||
}
|
||||
},
|
||||
components: { auditDocument },
|
||||
methods: {
|
||||
close(done) {
|
||||
this.$emit("update:visible", false)
|
||||
// done()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
|
@ -452,7 +452,7 @@
|
|||
<!--通用培训记录-->
|
||||
<generalTraining v-if="selected === 'viewGeneralTraining'" :isManage="false" />
|
||||
<!--稽查文档-->
|
||||
<auditDocument v-if="selected === 'viewAuditDocument'" :isManage="false" />
|
||||
<auditDocumentView v-if="selected === 'viewAuditDocument'" :isManage="false" />
|
||||
<!--培训课程管理-->
|
||||
<generalTraining v-if="selected === 'updateGeneralTraining'" :isManage="true" />
|
||||
<!--稽查文档管理-->
|
||||
|
@ -581,6 +581,7 @@ import MedicalFeedback from './components/medicalFeedback'
|
|||
import MedicalAudit from './components/medicalAudit'
|
||||
import NeedSignedTrialDoc from './components/NeedSignedTrialDoc'
|
||||
import auditDocument from "./components/auditDocument"
|
||||
import auditDocumentView from "./components/auditDocument/view"
|
||||
import generalTraining from "./components/generalTraining"
|
||||
import ReuploadAudit from "./components/ReuploadAudit"
|
||||
import inspectionManagement from "./components/inspectionManagement"
|
||||
|
@ -595,6 +596,7 @@ export default {
|
|||
name: 'WorkBench',
|
||||
components: {
|
||||
auditDocument,
|
||||
auditDocumentView,
|
||||
generalTraining,
|
||||
inspectionManagement,
|
||||
clinicalDataConfirm,
|
||||
|
|
Loading…
Reference in New Issue