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
linweijiong
jinfa-platform
Commits
199954d4
Commit
199954d4
authored
Oct 10, 2022
by
wzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 采购物料为空问题处理
parent
b92031cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Information.tsx
src/pages/contract/manage/add/components/Information.tsx
+2
-2
ContractText.tsx
...pages/contract/manage/editing/components/ContractText.tsx
+4
-0
No files found.
src/pages/contract/manage/add/components/Information.tsx
View file @
199954d4
...
...
@@ -100,8 +100,8 @@ const Information = (props: any) => {
};
/* 时间选中 */
const
onChange
=
(
value
:
any
)
=>
{
let
startTime
=
moment
(
Number
(
value
[
0
])).
format
(
'YYYY-MM-DD'
)
let
endTime
=
moment
(
Number
(
value
[
1
])).
format
(
'YYYY-MM-DD'
)
let
startTime
=
value
?
moment
(
Number
(
value
?.[
0
])).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
null
let
endTime
=
value
?
moment
(
Number
(
value
?.[
1
])).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
null
getbasicsVO
({
...
basicsVO
,
startTime
,
...
...
src/pages/contract/manage/editing/components/ContractText.tsx
View file @
199954d4
...
...
@@ -107,6 +107,10 @@ const ContractText = (props: any) => {
(
await
purchaseMate
.
current
.
length
)
!=
0
?
await
purchaseMate
.
current
.
get
()
:
[];
if
(
!
purchaseMaterielList
?.
data
?.
list
?.
length
)
{
message
.
info
(
'采购物料不可以为空!'
)
return
}
getOtherInfo
().
then
(
datas
=>
{
if
(
!
isEmpty
(
picker
)
&&
!
(
picker
.
endTime
&&
picker
.
startTime
))
{
message
.
info
(
'生成合同日期不可以为空!'
)
...
...
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