|
@@ -178,6 +178,9 @@ export default {
|
|
|
},
|
|
|
handleBlur1 (val){
|
|
|
sessionStorage.setItem('li_code',val);
|
|
|
+ this.$cookie.set("PRODLI_CODE", val, {
|
|
|
+ expires: 30,
|
|
|
+ });
|
|
|
location.reload();
|
|
|
},
|
|
|
getLines (){
|
|
@@ -189,15 +192,14 @@ export default {
|
|
|
(res)=>{
|
|
|
if(res.data.linedata) {
|
|
|
const data = res.data.linedata;
|
|
|
- sessionStorage.setItem('li_code', data[0].LI_CODE);
|
|
|
- /*if(this.$cookie.get("SMT_LI_CODE") && data.some(item => item.LI_CODE === this.$cookie.get("SMT_LI_CODE")) ){
|
|
|
- sessionStorage.setItem('li_code', this.$cookie.get("SMT_LI_CODE"));
|
|
|
+ if(this.$cookie.get("PRODLI_CODE") && data.some(item => item.LI_CODE === this.$cookie.get("PRODLI_CODE")) ){
|
|
|
+ sessionStorage.setItem('li_code', this.$cookie.get("PRODLI_CODE"));
|
|
|
}else {
|
|
|
sessionStorage.setItem('li_code', data[0].LI_CODE);
|
|
|
- this.$cookie.set("SMT_LI_CODE", data[0].LI_CODE, {
|
|
|
+ this.$cookie.set("PRODLI_CODE", data[0].LI_CODE, {
|
|
|
expires: 30,
|
|
|
});
|
|
|
- }*/
|
|
|
+ }
|
|
|
this.linedata = data;
|
|
|
}else{
|
|
|
sessionStorage.setItem('li_code','');
|