273 lines
		
	
	
		
			8.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			273 lines
		
	
	
		
			8.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
| <template>
 | |
|   <BaseContainer>
 | |
|     <template slot="search-container">
 | |
|       <el-form :inline="true">
 | |
|         <!-- 受试者编号 -->
 | |
|         <el-form-item label="受试者编号">
 | |
|           <el-input
 | |
|             v-model="searchData.SubjectCode"
 | |
|             style="width:130px;"
 | |
|             clearable
 | |
|           />
 | |
|         </el-form-item>
 | |
| 
 | |
|         <el-form-item>
 | |
|           <!-- 查询 -->
 | |
|           <el-button type="primary" icon="el-icon-search" @click="handleSearch">
 | |
|             {{ $t('common:button:search') }}
 | |
|           </el-button>
 | |
|           <!-- 重置 -->
 | |
|           <el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
 | |
|             {{ $t('common:button:reset') }}
 | |
|           </el-button>
 | |
|         </el-form-item>
 | |
|       </el-form>
 | |
|     </template>
 | |
|     <template slot="main-container">
 | |
|       <el-table
 | |
|         v-adaptive="{bottomOffset:60}"
 | |
|         v-loading="loading"
 | |
|         :data="list"
 | |
|         stripe
 | |
|         height="100"
 | |
|       >
 | |
|         <el-table-column type="index" width="40" align="left" />
 | |
|         <!-- 是否加急 -->
 | |
|         <el-table-column
 | |
|           prop="IsUrgent"
 | |
|           min-width="100"
 | |
|           label="是否加急"
 | |
|           show-overflow-tooltip
 | |
|         >
 | |
|           <template slot-scope="scope">
 | |
|             <el-tag v-if="scope.row.IsUrgent" type="danger">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag>
 | |
|             <el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag>
 | |
|           </template>
 | |
|         </el-table-column>
 | |
|         <el-table-column
 | |
|           prop="AuditState"
 | |
|           label="审核状态"
 | |
|           min-width="120"
 | |
|           sortable="custom"
 | |
|           show-overflow-tooltip
 | |
|         >
 | |
|           <template slot-scope="scope">
 | |
|             <el-tag v-if="scope.row.AuditState === 0" type="warning">
 | |
|               {{ $fd('MedicalReviewAuditState', scope.row.AuditState) }}
 | |
|             </el-tag>
 | |
|             <el-tag v-if="scope.row.AuditState === 1" type="primary">
 | |
|               {{ $fd('MedicalReviewAuditState', scope.row.AuditState) }}
 | |
|             </el-tag>
 | |
|             <el-tag v-if="scope.row.AuditState === 2" type="danger">
 | |
|               {{ $fd('MedicalReviewAuditState', scope.row.AuditState) }}
 | |
|             </el-tag>
 | |
|           </template>
 | |
|         </el-table-column>
 | |
|         <!-- 受试者编号 -->
 | |
|         <el-table-column
 | |
|           prop="SubjectCode"
 | |
|           min-width="100"
 | |
|           label="受试者编号"
 | |
|           show-overflow-tooltip
 | |
|         />
 | |
| 
 | |
|         <!-- 盲态访视名称 -->
 | |
|         <el-table-column
 | |
|           prop="TaskBlindName"
 | |
|           min-width="100"
 | |
|           label="盲态访视名称"
 | |
|           show-overflow-tooltip
 | |
|         />
 | |
|         <!-- 任务类型 -->
 | |
|         <el-table-column
 | |
|           prop="ReadingCategory"
 | |
|           min-width="100"
 | |
|           label="任务类型"
 | |
|           show-overflow-tooltip
 | |
|         >
 | |
|           <template slot-scope="scope">
 | |
|             {{ $fd('ReadingCategory',scope.row.ReadingCategory) }}
 | |
|           </template>
 | |
|         </el-table-column>
 | |
|         <!-- 任务状态 -->
 | |
|         <el-table-column
 | |
|           prop="TaskState"
 | |
|           label="阅片任务状态"
 | |
|           min-width="140"
 | |
|           sortable="custom"
 | |
|           show-overflow-tooltip
 | |
|         >
 | |
|           <template slot-scope="scope">
 | |
|             <el-tag v-if="scope.row.TaskState === 0" type="primary">{{ $fd('TaskState', scope.row.TaskState) }}</el-tag>
 | |
|             <el-tag v-if="scope.row.TaskState === 1" type="info">{{ $fd('TaskState', scope.row.TaskState) }}</el-tag>
 | |
|             <el-tag v-if="scope.row.TaskState === 3" type="danger">{{ $fd('TaskState', scope.row.TaskState) }}</el-tag>
 | |
|             <el-tag v-if="scope.row.TaskState === 4" type="warning">{{ $fd('TaskState', scope.row.TaskState) }}</el-tag>
 | |
|           </template>
 | |
|         </el-table-column>
 | |
|         <!-- 首次质询时间 -->
 | |
|         <el-table-column
 | |
|           prop="FirstReplyTime"
 | |
|           min-width="100"
 | |
|           label="首次质询时间"
 | |
|           show-overflow-tooltip
 | |
|         />
 | |
|         <!-- 最近回复时间 -->
 | |
|         <el-table-column
 | |
|           prop="LastReplyTime"
 | |
|           min-width="100"
 | |
|           label="最近回复时间"
 | |
|           show-overflow-tooltip
 | |
|         />
 | |
|         <!-- 医学审核建议 -->
 | |
|         <el-table-column
 | |
|           prop="AuditAdviceEnum"
 | |
|           label="医学审核建议"
 | |
|           min-width="120"
 | |
|           sortable="custom"
 | |
|           show-overflow-tooltip
 | |
|         >
 | |
|           <template slot-scope="scope">
 | |
