|
@@ -37,24 +37,24 @@
|
|
|
full-height="calc(100vh - 116px)"
|
|
full-height="calc(100vh - 116px)"
|
|
|
tool-class="ele-toolbar-form"
|
|
tool-class="ele-toolbar-form"
|
|
|
cache-key="inspectionClassify"
|
|
cache-key="inspectionClassify"
|
|
|
- row-key="id"
|
|
|
|
|
|
|
+ row-key="qualityLevelId"
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
|
>
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
|
|
|
|
|
<template v-slot:textType="{ row }">
|
|
<template v-slot:textType="{ row }">
|
|
|
{{
|
|
{{
|
|
|
- row.itemVO.textType == 1
|
|
|
|
|
|
|
+ row.textType == 1
|
|
|
? '数值'
|
|
? '数值'
|
|
|
- : row.itemVO.textType == 2
|
|
|
|
|
|
|
+ : row.textType == 2
|
|
|
? '选择'
|
|
? '选择'
|
|
|
- : row.itemVO.textType == 3
|
|
|
|
|
|
|
+ : row.textType == 3
|
|
|
? '上下限'
|
|
? '上下限'
|
|
|
- : row.itemVO.textType == 4
|
|
|
|
|
|
|
+ : row.textType == 4
|
|
|
? '规格'
|
|
? '规格'
|
|
|
- : row.itemVO.textType == 5
|
|
|
|
|
|
|
+ : row.textType == 5
|
|
|
? '时间'
|
|
? '时间'
|
|
|
- : row.itemVO.textType == 6
|
|
|
|
|
|
|
+ : row.textType == 6
|
|
|
? '范围'
|
|
? '范围'
|
|
|
: ''
|
|
: ''
|
|
|
}}
|
|
}}
|
|
@@ -62,31 +62,31 @@
|
|
|
|
|
|
|
|
<template v-slot:type="{ row }">
|
|
<template v-slot:type="{ row }">
|
|
|
{{
|
|
{{
|
|
|
- getDictValue('质检标准类型', row.itemVO.qualityStandardType)
|
|
|
|
|
|
|
+ getDictValue('质检标准类型', row.qualityStandardType)
|
|
|
}}
|
|
}}
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:defaultValue="{ row }">
|
|
<template v-slot:defaultValue="{ row }">
|
|
|
<div>
|
|
<div>
|
|
|
- <span v-if="row.itemVO.textType == 3">
|
|
|
|
|
- [ {{ row.itemVO.minValue }}-{{ row.itemVO.maxValue }}]
|
|
|
|
|
|
|
+ <span v-if="row.textType == 3">
|
|
|
|
|
+ [ {{ row.minValue }}-{{ row.maxValue }}]
|
|
|
</span>
|
|
</span>
|
|
|
- <span v-else>{{ row.itemVO.defaultValue }}</span>
|
|
|
|
|
|
|
+ <span v-else>{{ row.defaultValue }}</span>
|
|
|
|
|
|
|
|
- <span> {{ row.itemVO.unit }}</span>
|
|
|
|
|
|
|
+ <span> {{ row.unit }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:toolList="{ row }">
|
|
<template v-slot:toolList="{ row }">
|
|
|
<div
|
|
<div
|
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
|
- v-for="(item, idx) in row.itemVO.toolList"
|
|
|
|
|
|
|
+ v-for="(item, idx) in row.toolList"
|
|
|
:key="idx"
|
|
:key="idx"
|
|
|
>{{ item.name }}
|
|
>{{ item.name }}
|
|
|
<span
|
|
<span
|
|
|
v-if="
|
|
v-if="
|
|
|
- row.itemVO.toolList &&
|
|
|
|
|
- idx != row.itemVO.toolList.length - 1
|
|
|
|
|
|
|
+ row.toolList &&
|
|
|
|
|
+ idx != row.toolList.length - 1
|
|
|
"
|
|
"
|
|
|
>,
|
|
>,
|
|
|
</span></div
|
|
</span></div
|
|
@@ -108,7 +108,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import AssetTree from '@/components/AssetTree';
|
|
import AssetTree from '@/components/AssetTree';
|
|
|
import userSearch from './components/user-search.vue';
|
|
import userSearch from './components/user-search.vue';
|
|
|
- import { getList } from '@/api/material/inspectionClassify';
|
|
|
|
|
|
|
+ import { pageByBom } from '@/api/material/inspectionClassify';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -137,21 +137,21 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.categoryLevelName',
|
|
|
|
|
|
|
+ prop: 'categoryLevelName',
|
|
|
label: '质检类型',
|
|
label: '质检类型',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
minWidth: 110
|
|
minWidth: 110
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.inspectionCode',
|
|
|
|
|
|
|
+ prop: 'inspectionCode',
|
|
|
label: '参数编码',
|
|
label: '参数编码',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
minWidth: 110
|
|
minWidth: 110
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.inspectionName',
|
|
|
|
|
|
|
+ prop: 'inspectionName',
|
|
|
label: '参数名称',
|
|
label: '参数名称',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -159,7 +159,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.textType',
|
|
|
|
|
|
|
+ prop: 'textType',
|
|
|
label: '参数类型',
|
|
label: '参数类型',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -168,7 +168,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.defaultValue',
|
|
|
|
|
|
|
+ prop: 'defaultValue',
|
|
|
slot: 'defaultValue',
|
|
slot: 'defaultValue',
|
|
|
label: '工艺参数',
|
|
label: '工艺参数',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -177,22 +177,22 @@
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
label: '工艺要求',
|
|
label: '工艺要求',
|
|
|
- prop: 'itemVO.inspectionStandard',
|
|
|
|
|
|
|
+ prop: 'inspectionStandard',
|
|
|
formatter: (row, column, cellValue) => {
|
|
formatter: (row, column, cellValue) => {
|
|
|
return (
|
|
return (
|
|
|
- row.itemVO.symbol + ' ' + cellValue + ' ' + row.itemVO.unit
|
|
|
|
|
|
|
+ row.symbol + ' ' + cellValue + ' ' + row.unit
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
|
minWidth: 150
|
|
minWidth: 150
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '标准类型',
|
|
label: '标准类型',
|
|
|
- prop: 'itemVO.type',
|
|
|
|
|
|
|
+ prop: 'type',
|
|
|
slot: 'type'
|
|
slot: 'type'
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.qualityStandardName',
|
|
|
|
|
|
|
+ prop: 'qualityStandardName',
|
|
|
label: '标准名称',
|
|
label: '标准名称',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
minWidth: 110
|
|
minWidth: 110
|
|
@@ -207,7 +207,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.toolList',
|
|
|
|
|
|
|
+ prop: 'toolList',
|
|
|
slot: 'toolList',
|
|
slot: 'toolList',
|
|
|
label: '工具名称',
|
|
label: '工具名称',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -230,7 +230,7 @@
|
|
|
/* 表格数据源 */
|
|
/* 表格数据源 */
|
|
|
datasource({ page, limit, where }) {
|
|
datasource({ page, limit, where }) {
|
|
|
let _data = null;
|
|
let _data = null;
|
|
|
- _data = getList({
|
|
|
|
|
|
|
+ _data = pageByBom({
|
|
|
...where,
|
|
...where,
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit,
|
|
size: limit,
|