feat: 入库商品选择弹窗显示规格
This commit is contained in:
1 parent
62102ce2f2
commit
075b4f41bb
1 file changed
+16
-4
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user