gm-printer 10.38.4 → 10.38.6

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": "10.38.4",
3
+ "version": "10.38.6",
4
4
  "description": "diy printer",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -2,33 +2,6 @@ import EditorStore from '../common/editor_store'
2
2
  import { action, toJS } from 'mobx'
3
3
  import i18next from '../../locales'
4
4
 
5
- const DEFAULT_TABLE_COLUMNS = [
6
- {
7
- head: i18next.t('序号'),
8
- text: i18next.t('{{列.序号}}'),
9
- style: { textAlign: 'center' },
10
- headStyle: { textAlign: 'center' }
11
- },
12
- {
13
- head: i18next.t('样品名称'),
14
- text: i18next.t('{{列.样品名称}}'),
15
- style: { textAlign: 'center' },
16
- headStyle: { textAlign: 'center' }
17
- },
18
- {
19
- head: i18next.t('样品编码'),
20
- text: i18next.t('{{列.样品编码}}'),
21
- style: { textAlign: 'center' },
22
- headStyle: { textAlign: 'center' }
23
- },
24
- {
25
- head: i18next.t('检测结果'),
26
- text: i18next.t('{{列.检测结果}}'),
27
- style: { textAlign: 'center' },
28
- headStyle: { textAlign: 'center' }
29
- }
30
- ]
31
-
32
5
  class Store extends EditorStore {
33
6
  constructor({ defaultTableDataKey }) {
34
7
  super()
@@ -39,7 +12,14 @@ class Store extends EditorStore {
39
12
  return {
40
13
  dataKey: this.defaultTableDataKey,
41
14
  subtotal: { show: false },
42
- columns: DEFAULT_TABLE_COLUMNS
15
+ columns: [
16
+ {
17
+ head: i18next.t('表头'),
18
+ text: i18next.t('{{列.表头}}'),
19
+ style: { textAlign: 'center' },
20
+ headStyle: { textAlign: 'center' }
21
+ }
22
+ ]
43
23
  }
44
24
  }
45
25
 
@@ -51,9 +31,6 @@ class Store extends EditorStore {
51
31
 
52
32
  @action.bound
53
33
  addContent(name, index, type, tableConfig = null) {
54
- if (type === 'table' && !tableConfig) {
55
- tableConfig = this.getDefaultTableConfig()
56
- }
57
34
  super.addContent(name, index, type, tableConfig)
58
35
  this.config = toJS(this.config)
59
36
  }
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,7 +552,8 @@ 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'
555
+ dataKey !== 'taxRateSales' &&
556
+ dataKey !== 'ordinary'
556
557
  ) {
557
558
  return null
558
559
  }