|
@@ -176,14 +176,13 @@
|
|
|
<!-- -->
|
|
<!-- -->
|
|
|
<el-tab-pane label="样品清单" name="2">
|
|
<el-tab-pane label="样品清单" name="2">
|
|
|
<el-table
|
|
<el-table
|
|
|
- v-show="sampleList.length > 0"
|
|
|
|
|
|
|
+ v-if="sampleList.length > 0"
|
|
|
ref="showSampleListTable"
|
|
ref="showSampleListTable"
|
|
|
:data="paginatedSampleList"
|
|
:data="paginatedSampleList"
|
|
|
tooltip-effect="dark"
|
|
tooltip-effect="dark"
|
|
|
- height="500px"
|
|
|
|
|
|
|
+ height="500"
|
|
|
border
|
|
border
|
|
|
- :row-key="getRowKey"
|
|
|
|
|
- style="width: 100%"
|
|
|
|
|
|
|
+ row-key="id"
|
|
|
>
|
|
>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="序号"
|
|
label="序号"
|
|
@@ -194,7 +193,7 @@
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
<template v-for="(column, index) in tableColumns">
|
|
<template v-for="(column, index) in tableColumns">
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- :key="column.prop || index"
|
|
|
|
|
|
|
+ :key="index"
|
|
|
:label="column.label"
|
|
:label="column.label"
|
|
|
:prop="column.prop"
|
|
:prop="column.prop"
|
|
|
:fixed="column.fixed"
|
|
:fixed="column.fixed"
|
|
@@ -253,7 +252,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
|
|
+ <!-- *** fixed="right" -->
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="处置状态"
|
|
label="处置状态"
|
|
|
prop="disposeType"
|
|
prop="disposeType"
|
|
@@ -264,7 +263,7 @@
|
|
|
<span>{{ disposeTypeList[scope.row.disposeType] }}</span>
|
|
<span>{{ disposeTypeList[scope.row.disposeType] }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-
|
|
|
|
|
|
|
+ <!-- *** fixed="right" -->
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="处置时间"
|
|
label="处置时间"
|
|
|
prop="disposeTime"
|
|
prop="disposeTime"
|
|
@@ -272,13 +271,14 @@
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-
|
|
|
|
|
|
|
+ <!-- *** fixed="right" -->
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="质检状态"
|
|
label="质检状态"
|
|
|
prop="qualityStatus"
|
|
prop="qualityStatus"
|
|
|
align="center"
|
|
align="center"
|
|
|
fixed="right"
|
|
fixed="right"
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
+ v-if="form.recordingMethod != 1"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.qualityStatus == 0">未检</span>
|
|
<span v-if="scope.row.qualityStatus == 0">未检</span>
|
|
@@ -293,6 +293,7 @@
|
|
|
width="180"
|
|
width="180"
|
|
|
fixed="right"
|
|
fixed="right"
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
+ v-if="form.recordingMethod != 1"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-select
|
|
<el-select
|
|
@@ -313,12 +314,69 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="不良类型"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ v-if="form.recordingMethod != 1"
|
|
|
|
|
+ prop="badTypeId"
|
|
|
|
|
+ width="180"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot="{ row, $index }">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="row.badTypeId"
|
|
|
|
|
+ placeholder="请选择不良类型"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ remote
|
|
|
|
|
+ filterable
|
|
|
|
|
+ clearable
|
|
|
|
|
+ @change="badTypeChange(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in badTypeList"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="不良名称"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ prop="badNameId"
|
|
|
|
|
+ width="180"
|
|
|
|
|
+ v-if="form.recordingMethod != 1"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot="{ row, $index }">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="row.badNameId"
|
|
|
|
|
+ placeholder="请选择不良名称"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ remote
|
|
|
|
|
+ filterable
|
|
|
|
|
+ clearable
|
|
|
|
|
+ @change="badNameChange(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in badNameList"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="操作"
|
|
label="操作"
|
|
|
align="center"
|
|
align="center"
|
|
|
width="120"
|
|
width="120"
|
|
|
fixed="right"
|
|
fixed="right"
|
|
|
- v-if="type != 'detail'"
|
|
|
|
|
|
|
+ v-if="type != 'detail' && form.recordingMethod != 1"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-link
|
|
<el-link
|
|
@@ -328,9 +386,24 @@
|
|
|
>
|
|
>
|
|
|
质检
|
|
质检
|
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
+ <!-- <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="handleDispose(scope.$index, scope.row, 'dispose')"
|
|
|
|
|
+ >处置
|
|
|
|
|
+ </el-link> -->
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
+ <!-- <el-pagination
|
|
|
|
|
+ @size-change="handleSampleSizeChange"
|
|
|
|
|
+ @current-change="handleSampleCurrentChange"
|
|
|
|
|
+ :current-page="samplePagination.currentPage"
|
|
|
|
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
|
|
|
+ :page-size="samplePagination.pageSize"
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
+ :total="sampleList.length"
|
|
|
|
|
+ /> -->
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<!-- -->
|
|
<!-- -->
|
|
|
<el-tab-pane label="质检方案" name="3">
|
|
<el-tab-pane label="质检方案" name="3">
|
|
@@ -381,6 +454,11 @@
|
|
|
prop="inspectionName"
|
|
prop="inspectionName"
|
|
|
align="center"
|
|
align="center"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
|
|
+ <el-table-column label="附件" prop="imgUrl" align="center">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <fileMain v-model="scope.row.imgUrl" type="view"></fileMain>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="工艺参数"
|
|
label="工艺参数"
|
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
@@ -404,16 +482,75 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- fixed="right"
|
|
|
|
|
- label="操作"
|
|
|
|
|
- width="80"
|
|
|
|
|
- v-if="type !== 'detail'"
|
|
|
|
|
|
|
+ label="执行方法"
|
|
|
|
|
+ prop="executionMethod"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
|
|
+ v-if="form.recordingMethod == 1"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{ scope.row.executionMethod == 1 ? '常规' : '实验' }}
|
|
|
|
|
+ </template></el-table-column
|
|
|
>
|
|
>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="质检状态"
|
|
|
|
|
+ prop="status"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
|
|
+ v-if="form.recordingMethod == 1"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{
|
|
|
|
|
+ inspectionProjectStatus.find(
|
|
|
|
|
+ (item) => item.value == scope.row.status
|
|
|
|
|
+ )?.label
|
|
|
|
|
+ }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="质检结果"
|
|
|
|
|
+ prop="qualityResults"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ width="180"
|
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
|
|
+ v-if="form.recordingMethod == 1"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ @change="selectQualityResultsChange"
|
|
|
|
|
+ v-model="scope.row.qualityResults"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ :disabled="
|
|
|
|
|
+ type == 'detail' || [2, 3, 4].includes(scope.row.status)
|
|
|
|
|
+ "
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in qualityResultsList"
|
|
|
|
|
+ :key="item.value"
|
|
|
|
|
+ :label="item.label"
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="操作" width="150" v-if="type !== 'detail'">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
|
|
+ <!-- <el-link
|
|
|
|
|
+ v-if="form.recordingMethod == 1"
|
|
|
|
|
+ :type="scope.row.isValid ? 'primary' : 'danger'"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="inspectionProjectReport(scope.$index, scope.row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 质检
|
|
|
|
|
+ </el-link> -->
|
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
|
class="ele-action"
|
|
class="ele-action"
|
|
|
title="确定要删除当前方案吗?"
|
|
title="确定要删除当前方案吗?"
|
|
|
@confirm="handDel(scope.$index)"
|
|
@confirm="handDel(scope.$index)"
|
|
|
|
|
+ v-if="![1, 2, 3, 4].includes(scope.row.status)"
|
|
|
>
|
|
>
|
|
|
<template v-slot:reference>
|
|
<template v-slot:reference>
|
|
|
<el-link
|
|
<el-link
|
|
@@ -556,7 +693,7 @@
|
|
|
activeNameKK: '',
|
|
activeNameKK: '',
|
|
|
samplePagination: { currentPage: 1, pageSize: 10 },
|
|
samplePagination: { currentPage: 1, pageSize: 10 },
|
|
|
schemePagination: { currentPage: 1, pageSize: 10 },
|
|
schemePagination: { currentPage: 1, pageSize: 10 },
|
|
|
-
|
|
|
|
|
|
|
+ inspectionProjectStatus,
|
|
|
qualityResultsList: [
|
|
qualityResultsList: [
|
|
|
{
|
|
{
|
|
|
value: 1,
|
|
value: 1,
|