451 lines
		
	
	
		
			12 KiB
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			451 lines
		
	
	
		
			12 KiB
		
	
	
	
		
			Plaintext
		
	
	
<template>
 | 
						|
  <BaseContainer>
 | 
						|
    <template slot="search-container">
 | 
						|
      <el-form :inline="true">
 | 
						|
        <!-- 中心编号 -->
 | 
						|
        <el-form-item label="中心编号">
 | 
						|
          <el-select
 | 
						|
            v-model="searchData.SiteId"
 | 
						|
            clearable
 | 
						|
            filterable
 | 
						|
            style="width:120px;"
 | 
						|
          >
 | 
						|
            <el-option
 | 
						|
              v-for="(item,index) of siteOptions"
 | 
						|
              :key="index"
 | 
						|
              :label="item.TrialSiteCode"
 | 
						|
              :value="item.SiteId"
 | 
						|
            />
 | 
						|
          </el-select>
 | 
						|
        </el-form-item>
 | 
						|
        <!-- 受试者编号 -->
 | 
						|
        <el-form-item label="受试者编号">
 | 
						|
          <el-input
 | 
						|
            v-model="searchData.SubjectCode"
 | 
						|
            style="width:100px;"
 | 
						|
          />
 | 
						|
        </el-form-item>
 | 
						|
        <el-form-item
 | 
						|
          style="margin-bottom:10px"
 | 
						|
          label="访视/阅片期名称"
 | 
						|
        >
 | 
						|
          <el-input
 | 
						|
            v-model="searchData.TaskName"
 | 
						|
            style="width:100px;"
 | 
						|
            clearable
 | 
						|
          />
 | 
						|
        </el-form-item>
 | 
						|
        <el-form-item
 | 
						|
          style="margin-bottom:10px"
 | 
						|
          label="盲态访视名称"
 | 
						|
        >
 | 
						|
          <el-input
 | 
						|
            v-model="searchData.TaskName"
 | 
						|
            style="width:100px;"
 | 
						|
            clearable
 | 
						|
          />
 | 
						|
        </el-form-item>
 | 
						|
 | 
						|
        <el-form-item
 | 
						|
          style="margin-bottom:10px"
 | 
						|
          label="阅片角色"
 | 
						|
        >
 | 
						|
          <el-select
 | 
						|
            v-model="searchData.ArmEnum"
 | 
						|
            clearable
 | 
						|
            style="width:120px;"
 | 
						|
          >
 | 
						|
            <el-option
 | 
						|
              v-for="item of $d.ArmEnum"
 | 
						|
              :key="'ArmEnum' + item.label"
 | 
						|
              :value="item.value"
 | 
						|
              :label="item.label"
 | 
						|
            />
 | 
						|
          </el-select>
 | 
						|
        </el-form-item>
 | 
						|
        <el-form-item
 | 
						|
          style="margin-bottom:10px"
 | 
						|
          label="阅片人"
 | 
						|
        >
 | 
						|
          <el-select
 | 
						|
            v-model="searchData.DoctorUserId"
 | 
						|
            clearable
 | 
						|
            style="width:120px;"
 | 
						|
          >
 | 
						|
            <el-option
 | 
						|
              v-for="item of doctorUserList"
 | 
						|
              :key="'DoctorUserId' + item.DoctorUserId"
 | 
						|
              :value="item.DoctorUserId"
 | 
						|
              :label="item.UserName"
 | 
						|
            />
 | 
						|
          </el-select>
 | 
						|
        </el-form-item>
 | 
						|
        <el-form-item
 | 
						|
          style="margin-bottom:10px"
 | 
						|
          label="是否加急"
 | 
						|
        >
 | 
						|
          <el-select
 | 
						|
            v-model="searchData.IsUrgent"
 | 
						|
            clearable
 | 
						|
            style="width:120px;"
 | 
						|
          >
 | 
						|
            <el-option
 | 
						|
              v-for="item of $d.YesOrNo"
 | 
						|
              :key="'IsUrgent' + item.label"
 | 
						|
              :value="item.value"
 | 
						|
              :label="item.label"
 | 
						|
            />
 | 
						|
          </el-select>
 | 
						|
        </el-form-item>
 | 
						|
        <el-form-item
 | 
						|
          style="margin-bottom:10px"
 | 
						|
          label="阅片类别"
 | 
						|
        >
 | 
						|
          <el-select
 | 
						|
            v-model="searchData.ReadingCategory"
 | 
						|
            clearable
 | 
						|
            style="width:120px;"
 | 
						|
          >
 | 
						|
            <el-option
 | 
						|
              v-for="item of $d.ReadingCategory"
 | 
						|
              :key="'ReadingCategory' + item.label"
 | 
						|
              :value="item.value"
 | 
						|
              :label="item.label"
 | 
						|
            />
 | 
						|
          </el-select>
 | 
						|
        </el-form-item>
 | 
						|
 | 
						|
        <el-form-item style="margin-bottom:10px">
 | 
						|
          <el-button
 | 
						|
            type="primary"
 | 
						|
            icon="el-icon-search"
 | 
						|
            @click="handleSearch"
 | 
						|
          >
 | 
						|
            {{ $t('common:button:search') }}
 | 
						|
          </el-button>
 | 
						|
 | 
						|
        </el-form-item>
 | 
						|
        <el-form-item>
 | 
						|
          <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"
 | 
						|
        @sort-change="handleSortChange"
 | 
						|
      >
 | 
						|
        <el-table-column
 | 
						|
          type="index"
 | 
						|
          width="50"
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="IsUrgent"
 | 
						|
          label="是否加急"
 | 
						|
          show-overflow-tooltip
 | 
						|
          min-width="100"
 | 
						|
          sortable="custom"
 | 
						|
        >
 | 
						|
          <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="TrialSiteCode"
 | 
						|
          label="中心编号"
 | 
						|
          min-width="100"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="SubjectCode"
 | 
						|
          label="受试者编号"
 | 
						|
          min-width="120"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="TaskName"
 | 
						|
          label="访视/阅片期名称"
 | 
						|
          min-width="160"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="TaskBlindName"
 | 
						|
          label="盲态访视名称"
 | 
						|
          min-width="140"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
 | 
						|
        <el-table-column
 | 
						|
          prop="ReadingCategory"
 | 
						|
          label="阅片类别"
 | 
						|
          min-width="100"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        >
 | 
						|
          <template slot-scope="scope">
 | 
						|
            <el-tag
 | 
						|
              v-if="scope.row.ReadingCategory === 1"
 | 
						|
              type="primary"
 | 
						|
            >
 | 
						|
              {{ $fd('ReadingCategory', scope.row.ReadingCategory) }}
 | 
						|
            </el-tag>
 | 
						|
            <el-tag
 | 
						|
              v-if="scope.row.ReadingCategory === 2"
 | 
						|
              type="info"
 | 
						|
            >
 | 
						|
              {{ $fd('ReadingCategory', scope.row.ReadingCategory) }}
 | 
						|
            </el-tag>
 | 
						|
            <el-tag
 | 
						|
              v-if="scope.row.ReadingCategory === 4"
 | 
						|
              type="danger"
 | 
						|
            >
 | 
						|
              {{ $fd('ReadingCategory', scope.row.ReadingCategory) }}
 | 
						|
            </el-tag>
 | 
						|
            <el-tag
 | 
						|
              v-if="scope.row.ReadingCategory === 5"
 | 
						|
              type="warning"
 | 
						|
            >
 | 
						|
              {{ $fd('ReadingCategory', scope.row.ReadingCategory) }}
 | 
						|
            </el-tag>
 | 
						|
          </template>
 | 
						|
        </el-table-column>
 | 
						|
        <el-table-column
 | 
						|
          prop="Role"
 | 
						|
          label="阅片角色"
 | 
						|
          min-width="80"
 | 
						|
          show-overflow-tooltip
 | 
						|
        >
 | 
						|
          <template slot-scope="scope">
 | 
						|
            <el-tag
 | 
						|
              v-if="scope.row.ArmEnum === 1"
 | 
						|
              type="primary"
 | 
						|
            >
 | 
						|
              {{ $fd('ArmEnum', scope.row.ArmEnum) }}
 | 
						|
            </el-tag>
 | 
						|
            <el-tag
 | 
						|
              v-if="scope.row.ArmEnum === 2"
 | 
						|
              type="success"
 | 
						|
            >
 | 
						|
              {{ $fd('ArmEnum', scope.row.ArmEnum) }}
 | 
						|
            </el-tag>
 | 
						|
            <el-tag
 | 
						|
              v-if="scope.row.ArmEnum === 3"
 | 
						|
              type="info"
 | 
						|
            >
 | 
						|
              {{ $fd('ArmEnum', scope.row.ArmEnum) }}
 | 
						|
            </el-tag>
 | 
						|
            <el-tag
 | 
						|
              v-if="scope.row.ArmEnum === 4"
 | 
						|
              type="danger"
 | 
						|
            >
 | 
						|
              {{ $fd('ArmEnum', scope.row.ArmEnum) }}
 | 
						|
            </el-tag>
 | 
						|
            <el-tag
 | 
						|
              v-if="scope.row.ArmEnum === 5"
 | 
						|
              type="warning"
 | 
						|
            >
 | 
						|
              {{ $fd('ArmEnum', scope.row.ArmEnum) }}
 | 
						|
            </el-tag>
 | 
						|
          </template>
 | 
						|
        </el-table-column>
 | 
						|
        <el-table-column
 | 
						|
          prop="UserName"
 | 
						|
          label="阅片人"
 | 
						|
          min-width="100"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        >
 | 
						|
          <template slot-scope="scope">
 | 
						|
            {{ scope.row.UserName }}({{ scope.row.FullName }})
 | 
						|
          </template>
 | 
						|
        </el-table-column>
 | 
						|
 | 
						|
        <el-table-column
 | 
						|
          prop="SignTime"
 | 
						|
          label="签名时间"
 | 
						|
          min-width="100"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="AllocateTime"
 | 
						|
          label="审核分配时间"
 | 
						|
          min-width="130"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="AuditSignTime"
 | 
						|
          label="审核完成时间"
 | 
						|
          min-width="130"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="AuditState"
 | 
						|
          label="审核状态"
 | 
						|
          min-width="120"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="AuditSuggestion"
 | 
						|
          label="审核建议"
 | 
						|
          min-width="120"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="AllocateTime"
 | 
						|
          label="是否有质询"
 | 
						|
          min-width="120"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
        <el-table-column
 | 
						|
          prop="DoctorUserIdeaEnum"
 | 
						|
          label="阅片人是否认同"
 | 
						|
          min-width="150"
 | 
						|
          sortable="custom"
 | 
						|
          show-overflow-tooltip
 | 
						|
        />
 | 
						|
 | 
						|
        <el-table-column
 | 
						|
          fixed="right"
 | 
						|
          label="操作"
 | 
						|
          width="200"
 | 
						|
        >
 | 
						|
          <template slot-scope="scope">
 | 
						|
            <el-button
 | 
						|
              icon="el-icon-view"
 | 
						|
              circle
 | 
						|
              title="查看"
 | 
						|
              @click="handleView(scope.row)"
 | 
						|
            />
 | 
						|
            <el-button
 | 
						|
              icon="el-icon-edit-outline"
 | 
						|
              circle
 | 
						|
              title="审核"
 | 
						|
              @click="handleAudit(scope.row)"
 | 
						|
            />
 | 
						|
          </template>
 | 
						|
        </el-table-column>
 | 
						|
      </el-table>
 | 
						|
      <!-- 分页组件 -->
 | 
						|
      <pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" />
 | 
						|
    </template>
 | 
						|
  </BaseContainer>
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
import { getTrialSiteSelect, getMIMMedicalReviewTaskList } from '@/api/trials'
 | 
						|
