diff --git a/inventory-web/src/views/stock/inbound/buy.vue b/inventory-web/src/views/stock/inbound/buy.vue index a823ea9..2db4313 100644 --- a/inventory-web/src/views/stock/inbound/buy.vue +++ b/inventory-web/src/views/stock/inbound/buy.vue @@ -1252,6 +1252,14 @@ watch(() => [form.in_quantity, form.unit_price], () => { } }) +// 联动优化:当入库数量变化时,自动同步打印份数(除非用户已手动修改过) +watch(() => form.in_quantity, (newQty) => { + if (dialogStatus.value === 'create' && newQty && newQty > 0) { + // 仅在创建模式下自动同步 + form.print_copies = newQty + } +}) + const fetchData = async () => { loading.value = true try { diff --git a/inventory-web/src/views/stock/inbound/product.vue b/inventory-web/src/views/stock/inbound/product.vue index 09760ba..2518169 100644 --- a/inventory-web/src/views/stock/inbound/product.vue +++ b/inventory-web/src/views/stock/inbound/product.vue @@ -337,6 +337,11 @@ + + + + + @@ -514,7 +519,12 @@ Label Preview
正在生成预览...
-

打印机 IP: 192.168.9.205

尺寸: 40mm x 30mm

+

打印机 IP: 192.168.9.205

尺寸: 40mm x 30mm

+
+ 打印份数: + +
+