Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-12-02 16:40:02 +08:00
commit 443ee66e33
1 changed files with 65 additions and 30 deletions

View File

@ -1,14 +1,16 @@
<template>
<BaseContainer>
<template slot="search-container">
<div style="margin-left:auto;">
<div style="margin-left: auto">
<!-- Approve -->
<el-button
icon="el-icon-check"
type="primary"
:disabled="approveIdArr.length==0"
:disabled="approveIdArr.length == 0"
@click="handleApprove()"
v-hasPermi="['trials:trials-panel:attachments:SPMEnrollment:button-agree']"
v-hasPermi="[
'trials:trials-panel:attachments:SPMEnrollment:button-agree',
]"
>
{{ $t('trials:seletctedReviews:button:approve') }}
</el-button>
@ -17,7 +19,7 @@
<template slot="main-container">
<el-table
v-loading="listLoading"
v-adaptive="{bottomOffset:65}"
v-adaptive="{ bottomOffset: 65 }"
height="100"
:data="list"
class="table"
@ -51,7 +53,13 @@
min-width="120"
>
<template slot-scope="scope">
{{ scope.row.SpecialityId === otherId?(scope.row.SpecialityOther?scope.row.SpecialityOther:'Other'): scope.row.Speciality }}
{{
scope.row.SpecialityId === otherId
? scope.row.SpecialityOther
? scope.row.SpecialityOther
: 'Other'
: scope.row.Speciality
}}
</template>
</el-table-column>
<!-- 亚专业 -->
@ -62,7 +70,11 @@
min-width="120"
>
<template slot-scope="scope">
{{ scope.row.SubspecialityIds.map(v => {return $fd('Subspeciality', v, 'id')}).join(", ") }}
{{
scope.row.SubspecialityIds.map((v) => {
return $fd('Subspeciality', v, 'id')
}).join(', ')
}}
</template>
</el-table-column>
<el-table-column
@ -111,7 +123,9 @@
/>
<!-- 同意 -->
<el-button
v-hasPermi="['trials:trials-panel:attachments:SPMEnrollment:button-agree']"
v-hasPermi="[
'trials:trials-panel:attachments:SPMEnrollment:button-agree',
]"
:disabled="scope.row.DoctorTrialState === 8"
icon="el-icon-check"
circle
@ -121,14 +135,23 @@
</template>
</el-table-column>
</el-table>
<pagination class="page" :total="total" :page.sync="listQuery.PageIndex" :limit.sync="listQuery.PageSize" @pagination="getList" />
<pagination
class="page"
:total="total"
:page.sync="listQuery.PageIndex"
:limit.sync="listQuery.PageSize"
@pagination="getList"
/>
</template>
</BaseContainer>
</template>
<script>
import BaseContainer from '@/components/BaseContainer'
import Pagination from '@/components/Pagination'
import { getSubmissionOrApprovalReviewerList, approveReviewer } from '@/api/trials'
import {
getSubmissionOrApprovalReviewerList,
approveReviewer,
} from '@/api/trials'
import store from '@/store'
const enrollState = 4
export default {
@ -143,16 +166,18 @@ export default {
PageIndex: 1,
PageSize: 20,
Asc: false,
SortField: ''
SortField: '',
},
otherId: 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5',
total: 0,
listLoading: false,
approveIdArr: [],
token: store.getters.token
token: store.getters.token,
}
},
created() { this.initPage() },
created() {
this.initPage()
},
methods: {
lookResumeInfo(row) {
console.log(row)
@ -164,12 +189,16 @@ export default {
getList() {
this.listLoading = true
this.listQuery.TrialId = this.$route.query.trialId
getSubmissionOrApprovalReviewerList(this.listQuery).then(res => {
getSubmissionOrApprovalReviewerList(this.listQuery)
.then((res) => {
this.listLoading = false
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
// eslint-disable-next-line handle-callback-err
}).catch(() => { this.listLoading = false })
})
.catch(() => {
this.listLoading = false
})
},
handleApprove(row) {
// Confirm the approval?
@ -181,18 +210,22 @@ export default {
}
// '?'
this.$confirm(this.$t('trials:spmEnroll:title:msg1'), {
type: 'warning'
type: 'warning',
}).then(() => {
this.listLoading = true
const trialId = this.$route.query.trialId
approveReviewer(trialId, params, 1).then(res => {
approveReviewer(trialId, params, 1)
.then((res) => {
if (res.IsSuccess) {
this.getList()
this.$message.success(this.$t('common:message:savedSuccessfully'))
// this.$emit('nextStep', 'confirmation')
}
this.listLoading = false
}).catch(() => { this.listLoading = false })
})
.catch(() => {
this.listLoading = false
})
})
},
handleSelectionChange(val) {
@ -217,14 +250,16 @@ export default {
return 'selected'
}
},
handleSelectTable(row) { return row.DoctorTrialState !== 8 },
handleSelectTable(row) {
return row.DoctorTrialState !== 8
},
handleDetail(row) {
const { href } = this.$router.resolve({
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}`,
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}&blindState=1`,
})
window.open(href, '_blank')
},
}
},
}
</script>