Просмотр исходного кода

feat: 出库状态\销售状态\维护状态 增加筛选

outaozhen 4 лет назад
Родитель
Сommit
0210d227f3
1 измененных файлов с 23 добавлено и 3 удалено
  1. 23 3
      src/pages/Product/Lock/LockStore/index.jsx

+ 23 - 3
src/pages/Product/Lock/LockStore/index.jsx

@@ -222,7 +222,13 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
       title: '出库状态',
       title: '出库状态',
       dataIndex: 'stockStatus',
       dataIndex: 'stockStatus',
       key: 'stockStatus',
       key: 'stockStatus',
-      width: 70,
+      width: 85,
+      filters: true,
+      filterMultiple: false,
+      valueEnum: {
+        1: { text: '生成' },
+        2: { text: '接收' }
+      },
       render: (_, { stockStatus }) => {
       render: (_, { stockStatus }) => {
         return <>{longleStockStatusNum[stockStatus]?.text}</>
         return <>{longleStockStatusNum[stockStatus]?.text}</>
       }
       }
@@ -251,7 +257,14 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
       title: '销售状态',
       title: '销售状态',
       dataIndex: 'sellStatus',
       dataIndex: 'sellStatus',
       key: 'sellStatus',
       key: 'sellStatus',
-      width: 70,
+      width: 85,
+      filters: true,
+      filterMultiple: false,
+      valueEnum: {
+        1: { text: '借出' },
+        2: { text: '销售' },
+        3: { text: '赠送' }
+      },
       render: (_, { sellStatus }) => {
       render: (_, { sellStatus }) => {
         return <>{longleSellStatusNum[sellStatus]?.text}</>
         return <>{longleSellStatusNum[sellStatus]?.text}</>
       }
       }
@@ -266,7 +279,14 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
       title: '维护状态',
       title: '维护状态',
       dataIndex: 'preserveStatus',
       dataIndex: 'preserveStatus',
       key: 'preserveStatus',
       key: 'preserveStatus',
-      width: 60,
+      width: 85,
+      filters: true,
+      filterMultiple: false,
+      valueEnum: {
+        1: { text: '升级' },
+        2: { text: '更换' },
+        3: { text: '收回' }
+      },
       render: (_, { preserveStatus }) => {
       render: (_, { preserveStatus }) => {
         return <>{longlePreserveStatusNum[preserveStatus]?.text}</>
         return <>{longlePreserveStatusNum[preserveStatus]?.text}</>
       }
       }