工作台稽查文档查看修改
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
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 稽查管理-列表(EA)
|
||||||
|
export function getAuditRecordSelectList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/AuditDocument/getAuditRecordSelectList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
// 稽查管理-列表新增修改
|
// 稽查管理-列表新增修改
|
||||||
export function addOrUpdateAuditRecord(data) {
|
export function addOrUpdateAuditRecord(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -417,7 +417,11 @@ export default {
|
||||||
this.searchData.IsAuthorization = null
|
this.searchData.IsAuthorization = null
|
||||||
}
|
}
|
||||||
if (this.AuditRecordId) this.searchData.AuditRecordId = this.AuditRecordId
|
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)
|
let res = await getAuditDocumentData(this.searchData)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
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>
|
<template>
|
||||||
<el-dialog v-if="visible" :visible.sync="visible" :close-on-click-modal="false"
|
<el-dialog v-if="visible" :visible.sync="visible" :close-on-click-modal="false"
|
||||||
:title="$t(`trials:trials-workbench:inspectionManagement:dialogTitle:${state}`)" width="600px"
|
: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">
|
<el-form :model="from" size="mini" :rules="rules" ref="dataForm" label-width="120px">
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<!-- 公司名称 -->
|
<!-- 公司名称 -->
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<el-dialog v-if="visible" :visible.sync="visible" :close-on-click-modal="false" :fullscreen="true"
|
<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">
|
custom-class="base-dialog-wrapper">
|
||||||
<auditDocument :isManage="false" :AuditRecordId="AuditRecordId" :isAudit="isAudit" />
|
<auditDocument :isManage="false" :AuditRecordId="AuditRecordId" :isAudit="isAudit" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
@ -23,6 +23,12 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: { auditDocument },
|
components: { auditDocument },
|
||||||
|
methods: {
|
||||||
|
close(done) {
|
||||||
|
this.$emit("update:visible", false)
|
||||||
|
// done()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped></style>
|
|
@ -452,7 +452,7 @@
|
||||||
<!--通用培训记录-->
|
<!--通用培训记录-->
|
||||||
<generalTraining v-if="selected === 'viewGeneralTraining'" :isManage="false" />
|
<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" />
|
<generalTraining v-if="selected === 'updateGeneralTraining'" :isManage="true" />
|
||||||
<!--稽查文档管理-->
|
<!--稽查文档管理-->
|
||||||
|
@ -581,6 +581,7 @@ import MedicalFeedback from './components/medicalFeedback'
|
||||||
import MedicalAudit from './components/medicalAudit'
|
import MedicalAudit from './components/medicalAudit'
|
||||||
import NeedSignedTrialDoc from './components/NeedSignedTrialDoc'
|
import NeedSignedTrialDoc from './components/NeedSignedTrialDoc'
|
||||||
import auditDocument from "./components/auditDocument"
|
import auditDocument from "./components/auditDocument"
|
||||||
|
import auditDocumentView from "./components/auditDocument/view"
|
||||||
import generalTraining from "./components/generalTraining"
|
import generalTraining from "./components/generalTraining"
|
||||||
import ReuploadAudit from "./components/ReuploadAudit"
|
import ReuploadAudit from "./components/ReuploadAudit"
|
||||||
import inspectionManagement from "./components/inspectionManagement"
|
import inspectionManagement from "./components/inspectionManagement"
|
||||||
|
@ -595,6 +596,7 @@ export default {
|
||||||
name: 'WorkBench',
|
name: 'WorkBench',
|
||||||
components: {
|
components: {
|
||||||
auditDocument,
|
auditDocument,
|
||||||
|
auditDocumentView,
|
||||||
generalTraining,
|
generalTraining,
|
||||||
inspectionManagement,
|
inspectionManagement,
|
||||||
clinicalDataConfirm,
|
clinicalDataConfirm,
|
||||||
|
|
Loading…
Reference in New Issue