gm-printer 10.35.0 → 10.35.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/build/demo.js +1 -1
- package/package.json +1 -1
- package/src/common/editor_store.js +16 -6
package/package.json
CHANGED
|
@@ -833,7 +833,7 @@ class EditorStore {
|
|
|
833
833
|
}
|
|
834
834
|
// 标签小计和分类小计互斥
|
|
835
835
|
if (
|
|
836
|
-
newDataKey.includes('category') &&
|
|
836
|
+
(newDataKey.includes('category') || newDataKey.includes('categoryDiy')) &&
|
|
837
837
|
(key === 'tag' || key === 'tagDiy')
|
|
838
838
|
) {
|
|
839
839
|
newDataKey = _.without(newDataKey, 'category', 'categoryDiy')
|
|
@@ -843,7 +843,7 @@ class EditorStore {
|
|
|
843
843
|
set(table, { isDiyCategorySubtotal: false })
|
|
844
844
|
}
|
|
845
845
|
} else if (
|
|
846
|
-
newDataKey.includes('tag') &&
|
|
846
|
+
(newDataKey.includes('tag') || newDataKey.includes('tagDiy')) &&
|
|
847
847
|
(key === 'category' || key === 'categoryDiy')
|
|
848
848
|
) {
|
|
849
849
|
newDataKey = _.without(newDataKey, 'tag', 'tagDiy')
|
|
@@ -867,14 +867,22 @@ class EditorStore {
|
|
|
867
867
|
}
|
|
868
868
|
|
|
869
869
|
if (newDataKey.includes('categoryDiy')) {
|
|
870
|
-
|
|
870
|
+
if (!diyCategorySubtotal?.show) {
|
|
871
|
+
this.setDiyCategorySubtotalShow(name)
|
|
872
|
+
}
|
|
871
873
|
} else {
|
|
872
|
-
|
|
874
|
+
if (diyCategorySubtotal?.show) {
|
|
875
|
+
this.setDiyCategorySubtotalShow(name)
|
|
876
|
+
}
|
|
873
877
|
}
|
|
874
878
|
if (newDataKey.includes('tagDiy')) {
|
|
875
|
-
|
|
879
|
+
if (!diyTagSubtotal?.show) {
|
|
880
|
+
this.setDiyTagSubtotalShow(name)
|
|
881
|
+
}
|
|
876
882
|
} else {
|
|
877
|
-
|
|
883
|
+
if (diyTagSubtotal?.show) {
|
|
884
|
+
this.setDiyTagSubtotalShow(name)
|
|
885
|
+
}
|
|
878
886
|
}
|
|
879
887
|
|
|
880
888
|
newDataKey = _.sortBy(newDataKey, [
|
|
@@ -888,6 +896,8 @@ class EditorStore {
|
|
|
888
896
|
o => o === 'orders'
|
|
889
897
|
])
|
|
890
898
|
|
|
899
|
+
// console.log('newDataKey==> changeTableDataKey', newDataKey)
|
|
900
|
+
|
|
891
901
|
this.config.contents[arr[2]].dataKey = newDataKey.join('_')
|
|
892
902
|
|
|
893
903
|
// 整单合计不显示
|