|
@@ -25,34 +25,34 @@
|
|
|
|
|
|
|
|
<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
|
|
|
? '范围'
|
|
? '范围'
|
|
|
: ''
|
|
: ''
|
|
|
}}
|
|
}}
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:type="{ row }">
|
|
<template v-slot:type="{ row }">
|
|
|
- {{ getDictValue('质检标准类型', row.itemVO.type) }}
|
|
|
|
|
|
|
+ {{ getDictValue('质检标准类型', row.type) }}
|
|
|
</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="row.itemVO.toolList && idx != row.itemVO.toolList.length - 1"
|
|
|
|
|
|
|
+ v-if="row.toolList && idx != row.toolList.length - 1"
|
|
|
>,
|
|
>,
|
|
|
</span></div
|
|
</span></div
|
|
|
>
|
|
>
|
|
@@ -76,22 +76,41 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+ import dictMixins from '@/mixins/dictMixins';
|
|
|
export default {
|
|
export default {
|
|
|
- components: {},
|
|
|
|
|
- props: {},
|
|
|
|
|
|
|
+ mixins: [dictMixins],
|
|
|
|
|
+
|
|
|
|
|
+ props: {
|
|
|
|
|
+ inspectList: {
|
|
|
|
|
+ type: Array,
|
|
|
|
|
+ default() {
|
|
|
|
|
+ return [];
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ inspectList: {
|
|
|
|
|
+ handler(list) {
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.table.setData([...list]);
|
|
|
|
|
+ },
|
|
|
|
|
+ immediate: true,
|
|
|
|
|
+ deep: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.inspectionCode',
|
|
|
|
|
|
|
+ prop: 'inspectionCode',
|
|
|
label: '参数编码',
|
|
label: '参数编码',
|
|
|
- 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',
|
|
@@ -99,7 +118,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.textType',
|
|
|
|
|
|
|
+ prop: 'textType',
|
|
|
label: '参数类型',
|
|
label: '参数类型',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -108,41 +127,41 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.maxValue',
|
|
|
|
|
|
|
+ prop: 'maxValue',
|
|
|
label: '参数上限',
|
|
label: '参数上限',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.minValue',
|
|
|
|
|
|
|
+ prop: 'minValue',
|
|
|
label: '参数下限',
|
|
label: '参数下限',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.defaultValue',
|
|
|
|
|
|
|
+ prop: 'defaultValue',
|
|
|
label: '默认值',
|
|
label: '默认值',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
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
|
|
@@ -157,7 +176,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- prop: 'itemVO.toolList',
|
|
|
|
|
|
|
+ prop: 'toolList',
|
|
|
slot: 'toolList',
|
|
slot: 'toolList',
|
|
|
label: '设备名称',
|
|
label: '设备名称',
|
|
|
align: 'center',
|
|
align: 'center',
|