fix: 耗材出入库计算库存代码优化

This commit is contained in:
2025-03-21 13:27:01 +08:00
parent 4ab0efd93a
commit 61bdfb924b
3 changed files with 7 additions and 1 deletions

View File

@@ -341,7 +341,8 @@ export default {
if (!row.unit) {
return price;
}
if (row.unit && row.unit != row.defaultUnit) {
if (row.unit && row.defaultUnit && row.unit != row.defaultUnit) {
price = price / row.conUnitTwoConvert;
} else {
price = price;