fix:光芯物料显示单价和总价,并且半成品不显示单价

This commit is contained in:
shijing 2024-07-29 17:01:03 +08:00
parent c9bf9177e0
commit e15f03142a
2 changed files with 10 additions and 8 deletions

View File

@ -93,7 +93,7 @@
</el-form-item>
</el-col>
<!-- 光芯 -->
<el-col :md="12" :sm="24">
<el-col :md="12" :sm="24" v-if="form.type !== 20">
<el-form-item label="物料单价">
<el-input-number
v-model="form.unit_price"
@ -102,7 +102,6 @@
/>
</el-form-item>
</el-col>
<el-col :md="12" :sm="24">
<el-form-item label="是否隐藏" prop="is_hidden">
<el-switch v-model="form.is_hidden" />

View File

@ -107,13 +107,16 @@
width="80"
>
</el-table-column>
<el-table-column label="总库存" prop="count" width="80">
<el-table-column label="总库存" prop="count">
</el-table-column>
<el-table-column
label="安全库存"
prop="count_safe"
width="80"
>
<el-table-column label="安全库存" prop="count_safe">
</el-table-column>
<el-table-column label="单价" prop="unit_price">
</el-table-column>
<el-table-column label="总价" prop="count_safe">
<template #default="scope">
{{ scope.row.unit_price * scope.row.count }}
</template>
</el-table-column>
<el-table-column
v-if="materialType == ''"