|
@@ -20,10 +20,17 @@
|
|
:column="tableColumn" :datas="tableData" :loading="tableLoading" is-check
|
|
:column="tableColumn" :datas="tableData" :loading="tableLoading" is-check
|
|
:index-style="{ width: 60 }" :check-style="{ width: 29 }" @selection-change="tableSelection"
|
|
:index-style="{ width: 60 }" :check-style="{ width: 29 }" @selection-change="tableSelection"
|
|
>
|
|
>
|
|
- <template #key11="{ row }">
|
|
|
|
- <el-button v-if="row.key11 === 1" type="success" size="small">已同意</el-button>
|
|
|
|
- <el-button v-if="row.key11 === 2" type="info" size="small">待审批</el-button>
|
|
|
|
- <el-button v-if="row.key11 === 3" type="danger" size="small">已废除</el-button>
|
|
|
|
|
|
+ <template #entrustStatus="{ row }">
|
|
|
|
+ <!-- 未上报 -->
|
|
|
|
+ <el-button v-if="row.entrustStatus === 1" type="info" size="small">{{ row.entrustStatusName }}</el-button>
|
|
|
|
+ <!-- 待审批 -->
|
|
|
|
+ <el-button v-if="row.entrustStatus === 2" type="info" size="small">{{ row.entrustStatusName }}</el-button>
|
|
|
|
+ <!-- 待试验 -->
|
|
|
|
+ <el-button v-if="row.entrustStatus === 3" type="primary" size="small">{{ row.entrustStatusName }}</el-button>
|
|
|
|
+ <!-- 已通过 -->
|
|
|
|
+ <el-button v-if="row.entrustStatus === 4" type="success" size="small">{{ row.entrustStatusName }}</el-button>
|
|
|
|
+ <!-- 已废除 -->
|
|
|
|
+ <el-button v-if="row.entrustStatus === 5" type="danger" size="small">{{ row.entrustStatusName }}</el-button>
|
|
</template>
|
|
</template>
|
|
<template #action="{ row }">
|
|
<template #action="{ row }">
|
|
<el-link type="primary" @click="rowDispose(row)">样品处理</el-link>
|
|
<el-link type="primary" @click="rowDispose(row)">样品处理</el-link>
|
|
@@ -152,7 +159,7 @@ const tableColumn = ref([
|
|
{ key: 'userName', name: '取样人', align: 'center' },
|
|
{ key: 'userName', name: '取样人', align: 'center' },
|
|
{ key: 'userName', name: '取样人', align: 'center' },
|
|
{ key: 'userName', name: '取样人', align: 'center' },
|
|
{ key: 'createTime', name: '创建试验时间', align: 'center' },
|
|
{ key: 'createTime', name: '创建试验时间', align: 'center' },
|
|
- { key: 'key11', name: '报告状态', align: 'center' },
|
|
|
|
|
|
+ { key: 'entrustStatus', name: '报告状态', align: 'center' },
|
|
{ key: 'action', name: '操作', width: 120, align: 'center' },
|
|
{ key: 'action', name: '操作', width: 120, align: 'center' },
|
|
])
|
|
])
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|