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
36afcb29
Commit
36afcb29
authored
Mar 27, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev1.6' into dev1.6
parents
f35c3f06
ad0994cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
39 deletions
+23
-39
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+23
-39
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
36afcb29
...
...
@@ -321,6 +321,7 @@
<
el
-
select
v
-
model
=
"
scope.row.platformAccountId
"
:
placeholder
=
"
$t('请选择收款账户')
"
@
change
=
"
(platformAccountId)=>changePlatformAccountId(platformAccountId,scope.$index)
"
>
<
el
-
option
v
-
for
=
"
item in bankData
"
...
...
@@ -1246,6 +1247,9 @@ export default {
hiddenDialog
()
{
this
.
open
=
false
;
}
,
changePlatformAccountId
(
platformAccountId
,
index
){
this
.
form
.
receiptAccountList
[
index
].
platformAccountId
=
platformAccountId
}
,
submitForm
(
addType
)
{
const
params
=
{...
this
.
form
}
params
.
addType
=
addType
...
...
@@ -1305,20 +1309,6 @@ export default {
if
(
addType
===
1
)
{
let
fieldsToValidate
=
[
'
customerId
'
,
'
departmentId
'
,
'
salesmanId
'
];
// 部分字段校验 保存草稿用
Promise
.
all
(
fieldsToValidate
.
map
((
field
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
[
'
form
'
].
validateField
(
field
,
(
errorMessage
)
=>
{
resolve
(
errorMessage
);
}
);
}
);
}
)
).
then
((
errorMessages
)
=>
{
let
valid
=
errorMessages
.
every
((
errorMessage
)
=>
{
return
errorMessage
==
''
;
}
);
if
(
valid
)
{
this
.
saveBtnLoading
=
true
params
.
receiptAccountList
.
splice
(
params
.
receiptAccountList
.
length
-
1
,
1
)
if
(
this
.
id
&&
this
.
id
!=
0
)
{
...
...
@@ -1338,34 +1328,28 @@ export default {
this
.
saveBtnLoading
=
false
}
)
}
}
}
);
return
}
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
saveBtnLoading
=
true
params
.
receiptAccountList
.
splice
(
params
.
receiptAccountList
.
length
-
1
,
1
)
if
(
this
.
id
&&
this
.
id
!=
0
)
{
// if(params.state==0) params.state = 1
params
.
updateType
=
1
updateReceipt
(
params
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
this
.
$store
.
dispatch
(
'
tagsView/delCurrentView
'
)
}
).
finally
(()
=>
{
this
.
saveBtnLoading
=
false
}
)
}
else
{
params
.
currencyId
=
this
.
showCurrencyId
createReceipt
(
params
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
新增成功
'
));
this
.
$store
.
dispatch
(
'
tagsView/delCurrentView
'
)
}
).
finally
(()
=>
{
this
.
saveBtnLoading
=
false
}
)
}
this
.
saveBtnLoading
=
true
params
.
receiptAccountList
.
splice
(
params
.
receiptAccountList
.
length
-
1
,
1
)
if
(
this
.
id
&&
this
.
id
!=
0
)
{
// if(params.state==0) params.state = 1
params
.
updateType
=
1
updateReceipt
(
params
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
this
.
$store
.
dispatch
(
'
tagsView/delCurrentView
'
)
}
).
finally
(()
=>
{
this
.
saveBtnLoading
=
false
}
)
}
else
{
params
.
currencyId
=
this
.
showCurrencyId
createReceipt
(
params
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
新增成功
'
));
this
.
$store
.
dispatch
(
'
tagsView/delCurrentView
'
)
}
).
finally
(()
=>
{
this
.
saveBtnLoading
=
false
}
)
}
}
)
}
,
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
...
...
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