fix: 耗材出入库计算库存代码优化
This commit is contained in:
@@ -62,6 +62,8 @@ const contentConfig: IContentConfig = {
|
||||
label: "单位",
|
||||
align: "center",
|
||||
prop: "conUnit",
|
||||
templet: "custom",
|
||||
slotName: "conUnit",
|
||||
},
|
||||
{
|
||||
label: "所属商品",
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user