优化序列号和批次商品的逻辑
This commit is contained in:
@@ -58,6 +58,14 @@
|
||||
:loading="loading"
|
||||
:customRow="rowAction"
|
||||
@change="handleTableChange">
|
||||
<template slot="customRenderEnableSerialNumber" slot-scope="enableSerialNumber">
|
||||
<a-tag v-if="enableSerialNumber==1" color="green">有</a-tag>
|
||||
<a-tag v-if="enableSerialNumber==0" color="orange">无</a-tag>
|
||||
</template>
|
||||
<template slot="customRenderEnableBatchNumber" slot-scope="enableBatchNumber">
|
||||
<a-tag v-if="enableBatchNumber==1" color="green">有</a-tag>
|
||||
<a-tag v-if="enableBatchNumber==0" color="orange">无</a-tag>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -94,14 +102,20 @@
|
||||
categoryTree:[],
|
||||
columns: [
|
||||
{dataIndex: 'mBarCode', title: '条码', width: 100, align: 'left'},
|
||||
{dataIndex: 'name', title: '名称', width: 100},
|
||||
{dataIndex: 'name', title: '名称', width: 120},
|
||||
{dataIndex: 'categoryName', title: '类别', width: 80},
|
||||
{dataIndex: 'standard', title: '规格', width: 80},
|
||||
{dataIndex: 'model', title: '型号', width: 80},
|
||||
{dataIndex: 'unit', title: '单位', width: 60},
|
||||
{dataIndex: 'sku', title: '多属性', width: 100},
|
||||
{dataIndex: 'stock', title: '库存', width: 100},
|
||||
{dataIndex: 'expand', title: '扩展信息', width: 80}
|
||||
{dataIndex: 'sku', title: '多属性', width: 80},
|
||||
{dataIndex: 'stock', title: '库存', width: 60},
|
||||
{dataIndex: 'expand', title: '扩展信息', width: 80},
|
||||
{dataIndex: 'enableSerialNumber', title: '序列号', width: 60, align: "center",
|
||||
scopedSlots: { customRender: 'customRenderEnableSerialNumber' }
|
||||
},
|
||||
{dataIndex: 'enableBatchNumber', title: '批号', width: 60, align: "center",
|
||||
scopedSlots: { customRender: 'customRenderEnableBatchNumber' }
|
||||
}
|
||||
],
|
||||
scrollTrigger: {},
|
||||
dataSource: [],
|
||||
|
||||
Reference in New Issue
Block a user