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
b2c19a5f
Commit
b2c19a5f
authored
Aug 10, 2023
by
xiangjiaojunxp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改对比判断的范围
parent
ff02c1aa
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
108196 deletions
+21
-108196
ruoyi-ui/src/views/system/supplies/indexupload.vue
ruoyi-ui/src/views/system/supplies/indexupload.vue
+16
-18
ruoyi-ui/src/views/system/supplies/upload.vue
ruoyi-ui/src/views/system/supplies/upload.vue
+5
-2
sql/hbghgz_sc_20230720.sql
sql/hbghgz_sc_20230720.sql
+0
-108176
No files found.
ruoyi-ui/src/views/system/supplies/indexupload.vue
View file @
b2c19a5f
...
...
@@ -347,11 +347,13 @@ export default {
let
as
=
0
;
let
d1
=
window
.
luckysheet
.
transToData
(
ddd
.
celldata
);
let
d2
=
window
.
luckysheet
.
transToData
(
exportJson
.
sheets
[
0
].
celldata
);
let
r1
=
d1
.
length
,
r2
=
d2
.
length
,
c1
=
d1
[
0
].
length
,
c2
=
d2
[
0
].
length
;
let
row
=
(
r1
<=
r2
)?
r1
:
r2
;
let
cell
=
(
c1
<=
c2
)?
c1
:
c2
;
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
++
)
{
for
(
let
i
=
r
;
i
<
row
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cell
;
j
++
)
{
//第一个表的单元格为null直接跳出
if
(
d1
[
i
][
j
]
==
null
){
continue
...
...
@@ -438,11 +440,7 @@ export default {
type
:
"
success
"
});
}
}
catch
(
err
){
this
.
$message
({
message
:
"
导入失败,导入文件与对比文件有所不匹
"
,
type
:
"
error
"
});
}
}
...
...
ruoyi-ui/src/views/system/supplies/upload.vue
View file @
b2c19a5f
...
...
@@ -244,9 +244,12 @@ export default {
let
as
=
0
;
let
d1
=
window
.
luckysheet
.
transToData
(
ddd
.
celldata
);
let
d2
=
window
.
luckysheet
.
transToData
(
exportJson
.
sheets
[
0
].
celldata
);
let
r1
=
d1
.
length
,
r2
=
d2
.
length
,
c1
=
d1
[
0
].
length
,
c2
=
d2
[
0
].
length
;
let
row
=
(
r1
<=
r2
)?
r1
:
r2
;
let
cell
=
(
c1
<=
c2
)?
c1
:
c2
;
try
{
for
(
let
i
=
0
;
i
<
d1
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
=
d1
[
0
].
length
;
j
++
)
{
for
(
let
i
=
0
;
i
<
row
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cell
;
j
++
)
{
//第一个表的单元格为null直接跳出
if
(
d1
[
i
][
j
]
==
null
){
continue
...
...
sql/hbghgz_sc_20230720.sql
deleted
100644 → 0
View file @
ff02c1aa
This diff is collapsed.
Click to expand it.
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