2 次代碼提交 35b18f1c67 ... 38a0b4f7de

作者 SHA1 備註 提交日期
  landydb 38a0b4f7de Merge branch 'master' of http://112.74.164.79:3000/chenying/X-web 2 周之前
  landydb 4d42ec07ea 工艺任务-处理-新建工艺 自动填充产品和任务单 2 周之前
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/views/modules/tech/project-tech-submit.vue

+ 5 - 4
src/views/modules/tech/project-tech-submit.vue

@@ -103,8 +103,8 @@
           :show-tooltip-when-overflow="true" label="操作">
           <template slot-scope="scope">
             <el-button type="text" v-if="scope.row.techId == null || scope.row.techId == 0"
-              @click="handleCrafts(0)">新建工艺</el-button>
-            <el-button type="text" v-else @click="handleCrafts(scope.row.techId)">修改工艺</el-button>
+              @click="handleCrafts(0, scope.row.productId)">新建工艺</el-button>
+            <el-button type="text" v-else @click="handleCrafts(scope.row.techId, scope.row.productId)">修改工艺</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -240,9 +240,10 @@ export default {
         }
       })
     },
-    handleCrafts(techId) {
-      let productId = this.dataForm.proProductList[0].productId
+    handleCrafts(techId, productId) {
+      // let productId = this.dataForm.proProductList[0].productId
       console.log('orderId:' + this.orderId)
+      console.log('productId:' + productId)
       this.$emit('showCraftsAddOrDetail', techId, this.orderId, productId)
     }
   }