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
56d8218a
Commit
56d8218a
authored
Dec 20, 2021
by
季圣华
Browse files
优化采购和商品库存报表的excel导出功能
parent
d315a9b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/report/BuyInReport.vue
View file @
56d8218a
...
@@ -145,11 +145,11 @@
...
@@ -145,11 +145,11 @@
}
}
},
},
exportExcel
()
{
exportExcel
()
{
let
aoa
=
[[
'
条码
'
,
'
名称
'
,
'
规格
'
,
'
型号
'
,
'
扩展信息
'
,
'
单位
'
,
'
进货数量
'
,
'
进货金额
'
,
'
退货数量
'
,
'
退货金额
'
]]
let
aoa
=
[[
'
条码
'
,
'
名称
'
,
'
规格
'
,
'
型号
'
,
'
扩展信息
'
,
'
单位
'
,
'
进货数量
'
,
'
进货金额
'
,
'
退货数量
'
,
'
退货金额
'
,
'
实际采购金额
'
]]
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
let
ds
=
this
.
dataSource
[
i
]
let
ds
=
this
.
dataSource
[
i
]
let
item
=
[
ds
.
barCode
,
ds
.
materialName
,
ds
.
materialStandard
,
ds
.
materialModel
,
ds
.
materialOther
,
ds
.
materialUnit
,
let
item
=
[
ds
.
barCode
,
ds
.
materialName
,
ds
.
materialStandard
,
ds
.
materialModel
,
ds
.
materialOther
,
ds
.
materialUnit
,
ds
.
inSum
,
ds
.
inSumPrice
,
ds
.
outSum
,
ds
.
outSumPrice
]
ds
.
inSum
,
ds
.
inSumPrice
,
ds
.
outSum
,
ds
.
outSumPrice
,
ds
.
inOutSumPrice
]
aoa
.
push
(
item
)
aoa
.
push
(
item
)
}
}
openDownloadDialog
(
sheet2blob
(
aoa
),
'
进货统计
'
)
openDownloadDialog
(
sheet2blob
(
aoa
),
'
进货统计
'
)
...
...
jshERP-web/src/views/report/MaterialStock.vue
View file @
56d8218a
...
@@ -235,7 +235,7 @@
...
@@ -235,7 +235,7 @@
this
.
$refs
.
materialInOutList
.
disableSubmit
=
false
;
this
.
$refs
.
materialInOutList
.
disableSubmit
=
false
;
},
},
exportExcel
()
{
exportExcel
()
{
let
aoa
=
[[
'
条码
'
,
'
名称
'
,
'
规格
'
,
'
型号
'
,
'
颜色
'
,
'
类别
'
,
'
单位
'
,
'
单价
'
,
'
初始库存
'
,
'
当前
库存
'
,
'
当前
库存金额
'
]]
let
aoa
=
[[
'
条码
'
,
'
名称
'
,
'
规格
'
,
'
型号
'
,
'
颜色
'
,
'
类别
'
,
'
单位
'
,
'
单价
'
,
'
初始库存
'
,
'
库存
'
,
'
库存金额
'
]]
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
let
ds
=
this
.
dataSource
[
i
]
let
ds
=
this
.
dataSource
[
i
]
let
item
=
[
ds
.
mBarCode
,
ds
.
name
,
ds
.
standard
,
ds
.
model
,
ds
.
color
,
ds
.
categoryName
,
ds
.
unitName
,
let
item
=
[
ds
.
mBarCode
,
ds
.
name
,
ds
.
standard
,
ds
.
model
,
ds
.
color
,
ds
.
categoryName
,
ds
.
unitName
,
...
...
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