This commit is contained in:
dzc committed 2025-08-14 10:31:56 +08:00
commit 6d68dcc8ef
2 files changed
+50 -41

No files matched your search

@@ -38,13 +38,25 @@
</el-table-column>
<el-table-column prop="stock" label="库存" min-width="80px" show-overflow-tooltip />
<el-table-column prop="productCode" label="货号" min-width="100px" show-overflow-tooltip />
<el-table-column label="包装单位" min-width="300px">
<el-table-column label="规格" min-width="240px">
<template #default="scope">
<div v-if="scope.row.erpUnitVos && scope.row.erpUnitVos.length > 0" class="flex justify-center flex-wrap gap-2">
<div v-for="unit in scope.row.erpUnitVos" :key="unit.id">
<el-tag v-if="unit.spec" :type="unit.isBase ? 'primary' : 'info'" size="small">
{{ unit.spec }}
</el-tag>
</div>
</div>
</template>
</el-table-column>
<el-table-column label="包装单位/价格" min-width="280px">
<template #default="scope">
<div v-if="scope.row.erpUnitVos && scope.row.erpUnitVos.length > 0">
<div class="flex flex-wrap gap-2">
<el-tag v-for="unit in scope.row.erpUnitVos" :key="unit.id" :type="unit.isBase ? 'primary' : 'info'" size="small">
<div class="flex justify-center flex-wrap gap-2">
<el-tag v-for="unit in scope.row.erpUnitVos" :key="unit.id" :type="unit.isBase ? 'primary' : 'info'">
{{ unit.unit }}
<span class="text-xs ml-1">({{ displayPrice(unit.purchasePrice, "") }}元)</span>
<span class="text-xs ml-1">(进价:{{ displayPrice(unit.purchasePrice, "") }}元)</span>
<span class="text-xs ml-1">(零售价:{{ displayPrice(unit.retailPrice, "") }}元)</span>
</el-tag>
</div>
</div>