批次以及批次的生产安排
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
<div>
|
||||
<span class="product-name" @click="clickHandle">
|
||||
<slot name="default" :product="product">
|
||||
{{ product.productName ? product.productName : '--' }}
|
||||
{{ product && product.productName ? product.productName : '--' }}
|
||||
</slot>
|
||||
</span>
|
||||
<el-dialog
|
||||
:visible="showDetail"
|
||||
@close="showDetail = false"
|
||||
:title="product.productName"
|
||||
:title="product && product.productName ? product.productName : '--' "
|
||||
width="500px"
|
||||
append-to-body
|
||||
>
|
||||
@@ -62,6 +62,9 @@ export default {
|
||||
watch: {
|
||||
productId: {
|
||||
handler(newVal) {
|
||||
if (!newVal) {
|
||||
this.product = {};
|
||||
}
|
||||
const res = this.productMap[this.productId] ? this.productMap[this.productId] : {};
|
||||
this.product = res;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user