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
陈智峰
jinfa-platform
Commits
e73c3f10
Commit
e73c3f10
authored
Nov 16, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改采购询价BUG
parent
4140bdd1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
4 deletions
+26
-4
index.tsx
src/components/DatePicker/index.tsx
+14
-1
index.tsx
...es/transaction/purchaseAbility/components/table/index.tsx
+1
-0
basicInfo.tsx
...ility/demandPlan/demandPlanAdded/components/basicInfo.tsx
+5
-3
index.tsx
...purchaseAbility/purchaseInquiry/auditInquiryOne/index.tsx
+3
-0
index.tsx
...purchaseAbility/purchaseInquiry/auditInquiryTwo/index.tsx
+3
-0
No files found.
src/components/DatePicker/index.tsx
View file @
e73c3f10
...
...
@@ -7,10 +7,12 @@ interface DatePickerSelectPropsType {
startTimeName
?:
string
,
/** 结束时间name */
endTimeName
?:
string
,
/** ononPress */
onPress
?:
()
=>
void
,
}
const
DatePickerSelect
:
React
.
FC
<
DatePickerSelectPropsType
>
=
(
props
)
=>
{
const
{
startTimeName
,
endTimeName
}
=
props
;
const
{
startTimeName
,
endTimeName
,
onPress
}
=
props
;
const
[
timeList
,
setTimeList
]
=
useState
<
Array
<
any
>>
([]);
/**
...
...
@@ -32,11 +34,22 @@ const DatePickerSelect: React.FC<DatePickerSelectPropsType> = (props) => {
const
startTimeChange
=
(
val
)
=>
{
let
time
=
[...
timeList
]
time
[
0
]
=
val
if
(
onPress
)
{
if
(
time
[
0
]
&&
time
[
1
])
{
onPress
()
}
}
setTimeList
(
time
)
}
const
endStartTimeChange
=
(
val
)
=>
{
let
time
=
[...
timeList
]
time
[
1
]
=
val
if
(
onPress
)
{
if
(
time
[
0
]
&&
time
[
1
])
{
onPress
()
}
}
setTimeList
(
time
)
}
return
(
...
...
src/pages/transaction/purchaseAbility/components/table/index.tsx
View file @
e73c3f10
...
...
@@ -172,6 +172,7 @@ const Table: React.FC<Iprops> = (props: any) => {
useImperativeHandle
(
reload
,
()
=>
({
reload
:
()
=>
{
tableRef
.
current
.
reload
();
selectRowFns
.
setSelectedRowKeys
([]);
}
}));
...
...
src/pages/transaction/purchaseAbility/demandPlan/demandPlanAdded/components/basicInfo.tsx
View file @
e73c3f10
...
...
@@ -55,13 +55,14 @@ const BasicInfo: React.FC<BasicInfoprops> = (props: any) => {
}
},
[
fetchdata
])
const
handleSummary
=
()
=>
{
form
.
setFieldsValue
({
'summary'
:
`
${
form
.
getFieldValue
(
'startTime'
).
format
(
'YYYY-MM-DD'
)}
-
${
form
.
getFieldValue
(
'endTime'
).
format
(
'YYYY-MM-DD'
)}
需求计划`
})
}
return
(
<
Form
{
...
layout
}
form=
{
form
}
>
<
Form
.
Item
noStyle
shouldUpdate=
{
(
prevValues
,
curValues
)
=>
(
prevValues
.
startTime
&&
prevValues
.
endTime
)
!==
(
curValues
.
startTime
&&
curValues
.
endTime
)
}
>
{
({
getFieldValue
})
=>
{
if
(
getFieldValue
(
'startTime'
)
&&
getFieldValue
(
'endTime'
))
{
form
.
setFieldsValue
({
'summary'
:
`${getFieldValue('startTime').format('YYYY-MM-DD')}-${getFieldValue('endTime').format('YYYY-MM-DD')}需求计划`
})
}
return
(
getFieldValue
(
'startTime'
)
&&
getFieldValue
(
'endTime'
))
&&
(
<
Form
.
Item
label=
"需求计划摘要"
...
...
@@ -80,6 +81,7 @@ const BasicInfo: React.FC<BasicInfoprops> = (props: any) => {
<
DatePicker
startTimeName=
'startTime'
endTimeName=
'endTime'
onPress=
{
handleSummary
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"需求计划编号"
name=
"needPlanNo"
>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/auditInquiryOne/index.tsx
View file @
e73c3f10
...
...
@@ -76,6 +76,9 @@ const AuditInquiryOne = () => {
</>
)
}];
console
.
log
(
rowkeys
,
'rowkeys'
)
return
(
<
Table
selectedRow
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/auditInquiryTwo/index.tsx
View file @
e73c3f10
...
...
@@ -78,6 +78,9 @@ const AuditInquiryTwo = () => {
</>
)
}];
console
.
log
(
rowkeys
,
'rowkeys'
)
return
(
<
Table
selectedRow
...
...
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