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

@@ -62,6 +62,8 @@ const contentConfig: IContentConfig = {
label: "单位",
align: "center",
prop: "conUnit",
templet: "custom",
slotName: "conUnit",
},
{
label: "所属商品",

View File

@@ -27,6 +27,9 @@
{{ scope.row[scope.prop] == 1 ? "启用" : "禁用" }}
</el-tag>
</template>
<template #conUnit="scope">
<span>{{ scope.row.conUnit }}</span>
</template>
<template #goods="scope">
<div class="goodslang">
<div class="goods-list">

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;