Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
位宇华
klck
Commits
19107c82
Commit
19107c82
authored
Aug 04, 2023
by
xiangjiaojunxp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
be91e179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
33 deletions
+41
-33
ruoyi-ui/src/views/system/supplies/indexupload.vue
ruoyi-ui/src/views/system/supplies/indexupload.vue
+41
-33
No files found.
ruoyi-ui/src/views/system/supplies/indexupload.vue
View file @
19107c82
...
...
@@ -297,56 +297,64 @@ export default {
name1
=
exportJson
.
sheets
[
0
].
name
;
let
array
=
[];
let
r
=
this
.
row
-
1
;
for
(
let
i
=
r
;
i
<
d1
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<=
d1
[
0
].
length
;
j
++
)
{
try
{
for
(
let
i
=
r
;
i
<
d1
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<=
d1
[
0
].
length
;
j
++
)
{
if
(
d1
[
i
][
j
]
===
null
){
break
}
if
(
d1
[
i
][
j
].
m
===
undefined
&&
d2
[
i
][
j
].
m
===
undefined
){
if
(
d1
[
i
][
j
]
===
null
){
break
}
if
(
d1
[
i
][
j
].
m
===
undefined
&&
d2
[
i
][
j
].
m
===
undefined
){
}
else
if
(
d1
[
i
][
j
].
m
===
undefined
||
d2
[
i
][
j
].
m
===
undefined
){
luckysheet
.
setCellValue
(
i
,
j
,
{
bg
:
"
#FF0000
"
})
as
++
array
.
push
([
i
,
j
]);
}
else
{
if
(
d1
[
i
][
j
].
m
!==
d2
[
i
][
j
].
m
)
{
}
else
if
(
d1
[
i
][
j
].
m
===
undefined
||
d2
[
i
][
j
].
m
===
undefined
){
luckysheet
.
setCellValue
(
i
,
j
,
{
bg
:
"
#FF0000
"
})
//查看是否有标签
/*luckysheet.setCellValue(i, j, {
ps: { //批注
"left": 92, //批注框左边距
"top": 10, //批注框上边距
"width": 91, //批注框宽度
"height": 48, //批注框高度
"value": this.dep+"表有误", //批准内容
"isshow": false //批注框为显示状态
}
})*/
as
++
array
.
push
([
i
,
j
]);
}
else
{
if
(
d1
[
i
][
j
].
m
!==
d2
[
i
][
j
].
m
)
{
luckysheet
.
setCellValue
(
i
,
j
,
{
bg
:
"
#FF0000
"
})
//查看是否有标签
/*luckysheet.setCellValue(i, j, {
ps: { //批注
"left": 92, //批注框左边距
"top": 10, //批注框上边距
"width": 91, //批注框宽度
"height": 48, //批注框高度
"value": this.dep+"表有误", //批准内容
"isshow": false //批注框为显示状态
}
})*/
as
++
array
.
push
([
i
,
j
]);
}
}
}
}
}
map
.
set
(
name1
,
array
);
if
(
as
>
0
){
this
.
$message
({
message
:
"
导入完成,本次导入共发现
"
+
as
+
"
条不同数据
"
,
type
:
"
warning
"
});
}
else
{
map
.
set
(
name1
,
array
);
if
(
as
>
0
){
this
.
$message
({
message
:
"
导入完成,本次导入共发现
"
+
as
+
"
条不同数据
"
,
type
:
"
warning
"
});
}
else
{
this
.
$message
({
message
:
"
导入完成,本次导入未发现不同数据
"
,
type
:
"
success
"
});
}
}
catch
(
err
){
this
.
$message
({
message
:
"
导入
完成,本次导入未发现不同数据
"
,
type
:
"
success
"
});
message
:
"
导入
失败,导入文件与对比文件有所不匹
"
,
type
:
"
error
"
});
}
}
)
},
/** 导出设置 */
handleExport
:
debounce
(
function
()
{
// 处理点击事件
exportExcel
(
luckysheet
.
getAllSheets
(),
fileName
)
exportExcel
(
luckysheet
.
getAllSheets
(),
fileName
+
"
(对比后数据)
"
)
},
500
),
// 设置延迟时间,单位为毫秒
}
// 配置项111
...
...
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