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
dd585d59
Commit
dd585d59
authored
Aug 07, 2023
by
xiangjiaojunxp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对比修改
parent
2be5322f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
ruoyi-ui/src/views/system/supplies/indexupload.vue
ruoyi-ui/src/views/system/supplies/indexupload.vue
+8
-4
ruoyi-ui/src/views/system/supplies/upload.vue
ruoyi-ui/src/views/system/supplies/upload.vue
+8
-6
No files found.
ruoyi-ui/src/views/system/supplies/indexupload.vue
View file @
dd585d59
...
...
@@ -368,12 +368,14 @@ export default {
let
as
=
0
;
let
d1
=
window
.
luckysheet
.
transToData
(
ddd
.
celldata
);
let
d2
=
window
.
luckysheet
.
transToData
(
exportJson
.
sheets
[
0
].
celldata
);
debugger
let
fdbh
=
isNaN
(
d1
[
6
][
23
].
v
);
let
fdbh1
=
isNaN
(
d1
[
6
][
24
].
v
);
let
array
=
[];
let
r
=
this
.
row
-
1
;
try
{
for
(
let
i
=
r
;
i
<
d1
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<=
d1
[
0
].
length
;
j
++
)
{
debugger
//第一个表的单元格为null直接跳出
if
(
d1
[
i
][
j
]
==
null
){
continue
...
...
@@ -391,12 +393,14 @@ export default {
continue
}
// 第一个表内数据为string型 且 第二个表只有样式内部为空
if
((
typeof
(
d1
[
i
][
j
].
v
)
==
"
string
"
&&
d2
[
i
][
j
].
v
==
undefined
)){
/*if((typeof(d1[i][j].v)=="string" && d2[i][j].v==undefined)){
continue
}*/
if
((
isNaN
(
d1
[
i
][
j
].
v
)
&&
d2
[
i
][
j
].
v
==
undefined
)){
continue
}
// 第二个表内数据为string型 且 第一个表只有样式内部为空
if
(
(
typeof
(
d2
[
i
][
j
].
v
)
==
"
string
"
&&
d1
[
i
][
j
].
v
==
undefined
)
){
if
(
isNaN
(
d2
[
i
][
j
].
v
)
&&
d1
[
i
][
j
].
v
==
undefined
){
continue
}
// 没有选只比较数值 且 第一个表内数据为string型 且 第二个表内数据位string型
...
...
ruoyi-ui/src/views/system/supplies/upload.vue
View file @
dd585d59
...
...
@@ -79,7 +79,7 @@ export default {
data
()
{
return
{
row
:
''
,
numm
:
tru
e
,
numm
:
fals
e
,
//弹出页面的表名
// 是否显示弹出层
fileList
:[],
...
...
@@ -116,7 +116,7 @@ export default {
//刷新luckysheet表格
this
.
init
();
map
.
clear
();
this
.
numm
=
tru
e
;
this
.
numm
=
fals
e
;
},
/** Luckyexcel文档 */
init
()
{
...
...
@@ -262,16 +262,18 @@ export default {
continue
}
// 第一个表内数据为string型 且 第二个表只有样式内部为空
if
((
typeof
(
d1
[
i
][
j
].
v
)
==
"
string
"
&&
d2
[
i
][
j
].
v
==
undefined
)){
/*if((typeof(d1[i][j].v)=="string" && d2[i][j].v==undefined)){
continue
}*/
if
((
isNaN
(
d1
[
i
][
j
].
v
)
&&
d2
[
i
][
j
].
v
==
undefined
)){
continue
}
// 第二个表内数据为string型 且 第一个表只有样式内部为空
if
(
(
typeof
(
d2
[
i
][
j
].
v
)
==
"
string
"
&&
d1
[
i
][
j
].
v
==
undefined
)
){
if
(
isNaN
(
d2
[
i
][
j
].
v
)
&&
d1
[
i
][
j
].
v
==
undefined
){
continue
}
// 没有选只比较数值 且 第一个表内数据为string型 且 第二个表内数据位string型
if
(
this
.
numm
!=
false
&&
typeof
(
d1
[
i
][
j
].
v
)
==
"
string
"
&&
typeof
(
d2
[
i
][
j
].
v
)
==
"
string
"
){
if
(
this
.
numm
!=
false
&&
(
typeof
(
d1
[
i
][
j
].
v
)
==
"
string
"
&&
typeof
(
d2
[
i
][
j
].
v
)
==
"
string
"
)
){
continue
;
}
// 两个表的值都是0
...
...
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