|             {{ $fd('AuditAdvice',scope.row.AuditAdviceEnum) }}
 | |
|           </template>
 | |
|         </el-table-column>
 | |
|         <!-- 是否认可 -->
 | |
|         <el-table-column
 | |
|           prop="DoctorUserIdeaEnum"
 | |
|           min-width="100"
 | |
|           label="是否认可"
 | |
|           show-overflow-tooltip
 | |
|         >
 | |
|           <template slot-scope="scope">
 | |
|             {{ $fd('MedicalReviewDoctorUserIdea',scope.row.DoctorUserIdeaEnum) }}
 | |
|           </template>
 | |
|         </el-table-column>
 | |
| 
 | |
|         <el-table-column
 | |
|           :label="$t('common:action:action')"
 | |
|           width="250"
 | |
|           fixed="right"
 | |
|         >
 | |
|           <template slot-scope="scope">
 | |
|             <!-- 阅片 -->
 | |
|             <el-button
 | |
|               :disabled="!scope.row.IsHaveQuestion || scope.row.IsInvalid"
 | |
|               circle
 | |
|               title="查看"
 | |
|               icon="el-icon-edit-outline"
 | |
|               @click="handleReadMecialAudit(scope.row)"
 | |
|             />
 | |
|             <el-button
 | |
|               :disabled="!scope.row.IsHaveQuestion || scope.row.IsInvalid"
 | |
|               circle
 | |
|               title="回复"
 | |
|               icon="el-icon-chat-dot-round"
 | |
|               @click="handleReply(scope.row)"
 | |
|             />
 | |
|           </template>
 | |
|         </el-table-column>
 | |
|       </el-table>
 | |
|       <!-- 分页组件 -->
 | |
|       <pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" />
 | |
|     </template>
 | |
| 
 | |
|     <el-dialog
 | |
|       v-if="chatForm.visible"
 | |
|       :visible.sync="chatForm.visible"
 | |
|       :close-on-click-modal="false"
 | |
|       custom-class="base-dialog-wrapper"
 | |
|       :title="chatForm.title"
 | |
|       width="600px"
 | |
|     >
 | |
|       <ChatForm :task-medical-review-id="currentRow.Id" :data="currentRow" @getList="getList" @close="chatForm.visible = false" />
 | |
|     </el-dialog>
 | |
| 
 | |
|     <!-- 审核 -->
 | |
|     <el-dialog
 | |
|       v-if="auditVisible"
 | |
|       :visible.sync="auditVisible"
 | |
|       :close-on-click-modal="false"
 | |
|       :fullscreen="true"
 | |
|       title="医学审核详情"
 | |
|     >
 | |
|       <MedicalAudit
 | |
|         :task-medical-review-id="currentRow.Id"
 | |
|         @getList="getList"
 | |
|         @close="auditVisible=false"
 | |
|       />
 | |
|     </el-dialog>
 | |
|   </BaseContainer>
 | |
| </template>
 | |
| <script>
 | |
| import { getIRMedicalFeedbackList } from '@/api/trials'
 | |
| import BaseContainer from '@/components/BaseContainer'
 | |
| import Pagination from '@/components/Pagination'
 | |
| import ChatForm from './components/ChatForm'
 | |
| import MedicalAudit from '@/views/trials/trials-panel/reading/mim-medical-audit/components/MedicalAudit'
 | |
| const searchDataDefault = () => {
 | |
|   return {
 | |
|     SubjectCode: '',
 | |
|     PageIndex: 1,
 | |
|     PageSize: 20
 | |
|   }
 | |
| }
 | |
| export default {
 | |
|   name: 'ReadTask',
 | |
|   components: { BaseContainer, Pagination, ChatForm, MedicalAudit },
 | |
|   data() {
 | |
|     return {
 | |
|       searchData: searchDataDefault(),
 | |
|       list: [],
 | |
|       total: 0,
 | |
|       loading: false,
 | |
|       trialId: '',
 | |
|       currentRow: {},
 | |
|       chatForm: { visible: false, title: '质询记录' },
 | |
|       auditVisible: false
 | |
|     }
 | |
|   },
 | |
|   mounted() {
 | |
|     this.trialId = this.$route.query.trialId
 | |
| 
 | |
|     this.getList()
 | |
|   },
 | |
|   methods: {
 | |
|     getList() {
 | |
|       this.loading = true
 | |
|       this.searchData.TrialId = this.trialId
 | |
|       getIRMedicalFeedbackList(this.searchData).then(res => {
 | |
|         this.list = res.Result.CurrentPageData
 | |
|         this.total = res.Result.TotalCount
 | |
|         this.loading = false
 | |
|       }).catch(() => { this.loading = false })
 | |
|     },
 | |
|     handleSearch() {
 | |
|       this.searchData.PageIndex = 1
 | |
|       this.getList()
 | |
|     },
 | |
|     handleReset() {
 | |
|       this.searchData = searchDataDefault()
 | |
|       this.getList()
 | |
|     },
 | |
|     handleReadMecialAudit(row) {
 | |
|       this.currentRow = { ...row }
 | |
|       this.auditVisible = true
 | |
|     },
 | |
|     handleReply(row) {
 | |
|       this.currentRow = { ...row }
 | |
|       this.chatForm.visible = true
 | |
|     },
 | |
|     // 排序
 | |
|     handleSortChange(column) {
 | |
|       if (column.order === 'ascending') {
 | |
|         this.searchData.Asc = true
 | |
|       } else {
 | |
|         this.searchData.Asc = false
 | |
|       }
 | |
|       this.searchData.SortField = column.prop
 | |
|       this.searchData.PageIndex = 1
 | |
|       this.getList()
 | |
|     }
 | |
|   }
 | |
| }
 | |
| </script>
 |