Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
86a78799
Commit
86a78799
authored
Nov 20, 2022
by
季圣华
Browse files
优化客户和供应商对账单,扣除退货单的欠款金额
parent
6e49ae84
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/mixins/JeecgListMixin.js
View file @
86a78799
...
...
@@ -403,7 +403,7 @@ export const JeecgListMixin = {
let
parseCols
=
'
initialStock,currentStock,currentStockPrice,initialAmount,thisMonthAmount,currentAmount,inSum,inSumPrice,
'
+
'
inOutSumPrice,outSum,outSumPrice,outInSumPrice,operNumber,allPrice,numSum,priceSum,prevSum,thisSum,thisAllPrice,changeAmount,
'
+
'
allPrice,taxMoney,currentNumber,lowSafeStock,highSafeStock,lowCritical,highCritical,preNeed,debtMoney,backMoney,allNeed,
'
+
'
needDebt,finishDebt,debt
'
'
needDebt,
realNeedDebt,
finishDebt,debt
'
columns
.
forEach
(
column
=>
{
let
{
key
,
dataIndex
}
=
column
if
(
!
[
key
,
dataIndex
].
includes
(
numKey
))
{
...
...
jshERP-web/src/views/report/modules/DebtAccountList.vue
View file @
86a78799
...
...
@@ -50,6 +50,12 @@
<span
slot=
"numberCustomRender"
slot-scope=
"text, record"
>
<a
@
click=
"myHandleDetail(record)"
>
{{record.number}}
</a>
</span>
<span
slot=
"customTitle"
>
实际欠款
<a-tooltip
title=
"实际欠款=本单欠款-退货单欠款(主要针对存在退货的情况)"
>
<a-icon
type=
"question-circle"
/>
</a-tooltip>
</span>
</a-table>
</section>
<!-- table区域-end -->
...
...
@@ -117,7 +123,10 @@
},
{
title
:
'
单据日期
'
,
dataIndex
:
'
operTimeStr
'
,
width
:
130
},
{
title
:
'
操作员
'
,
dataIndex
:
'
userName
'
,
width
:
60
},
{
title
:
'
欠款
'
,
dataIndex
:
'
needDebt
'
,
width
:
70
},
{
title
:
'
本单欠款
'
,
dataIndex
:
'
needDebt
'
,
width
:
70
},
{
dataIndex
:
'
realNeedDebt
'
,
width
:
80
,
slots
:
{
title
:
'
customTitle
'
}
},
{
title
:
'
已收欠款
'
,
dataIndex
:
'
finishDebt
'
,
width
:
70
},
{
title
:
'
待收欠款
'
,
dataIndex
:
'
debt
'
,
width
:
70
}
],
...
...
@@ -143,11 +152,11 @@
this
.
queryParam
.
endTime
=
endTime
this
.
columns
[
2
].
title
=
organType
if
(
type
===
'
入库
'
)
{
this
.
columns
[
7
].
title
=
'
已付欠款
'
this
.
columns
[
8
].
title
=
'
待付欠款
'
this
.
columns
[
8
].
title
=
'
已付欠款
'
this
.
columns
[
9
].
title
=
'
待付欠款
'
}
else
if
(
type
===
'
出库
'
)
{
this
.
columns
[
7
].
title
=
'
已收欠款
'
this
.
columns
[
8
].
title
=
'
待收欠款
'
this
.
columns
[
8
].
title
=
'
已收欠款
'
this
.
columns
[
9
].
title
=
'
待收欠款
'
}
this
.
model
=
Object
.
assign
({},
{});
this
.
visible
=
true
;
...
...
@@ -174,10 +183,10 @@
console
.
log
(
value
);
},
exportExcel
()
{
let
aoa
=
[[
'
单据编号
'
,
this
.
columns
[
2
].
title
,
'
商品信息
'
,
'
单据日期
'
,
'
操作员
'
,
'
欠款
'
,
'
已收欠款
'
,
'
待收欠款
'
]]
let
aoa
=
[[
'
单据编号
'
,
this
.
columns
[
2
].
title
,
'
商品信息
'
,
'
单据日期
'
,
'
操作员
'
,
'
本单欠款
'
,
'
实际
欠款
'
,
'
已收欠款
'
,
'
待收欠款
'
]]
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
let
ds
=
this
.
dataSource
[
i
]
let
item
=
[
ds
.
number
,
ds
.
organName
,
ds
.
materialsList
,
ds
.
operTimeStr
,
ds
.
userName
,
ds
.
needDebt
,
ds
.
finishDebt
,
ds
.
debt
]
let
item
=
[
ds
.
number
,
ds
.
organName
,
ds
.
materialsList
,
ds
.
operTimeStr
,
ds
.
userName
,
ds
.
needDebt
,
ds
.
realNeedDebt
,
ds
.
finishDebt
,
ds
.
debt
]
aoa
.
push
(
item
)
}
openDownloadDialog
(
sheet2blob
(
aoa
),
'
欠款详情
'
)
...
...
Write
Preview
Supports
Markdown
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