feat:禅道152辅料库添加待采购列

This commit is contained in:
shijing 2025-11-14 13:44:44 +08:00
parent 1e639ac5ff
commit fb42cc177a
1 changed files with 9 additions and 6 deletions

View File

@ -60,11 +60,6 @@
<span v-if="scope.row.material_&&scope.row.material_.model">{{ scope.row.material_.model }}</span> <span v-if="scope.row.material_&&scope.row.material_.model">{{ scope.row.material_.model }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!--
:filters="unitFilters"
:filter-method="filterUnitDate"
filter-placement="bottom-end"
-->
<el-table-column label="单位"> <el-table-column label="单位">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.material_&&scope.row.material_.unit">{{ scope.row.material_.unit }}</span> <span v-if="scope.row.material_&&scope.row.material_.unit">{{ scope.row.material_.unit }}</span>
@ -84,7 +79,15 @@
</el-table-column> </el-table-column>
<el-table-column label="总金额" prop="expiration_date" sortable> <el-table-column label="总金额" prop="expiration_date" sortable>
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.material_&&scope.row.material_.unit_price">{{ Number(scope.row.material_.unit_price)*Number(scope.row.count) }}</span> <!-- <span v-if="scope.row.material_&&scope.row.material_.unit_price">{{ Math.round(Number(scope.row.material_.unit_price)*Number(scope.row.count)) }}</span> -->
<span v-if="scope.row.material_&&scope.row.material_.unit_price">{{ (Number(scope.row.material_.unit_price)*Number(scope.row.count)) }}</span>
</template>
</el-table-column>
<el-table-column label="库存状态" prop="count">
<template #default="scope">
<span v-if="Number(scope.row.count)>Number(scope.row.material_.count_safe)">正常</span>
<span v-else-if="Number(scope.row.count)==Number(scope.row.material_.count_safe)">临界</span>
<span v-else>待采购</span>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>