独立阅片人上传限制
continuous-integration/drone/push Build is running Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-09-14 16:12:59 +08:00
parent 9310337f16
commit 1ef8eed500
2 changed files with 436 additions and 174 deletions

View File

@ -15,7 +15,7 @@
<el-table
ref="myTable"
v-loading="listLoading"
v-adaptive="{bottomOffset:55}"
v-adaptive="{ bottomOffset: 55 }"
:data="list"
stripe
height="100"
@ -32,7 +32,15 @@
v-if="!hasPermi(['role:ea'])"
>
<template slot-scope="scope">
<el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.DoctorId}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button>
<el-button
type="text"
@click="
go(
`/trialsResume?doctorId=${scope.row.DoctorId}&token=${token}`
)
"
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button
>
</template>
</el-table-column>
<!-- Name CN -->
@ -48,7 +56,7 @@
<el-table-column
prop="UserName"
:label="$t('trials:enrolledReviews:table:userName')"
:width="hasPermi(['role:ea'])?300:150"
:width="hasPermi(['role:ea']) ? 300 : 150"
sortable="custom"
show-overflow-tooltip
/>
@ -56,12 +64,16 @@
<el-table-column
prop="EnrollTimeStr"
:label="$t('trials:enrolledReviews:table:enrollmentTime')"
:width="hasPermi(['role:ea'])?320:130"
:width="hasPermi(['role:ea']) ? 320 : 130"
sortable="custom"
show-overflow-tooltip
>
<template slot-scope="scope">
{{ scope.row.EnrollTime?moment(scope.row.EnrollTime).format('YYYY-MM-DD'):'' }}
{{
scope.row.EnrollTime
? moment(scope.row.EnrollTime).format('YYYY-MM-DD')
: ''
}}
</template>
</el-table-column>
<el-table-column
@ -78,8 +90,16 @@
:inactive-value="false"
:active-text="$fd('IsEnable', true)"
:inactive-text="$fd('IsEnable', false)"
@change="(v) => {return isEnableChange(scope.row, v)}"
:disabled="!hasPermi(['trials:trials-panel:enrolled-reviewers:list:edit'])"
@change="
(v) => {
return isEnableChange(scope.row, v)
}
"
:disabled="
!hasPermi([
'trials:trials-panel:enrolled-reviewers:list:edit',
])
"
/>
<!-- <span :style="{color:scope.row.IsEnable?'#409eff':'#dcdfe6'}"> {{$fd('IsEnable', scope.row.IsEnable)}}</span> -->
</div>
@ -98,16 +118,46 @@
width="300"
>
<template slot-scope="scope">
<span v-for="item of scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}) ? scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).ReadingCategorys : []" :key="item.TrialReadingCriterionId" style="margin:5px 5px 5px 0;">
<el-tag v-if="item === 1" type="primary">{{ $fd('ReadingCategory', item) + ' & ' + $fd('ReadingCategory', 2) }}</el-tag>
<span
v-for="item of scope.row.CriterionCategoryList.find((v) => {
return (
v.TrialReadingCriterionId === ite.TrialReadingCriterionId
)
})
? scope.row.CriterionCategoryList.find((v) => {
return (
v.TrialReadingCriterionId ===
ite.TrialReadingCriterionId
)
}).ReadingCategorys
: []"
:key="item.TrialReadingCriterionId"
style="margin: 5px 5px 5px 0"
>
<el-tag v-if="item === 1" type="primary">{{
$fd('ReadingCategory', item) +
' & ' +
$fd('ReadingCategory', 2)
}}</el-tag>
<!-- <el-tag v-if="item === 2" type="info">{{ $fd('ReadingCategory', item) }}</el-tag>-->
<el-tag v-if="item === 4" type="danger">{{ $fd('ReadingCategory', item) }}</el-tag>
<el-tag v-if="item === 5" type="warning">{{ $fd('ReadingCategory', item) }}</el-tag>
<el-tag v-if="item === 4" type="danger">{{
$fd('ReadingCategory', item)
}}</el-tag>
<el-tag v-if="item === 5" type="warning">{{
$fd('ReadingCategory', item)
}}</el-tag>
</span>
<el-button
v-hasPermi="['trials:trials-panel:enrolled-reviewers:list:edit']"
v-hasPermi="[
'trials:trials-panel:enrolled-reviewers:list:edit',
]"
type="text"
@click="openSetEnrollReadingCategory(scope.row, ite.TrialReadingCriterionId)"
@click="
openSetEnrollReadingCategory(
scope.row,
ite.TrialReadingCriterionId
)
"
>
{{ $t('trials:enrolledReviews:button:config') }}
</el-button>
@ -120,13 +170,27 @@
>
<template slot-scope="scope">
<el-switch
v-model="scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).IsJoinAnalysis"
v-model="
scope.row.CriterionCategoryList.find((v) => {
return (
v.TrialReadingCriterionId === ite.TrialReadingCriterionId
)
}).IsJoinAnalysis
"
:active-value="true"
:inactive-value="false"
:active-text="$fd('YesOrNo', true)"
:inactive-text="$fd('YesOrNo', false)"
@change="(v) => {return isConsistencyChange(scope.row, ite, v, true)}"
:disabled="!hasPermi(['trials:trials-panel:enrolled-reviewers:list:edit'])"
@change="
(v) => {
return isConsistencyChange(scope.row, ite, v, true)
}
"
:disabled="
!hasPermi([
'trials:trials-panel:enrolled-reviewers:list:edit',
])
"
/>
<!-- <span v-if="scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).IsJoinAnalysis"> {{$fd('YesOrNo', scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).IsJoinAnalysis)}}</span>
<span v-else> {{$fd('YesOrNo',false)}}</span> -->
@ -138,8 +202,20 @@
show-overflow-tooltip
>
<template slot-scope="scope">
<div v-if="scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).StatementCriterionFileList.length > 0">
<el-button type="text" @click="preview(scope.row,ite.TrialReadingCriterionId)">View</el-button>
<div
v-if="
scope.row.CriterionCategoryList.find((v) => {
return (
v.TrialReadingCriterionId === ite.TrialReadingCriterionId
)
}).StatementCriterionFileList.length > 0
"
>
<el-button
type="text"
@click="preview(scope.row, ite.TrialReadingCriterionId)"
>View</el-button
>
<!-- <el-button type="text" @click="windowOpen(scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).StatementCriterionFileList[0].FilePath)">View</el-button> -->
</div>
<div v-else>
@ -147,10 +223,19 @@
<!-- 上传 -->
<el-button
v-if="ite.CriterionType === 0"
v-hasPermi="['trials:trials-panel:enrolled-reviewers:list:edit']"
v-hasPermi="[
'trials:trials-panel:enrolled-reviewers:list:edit',
]"
type="text"
style="margin-left: 10px"
@click="addCol(0, scope.row, ite, $t('trials:enrolledReviews:message:SOW'))"
@click="
addCol(
0,
scope.row,
ite,
$t('trials:enrolledReviews:message:SOW')
)
"
>
{{ $t('trials:enrolledReviews:button:upload') }}
</el-button>
@ -163,18 +248,48 @@
show-overflow-tooltip
>
<template slot-scope="scope">
<div v-if="scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).AcknowledgementCriterionFileList.length > 0">
<el-button type="text" @click="windowOpen(scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).AcknowledgementCriterionFileList[0].FilePath)">View</el-button>
<div
v-if="
scope.row.CriterionCategoryList.find((v) => {
return (
v.TrialReadingCriterionId === ite.TrialReadingCriterionId
)
}).AcknowledgementCriterionFileList.length > 0
"
>
<el-button
type="text"
@click="
windowOpen(
scope.row.CriterionCategoryList.find((v) => {
return (
v.TrialReadingCriterionId ===
ite.TrialReadingCriterionId
)
}).AcknowledgementCriterionFileList[0].FilePath
)
"
>View</el-button
>
</div>
<div v-else>
<span>{{ $t('trials:enrolledReviews:label:notUpload') }}</span>
<!-- 上传 -->
<el-button
v-if="ite.CriterionType === 0"
v-hasPermi="['trials:trials-panel:enrolled-reviewers:list:edit']"
v-hasPermi="[
'trials:trials-panel:enrolled-reviewers:list:edit',
]"
type="text"
style="margin-left: 10px"
@click="addCol(1, scope.row, ite, $t('trials:enrolledReviews:message:SOW'))"
@click="
addCol(
1,
scope.row,
ite,
$t('trials:enrolledReviews:message:SOW')
)
"
>
{{ $t('trials:enrolledReviews:button:upload') }}
</el-button>
@ -188,30 +303,47 @@
>
<template slot-scope="scope">
<div>
{{ scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).PendingCount }}
{{
scope.row.CriterionCategoryList.find((v) => {
return (
v.TrialReadingCriterionId === ite.TrialReadingCriterionId
)
}).PendingCount
}}
/
{{ scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).ComplectedCount }}
{{
scope.row.CriterionCategoryList.find((v) => {
return (
v.TrialReadingCriterionId === ite.TrialReadingCriterionId
)
}).ComplectedCount
}}
/
{{ scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).TotalCount }}
{{
scope.row.CriterionCategoryList.find((v) => {
return (
v.TrialReadingCriterionId === ite.TrialReadingCriterionId
)
}).TotalCount
}}
</div>
</template>
</el-table-column>
</el-table-column>
</el-table>
</template>
<!-- 上传SOW -->
<!-- <base-model :config="sow_model">-->
<!-- <template slot="dialog-body">-->
<!-- <upload-acksow-->
<!-- ref="uploadAckSow"-->
<!-- :trial-id="listQuery.TrialId"-->
<!-- :doctor-id="doctorId"-->
<!-- @getFileList="getFileList"-->
<!-- />-->
<!-- </template>-->
<!-- </base-model>-->
<!-- <base-model :config="sow_model">-->
<!-- <template slot="dialog-body">-->
<!-- <upload-acksow-->
<!-- ref="uploadAckSow"-->
<!-- :trial-id="listQuery.TrialId"-->
<!-- :doctor-id="doctorId"-->
<!-- @getFileList="getFileList"-->
<!-- />-->
<!-- </template>-->
<!-- </base-model>-->
<!-- 修改 Reading Type -->
<base-model :config="readingType_model">
@ -258,21 +390,38 @@
allow-create
multiple
default-first-option
style="width: 50%;"
style="width: 50%"
>
<template v-for="item of $d.ReadingCategory">
<el-option v-if="item.value === 1" :key="item.id" :value="1" :label="$fd('ReadingCategory', 1) + ' & ' + $fd('ReadingCategory', 2)" />
<el-option
v-if="item.value === 1"
:key="item.id"
:value="1"
:label="
$fd('ReadingCategory', 1) + ' & ' + $fd('ReadingCategory', 2)
"
/>
</template>
<template v-for="item of $d.ReadingCategory">
<el-option v-if="item.value === 4 && IsArbitrationReading" :key="item.id" :value="item.value" :label="$fd('ReadingCategory', 4)" />
<el-option
v-if="item.value === 4 && IsArbitrationReading"
:key="item.id"
:value="item.value"
:label="$fd('ReadingCategory', 4)"
/>
</template>
<template v-for="item of $d.ReadingCategory">
<el-option v-if="item.value === 5 && IsOncologyReading" :key="item.id" :value="item.value" :label="$fd('ReadingCategory', 5)" />
<el-option
v-if="item.value === 5 && IsOncologyReading"
:key="item.id"
:value="item.value"
:label="$fd('ReadingCategory', 5)"
/>
</template>
</el-select>
</template>
<template slot="dialog-footer">
<div style="margin-top:30px;">
<div style="margin-top: 30px">
<el-button
:disabled="readingCategory_model.btnLoading"
type="primary"
@ -298,17 +447,23 @@
:model="updateStatusForm"
:rules="updateStatusFormrules"
>
<el-form-item :label="$t('trials:enrolledReviews:label:enrollmentStatus')" prop="Status">
<el-select
v-model="updateStatusForm.Status"
style="width:60%;"
<el-form-item
:label="$t('trials:enrolledReviews:label:enrollmentStatus')"
prop="Status"
>
<el-select v-model="updateStatusForm.Status" style="width: 60%">
<!-- 0回退1出组 -->
<el-option v-for="item of $d.OutOrInEnrollment" :key="`OutOrInEnrollment${item.value}`" :value="item.value" :label="item.label" :disabled="item.value === 0 && currentWorkload>0" />
<el-option
v-for="item of $d.OutOrInEnrollment"
:key="`OutOrInEnrollment${item.value}`"
:value="item.value"
:label="item.label"
:disabled="item.value === 0 && currentWorkload > 0"
/>
</el-select>
</el-form-item>
<el-form-item
v-if="updateStatusForm.Status== 1"
v-if="updateStatusForm.Status == 1"
:label="$t('trials:enrolledReviews:label:outOfEnrollmentTime')"
prop="OutEnrollmentTime"
>
@ -346,10 +501,16 @@
label-width="120px"
size="small"
>
<el-form-item :label="$t('trials:enrolledReviews:table:criterionName')" prop="CriterionType">
<el-form-item
:label="$t('trials:enrolledReviews:table:criterionName')"
prop="CriterionType"
>
<el-input v-model="form.CriterionName" disabled />
</el-form-item>
<el-form-item :label="$t('trials:enrolledReviews:table:file')" prop="FilePath">
<el-form-item
:label="$t('trials:enrolledReviews:table:file')"
prop="FilePath"
>
<el-upload
class="upload-demo"
action
@ -358,19 +519,35 @@
:on-preview="handlePreview2"
:on-remove="handleRemoveFile2"
:show-file-list="true"
accept=".pdf"
:limit="1"
:file-list="fileList"
>
<el-button size="small" type="primary" :disabled="fileList.length > 0">{{$t('common:button:upload')}}</el-button>
<el-button
size="small"
type="primary"
:disabled="fileList.length > 0"
>{{ $t('common:button:upload') }}</el-button
>
</el-upload>
</el-form-item>
</el-form>
</template>
<template slot="dialog-footer">
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">
<el-button
:disabled="btnLoading"
size="small"
type="primary"
@click="handleCancle"
>
{{ $t('common:button:cancel') }}
</el-button>
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">
<el-button
size="small"
type="primary"
:loading="btnLoading"
@click="handleSave"
>
{{ $t('common:button:save') }}
</el-button>
</template>
@ -384,7 +561,7 @@ import {
updateReviewerReadingType,
enrollBackOrOut,
setEnrollReadingCategory,
batchSetCriterionJoinJoinAnalysis
batchSetCriterionJoinJoinAnalysis,
} from '@/api/trials'
import { addDoctorCriterionFile } from '@/api/reviewers'
import { uploadFile } from '@/api/attachment'
@ -405,7 +582,7 @@ export default {
PageIndex: 1,
PageSize: 100,
Asc: false,
SortField: ''
SortField: '',
},
doctorId: '',
currentRow: {},
@ -415,41 +592,59 @@ export default {
currentClickRowData: '',
btnLoading: false,
readingType: '',
model_cfg: { visible: false, showClose: true, width: '600px', title: '', appendToBody: true },
model_cfg: {
visible: false,
showClose: true,
width: '600px',
title: '',
appendToBody: true,
},
sow_model: {
visible: false,
title: this.$t('trials:enrolledReviews:dialogTitle:signedAckOfSow'),
showClose: true,
width: '500px'
width: '500px',
},
readingType_model: {
visible: false,
title: this.$t('trials:enrolledReviews:dialogTitle:changeReadingType'),
showClose: true,
width: '500px',
btnLoading: false
btnLoading: false,
},
readingCategory_model: {
visible: false,
title: this.$t('trials:enrolledReviews:dialogTitle:changeReadingType'),
showClose: true,
width: '600px',
btnLoading: false
btnLoading: false,
},
reviewerStatus_model: {
visible: false,
title: this.$t('trials:enrolledReviews:dialogTitle:changeStatus'),
showClose: true,
width: '500px',
btnLoading: false
btnLoading: false,
},
updateStatusForm: {
Status: '',
OutEnrollmentTime: ''
OutEnrollmentTime: '',
},
updateStatusFormrules: {
Status: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }],
OutEnrollmentTime: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }]
Status: [
{
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: ['blur', 'change'],
},
],
OutEnrollmentTime: [
{
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: ['blur', 'change'],
},
],
},
token: store.getters.token,
ReadingCategorys: [],
@ -460,15 +655,25 @@ export default {
fileList: [],
form: {},
rowData: {},
moment
moment,
}
},
computed: {
currentWorkload() {
if (Object.keys(this.currentRow).length === 0) return 0
var total = this.currentRow.Adjudication + this.currentRow.AdjudicationIn24H + this.currentRow.AdjudicationIn48H + this.currentRow.Timepoint + this.currentRow.TimepointIn24H + this.currentRow.TimepointIn48H + this.currentRow.TrainingTimes + this.currentRow.RefresherTraining + this.currentRow.Global + this.currentRow.Downtime
var total =
this.currentRow.Adjudication +
this.currentRow.AdjudicationIn24H +
this.currentRow.AdjudicationIn48H +
this.currentRow.Timepoint +
this.currentRow.TimepointIn24H +
this.currentRow.TimepointIn48H +
this.currentRow.TrainingTimes +
this.currentRow.RefresherTraining +
this.currentRow.Global +
this.currentRow.Downtime
return total
}
},
},
mounted() {
this.trialId = this.$route.query.trialCode
@ -477,14 +682,16 @@ export default {
},
methods: {
//
preview(row,TrialReadingCriterionId){
let file = row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === TrialReadingCriterionId}).StatementCriterionFileList[0];
let arr = file.FilePath.split(".");
preview(row, TrialReadingCriterionId) {
let file = row.CriterionCategoryList.find((v) => {
return v.TrialReadingCriterionId === TrialReadingCriterionId
}).StatementCriterionFileList[0]
let arr = file.FilePath.split('.')
this.$preview({
path:file.FilePath,
type:arr[arr.length - 1],
title:file.FileName
path: file.FilePath,
type: arr[arr.length - 1],
title: file.FileName,
})
},
isConsistencyChange(row, ite, value, showMessage) {
@ -492,39 +699,50 @@ export default {
},
batchSetCriterionJoinJoinAnalysis(row, ite, value, showMessage) {
let params
if (row.DoctorCriterionStatusList && row.DoctorCriterionStatusList.length > 0) {
if (
row.DoctorCriterionStatusList &&
row.DoctorCriterionStatusList.length > 0
) {
if (ite) {
let item = row.CriterionCategoryList.find(v => v.TrialReadingCriterionId === ite.TrialReadingCriterionId)
let item = row.CriterionCategoryList.find(
(v) => v.TrialReadingCriterionId === ite.TrialReadingCriterionId
)
if (item) {
params = [{
params = [
{
Id: item.Id,
EnrollId: item.EnrollId,
TrialReadingCriterionId: item.TrialReadingCriterionId,
IsJoinAnalysis: value
}]
IsJoinAnalysis: value,
},
]
}
} else {
params = row.DoctorCriterionStatusList.map(v => {
params = row.DoctorCriterionStatusList.map((v) => {
return {
Id: v.Id,
EnrollId: v.EnrollId,
TrialReadingCriterionId: v.TrialReadingCriterionId,
IsJoinAnalysis: v.IsJoinAnalysis
IsJoinAnalysis: v.IsJoinAnalysis,
}
})
}
} else {
params = row.CriterionCategoryList.map(v => {
params = row.CriterionCategoryList.map((v) => {
return {
EnrollId: v.EnrollId,
TrialReadingCriterionId: v.TrialReadingCriterionId,
IsJoinAnalysis: value
IsJoinAnalysis: value,
}
})
}
batchSetCriterionJoinJoinAnalysis(params).then(res => {
batchSetCriterionJoinJoinAnalysis(params).then((res) => {
if (showMessage) {
this.$message.success(this.$t('trials:enrolledReviews:message:batchSetCriterionJoinJoinAnalysis1'))
this.$message.success(
this.$t(
'trials:enrolledReviews:message:batchSetCriterionJoinJoinAnalysis1'
)
)
}
this.initPage()
})
@ -532,17 +750,26 @@ export default {
go(path) {
window.open(path)
},
beforeUpload() {
beforeUpload(file) {
if (this.fileList.length > 0) {
// 1
this.$alert(this.$t('trials:enrolledReviews:message:uploadSowWaring1'))
return
return false
}
console.log(file)
const fileName = file.name
var extendName = fileName
.substring(fileName.lastIndexOf('.'))
.toLocaleLowerCase()
if (extendName !== '.pdf') {
this.$alert(this.$t('trials:enrolledReviews:message:uploadSowWaring2'))
return false
}
},
handleSave() {
this.$refs['DictionaryTypeConfigForm'].validate(valid => {
this.$refs['DictionaryTypeConfigForm'].validate((valid) => {
if (!valid) return
addDoctorCriterionFile(this.form).then(res => {
addDoctorCriterionFile(this.form).then((res) => {
//
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.initPage()
@ -560,11 +787,19 @@ export default {
this.btnLoading = true
var fileName = param.file.name
let file = await this.fileToBlob(param.file)
let res = await this.OSSclient.put(`/SystemData/reviewer/${this.form.FileType === 0 ? '既往阅片情况声明' : '入项资格确认书'}/${this.rowData.DoctorId}/${fileName}`, file)
let res = await this.OSSclient.put(
`/SystemData/reviewer/${
this.form.FileType === 0 ? '既往阅片情况声明' : '入项资格确认书'
}/${this.rowData.DoctorId}/${fileName}`,
file
)
this.form.FileName = param.file.name
this.form.FilePath = this.$getObjectName(res.url)
param.file.url = this.$getObjectName(res.url)
this.$set(this.fileList, 0, { name: this.form.FileName, url: this.$getObjectName(res.url) })
this.$set(this.fileList, 0, {
name: this.form.FileName,
url: this.$getObjectName(res.url),
})
this.btnLoading = false
// this.btnLoading = true
@ -587,7 +822,7 @@ export default {
this.fileList = []
},
addCol(fileType, row, item) {
this.rowData = {...row}
this.rowData = { ...row }
this.model_cfg.visible = true
this.form = {
Remark: null,
@ -599,10 +834,13 @@ export default {
DoctorId: row.DoctorId,
CriterionType: item.CriterionType,
CriterionName: item.TrialReadingCriterionName,
TrialReadingCriterionId: item.TrialReadingCriterionId
TrialReadingCriterionId: item.TrialReadingCriterionId,
}
this.handleRemoveFile2()
this.model_cfg.title = fileType === 0 ? this.$t('trials:enrolledReviews:message:SOW') : this.$t('trials:enrolledReviews:message:EQC')// '' : ''
this.model_cfg.title =
fileType === 0
? this.$t('trials:enrolledReviews:message:SOW')
: this.$t('trials:enrolledReviews:message:EQC') // '' : ''
},
windowOpen(url) {
console.log(url)
@ -614,12 +852,14 @@ export default {
updateTrialReviewerState({
TrialId: this.listQuery.TrialId,
IsEnable: v,
EnrollId: row.EnrollId
}).then(res => {
EnrollId: row.EnrollId,
})
.then((res) => {
// ''
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.listLoading = false
}).catch(() => {
})
.catch(() => {
this.listLoading = false
})
},
@ -630,19 +870,20 @@ export default {
TrialId: this.$route.query.trialId,
EnrollId: this.currentRow.EnrollId,
ReadingCategorys: Object.assign([], this.ReadingCategorys),
TrialReadingCriterionId: this.TrialReadingCriterionId
TrialReadingCriterionId: this.TrialReadingCriterionId,
}
if (~this.ReadingCategorys.indexOf(1)) {
params.ReadingCategorys.push(2)
}
setEnrollReadingCategory(params)
.then(res => {
.then((res) => {
this.readingCategory_model.visible = false
this.readingCategory_model.btnLoading = false
this.readingCategory_model.showClose = true
this.initPage()
this.$message.success(this.$t('common:message:savedSuccessfully'))
}).catch(_ => {
})
.catch((_) => {
this.readingCategory_model.btnLoading = false
this.readingCategory_model.showClose = true
})
@ -653,16 +894,20 @@ export default {
this.currentRow = row
this.TrialReadingCriterionId = TrialReadingCriterionId
this.readingCategory_model.visible = true
var o = row.CriterionCategoryList.find(v => {
var o = row.CriterionCategoryList.find((v) => {
return v.TrialReadingCriterionId === TrialReadingCriterionId
}) ? row.CriterionCategoryList.find(v => {
})
? row.CriterionCategoryList.find((v) => {
return v.TrialReadingCriterionId === TrialReadingCriterionId
}) : null
var i = row.TrialReadingCriterionList.find(v => {
})
: null
var i = row.TrialReadingCriterionList.find((v) => {
return v.TrialReadingCriterionId === TrialReadingCriterionId
}) ? row.TrialReadingCriterionList.find(v => {
})
? row.TrialReadingCriterionList.find((v) => {
return v.TrialReadingCriterionId === TrialReadingCriterionId
}) : null
})
: null
if (i) {
this.IsArbitrationReading = i.IsArbitrationReading
this.IsOncologyReading = i.IsOncologyReading
@ -678,17 +923,23 @@ export default {
//
initPage() {
this.listLoading = true
getTrialEnrollmentWorkloadStats(this.listQuery).then((res) => {
getTrialEnrollmentWorkloadStats(this.listQuery)
.then((res) => {
this.listLoading = false
let resArray = res.Result.CurrentPageData
try {
resArray.forEach(v => {
if (v.DoctorCriterionStatusList && v.DoctorCriterionStatusList.length === 0) {
this.isConsistencyChange(v, null,true, false)
resArray.forEach((v) => {
if (
v.DoctorCriterionStatusList &&
v.DoctorCriterionStatusList.length === 0
) {
this.isConsistencyChange(v, null, true, false)
}
v.CriterionCategoryList.forEach(v1 => {
let o = v.DoctorCriterionStatusList.find(v2 => {
return v2.TrialReadingCriterionId === v1.TrialReadingCriterionId
v.CriterionCategoryList.forEach((v1) => {
let o = v.DoctorCriterionStatusList.find((v2) => {
return (
v2.TrialReadingCriterionId === v1.TrialReadingCriterionId
)
})
if (o) {
this.$set(v1, 'Id', o.Id)
@ -702,7 +953,8 @@ export default {
}
this.list = resArray
if (this.list.length > 0) {
this.TrialReadingCriterionList = this.list[0].TrialReadingCriterionList
this.TrialReadingCriterionList =
this.list[0].TrialReadingCriterionList
}
this.total = res.Result.TotalCount
this.$nextTick(() => {
@ -711,7 +963,8 @@ export default {
this.$refs.myTable.doLayout()
}
})
}).catch(() => {
})
.catch(() => {
this.listLoading = false
})
},
@ -719,7 +972,7 @@ export default {
// Enroll
handleEnroll() {
this.$router.push({
path: `/trials/trials-panel/enrolled-reviewers/enroll?trialId=${this.listQuery.TrialId}&trialCode=${this.trialId}`
path: `/trials/trials-panel/enrolled-reviewers/enroll?trialId=${this.listQuery.TrialId}&trialCode=${this.trialId}`,
})
},
@ -731,12 +984,16 @@ export default {
//
handleUpdateReviewerStatus() {
this.$refs.updateStatusForm.validate(valid => {
this.$refs.updateStatusForm.validate((valid) => {
if (!valid) return
this.reviewerStatus_model.btnLoading = true
this.reviewerStatus_model.showClose = false
enrollBackOrOut(this.listQuery.TrialId, this.currentRow.DoctorId, this.updateStatusForm.Status)
.then(res => {
enrollBackOrOut(
this.listQuery.TrialId,
this.currentRow.DoctorId,
this.updateStatusForm.Status
)
.then((res) => {
this.$nextTick(() => {
this.$refs['updateStatusForm'].resetFields()
})
@ -765,14 +1022,19 @@ export default {
handleUpdateReadingType() {
this.readingType_model.btnLoading = true
this.readingType_model.showClose = false
updateReviewerReadingType(this.listQuery.TrialId, this.currentRow.DoctorId, this.readingType)
.then(res => {
updateReviewerReadingType(
this.listQuery.TrialId,
this.currentRow.DoctorId,
this.readingType
)
.then((res) => {
this.readingType_model.visible = false
this.readingType_model.btnLoading = false
this.readingType_model.showClose = true
this.initPage()
this.$message.success(this.$t('common:message:savedSuccessfully'))
}).catch(_ => {
})
.catch((_) => {
this.readingType_model.btnLoading = false
this.readingType_model.showClose = true
})
@ -791,8 +1053,6 @@ export default {
this.initPage()
},
handleTipCloseOK() {
zzSessionStorage.setItem(
'ReviewerName',
@ -801,7 +1061,7 @@ export default {
this.currentClickRowData.LastName
)
this.$router.push({
path: `/trials/trials-panel/enrolled-reviewers/stats?doctorId=${this.currentClickRowData.DoctorId}&trialId=${this.listQuery.TrialId}&trialCode=${this.trialId}&doctorName=${this.currentClickRowData.LastName}/${this.currentClickRowData.FirstName}`
path: `/trials/trials-panel/enrolled-reviewers/stats?doctorId=${this.currentClickRowData.DoctorId}&trialId=${this.listQuery.TrialId}&trialCode=${this.trialId}&doctorName=${this.currentClickRowData.LastName}/${this.currentClickRowData.FirstName}`,
})
},
@ -827,18 +1087,18 @@ export default {
}
})
return sums
}
}
},
},
}
</script>
<style lang="scss">
.enroll-list {
.enroll-list {
height: 100%;
.readingCategory_model{
.base-modal-body{
.readingCategory_model {
.base-modal-body {
min-height: 150px;
padding-bottom: 30px !important;
}
}
}
}
</style>

View File

@ -56,6 +56,7 @@
<el-form-item
:label-width="'280px'"
:label="$t('trials:adRules:title:judgeTypeEnum')"
style="width: 95%"
>
<el-radio-group
v-model="QuestionList[index].JudgeType"
@ -63,6 +64,7 @@
>
<template v-for="item of $d.JudgeTypeEnum">
<el-radio
style="margin-bottom: 5px"
:key="item.id"
:disabled="
OtherInfo.IsSign ||