gm-printer 11.0.2-beta.0 → 11.0.2-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-printer",
3
- "version": "11.0.2-beta.0",
3
+ "version": "11.0.2-beta.2",
4
4
  "description": "diy printer",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -39,7 +39,14 @@ class Store extends EditorStore {
39
39
  return {
40
40
  dataKey: this.defaultTableDataKey,
41
41
  subtotal: { show: false },
42
- columns: DEFAULT_TABLE_COLUMNS
42
+ columns: [
43
+ {
44
+ head: i18next.t('表头'),
45
+ text: i18next.t('{{列.表头}}'),
46
+ style: { textAlign: 'center' },
47
+ headStyle: { textAlign: 'center' }
48
+ }
49
+ ]
43
50
  }
44
51
  }
45
52
 
@@ -51,9 +58,6 @@ class Store extends EditorStore {
51
58
 
52
59
  @action.bound
53
60
  addContent(name, index, type, tableConfig = null) {
54
- if (type === 'table' && !tableConfig) {
55
- tableConfig = this.getDefaultTableConfig()
56
- }
57
61
  super.addContent(name, index, type, tableConfig)
58
62
  this.config = toJS(this.config)
59
63
  }
package/src/index.js CHANGED
@@ -3,7 +3,7 @@ import '../locales'
3
3
  import Editor, { Editor2 } from './editor'
4
4
 
5
5
  import EditorPurchase from './editor_purchase'
6
- import examiningReportEditor from './examining_report_editor'
6
+ import EditorExaminingReport from './examining_report_editor'
7
7
  import EditorStockIn from './editor_stockin'
8
8
  import EditorStockOut from './editor_stockout'
9
9
  import EditorSettle from './editor_settle'
@@ -33,7 +33,7 @@ export {
33
33
  EditorStockIn,
34
34
  EditorStockOut,
35
35
  EditorPurchase,
36
- examiningReportEditor,
36
+ EditorExaminingReport,
37
37
  EditorSettle,
38
38
  EditorStatement,
39
39
  EditorAccoutStatement,
@@ -552,8 +552,7 @@ class PrinterStore {
552
552
  dataKey !== 'purchase_detail_one_row' &&
553
553
  dataKey !== 'purchase_independent_rol_sku' &&
554
554
  dataKey !== 'purchase_independent_rol_address' &&
555
- dataKey !== 'taxRateSales' &&
556
- dataKey !== 'ordinary'
555
+ dataKey !== 'taxRateSales'
557
556
  ) {
558
557
  return null
559
558
  }