import { getDoctorUserSelectList } from '@/api/trials/reading'
 | 
						|
import BaseContainer from '@/components/BaseContainer'
 | 
						|
import Pagination from '@/components/Pagination'
 | 
						|
const searchDataDefault = () => {
 | 
						|
  return {
 | 
						|
    PageIndex: 1,
 | 
						|
    PageSize: 20,
 | 
						|
    TrialId: '',
 | 
						|
    SiteId: '',
 | 
						|
    SubjectId: '',
 | 
						|
    SubjectCode: '',
 | 
						|
    TaskName: '',
 | 
						|
    IsUrgent: null,
 | 
						|
    DoctorUserId: '',
 | 
						|
    ReadingCategory: null,
 | 
						|
    ReadingTaskState: null
 | 
						|
  }
 | 
						|
}
 | 
						|
export default {
 | 
						|
  name: 'MIMMedicalAudit',
 | 
						|
  components: { BaseContainer, Pagination },
 | 
						|
  data() {
 | 
						|
    return {
 | 
						|
      list: [],
 | 
						|
      total: 0,
 | 
						|
      loading: false,
 | 
						|
      siteOptions: [],
 | 
						|
      doctorUserList: [],
 | 
						|
      trialId: '',
 | 
						|
      searchData: searchDataDefault()
 | 
						|
    }
 | 
						|
  },
 | 
						|
  mounted() {
 | 
						|
    this.trialId = this.$route.query.trialId
 | 
						|
 | 
						|
    this.getList()
 | 
						|
    this.getSite()
 | 
						|
    this.getDoctorUserSelectList()
 | 
						|
  },
 | 
						|
  methods: {
 | 
						|
    getList() {
 | 
						|
      this.loading = true
 | 
						|
      this.searchData.TrialId = this.trialId
 | 
						|
      getMIMMedicalReviewTaskList(this.searchData).then(res => {
 | 
						|
        this.loading = false
 | 
						|
        this.list = res.Result.CurrentPageData
 | 
						|
        this.total = res.Result.TotalCount
 | 
						|
      }).catch(() => { this.loading = false })
 | 
						|
    },
 | 
						|
    handleView(row) {},
 | 
						|
    handleAudit(row) {},
 | 
						|
    getSite() {
 | 
						|
      getTrialSiteSelect(this.trialId).then(res => {
 | 
						|
        this.siteOptions = res.Result
 | 
						|
      })
 | 
						|
    },
 | 
						|
    getDoctorUserSelectList() {
 | 
						|
      getDoctorUserSelectList(this.trialId).then(res => {
 | 
						|
        this.DoctorUserList = res.Result
 | 
						|
      })
 | 
						|
    },
 | 
						|
    handleSearch() {
 | 
						|
      this.searchData.PageIndex = 1
 | 
						|
      this.getList()
 | 
						|
    },
 | 
						|
    handleReset() {
 | 
						|
      this.searchData = searchDataDefault()
 | 
						|
      this.getList()
 | 
						|
    },
 | 
						|
    // 排序
 | 
						|
    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>
 |