Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
c52fa243
Commit
c52fa243
authored
May 16, 2022
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单据识别详细信息暂存
parent
e098cc0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
13 deletions
+26
-13
Docpre.vue
src/views/Business/Ditdck/Docpre.vue
+26
-13
No files found.
src/views/Business/Ditdck/Docpre.vue
View file @
c52fa243
...
@@ -450,6 +450,7 @@ export default {
...
@@ -450,6 +450,7 @@ export default {
}
}
}
}
this
.
docgrdData
=
tempData
;
this
.
docgrdData
=
tempData
;
sessionStorage
.
setItem
(
'docgrdData'
,
JSON
.
stringify
(
this
.
docgrdData
));
},
},
arraySpanMethod
({
row
,
column
,
rowIndex
,
columnIndex
})
{
arraySpanMethod
({
row
,
column
,
rowIndex
,
columnIndex
})
{
if
(
this
.
docgrdData
[
rowIndex
].
states
)
{
if
(
this
.
docgrdData
[
rowIndex
].
states
)
{
...
@@ -462,6 +463,7 @@ export default {
...
@@ -462,6 +463,7 @@ export default {
this
.
docgrdData
.
splice
(
index
,
1
);
this
.
docgrdData
.
splice
(
index
,
1
);
this
.
docgrdData
[
index
-
1
].
state
=
"符合"
this
.
docgrdData
[
index
-
1
].
state
=
"符合"
}
}
sessionStorage
.
setItem
(
'docgrdData'
,
JSON
.
stringify
(
this
.
docgrdData
));
},
},
InsertErrorDialog
(
index
){
InsertErrorDialog
(
index
){
this
.
InsertErrorDialogVisibal
=
true
;
this
.
InsertErrorDialogVisibal
=
true
;
...
@@ -475,6 +477,7 @@ export default {
...
@@ -475,6 +477,7 @@ export default {
this
.
docgrdData
[
this
.
newInsertErrorIndex
].
list
.
push
(
temp
);
this
.
docgrdData
[
this
.
newInsertErrorIndex
].
list
.
push
(
temp
);
this
.
newInsertError
=
""
;
this
.
newInsertError
=
""
;
this
.
InsertErrorDialogVisibal
=
false
;
this
.
InsertErrorDialogVisibal
=
false
;
sessionStorage
.
setItem
(
'docgrdData'
,
JSON
.
stringify
(
this
.
docgrdData
));
},
},
addDocgrdDataStore
(){
addDocgrdDataStore
(){
this
.
InsertGridDataDialogVisibal
=
true
;
this
.
InsertGridDataDialogVisibal
=
true
;
...
@@ -488,23 +491,32 @@ export default {
...
@@ -488,23 +491,32 @@ export default {
this
.
docgrdData
.
push
(
this
.
dialog
);
this
.
docgrdData
.
push
(
this
.
dialog
);
this
.
InsertGridDataDialogVisibal
=
false
;
this
.
InsertGridDataDialogVisibal
=
false
;
this
.
newInsertGridData
=
""
;
this
.
newInsertGridData
=
""
;
sessionStorage
.
setItem
(
'docgrdData'
,
JSON
.
stringify
(
this
.
docgrdData
));
}
}
},
},
created
:
function
()
{
created
:
function
()
{
var
IconList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"IconList"
));
//docgrdData, gridPDFData
if
(
IconList
==
null
){
var
temp_docgrdData
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"docgrdData"
));
IconList
=
[
"invoice"
,
"receipt"
];
if
(
temp_docgrdData
!=
null
){
}
var
temp_gridPDFData
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"gridPDFData"
));
var
list
=
[];
this
.
docgrdData
=
temp_docgrdData
;
for
(
let
i
=
0
;
i
<
IconList
.
length
;
i
++
){
this
.
gridPDFData
=
temp_gridPDFData
;
for
(
let
j
=
0
;
j
<
this
.
docgrdDataStore
.
length
;
j
++
){
}
else
{
if
(
IconList
[
i
]
==
this
.
docgrdDataStore
[
j
].
id
){
var
IconList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"IconList"
));
list
.
push
(
this
.
docgrdDataStore
[
j
]);
if
(
IconList
==
null
){
break
;
IconList
=
[
"invoice"
,
"receipt"
];
}
}
}
var
list
=
[];
for
(
let
i
=
0
;
i
<
IconList
.
length
;
i
++
){
for
(
let
j
=
0
;
j
<
this
.
docgrdDataStore
.
length
;
j
++
){
if
(
IconList
[
i
]
==
this
.
docgrdDataStore
[
j
].
id
){
list
.
push
(
this
.
docgrdDataStore
[
j
]);
break
;
}
}
}
this
.
docgrdData
=
list
;
}
}
this
.
docgrdData
=
list
;
},
},
computed
:{
computed
:{
},
},
...
@@ -522,6 +534,7 @@ export default {
...
@@ -522,6 +534,7 @@ export default {
// }
// }
}
}
this
.
gridPDFData
=
arr
;
this
.
gridPDFData
=
arr
;
sessionStorage
.
setItem
(
'gridPDFData'
,
JSON
.
stringify
(
this
.
gridPDFData
));
}
}
}
}
}
}
...
...
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