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 @@
...
@@ -321,6 +321,7 @@
<
el
-
select
<
el
-
select
v
-
model
=
"
scope.row.platformAccountId
"
v
-
model
=
"
scope.row.platformAccountId
"
:
placeholder
=
"
$t('请选择收款账户')
"
:
placeholder
=
"
$t('请选择收款账户')
"
@
change
=
"
(platformAccountId)=>changePlatformAccountId(platformAccountId,scope.$index)
"
>
>
<
el
-
option
<
el
-
option
v
-
for
=
"
item in bankData
"
v
-
for
=
"
item in bankData
"
...
@@ -1246,6 +1247,9 @@ export default {
...
@@ -1246,6 +1247,9 @@ export default {
hiddenDialog
()
{
hiddenDialog
()
{
this
.
open
=
false
;
this
.
open
=
false
;
}
,
}
,
changePlatformAccountId
(
platformAccountId
,
index
){
this
.
form
.
receiptAccountList
[
index
].
platformAccountId
=
platformAccountId
}
,
submitForm
(
addType
)
{
submitForm
(
addType
)
{
const
params
=
{...
this
.
form
}
const
params
=
{...
this
.
form
}
params
.
addType
=
addType
params
.
addType
=
addType
...
@@ -1305,20 +1309,6 @@ export default {
...
@@ -1305,20 +1309,6 @@ export default {
if
(
addType
===
1
)
{
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
this
.
saveBtnLoading
=
true
params
.
receiptAccountList
.
splice
(
params
.
receiptAccountList
.
length
-
1
,
1
)
params
.
receiptAccountList
.
splice
(
params
.
receiptAccountList
.
length
-
1
,
1
)
if
(
this
.
id
&&
this
.
id
!=
0
)
{
if
(
this
.
id
&&
this
.
id
!=
0
)
{
...
@@ -1338,34 +1328,28 @@ export default {
...
@@ -1338,34 +1328,28 @@ export default {
this
.
saveBtnLoading
=
false
this
.
saveBtnLoading
=
false
}
)
}
)
}
}
}
}
);
return
return
}
}
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
this
.
saveBtnLoading
=
true
if
(
valid
)
{
params
.
receiptAccountList
.
splice
(
params
.
receiptAccountList
.
length
-
1
,
1
)
this
.
saveBtnLoading
=
true
if
(
this
.
id
&&
this
.
id
!=
0
)
{
params
.
receiptAccountList
.
splice
(
params
.
receiptAccountList
.
length
-
1
,
1
)
// if(params.state==0) params.state = 1
if
(
this
.
id
&&
this
.
id
!=
0
)
{
params
.
updateType
=
1
// if(params.state==0) params.state = 1
updateReceipt
(
params
).
then
(
res
=>
{
params
.
updateType
=
1
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
updateReceipt
(
params
).
then
(
res
=>
{
this
.
$store
.
dispatch
(
'
tagsView/delCurrentView
'
)
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
}
).
finally
(()
=>
{
this
.
$store
.
dispatch
(
'
tagsView/delCurrentView
'
)
this
.
saveBtnLoading
=
false
}
).
finally
(()
=>
{
}
)
this
.
saveBtnLoading
=
false
}
else
{
}
)
params
.
currencyId
=
this
.
showCurrencyId
}
else
{
createReceipt
(
params
).
then
(
res
=>
{
params
.
currencyId
=
this
.
showCurrencyId
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
新增成功
'
));
createReceipt
(
params
).
then
(
res
=>
{
this
.
$store
.
dispatch
(
'
tagsView/delCurrentView
'
)
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
新增成功
'
));
}
).
finally
(()
=>
{
this
.
$store
.
dispatch
(
'
tagsView/delCurrentView
'
)
this
.
saveBtnLoading
=
false
}
).
finally
(()
=>
{
}
)
this
.
saveBtnLoading
=
false
}
)
}
}
}
}
)
}
,
}
,
handleSelectionChange
(
val
)
{
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
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