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
fb79e174
Commit
fb79e174
authored
Aug 25, 2022
by
季圣华
Browse files
给出入库明细报表增加税率和税额列
parent
a10fabb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/mixins/JeecgListMixin.js
View file @
fb79e174
...
...
@@ -401,7 +401,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,currentNumber,lowSafeStock,highSafeStock,lowCritical,highCritical,preNeed,debtMoney,backMoney,allNeed
'
'
allPrice,
taxMoney,
currentNumber,lowSafeStock,highSafeStock,lowCritical,highCritical,preNeed,debtMoney,backMoney,allNeed
'
columns
.
forEach
(
column
=>
{
let
{
key
,
dataIndex
}
=
column
if
(
!
[
key
,
dataIndex
].
includes
(
numKey
))
{
...
...
jshERP-web/src/views/report/InDetail.vue
View file @
fb79e174
...
...
@@ -179,13 +179,15 @@
{
title
:
'
名称
'
,
dataIndex
:
'
mname
'
,
width
:
120
,
ellipsis
:
true
},
{
title
:
'
规格
'
,
dataIndex
:
'
standard
'
,
width
:
60
,
ellipsis
:
true
},
{
title
:
'
型号
'
,
dataIndex
:
'
model
'
,
width
:
60
,
ellipsis
:
true
},
{
title
:
'
单位
'
,
dataIndex
:
'
mUnit
'
,
width
:
6
0
,
ellipsis
:
true
},
{
title
:
'
单位
'
,
dataIndex
:
'
mUnit
'
,
width
:
5
0
,
ellipsis
:
true
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
,
sorter
:
(
a
,
b
)
=>
a
.
operNumber
-
b
.
operNumber
,
width
:
60
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
,
sorter
:
(
a
,
b
)
=>
a
.
unitPrice
-
b
.
unitPrice
,
width
:
60
},
{
title
:
'
金额
'
,
dataIndex
:
'
allPrice
'
,
sorter
:
(
a
,
b
)
=>
a
.
allPrice
-
b
.
allPrice
,
width
:
60
},
{
title
:
'
税率(%)
'
,
dataIndex
:
'
taxRate
'
,
width
:
60
},
{
title
:
'
税额
'
,
dataIndex
:
'
taxMoney
'
,
sorter
:
(
a
,
b
)
=>
a
.
taxMoney
-
b
.
taxMoney
,
width
:
60
},
{
title
:
'
供应商
'
,
dataIndex
:
'
sname
'
,
width
:
80
,
ellipsis
:
true
},
{
title
:
'
仓库
'
,
dataIndex
:
'
dname
'
,
width
:
80
,
ellipsis
:
true
},
{
title
:
'
入库日期
'
,
dataIndex
:
'
operTime
'
,
width
:
8
0
},
{
title
:
'
入库日期
'
,
dataIndex
:
'
operTime
'
,
width
:
7
0
},
{
title
:
'
备注
'
,
dataIndex
:
'
newRemark
'
,
width
:
100
,
ellipsis
:
true
}
],
url
:
{
...
...
@@ -244,11 +246,11 @@
}
},
exportExcel
()
{
let
aoa
=
[[
'
单据编号
'
,
'
条码
'
,
'
名称
'
,
'
规格
'
,
'
型号
'
,
'
单位
'
,
'
数量
'
,
'
单价
'
,
'
金额
'
,
'
供应商
'
,
'
仓库
'
,
'
入库日期
'
,
'
备注
'
]]
let
aoa
=
[[
'
单据编号
'
,
'
条码
'
,
'
名称
'
,
'
规格
'
,
'
型号
'
,
'
单位
'
,
'
数量
'
,
'
单价
'
,
'
金额
'
,
'
税率(%)
'
,
'
税额
'
,
'
供应商
'
,
'
仓库
'
,
'
入库日期
'
,
'
备注
'
]]
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
let
ds
=
this
.
dataSource
[
i
]
let
item
=
[
ds
.
number
,
ds
.
barCode
,
ds
.
mname
,
ds
.
standard
,
ds
.
model
,
ds
.
mUnit
,
ds
.
operNumber
,
ds
.
unitPrice
,
ds
.
allPrice
,
ds
.
sname
,
ds
.
dname
,
ds
.
operTime
,
ds
.
newRemark
]
ds
.
allPrice
,
ds
.
taxRate
,
ds
.
taxMoney
,
ds
.
sname
,
ds
.
dname
,
ds
.
operTime
,
ds
.
newRemark
]
aoa
.
push
(
item
)
}
openDownloadDialog
(
sheet2blob
(
aoa
),
'
入库明细
'
)
...
...
jshERP-web/src/views/report/OutDetail.vue
View file @
fb79e174
...
...
@@ -179,13 +179,15 @@
{
title
:
'
名称
'
,
dataIndex
:
'
mname
'
,
width
:
120
,
ellipsis
:
true
},
{
title
:
'
规格
'
,
dataIndex
:
'
standard
'
,
width
:
60
,
ellipsis
:
true
},
{
title
:
'
型号
'
,
dataIndex
:
'
model
'
,
width
:
60
,
ellipsis
:
true
},
{
title
:
'
单位
'
,
dataIndex
:
'
mUnit
'
,
width
:
6
0
,
ellipsis
:
true
},
{
title
:
'
单位
'
,
dataIndex
:
'
mUnit
'
,
width
:
5
0
,
ellipsis
:
true
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
,
sorter
:
(
a
,
b
)
=>
a
.
operNumber
-
b
.
operNumber
,
width
:
60
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
,
sorter
:
(
a
,
b
)
=>
a
.
operNumber
-
b
.
operNumber
,
width
:
60
},
{
title
:
'
金额
'
,
dataIndex
:
'
allPrice
'
,
sorter
:
(
a
,
b
)
=>
a
.
operNumber
-
b
.
operNumber
,
width
:
60
},
{
title
:
'
税率(%)
'
,
dataIndex
:
'
taxRate
'
,
width
:
60
},
{
title
:
'
税额
'
,
dataIndex
:
'
taxMoney
'
,
sorter
:
(
a
,
b
)
=>
a
.
taxMoney
-
b
.
taxMoney
,
width
:
60
},
{
title
:
'
客户
'
,
dataIndex
:
'
sname
'
,
width
:
80
,
ellipsis
:
true
},
{
title
:
'
仓库
'
,
dataIndex
:
'
dname
'
,
width
:
80
,
ellipsis
:
true
},
{
title
:
'
出库日期
'
,
dataIndex
:
'
operTime
'
,
width
:
8
0
},
{
title
:
'
出库日期
'
,
dataIndex
:
'
operTime
'
,
width
:
7
0
},
{
title
:
'
备注
'
,
dataIndex
:
'
newRemark
'
,
width
:
100
,
ellipsis
:
true
}
],
url
:
{
...
...
@@ -244,11 +246,11 @@
}
},
exportExcel
()
{
let
aoa
=
[[
'
单据编号
'
,
'
条码
'
,
'
名称
'
,
'
规格
'
,
'
型号
'
,
'
单位
'
,
'
数量
'
,
'
单价
'
,
'
金额
'
,
'
客户
'
,
'
仓库
'
,
'
出库日期
'
,
'
备注
'
]]
let
aoa
=
[[
'
单据编号
'
,
'
条码
'
,
'
名称
'
,
'
规格
'
,
'
型号
'
,
'
单位
'
,
'
数量
'
,
'
单价
'
,
'
金额
'
,
'
税率(%)
'
,
'
税额
'
,
'
客户
'
,
'
仓库
'
,
'
出库日期
'
,
'
备注
'
]]
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
let
ds
=
this
.
dataSource
[
i
]
let
item
=
[
ds
.
number
,
ds
.
barCode
,
ds
.
mname
,
ds
.
standard
,
ds
.
model
,
ds
.
mUnit
,
ds
.
operNumber
,
ds
.
unitPrice
,
ds
.
allPrice
,
ds
.
sname
,
ds
.
dname
,
ds
.
operTime
,
ds
.
newRemark
]
ds
.
allPrice
,
ds
.
taxRate
,
ds
.
taxMoney
,
ds
.
sname
,
ds
.
dname
,
ds
.
operTime
,
ds
.
newRemark
]
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