批次以及批次的生产安排

This commit is contained in:
砂糖
2025-08-15 10:12:50 +08:00
parent 916d64c1ca
commit 7f0b243c7f
4 changed files with 285 additions and 22 deletions

View File

@@ -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;
},