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
1aa99a44
Commit
1aa99a44
authored
Jul 13, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款单bug修复
parent
960d6e05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
28 deletions
+58
-28
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+58
-28
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
1aa99a44
...
...
@@ -720,7 +720,10 @@ export default {
loading1
:
false
,
uploadFileUrl
:
process
.
env
.
VUE_APP_BASE_API
+
"
/app-api/file/upload
"
,
// 上传的图片服务器地址
form
:
{
receiptAccountList
:
[]
receiptAccountList
:
[],
departmentId
:
''
,
salesmanId
:
''
,
salesmanName
:
''
}
,
creatorData
:
[],
list
:
[],
...
...
@@ -754,7 +757,9 @@ export default {
currencyList
:
[],
saveBtnLoading
:
false
,
discountVisible
:
false
,
discountForm
:
{
}
,
discountForm
:
{
author
:
''
}
,
selectListRow
:
{
}
,
selectListIndex
:
0
,
flag
:
false
,
...
...
@@ -773,39 +778,43 @@ export default {
userInfo
:
null
}
;
}
,
activated
(){
if
(
this
.
$route
.
query
.
id
)
{
this
.
flag
=
true
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
getReceivableData
()
async
activated
(){
let
that
=
this
;
await
getUserProfile
().
then
(
res
=>
that
.
userInfo
=
res
.
data
)
if
(
that
.
$route
.
query
.
id
)
{
that
.
flag
=
true
that
.
id
=
that
.
$route
.
query
.
id
;
that
.
getReceivableData
()
}
else
{
this
.
discountForm
.
author
=
this
.
userInfo
.
username
this
.
form
.
departmentId
=
this
.
userInfo
.
deptId
this
.
form
.
salesmanId
=
this
.
userInfo
.
id
that
.
removeData
()
that
.
$set
(
that
.
form
,
'
departmentId
'
,
that
.
userInfo
.
deptId
)
that
.
$set
(
that
.
discountForm
,
'
author
'
,
that
.
userInfo
.
nickname
)
that
.
$set
(
that
.
form
,
'
salesmanId
'
,
that
.
userInfo
.
id
)
that
.
$set
(
that
.
form
,
'
salesmanName
'
,
that
.
userInfo
.
nickname
)
}
if
(
th
is
.
$route
.
query
.
receiptId
&&
this
.
$route
.
query
.
receiptId
!=
0
)
{
if
(
th
at
.
$route
.
query
.
receiptId
&&
that
.
$route
.
query
.
receiptId
!=
0
)
{
th
is
.
receiptId
=
this
.
$route
.
query
.
receiptId
;
th
is
.
getReceivableInfo
()
th
at
.
receiptId
=
that
.
$route
.
query
.
receiptId
;
th
at
.
getReceivableInfo
()
}
else
{
this
.
removeData
()
// that
.removeData()
}
if
(
th
is
.
$route
.
query
.
orderId
)
{
getReceivableByOrderId
({
orderId
:
th
is
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
th
is
.
list
=
[...
response
.
data
]
th
is
.
list
.
map
(
v
=>
{
if
(
th
at
.
$route
.
query
.
orderId
)
{
getReceivableByOrderId
({
orderId
:
th
at
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
th
at
.
list
=
[...
response
.
data
]
th
at
.
list
.
map
(
v
=>
{
if
(
!
v
.
taxPoint
){
v
.
taxAmount
=
v
.
totalAmount
}
}
)
th
is
.
calculation
()
getOrder
(
th
is
.
$route
.
query
.
orderId
).
then
(
response
=>
{
th
at
.
calculation
()
getOrder
(
th
at
.
$route
.
query
.
orderId
).
then
(
response
=>
{
// console.log(response.data)
if
(
response
.
data
.
customerId
)
th
is
.
$set
(
this
.
form
,
'
customerId
'
,
response
.
data
.
customerId
)
if
(
response
.
data
.
customerId
)
th
at
.
$set
(
that
.
form
,
'
customerId
'
,
response
.
data
.
customerId
)
}
)
getDestCountryByOrderId
({
orderId
:
th
is
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
getDestCountryByOrderId
({
orderId
:
th
at
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
// console.log(response.data)
if
(
response
.
data
)
th
is
.
$set
(
this
.
queryParams
,
'
destCountry
'
,
response
.
data
)
if
(
response
.
data
)
th
at
.
$set
(
that
.
queryParams
,
'
destCountry
'
,
response
.
data
)
}
)
}
)
}
...
...
@@ -856,9 +865,10 @@ export default {
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
getReceivableData
()
}
else
{
this
.
discountForm
.
author
=
this
.
userInfo
.
user
name
this
.
discountForm
.
author
=
this
.
userInfo
.
nick
name
this
.
form
.
departmentId
=
this
.
userInfo
.
deptId
this
.
form
.
salesmanId
=
this
.
userInfo
.
id
this
.
$set
(
this
.
form
,
'
salesmanName
'
,
this
.
userInfo
.
nickname
)
}
if
(
that
.
$route
.
query
.
receiptId
&&
that
.
$route
.
query
.
receiptId
!==
'
0
'
)
{
this
.
receiptId
=
this
.
$route
.
query
.
receiptId
;
...
...
@@ -955,9 +965,10 @@ export default {
getReceiptInfoByIds
({
id
:
this
.
id
}
).
then
(
res
=>
{
if
(
res
.
data
.
rateValidateDate
)
res
.
data
.
rateValidateDate
=
dayjs
(
res
.
data
.
rateValidateDate
).
format
(
'
YYYY-MM-DD HH:mm:ss
'
)
this
.
form
=
Object
.
assign
({
}
,
this
.
form
,
res
.
data
)
this
.
discountForm
.
author
=
this
.
userInfo
.
user
name
this
.
discountForm
.
author
=
this
.
userInfo
.
nick
name
if
(
!
this
.
form
.
departmentId
)
this
.
form
.
departmentId
=
this
.
userInfo
.
deptId
if
(
!
this
.
form
.
salesmanId
)
this
.
form
.
salesmanId
=
this
.
userInfo
.
id
if
(
!
this
.
form
.
salesmanName
)
this
.
$set
(
this
.
form
,
'
salesmanName
'
,
this
.
userInfo
.
nickname
)
}
)
getInvoicingItem
({
id
:
this
.
id
}
).
then
(
res
=>
{
this
.
list
=
[...
res
.
data
]
...
...
@@ -1055,11 +1066,12 @@ export default {
return
''
}
,
writeOffRateChange
(
row
,
index
)
{
if
(
parseInt
(
row
.
writeOffRate
)
===
0
){
if
(
row
.
writeOffRate
==
0
&&
parseInt
(
row
.
writeOffRate
)
===
0
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
汇率不能为0,请输入正确的汇率
'
));
}
if
(
row
.
writeOffRate
){
row
.
writeOffAmount
=
Math
.
round
(
NP
.
times
(
row
.
writeOffRate
||
0
,
NP
.
minus
(
row
.
receivableAmount
,
row
.
discountTotal
)))
row
.
writeOffAmount
=
Math
.
round
(
NP
.
times
(
row
.
writeOffRate
||
0
,
NP
.
minus
(
row
.
receivableAmount
,
row
.
discountTotal
||
0
)))
}
else
{
row
.
writeOffAmount
=
''
}
...
...
@@ -1068,7 +1080,7 @@ export default {
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
writeOffAmount
=
writeOffAmountTotal
}
,
rateChange
(
row
,
index
)
{
if
(
parseInt
(
row
.
collectionRate
)
===
0
){
if
(
row
.
collectionRate
==
0
&&
parseInt
(
row
.
collectionRate
)
===
0
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
汇率不能为0,请输入正确的汇率
'
));
}
if
(
row
.
collectionRate
){
...
...
@@ -1446,11 +1458,20 @@ export default {
// params.receiptAccountList.length = params.receiptAccountList.length - 1
var
saveStatus
=
true
var
writeStatus
=
true
var
reatStatus
=
true
params
.
receiptAccountList
.
forEach
(
v
=>
{
if
(
v
.
type
!=
'
total
'
){
if
(
!
v
.
platformAccountId
){
saveStatus
=
false
}
if
(
!
v
.
writeOffRate
){
writeStatus
=
false
}
if
(
!
v
.
collectionRate
){
reatStatus
=
false
}
var
bankname
=
this
.
bankData
.
filter
(
item
=>
item
.
id
==
v
.
platformAccountId
)
if
(
bankname
.
length
>
0
){
v
.
platformAccountName
=
bankname
[
0
].
baAccountName
...
...
@@ -1461,10 +1482,19 @@ export default {
v
.
writeOffRate
=
Number
(
v
.
writeOffRate
)
}
}
)
if
(
!
writeStatus
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
核销基准币种汇率不能为0,请输入正确的汇率
'
));
return
}
if
(
!
saveStatus
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
请添加收款账户
'
));
return
}
if
(
!
reatStatus
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
期望收款汇率不能为0,请输入正确的汇率
'
));
return
}
delete
params
.
receivableDetail
...
...
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