gm-printer-label 3.3.2 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintcache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/util.js":"1","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/edit_select.js":"2","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/edit.js":"3","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/component.js":"4","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/printer/qrcode.js":"5","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/printer/printer.js":"6","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/printer/index.js":"7","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/printer/block.js":"8","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/printer/batch_printer.js":"9","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/printer/barcode.js":"10","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/store.js":"11","/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/edit_modify_filed.js":"12"},{"size":1977,"mtime":1667378426022,"results":"13","hashOfConfig":"14"},{"size":5505,"mtime":1635767717933,"results":"15","hashOfConfig":"14"},{"size":2694,"mtime":1635767728834,"results":"16","hashOfConfig":"14"},{"size":11621,"mtime":1635767876018,"results":"17","hashOfConfig":"14"},{"size":394,"mtime":1642488443965},{"size":1594,"mtime":1642499397285},{"size":3064,"mtime":1642499124287},{"size":12450,"mtime":1667445782116,"results":"18","hashOfConfig":"14"},{"size":825,"mtime":1642499158040},{"size":548,"mtime":1643102755561},{"size":7909,"mtime":1667295849763,"results":"19","hashOfConfig":"14"},{"size":4786,"mtime":1667289014102,"results":"20","hashOfConfig":"14"},{"filePath":"21","messages":"22","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"18d3ysg",{"filePath":"23","messages":"24","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"25","messages":"26","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/util.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/edit_select.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/edit.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/component.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/printer/block.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/store.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer-label/src/common/editor_compoents/edit_modify_filed.js",[]]
|
package/package.json
CHANGED
|
@@ -88,7 +88,8 @@ class EditModifyFiled extends React.Component {
|
|
|
88
88
|
type === 'rack_barcode' ||
|
|
89
89
|
type === 'delivery_qrcode' ||
|
|
90
90
|
type === 'merchandise_trace_qrcode' ||
|
|
91
|
-
type === 'verification_qrcode'
|
|
91
|
+
type === 'verification_qrcode' ||
|
|
92
|
+
type === 'package_order_qrcode'
|
|
92
93
|
) && (
|
|
93
94
|
<div>
|
|
94
95
|
<Size
|
|
@@ -276,6 +276,19 @@ class EditStore {
|
|
|
276
276
|
}
|
|
277
277
|
})
|
|
278
278
|
break
|
|
279
|
+
case 'package_order_qrcode':
|
|
280
|
+
this.config.blocks.push({
|
|
281
|
+
type,
|
|
282
|
+
package_order_qrcode: i18next.t('{{验货二维码}}'),
|
|
283
|
+
style: {
|
|
284
|
+
position: 'absolute',
|
|
285
|
+
left: '0px',
|
|
286
|
+
top: '0px',
|
|
287
|
+
width: '50px',
|
|
288
|
+
height: '50px'
|
|
289
|
+
}
|
|
290
|
+
})
|
|
291
|
+
break
|
|
279
292
|
default:
|
|
280
293
|
window.alert(i18next.t('出错啦,未识别类型,此信息不应该出现'))
|
|
281
294
|
break
|
|
@@ -245,6 +245,19 @@
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
+
&.gm-printer-label-block-type-package_order_qrcode {
|
|
249
|
+
div[data-packageorderqrcode] {
|
|
250
|
+
outline: 1px solid red;
|
|
251
|
+
|
|
252
|
+
&::before {
|
|
253
|
+
content: attr(data-placeholder);
|
|
254
|
+
position: absolute;
|
|
255
|
+
font-style: italic;
|
|
256
|
+
left: calc(50% - 1.5em);
|
|
257
|
+
top: calc(50% - 0.5em);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
248
261
|
|
|
249
262
|
&.gm-printer-label-block-type-verification_qrcode {
|
|
250
263
|
div[data-verificationqrcode] {
|
package/src/printer/block.js
CHANGED
|
@@ -134,7 +134,8 @@ class Block extends React.Component {
|
|
|
134
134
|
merchandise_trace_qrcode,
|
|
135
135
|
verification_qrcode,
|
|
136
136
|
rack_barcode,
|
|
137
|
-
delivery_qrcode
|
|
137
|
+
delivery_qrcode,
|
|
138
|
+
package_order_qrcode
|
|
138
139
|
},
|
|
139
140
|
data,
|
|
140
141
|
config,
|
|
@@ -461,6 +462,22 @@ class Block extends React.Component {
|
|
|
461
462
|
background='transparent'
|
|
462
463
|
/>
|
|
463
464
|
)
|
|
465
|
+
} else if (type === 'package_order_qrcode') {
|
|
466
|
+
content = isStation ? (
|
|
467
|
+
<QrCode
|
|
468
|
+
value={template(package_order_qrcode, data)}
|
|
469
|
+
size={parseInt(style.height)}
|
|
470
|
+
/>
|
|
471
|
+
) : (
|
|
472
|
+
<div
|
|
473
|
+
data-packageorderqrcode={template(package_order_qrcode, data)}
|
|
474
|
+
data-width={style.width}
|
|
475
|
+
data-height={style.height}
|
|
476
|
+
data-name={index}
|
|
477
|
+
style={{ width: '100%', height: '100%' }}
|
|
478
|
+
data-placeholder='验货二维码'
|
|
479
|
+
/>
|
|
480
|
+
)
|
|
464
481
|
}
|
|
465
482
|
const active = index === selected
|
|
466
483
|
|