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
784cdcda
Commit
784cdcda
authored
Nov 06, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款单优化
parent
70f87732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
4 deletions
+45
-4
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+45
-4
No files found.
src/views/ecw/financial/receiptDetail.vue
View file @
784cdcda
...
...
@@ -393,10 +393,9 @@
<
span
v
-
if
=
"
amount
"
>
{{
amount
}}
{{
getCurrencyLabel
(
currency
)
}}
<
/span
>
<
/div
>
<
/div
>
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('收款账户')
"
prop
=
"
accountNo
"
:
rules
=
"
{ required: true, trigger: ['blur', 'change'], message: $t('收款账户不能为空')
}
"
>
<
el
-
select
v
-
if
=
"
!isView
"
v
-
model
=
"
addForm.accountId
"
:
placeholder
=
"
$t('请选择收款账户')
"
style
=
"
width: 220px
"
@
change
=
"
accountChang
e
"
>
<
el
-
select
v
-
if
=
"
!isView
"
filterable
clear
v
-
model
=
"
addForm.accountId
"
:
placeholder
=
"
$t('请选择收款账户')
"
style
=
"
width: 220px
"
@
change
=
"
accountChange
"
v
-
el
-
select
-
loadmore
=
"
loadmor
e
"
>
<
el
-
option
v
-
for
=
"
item in bankData
"
:
key
=
"
item.id
"
:
label
=
"
item.baAccountName + '(' + item.baAccountNum + ')'
"
:
value
=
"
item.id
"
/>
<
/el-select
>
<
span
v
-
else
>
{{
addForm
.
accountNo
}}
{{
'
(
'
+
addForm
.
accountName
+
'
)
'
}}
<
/span
>
...
...
@@ -620,7 +619,12 @@ export default {
detailIndex
:
1
,
wiffShow
:
false
,
wiffRemark
:
''
,
rateList
:[]
rateList
:[],
codePage
:
{
pageNo
:
1
,
pageSize
:
20
}
,
pages
:
1
}
}
,
computed
:
{
...
...
@@ -698,6 +702,22 @@ export default {
this
.
setWriteOffAmount
()
}
,
}
,
directives
:
{
'
el-select-loadmore
'
:
{
bind
(
el
,
binding
)
{
const
SELECTWRAP_DOM
=
el
.
querySelector
(
'
.el-select-dropdown .el-select-dropdown__wrap
'
)
SELECTWRAP_DOM
.
addEventListener
(
'
scroll
'
,
function
()
{
const
condition
=
this
.
scrollHeight
-
this
.
scrollTop
<=
this
.
clientHeight
if
(
condition
)
{
binding
.
value
()
}
}
)
}
}
}
,
async
created
()
{
// 获取汇率
await
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
...
...
@@ -720,7 +740,10 @@ export default {
//
}
);
// console.log(this.deptData)
}
);
await
getBankAccountPage
(
this
.
params
).
then
((
res
)
=>
(
this
.
bankData
=
res
.
data
.
list
));
await
getBankAccountPage
(
this
.
codePage
).
then
((
res
)
=>
{
this
.
bankData
=
res
.
data
.
list
this
.
pages
=
(
res
.
data
.
total
/
this
.
codePage
.
pageSize
)
+
1
}
);
if
(
this
.
$route
.
query
.
id
)
{
this
.
id
=
this
.
$route
.
query
.
id
;
await
getReceiptInfoByIds
({
id
:
this
.
id
}
).
then
(
res
=>
{
...
...
@@ -811,6 +834,24 @@ export default {
this
.
getList
()
}
,
methods
:
{
// 懒加载
loadmore
()
{
this
.
codePage
.
pageNo
++
// 大于页码不请求了
console
.
log
(
111
)
if
(
this
.
codePage
.
pageNo
>
this
.
pages
)
{
return
}
this
.
getCodeList
()
}
,
getCodeList
()
{
setTimeout
(()
=>
{
getBankAccountPage
(
this
.
codePage
).
then
(
res
=>
{
this
.
bankData
=
this
.
bankData
.
concat
(
res
.
data
.
list
)
this
.
pages
=
(
res
.
data
.
total
/
this
.
codePage
.
pageSize
)
+
1
}
)
}
,
200
)
}
,
rateChange
(
row
,
index
)
{
if
(
row
.
collectionRate
){
row
.
receivableAmount
&&
(
row
.
collectionAmount
=
Math
.
round
(
NP
.
times
(
row
.
collectionRate
||
0
,
NP
.
minus
(
row
.
receivableAmount
,
row
.
discountTotal
||
0
))))
...
...
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