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
b6d2167a
Commit
b6d2167a
authored
Oct 20, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增收款单bug
parent
9c7479ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+19
-11
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
b6d2167a
...
...
@@ -14,7 +14,7 @@
<!--
<el-descriptions-item
>
-->
<el-form-item
:label=
"$t('客户')"
style=
"margin-bottom: 0"
style=
"margin-bottom: 0
;margin-top: 20px;
"
prop=
"customerId"
:span=
"4"
:rules=
"
{ required: true, trigger: ['blur', 'change'], message: $t('客户不能为空') }"
...
...
@@ -28,7 +28,7 @@
<el-descriptions-item
>
-->
<el-form-item
:label=
"$t('部门')"
style=
"margin-bottom: 0"
style=
"margin-bottom: 0
;margin-top: 20px;
"
prop=
"departmentId"
:span=
"4"
:rules=
"
{ required: true, trigger: ['blur', 'change'], message: $t('部门不能为空') }"
...
...
@@ -48,7 +48,7 @@
</el-form-item>
<el-form-item
:label=
"$t('业务员')"
style=
"margin-bottom: 0"
style=
"margin-bottom: 0
;margin-top: 20px;
"
prop=
"salesmanId"
:span=
"4"
:rules=
"
{ required: true, trigger: ['blur', 'change'], message: $t('业务员不能为空') }"
...
...
@@ -305,7 +305,6 @@
v
-
if
=
"
scope.row.type !== 'total'
"
label
=
""
label
-
width
=
"
0
"
required
style
=
"
margin-bottom: 0
"
:
prop
=
"
`receiptAccountList.${scope.$index
}
.platformAccountId`
"
>
...
...
@@ -719,7 +718,6 @@ export default {
discountForm
:
{
}
,
selectListRow
:
{
}
,
selectListIndex
:
0
,
flag
:
false
,
}
;
}
,
...
...
@@ -1135,20 +1133,32 @@ export default {
if
(
this
.
list
&&
this
.
list
.
length
>
0
)
{
params
.
receivableVOList
=
this
.
list
}
else
{
this
.
saveBtnLoading
=
false
this
.
$modal
.
msgError
(
this
.
$t
(
'
请添加未收客户款项
'
));
return
}
if
(
!
params
.
platformAccountId
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
请选择期望收款账户
'
));
return
}
// params.receiptAccountList.length = params.receiptAccountList.length - 1
params
.
receiptAccountList
.
splice
(
params
.
receiptAccountList
.
length
-
1
,
1
)
var
saveStatus
=
true
params
.
receiptAccountList
.
map
(
v
=>
{
if
(
!
v
.
platformAccountId
){
saveStatus
=
false
}
var
bankname
=
this
.
bankData
.
filter
(
item
=>
item
.
id
==
v
.
platformAccountId
)
if
(
bankname
.
length
>
0
){
v
.
platformAccountName
=
bankname
[
0
].
baAccountName
v
.
platformAccountNo
=
bankname
[
0
].
baAccountNum
v
.
platformAccountBlankName
=
bankname
[
0
].
baBankName
}
delete
v
.
discountTotal
v
.
writeOffRate
=
Number
(
v
.
writeOffRate
)
return
v
}
)
if
(
!
saveStatus
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
请添加收款账户
'
));
return
}
delete
params
.
receivableDetail
...
...
@@ -1168,8 +1178,6 @@ export default {
}
);
if
(
valid
)
{
this
.
saveBtnLoading
=
true
console
.
log
(
this
.
id
)
return
if
(
this
.
id
&&
this
.
id
!=
0
)
{
updateReceipt
(
params
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
...
...
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