Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
6ed1837e
Commit
6ed1837e
authored
Oct 07, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
95325a84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
creatPayment.vue
src/views/ecw/financial/creatPayment.vue
+16
-7
No files found.
src/views/ecw/financial/creatPayment.vue
View file @
6ed1837e
...
@@ -554,15 +554,14 @@ export default {
...
@@ -554,15 +554,14 @@ export default {
const
params
=
{...
this
.
form
}
const
params
=
{...
this
.
form
}
if
(
this
.
list
&&
this
.
list
.
length
>
0
)
{
if
(
this
.
list
&&
this
.
list
.
length
>
0
)
{
params
.
payableReqVOList
=
[...
this
.
list
]
params
.
payableReqVOList
=
[...
this
.
list
]
}
else
{
this
.
$modal
.
msgError
(
"
请选择供应商未付款项
"
);
return
}
}
if
(
!
params
.
supplierBankAccount
){
if
(
!
params
.
supplierBankAccount
){
this
.
$modal
.
msgError
(
"
请选择供应商银行账号
"
);
this
.
$modal
.
msgError
(
"
请选择供应商银行账号
"
);
return
return
}
}
if
(
params
.
payableReqVOList
.
length
===
0
)
{
this
.
$modal
.
msgError
(
"
请选择供应商未付款项
"
);
return
}
if
(
this
.
id
&&
this
.
id
!==
'
0
'
)
{
if
(
this
.
id
&&
this
.
id
!==
'
0
'
)
{
updatePayment
(
params
).
then
(
res
=>
{
updatePayment
(
params
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
...
@@ -585,14 +584,24 @@ export default {
...
@@ -585,14 +584,24 @@ export default {
const
params
=
{...
this
.
form
}
const
params
=
{...
this
.
form
}
if
(
this
.
list
&&
this
.
list
.
length
>
0
)
{
if
(
this
.
list
&&
this
.
list
.
length
>
0
)
{
params
.
payableReqVOList
=
[...
this
.
list
]
params
.
payableReqVOList
=
[...
this
.
list
]
}
else
{
this
.
$modal
.
msgError
(
"
请选择供应商未付款项
"
);
return
}
}
if
(
!
params
.
supplierBankAccount
){
if
(
!
params
.
supplierBankAccount
){
this
.
$modal
.
msgError
(
"
请选择供应商银行账号
"
);
this
.
$modal
.
msgError
(
"
请选择供应商银行账号
"
);
return
return
}
}
if
(
params
.
payableReqVOList
.
length
===
0
)
{
if
(
this
.
id
&&
this
.
id
!==
'
0
'
)
{
this
.
$modal
.
msgError
(
"
请选择供应商未付款项
"
);
updatePayment
(
params
).
then
(
res
=>
{
return
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$router
.
back
();
})
}
else
{
createPayment
(
params
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
$router
.
back
();
})
}
}
// console.log(params, '-----params---------')
// console.log(params, '-----params---------')
}
}
...
...
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