Browse Source

Fix: 产品管理Bug

chris 3 years ago
parent
commit
e980aedd1e
1 changed files with 18 additions and 3 deletions
  1. 18 3
      src/views/modules/tech/product-management.vue

+ 18 - 3
src/views/modules/tech/product-management.vue

@@ -99,7 +99,7 @@
         align="center"
         label="配料清单">
         <template slot-scope="scope">
-          <el-button type="text" size="small" @click="materialDetails(scope.row.coId, true)">查看</el-button>
+          <el-button type="text" size="small" @click="materialDetails(scope.row.coId)">查看</el-button>
         </template>
       </el-table-column>
       <el-table-column
@@ -107,7 +107,7 @@
         align="center"
         label="对应图纸">
         <template slot-scope="scope">
-          <el-button type="text" size="small" @click="drawDetails(scope.row.coId, true)">查看</el-button>
+          <el-button type="text" size="small" @click="drawDetails(scope.row.coId)">查看</el-button>
         </template>
       </el-table-column>
       <el-table-column
@@ -115,7 +115,7 @@
         align="center"
         label="对应工艺">
         <template slot-scope="scope">
-          <el-button type="text" size="small" @click="techDetails(scope.row.coId, true)">查看</el-button>
+          <el-button type="text" size="small" @click="techDetails(scope.row.coId)">查看</el-button>
         </template>
       </el-table-column>
       <el-table-column
@@ -282,6 +282,21 @@
         this.$nextTick(() => {
           this.$refs.detail.init(id)
         })
+      },
+      // 配料清单
+      materialDetails (id) {
+        // todo
+        this.$message.warning('未找到相关内容')
+      },
+      // 对应图纸
+      drawDetails (id) {
+        // todo
+        this.$message.warning('未找到相关内容')
+      },
+      // 对应工艺
+      techDetails (id) {
+        // todo
+        this.$message.warning('未找到相关内容')
       }
     }
   }