|
@@ -33,13 +33,39 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:type="{ row }">
|
|
<template v-slot:type="{ row }">
|
|
|
- {{ getDictValue('质检标准类型', row.itemVO.type) }}
|
|
|
|
|
|
|
+ {{ getDictValue('质检标准类型', row.itemVO.qualityStandardType) }}
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ <template v-slot:defaultValue="{ row }">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <span v-if="row.itemVO.textType == 3">
|
|
|
|
|
+ [ {{ row.itemVO.minValue }}-{{ row.itemVO.maxValue }}]
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <span v-else>{{ row.itemVO.defaultValue }}</span>
|
|
|
|
|
+
|
|
|
|
|
+ <span> {{ row.itemVO.unit }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<template v-slot:toolList="{ row }">
|
|
<template v-slot:toolList="{ row }">
|
|
|
- <div style="display: inline-block;" v-for="(item,idx) in row.itemVO.toolList" :key="idx">{{ item.name }} <span v-if="row.itemVO.toolList && idx != row.itemVO.toolList.length - 1">, </span></div>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ style="display: inline-block"
|
|
|
|
|
+ v-for="(item, idx) in row.itemVO.toolList"
|
|
|
|
|
+ :key="idx"
|
|
|
|
|
+ >{{ item.name }}
|
|
|
|
|
+ <span
|
|
|
|
|
+ v-if="row.itemVO.toolList && idx != row.itemVO.toolList.length - 1"
|
|
|
|
|
+ >,
|
|
|
|
|
+ </span></div
|
|
|
|
|
+ >
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
@@ -55,8 +81,6 @@
|
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
|
</template>
|
|
</template>
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -65,7 +89,6 @@
|
|
|
import { getList } from '@/api/material/inspectionClassify';
|
|
import { getList } from '@/api/material/inspectionClassify';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
|
components: { userSearch },
|
|
components: { userSearch },
|
|
@@ -80,15 +103,14 @@
|
|
|
current: null,
|
|
current: null,
|
|
|
|
|
|
|
|
columns: [
|
|
columns: [
|
|
|
-
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
width: 45,
|
|
width: 45,
|
|
|
type: 'selection',
|
|
type: 'selection',
|
|
|
columnKey: 'selection',
|
|
columnKey: 'selection',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
reserveSelection: true
|
|
reserveSelection: true
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
prop: 'itemVO.inspectionCode',
|
|
prop: 'itemVO.inspectionCode',
|
|
|
label: '参数编码',
|
|
label: '参数编码',
|
|
@@ -113,24 +135,33 @@
|
|
|
minWidth: 110
|
|
minWidth: 110
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'itemVO.maxValue',
|
|
|
|
|
- label: '参数上限',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'itemVO.minValue',
|
|
|
|
|
- label: '参数下限',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
prop: 'itemVO.defaultValue',
|
|
prop: 'itemVO.defaultValue',
|
|
|
- label: '默认值',
|
|
|
|
|
|
|
+ slot: 'defaultValue',
|
|
|
|
|
+ label: '工艺参数',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
|
|
+ minWidth: 150
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'itemVO.maxValue',
|
|
|
|
|
+ // label: '参数上限',
|
|
|
|
|
+ // align: 'center',
|
|
|
|
|
+ // showOverflowTooltip: true
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'itemVO.minValue',
|
|
|
|
|
+ // label: '参数下限',
|
|
|
|
|
+ // align: 'center',
|
|
|
|
|
+ // showOverflowTooltip: true
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'itemVO.defaultValue',
|
|
|
|
|
+ // label: '默认值',
|
|
|
|
|
+ // align: 'center',
|
|
|
|
|
+ // showOverflowTooltip: true
|
|
|
|
|
+ // },
|
|
|
{
|
|
{
|
|
|
label: '工艺要求',
|
|
label: '工艺要求',
|
|
|
prop: 'itemVO.inspectionStandard',
|
|
prop: 'itemVO.inspectionStandard',
|
|
@@ -189,8 +220,8 @@
|
|
|
methods: {
|
|
methods: {
|
|
|
/* 表格数据源 */
|
|
/* 表格数据源 */
|
|
|
datasource({ page, limit, where }) {
|
|
datasource({ page, limit, where }) {
|
|
|
- let _data = null;
|
|
|
|
|
- _data = getList({
|
|
|
|
|
|
|
+ let _data = null;
|
|
|
|
|
+ _data = getList({
|
|
|
...where,
|
|
...where,
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit,
|
|
size: limit,
|
|
@@ -198,8 +229,7 @@
|
|
|
rootCategoryLevelId: this.rootId
|
|
rootCategoryLevelId: this.rootId
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- return _data
|
|
|
|
|
|
|
+ return _data;
|
|
|
},
|
|
},
|
|
|
/* 刷新表格 */
|
|
/* 刷新表格 */
|
|
|
reload(where) {
|
|
reload(where) {
|
|
@@ -215,9 +245,7 @@
|
|
|
this.categoryLevelId = info.id;
|
|
this.categoryLevelId = info.id;
|
|
|
this.rootCategoryLevelId = info.rootCategoryLevelId;
|
|
this.rootCategoryLevelId = info.rootCategoryLevelId;
|
|
|
this.reload();
|
|
this.reload();
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|