|
|
@@ -151,18 +151,9 @@
|
|
|
url: 'rpt/rpt042/rpt_index.html?startBarcodeTimer=true',
|
|
|
closable: true
|
|
|
});
|
|
|
- const now = new Date();
|
|
|
- const formatter = new Intl.DateTimeFormat('zh-CN', {
|
|
|
- year: 'numeric',
|
|
|
- month: '2-digit',
|
|
|
- day: '2-digit',
|
|
|
- hour: '2-digit',
|
|
|
- minute: '2-digit',
|
|
|
- second: '2-digit',
|
|
|
- hour12: false
|
|
|
- });
|
|
|
+
|
|
|
//创建储存条码对象
|
|
|
- const bar = { barcode: barcode, createtime: formatter.format(now).replace(/\//g, '-') };
|
|
|
+ const bar = { barcode: barcode };
|
|
|
//放入浏览器缓存中
|
|
|
sessionStorage.setItem('bar', JSON.stringify(bar));
|
|
|
}
|