fix: 耗材出入库计算库存代码优化
This commit is contained in:
@@ -62,6 +62,8 @@ const contentConfig: IContentConfig = {
|
|||||||
label: "单位",
|
label: "单位",
|
||||||
align: "center",
|
align: "center",
|
||||||
prop: "conUnit",
|
prop: "conUnit",
|
||||||
|
templet: "custom",
|
||||||
|
slotName: "conUnit",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "所属商品",
|
label: "所属商品",
|
||||||
|
|||||||
@@ -27,6 +27,9 @@
|
|||||||
{{ scope.row[scope.prop] == 1 ? "启用" : "禁用" }}
|
{{ scope.row[scope.prop] == 1 ? "启用" : "禁用" }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
|
<template #conUnit="scope">
|
||||||
|
<span>{{ scope.row.conUnit }}</span>
|
||||||
|
</template>
|
||||||
<template #goods="scope">
|
<template #goods="scope">
|
||||||
<div class="goodslang">
|
<div class="goodslang">
|
||||||
<div class="goods-list">
|
<div class="goods-list">
|
||||||
|
|||||||
@@ -341,7 +341,8 @@ export default {
|
|||||||
if (!row.unit) {
|
if (!row.unit) {
|
||||||
return price;
|
return price;
|
||||||
}
|
}
|
||||||
if (row.unit && row.unit != row.defaultUnit) {
|
|
||||||
|
if (row.unit && row.defaultUnit && row.unit != row.defaultUnit) {
|
||||||
price = price / row.conUnitTwoConvert;
|
price = price / row.conUnitTwoConvert;
|
||||||
} else {
|
} else {
|
||||||
price = price;
|
price = price;
|
||||||
|
|||||||
Reference in New Issue
Block a user