阅片人页面的工作量统计,改为二级查询

main
wangxiaoshuang 2026-06-09 16:15:26 +08:00
parent 3a6956c031
commit 8c83897c6e
2 changed files with 38 additions and 0 deletions

View File

@ -4474,4 +4474,11 @@ export function getTrialUnreadVisitList(params) {
method: 'get',
params,
})
}
export function getDoctorUserTrialReadingStat(data) {
return request({
url: `/DoctorWorkload/getDoctorUserTrialReadingStat`,
method: 'post',
data,
})
}

View File

@ -217,6 +217,14 @@
)
}).TotalCount
}}
<el-button type="text" @click="
statistics(
scope.row,
ite.TrialReadingCriterionId
)
">
{{ $t('trials:enrolledReviews:button:Statistics') }}
</el-button>
</div>
</template>
</el-table-column>
@ -351,6 +359,7 @@ import {
enrollBackOrOut,
setEnrollReadingCategory,
batchSetCriterionJoinJoinAnalysis,
getDoctorUserTrialReadingStat
} from '@/api/trials'
import { addDoctorCriterionFile } from '@/api/reviewers'
import { uploadFile } from '@/api/attachment'
@ -470,6 +479,28 @@ export default {
this.initPage()
},
methods: {
async statistics(row, id) {
try {
let data = {
TrialId: this.$route.query.trialId,
TrialReadingCriterionId: id,
DoctoruserIdList: [row.DoctorUserId]
}
let res = await getDoctorUserTrialReadingStat(data)
if (res.IsSuccess && res.Result[0]) {
row.CriterionCategoryList.some((v) => {
if (v.TrialReadingCriterionId === id) {
v.PendingCount = res.Result[0].PendingCount
v.ComplectedCount = res.Result[0].ComplectedCount
v.TotalCount = res.Result[0].TotalCount
}
return v.TrialReadingCriterionId === id
})
}
} catch (err) {
console.log(err)
}
},
//
preview(row, TrialReadingCriterionId, key) {
let file = row.CriterionCategoryList.find((v) => {