Browse Source

feat: 增加应收款统计查看权限

outaozhen 3 năm trước cách đây
mục cha
commit
8043234fb9
1 tập tin đã thay đổi với 11 bổ sung1 xóa
  1. 11 1
      src/pages/Role/Statistic/index.tsx

+ 11 - 1
src/pages/Role/Statistic/index.tsx

@@ -192,7 +192,8 @@ const Statistic = () => {
                               'software-usage': [],
                               'invoice-aggregate': [],
                               'invoice-trends': [],
-                              'customer-additions': []
+                              'customer-additions': [],
+                              'invoice-receivables': []
                             })
                           }
                         }
@@ -243,6 +244,15 @@ const Statistic = () => {
                           />
                         )}
                       </ProFormDependency>
+                      <ProFormDependency name={['showProduct']}>
+                        {({ showProduct }) => (
+                          <ProFormCheckbox.Group
+                            name="invoice-receivables"
+                            label="应收款统计"
+                            options={[{ value: 'access', label: '查看', disabled: !showProduct }]}
+                          />
+                        )}
+                      </ProFormDependency>
                     </div>
                   </ProForm>
                 )}