ysy 1 tahun lalu
induk
melakukan
7b94816bae

+ 58 - 30
src/views/material/BOMmanage/qualityTesting/inspectionClassify/components/user-list.vue

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