|
@@ -211,11 +211,11 @@ const Statistic = () => {
|
|
|
onChange(checked) {
|
|
|
if (!checked) {
|
|
|
formRef.current?.setFieldsValue({
|
|
|
- 'software-usage': [],
|
|
|
- 'invoice-aggregate': [],
|
|
|
- 'invoice-trends': [],
|
|
|
- 'customer-additions': [],
|
|
|
- 'invoice-receivables': []
|
|
|
+ usage: [],
|
|
|
+ aggregate: [],
|
|
|
+ trends: [],
|
|
|
+ additions: [],
|
|
|
+ receivables: []
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -236,28 +236,28 @@ const Statistic = () => {
|
|
|
{({ showProduct }) => (
|
|
|
<>
|
|
|
<ProFormCheckbox.Group
|
|
|
- name="software-usage"
|
|
|
+ name="usage"
|
|
|
label="软件锁用量"
|
|
|
options={[
|
|
|
{ value: 'access', label: '查看', disabled: !showProduct }
|
|
|
]}
|
|
|
/>
|
|
|
<ProFormCheckbox.Group
|
|
|
- name="invoice-aggregate"
|
|
|
+ name="aggregate"
|
|
|
label="发票收款入账汇总"
|
|
|
options={[
|
|
|
{ value: 'access', label: '查看', disabled: !showProduct }
|
|
|
]}
|
|
|
/>
|
|
|
<ProFormCheckbox.Group
|
|
|
- name="invoice-trends"
|
|
|
+ name="trends"
|
|
|
label="发票收款入账趋势"
|
|
|
options={[
|
|
|
{ value: 'access', label: '查看', disabled: !showProduct }
|
|
|
]}
|
|
|
/>
|
|
|
<ProFormCheckbox.Group
|
|
|
- name="invoice-receivables"
|
|
|
+ name="receivables"
|
|
|
label="应收款统计"
|
|
|
options={[
|
|
|
{ value: 'access', label: '查看', disabled: !showProduct }
|
|
@@ -272,7 +272,7 @@ const Statistic = () => {
|
|
|
onChange(checked) {
|
|
|
if (!checked) {
|
|
|
formRef.current?.setFieldsValue({
|
|
|
- 'customer-additions': []
|
|
|
+ additions: []
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -292,7 +292,7 @@ const Statistic = () => {
|
|
|
<ProFormDependency name={['showCustomer']}>
|
|
|
{({ showCustomer }) => (
|
|
|
<ProFormCheckbox.Group
|
|
|
- name="customer-additions"
|
|
|
+ name="additions"
|
|
|
label="客户新增"
|
|
|
options={[
|
|
|
{ value: 'access', label: '查看', disabled: !showCustomer }
|