gm-printer 10.38.5 → 10.38.7

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.5",
3
+ "version": "10.38.7",
4
4
  "description": "diy printer",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -18,6 +18,33 @@ const blockTypeList = [
18
18
  }))
19
19
  @observer
20
20
  class ContextMenu extends React.Component {
21
+ componentDidMount() {
22
+ const {
23
+ editStore,
24
+ editStore: {
25
+ config: { autoFillConfig, specialControlConfig }
26
+ }
27
+ } = this.props
28
+
29
+ if (autoFillConfig?.checked) {
30
+ editStore.handleChangeTableData(
31
+ autoFillConfig?.checked,
32
+ autoFillConfig?.dataKey
33
+ )
34
+ }
35
+ /** 初始化特殊控制的配置 */
36
+ if (specialControlConfig?.multiDigitDecimal) {
37
+ // 多位小数
38
+ editStore.setMultiDigitDecimal(specialControlConfig?.multiDigitDecimal)
39
+ }
40
+ if (specialControlConfig?.taxFreeProductRateDisplay !== undefined) {
41
+ // 免税产品税率显示
42
+ editStore.setTaxFreeProductRateDisplay(
43
+ specialControlConfig?.taxFreeProductRateDisplay || ''
44
+ )
45
+ }
46
+ }
47
+
21
48
  /**
22
49
  * 是否存在每页合计按钮,非异常明细才有按钮
23
50
  * @param name => ContextMenu 的 this.state.name
@@ -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
  }