修改枚举
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
import GenericMonitorList from '../../components/GenericMonitorList.vue';
|
||||
import { getRawMaterialStockLogs } from '../../api/monitor.js';
|
||||
import { formatRFC3339 } from '../../utils/format.js';
|
||||
import { StockLogSourceType } from '../../enums.js';
|
||||
|
||||
// 适配通用组件的 fetchData prop
|
||||
const fetchRawMaterialStockLogs = async (params) => {
|
||||
@@ -39,14 +40,7 @@ const rawMaterialStockLogColumns = [
|
||||
dataIndex: 'source_type',
|
||||
key: 'source_type',
|
||||
filterType: 'select',
|
||||
filterOptions: [
|
||||
{ text: '采购入库', value: '采购入库' },
|
||||
{ text: '饲喂出库', value: '饲喂出库' },
|
||||
{ text: '变质出库', value: '变质出库' },
|
||||
{ text: '售卖出库', value: '售卖出库' },
|
||||
{ text: '杂用领取', value: '杂用领取' },
|
||||
{ text: '手动盘点', value: '手动盘点' },
|
||||
],
|
||||
filterOptions: Object.values(StockLogSourceType).map(value => ({ text: value, value: value })),
|
||||
minWidth: 130,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user