fix: add write permission to QA buttons and decouple inbound/print quantities
This commit is contained in:
@ -1299,13 +1299,8 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user