|
@@ -103,8 +103,8 @@
|
|
|
:show-tooltip-when-overflow="true" label="操作">
|
|
:show-tooltip-when-overflow="true" label="操作">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" v-if="scope.row.techId == null || scope.row.techId == 0"
|
|
<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>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</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('orderId:' + this.orderId)
|
|
|
|
|
+ console.log('productId:' + productId)
|
|
|
this.$emit('showCraftsAddOrDetail', techId, this.orderId, productId)
|
|
this.$emit('showCraftsAddOrDetail', techId, this.orderId, productId)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|