Commit c52fa243 by liuxin

单据识别详细信息暂存

parent e098cc0f
...@@ -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,9 +491,17 @@ export default { ...@@ -488,9 +491,17 @@ 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 () {
//docgrdData, gridPDFData
var temp_docgrdData = JSON.parse(sessionStorage.getItem("docgrdData"));
if(temp_docgrdData != null){
var temp_gridPDFData = JSON.parse(sessionStorage.getItem("gridPDFData"));
this.docgrdData = temp_docgrdData;
this.gridPDFData = temp_gridPDFData;
}else{
var IconList = JSON.parse(sessionStorage.getItem("IconList")); var IconList = JSON.parse(sessionStorage.getItem("IconList"));
if(IconList == null){ if(IconList == null){
IconList = ["invoice","receipt"]; IconList = ["invoice","receipt"];
...@@ -505,6 +516,7 @@ export default { ...@@ -505,6 +516,7 @@ export default {
} }
} }
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));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment