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
f9e832fd
Commit
f9e832fd
authored
Jul 28, 2021
by
alwayOnlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复时间选中
parent
07bfe748
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
fromtable.tsx
src/pages/contract/manage/editing/components/fromtable.tsx
+5
-1
information.tsx
src/pages/contract/manage/editing/components/information.tsx
+12
-3
No files found.
src/pages/contract/manage/editing/components/fromtable.tsx
View file @
f9e832fd
...
...
@@ -50,6 +50,7 @@ const FormList = (props: any) => {
render
:
(
_
,
item
,
index
)
=>
<
DatePicker
style=
{
{
width
:
'100%'
}
}
format=
"YYYY-MM-DD"
value=
{
item
.
expectPayTime
}
onChange=
{
(
e
)
=>
onSelectChange
(
e
,
'expectPayTime'
,
index
)
}
/>
},
...
...
@@ -120,7 +121,6 @@ const FormList = (props: any) => {
/* 添加 */
const
addtable
=
()
=>
{
const
data
=
[...
PlanList
];
if
(
keys
)
{
data
.
push
(
keys
);
setkeys
(
''
);
...
...
@@ -205,7 +205,11 @@ const FormList = (props: any) => {
setPlanList
(
item
)
}
useEffect
(()
=>
{
payPlanList
.
map
(
item
=>
{
item
.
expectPayTime
=
moment
(
item
.
expectPayTime
)
})
setPlanList
(
payPlanList
)
console
.
log
(
payPlanList
)
},
[
payPlanList
])
useEffect
(()
=>
{
currentRef
.
current
=
{
...
...
src/pages/contract/manage/editing/components/information.tsx
View file @
f9e832fd
...
...
@@ -26,13 +26,22 @@ const Information = (props: any) => {
PublicApi
.
getContractManageGetContractNo
(
data
).
then
(
res
=>
{
console
.
log
(
res
.
data
)
if
(
res
.
code
===
1000
)
{
basic
.
contractNo
=
res
.
data
basic
.
contractNo
=
res
.
data
;
const
rangePicker
=
[];
let
startTime
=
moment
(
basic
.
startTime
)
let
endTime
=
moment
(
basic
.
endTime
);
rangePicker
.
push
(
startTime
,
endTime
);
basic
.
rangePicker
=
rangePicker
;
attrValueForm
.
setFieldsValue
(
basic
)
}
}).
catch
((
err
)
=>
{
});
}
else
{
const
rangePicker
=
[];
let
startTime
=
moment
(
basic
.
startTime
)
let
endTime
=
moment
(
basic
.
endTime
);
rangePicker
.
push
(
startTime
,
endTime
);
basic
.
rangePicker
=
rangePicker
;
attrValueForm
.
setFieldsValue
(
basic
)
}
}
...
...
@@ -145,7 +154,7 @@ const Information = (props: any) => {
labelAlign=
"left"
labelCol=
{
{
span
:
2
}
}
wrapperCol=
{
{
span
:
8
}
}
name=
"range
-p
icker"
name=
"range
P
icker"
{
...
rangeConfig
}
>
<
RangePicker
style=
{
{
width
:
'100%'
}
}
...
...
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