Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
ca2e1c4c
Commit
ca2e1c4c
authored
Mar 30, 2023
by
前端-甘科
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jinfa-20221102' into 'jinfa-20221102'
fix:请购单新增筛选项 See merge request project/jinfa-platform!514
parents
b58fb977
7377e5c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
15 deletions
+39
-15
index.tsx
...ges/statistic/purchaseStatistics/purchaseReport/index.tsx
+39
-15
No files found.
src/pages/statistic/purchaseStatistics/purchaseReport/index.tsx
View file @
ca2e1c4c
import
React
,
{
useState
,
useEffect
}
from
'react'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
Card
,
Cascader
,
Space
,
Button
}
from
'antd'
import
{
Card
,
Cascader
,
Space
,
Button
}
from
'antd'
import
Statement
from
'@/components/statisticsStatement'
import
{
useIntl
}
from
'umi'
import
moment
from
'moment'
...
...
@@ -13,8 +13,8 @@ import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect'
import
{
useCustomerCategoriesBusinessEffects
}
from
'@/formSchema/effects/useCustomerCategoriesBusinessEffectsStatistics'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
import
{
getMemberAbilityMaintenancePageitems
}
from
'@/services/MemberV2Api'
;
import
{
getReportDxPurchaseExecutionDetailsExport
}
from
'@/services/ReportV2Api'
;
import
{
getMemberAbilityMaintenancePageitems
}
from
'@/services/MemberV2Api'
;
import
{
getReportDxPurchaseExecutionDetailsExport
}
from
'@/services/ReportV2Api'
;
import
{
handleExportFile
}
from
'@/utils/downloads'
/**
* 请购单报表
...
...
@@ -129,7 +129,7 @@ const Index = () => {
'x-component-props'
:
{
rowStyle
:
{
justifyContent
:
'flex-start'
,
flexWrap
:
'nowrap'
,
//
flexWrap: 'nowrap',
},
colStyle
:
{
//改变间隔
...
...
@@ -149,6 +149,30 @@ const Index = () => {
placeholder
:
intl
.
formatMessage
({
id
:
'material.name'
}),
},
},
sapNo
:
{
type
:
'string'
,
title
:
'SAP物料编码'
,
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'common.enter'
}),
style
:
{
width
:
'120px'
},
},
},
sapCode
:
{
type
:
'string'
,
title
:
'SAP请购单编码'
,
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'common.enter'
}),
style
:
{
width
:
'120px'
},
},
},
manager
:
{
type
:
'string'
,
title
:
'产品经理'
,
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'common.enter'
}),
style
:
{
width
:
'120px'
},
},
},
categoryCode
:
{
type
:
'string'
,
'x-component'
:
'Cascader'
,
...
...
@@ -217,21 +241,21 @@ const Index = () => {
return
(
<
PageHeaderWrapper
// subTitle={
// <HeaderSelectCompany
// onOk={(selectedRows) => {
// setSelectedCompany(selectedRows)
// actions.submit()
// }}
// />
// }
// subTitle={
// <HeaderSelectCompany
// onOk={(selectedRows) => {
// setSelectedCompany(selectedRows)
// actions.submit()
// }}
// />
// }
>
<
Space
direction=
"vertical"
size=
{
16
}
style=
{
{
width
:
'100%'
}
}
>
<
Card
>
<
NiceForm
actions=
{
actions
}
schema=
{
searchSchema
}
components=
{
{
Cascader
,
ExportBtn
}
}
components=
{
{
Cascader
,
ExportBtn
}
}
onSubmit=
{
(
values
)
=>
handleSubmit
(
values
)
}
onReset=
{
handleReset
}
expressionScope=
{
{
...
...
@@ -257,8 +281,8 @@ const Index = () => {
<
Statement
url=
"/superset/dashboard/requestPurchase"
params=
{
params
}
/>
</
Card
>
</
Space
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment