给库存相关的界面增加大的计量单位的库存展示提示

This commit is contained in:
季圣华
2022-11-18 23:30:40 +08:00
parent fd842ecc0a
commit 0ea22848bf
3 changed files with 24 additions and 3 deletions

View File

@@ -146,6 +146,11 @@
<a-icon v-if="record.imgName" style="font-size: 18px" theme="twoTone" type="file-image" />
</a-popover>
</template>
<template slot="customRenderStock" slot-scope="text, record">
<a-tooltip :title="record.bigUnitStock">
{{text}}
</a-tooltip>
</template>
<template slot="customRenderEnabled" slot-scope="enabled">
<a-tag v-if="enabled" color="green">启用</a-tag>
<a-tag v-if="!enabled" color="orange">禁用</a-tag>
@@ -254,7 +259,9 @@
},
{title: '基础重量', dataIndex: 'weight', width: 80},
{title: '保质期', dataIndex: 'expiryNum', width: 60},
{title: '库存', dataIndex: 'stock', width: 80},
{title: '库存', dataIndex: 'stock', width: 80,
scopedSlots: { customRender: 'customRenderStock' }
},
{title: '采购价', dataIndex: 'purchaseDecimal', width: 80},
{title: '零售价', dataIndex: 'commodityDecimal', width: 80},
{title: '销售价', dataIndex: 'wholesaleDecimal', width: 80},