bm-admin-ui 1.1.10-alpha → 1.1.12-alpha
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/es/components/edit-form/index.d.ts +2 -2
- package/es/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/es/components/editor/index.d.ts +4 -4
- package/es/components/editor/src/editor.vue.d.ts +4 -4
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/es/components/form-create/index.js +83 -27
- package/es/components/form-designer/index.js +3 -0
- package/es/components/input-tags-display/index.d.ts +2 -2
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +2 -2
- package/es/components/search-filter/index.d.ts +1 -1
- package/es/components/search-filter/src/form-select-all.vue.d.ts +8 -8
- package/es/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/es/components/select-all/index.d.ts +10 -10
- package/es/components/select-all/src/selectAll.vue.d.ts +10 -10
- package/es/components/staffs-selector/index.d.ts +1 -1
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/es/components/timeline/index.d.ts +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/edit-form/index.d.ts +2 -2
- package/lib/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/lib/components/editor/index.d.ts +4 -4
- package/lib/components/editor/src/editor.vue.d.ts +4 -4
- package/lib/components/feedback/index.d.ts +4 -4
- package/lib/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/lib/components/form-create/index.js +83 -27
- package/lib/components/form-designer/index.js +3 -0
- package/lib/components/input-tags-display/index.d.ts +2 -2
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +2 -2
- package/lib/components/search-filter/index.d.ts +1 -1
- package/lib/components/search-filter/src/form-select-all.vue.d.ts +8 -8
- package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/lib/components/select-all/index.d.ts +10 -10
- package/lib/components/select-all/src/selectAll.vue.d.ts +10 -10
- package/lib/components/staffs-selector/index.d.ts +1 -1
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/lib/components/timeline/index.d.ts +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/package.json +1 -1
- package/types/components/edit-form/index.d.ts +2 -2
- package/types/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/types/components/editor/index.d.ts +4 -4
- package/types/components/editor/src/editor.vue.d.ts +4 -4
- package/types/components/feedback/index.d.ts +4 -4
- package/types/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/types/components/input-tags-display/index.d.ts +2 -2
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +2 -2
- package/types/components/search-filter/index.d.ts +1 -1
- package/types/components/search-filter/src/form-select-all.vue.d.ts +8 -8
- package/types/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/types/components/select-all/index.d.ts +10 -10
- package/types/components/select-all/src/selectAll.vue.d.ts +10 -10
- package/types/components/staffs-selector/index.d.ts +1 -1
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/types/components/timeline/index.d.ts +1 -1
- package/types/components/timeline/src/timeline-item.vue.d.ts +1 -1
|
@@ -48,7 +48,7 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
|
|
|
48
48
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
49
49
|
formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
|
|
50
50
|
colCount: import("vue").ComputedRef<2 | 1 | 3>;
|
|
51
|
-
getValueOfOption: (key: string | undefined, defaultKey: "
|
|
51
|
+
getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
|
|
52
52
|
getPopupContainer: (e: any) => any;
|
|
53
53
|
getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./src/types").Control, index?: number | undefined) => {
|
|
54
54
|
flex?: string | undefined;
|
|
@@ -142,8 +142,8 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
|
|
|
142
142
|
"onKeyup:formItem"?: ((...args: any[]) => any) | undefined;
|
|
143
143
|
"onFocus:formItem"?: ((...args: any[]) => any) | undefined;
|
|
144
144
|
}, {
|
|
145
|
-
form: Record<string, any> | null;
|
|
146
145
|
config: import("./src/types").FormConfig;
|
|
146
|
+
form: Record<string, any> | null;
|
|
147
147
|
groupRules: Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>;
|
|
148
148
|
}>>;
|
|
149
149
|
export { BmEditForm };
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
48
48
|
formRef: import("vue").Ref<FormInstance | null>;
|
|
49
49
|
colCount: import("vue").ComputedRef<2 | 1 | 3>;
|
|
50
|
-
getValueOfOption: (key: string | undefined, defaultKey: "
|
|
50
|
+
getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
|
|
51
51
|
getPopupContainer: (e: any) => any;
|
|
52
52
|
getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./types").Control, index?: number | undefined) => {
|
|
53
53
|
flex?: string | undefined;
|
|
@@ -141,8 +141,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
"onKeyup:formItem"?: ((...args: any[]) => any) | undefined;
|
|
142
142
|
"onFocus:formItem"?: ((...args: any[]) => any) | undefined;
|
|
143
143
|
}, {
|
|
144
|
-
form: Record<string, any> | null;
|
|
145
144
|
config: import("./types").FormConfig;
|
|
145
|
+
form: Record<string, any> | null;
|
|
146
146
|
groupRules: Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>;
|
|
147
147
|
}>;
|
|
148
148
|
export default _default;
|
|
@@ -63,8 +63,8 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
63
63
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
64
64
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
65
65
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
66
|
-
onReady?: ((...args: any[]) => any) | undefined;
|
|
67
66
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
69
69
|
}>>;
|
|
70
70
|
defaultOptions: {
|
|
@@ -105,7 +105,7 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
105
105
|
placeholder: string;
|
|
106
106
|
readOnly: boolean;
|
|
107
107
|
};
|
|
108
|
-
emits: (event: "
|
|
108
|
+
emits: (event: "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", ...args: any[]) => void;
|
|
109
109
|
state: {
|
|
110
110
|
editorOption: {};
|
|
111
111
|
quill: null;
|
|
@@ -256,7 +256,7 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
256
256
|
pictureFileTypes: import("vue").Ref<string[]>;
|
|
257
257
|
};
|
|
258
258
|
};
|
|
259
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
259
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "ready" | "change" | "blur" | "update:value" | "getCount")[], "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
260
260
|
value: import("vue-types").VueTypeValidableDef<string> & {
|
|
261
261
|
default: string;
|
|
262
262
|
} & {
|
|
@@ -290,8 +290,8 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
290
290
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
291
291
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
292
292
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
293
|
-
onReady?: ((...args: any[]) => any) | undefined;
|
|
294
293
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
297
|
disabled: boolean;
|
|
@@ -63,8 +63,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
63
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
64
64
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
65
65
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
66
|
-
onReady?: ((...args: any[]) => any) | undefined;
|
|
67
66
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
69
69
|
}>>;
|
|
70
70
|
defaultOptions: {
|
|
@@ -105,7 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
105
|
placeholder: string;
|
|
106
106
|
readOnly: boolean;
|
|
107
107
|
};
|
|
108
|
-
emits: (event: "
|
|
108
|
+
emits: (event: "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", ...args: any[]) => void;
|
|
109
109
|
state: {
|
|
110
110
|
editorOption: {};
|
|
111
111
|
quill: null;
|
|
@@ -256,7 +256,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
256
256
|
pictureFileTypes: import("vue").Ref<string[]>;
|
|
257
257
|
};
|
|
258
258
|
};
|
|
259
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
259
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "ready" | "change" | "blur" | "update:value" | "getCount")[], "focus" | "ready" | "change" | "blur" | "update:value" | "getCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
260
260
|
value: import("vue-types").VueTypeValidableDef<string> & {
|
|
261
261
|
default: string;
|
|
262
262
|
} & {
|
|
@@ -290,8 +290,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
290
290
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
291
291
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
292
292
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
293
|
-
onReady?: ((...args: any[]) => any) | undefined;
|
|
294
293
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
297
|
disabled: boolean;
|
|
@@ -880,7 +880,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
880
880
|
closable: boolean;
|
|
881
881
|
banner: boolean;
|
|
882
882
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
883
|
-
type: import("vue-types").VueTypeDef<"info" | "
|
|
883
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
884
884
|
closable: {
|
|
885
885
|
type: BooleanConstructor;
|
|
886
886
|
default: any;
|
|
@@ -916,7 +916,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
916
916
|
$emit: (event: string, ...args: any[]) => void;
|
|
917
917
|
$el: any;
|
|
918
918
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
919
|
-
type: import("vue-types").VueTypeDef<"info" | "
|
|
919
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
920
920
|
closable: {
|
|
921
921
|
type: BooleanConstructor;
|
|
922
922
|
default: any;
|
|
@@ -962,7 +962,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
962
962
|
$nextTick: typeof import("vue").nextTick;
|
|
963
963
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
964
964
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
965
|
-
type: import("vue-types").VueTypeDef<"info" | "
|
|
965
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
966
966
|
closable: {
|
|
967
967
|
type: BooleanConstructor;
|
|
968
968
|
default: any;
|
|
@@ -988,7 +988,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
988
988
|
__isTeleport?: undefined;
|
|
989
989
|
__isSuspense?: undefined;
|
|
990
990
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
991
|
-
type: import("vue-types").VueTypeDef<"info" | "
|
|
991
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
992
992
|
closable: {
|
|
993
993
|
type: BooleanConstructor;
|
|
994
994
|
default: any;
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
closable: boolean;
|
|
37
37
|
banner: boolean;
|
|
38
38
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
-
type: import("vue-types").VueTypeDef<"info" | "
|
|
39
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
40
40
|
closable: {
|
|
41
41
|
type: BooleanConstructor;
|
|
42
42
|
default: any;
|
|
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
$emit: (event: string, ...args: any[]) => void;
|
|
73
73
|
$el: any;
|
|
74
74
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
-
type: import("vue-types").VueTypeDef<"info" | "
|
|
75
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
76
76
|
closable: {
|
|
77
77
|
type: BooleanConstructor;
|
|
78
78
|
default: any;
|
|
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
118
|
$nextTick: typeof import("vue").nextTick;
|
|
119
119
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
120
120
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
121
|
-
type: import("vue-types").VueTypeDef<"info" | "
|
|
121
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
122
122
|
closable: {
|
|
123
123
|
type: BooleanConstructor;
|
|
124
124
|
default: any;
|
|
@@ -144,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
144
|
__isTeleport?: undefined;
|
|
145
145
|
__isSuspense?: undefined;
|
|
146
146
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
-
type: import("vue-types").VueTypeDef<"info" | "
|
|
147
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
148
148
|
closable: {
|
|
149
149
|
type: BooleanConstructor;
|
|
150
150
|
default: any;
|
|
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
72
72
|
prefixCls: StringConstructor;
|
|
73
73
|
color: {
|
|
74
|
-
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "
|
|
74
|
+
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
|
|
75
75
|
};
|
|
76
76
|
closable: {
|
|
77
77
|
type: BooleanConstructor;
|
|
@@ -104,7 +104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
105
105
|
prefixCls: StringConstructor;
|
|
106
106
|
color: {
|
|
107
|
-
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "
|
|
107
|
+
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
|
|
108
108
|
};
|
|
109
109
|
closable: {
|
|
110
110
|
type: BooleanConstructor;
|
|
@@ -146,7 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
146
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
147
147
|
prefixCls: StringConstructor;
|
|
148
148
|
color: {
|
|
149
|
-
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "
|
|
149
|
+
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
|
|
150
150
|
};
|
|
151
151
|
closable: {
|
|
152
152
|
type: BooleanConstructor;
|
|
@@ -169,7 +169,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
169
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
170
170
|
prefixCls: StringConstructor;
|
|
171
171
|
color: {
|
|
172
|
-
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "
|
|
172
|
+
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "error" | "success" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
|
|
173
173
|
};
|
|
174
174
|
closable: {
|
|
175
175
|
type: BooleanConstructor;
|
|
@@ -18573,7 +18573,12 @@ var lodash = {exports: {}};
|
|
|
18573
18573
|
|
|
18574
18574
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
18575
18575
|
__name: "product-input-in-table",
|
|
18576
|
-
props: [
|
|
18576
|
+
props: [
|
|
18577
|
+
"value",
|
|
18578
|
+
"disabled",
|
|
18579
|
+
"shopValue",
|
|
18580
|
+
"doNotClearAfterFilterChange"
|
|
18581
|
+
],
|
|
18577
18582
|
emits: ["change"],
|
|
18578
18583
|
setup(__props, { emit: emits }) {
|
|
18579
18584
|
const props = __props;
|
|
@@ -18594,7 +18599,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18594
18599
|
watch(
|
|
18595
18600
|
() => props.shopValue,
|
|
18596
18601
|
() => {
|
|
18597
|
-
|
|
18602
|
+
if (!props.doNotClearAfterFilterChange) {
|
|
18603
|
+
emitChange("");
|
|
18604
|
+
}
|
|
18598
18605
|
}
|
|
18599
18606
|
);
|
|
18600
18607
|
return (_ctx, _cache) => {
|
|
@@ -18838,6 +18845,18 @@ const _sfc_main$7 = defineComponent({
|
|
|
18838
18845
|
);
|
|
18839
18846
|
const tableConfig = computed(() => props.rule?.config?.tableConfig || {});
|
|
18840
18847
|
const validColumns = computed(() => columns.filter((c) => isValidColumn(c)));
|
|
18848
|
+
const isProductCenter = computed(
|
|
18849
|
+
() => tableConfig.value?.system === "productCenter"
|
|
18850
|
+
);
|
|
18851
|
+
const isProductCenterSuit = computed(
|
|
18852
|
+
() => isProductCenter.value && [
|
|
18853
|
+
"F2CTemplate",
|
|
18854
|
+
"B2CTemplate",
|
|
18855
|
+
"DistributeTemp",
|
|
18856
|
+
"FreshTemplate",
|
|
18857
|
+
"activityApply"
|
|
18858
|
+
].includes(tableConfig.value.template)
|
|
18859
|
+
);
|
|
18841
18860
|
function isShow(key) {
|
|
18842
18861
|
return props.rule.config.tableAdvancedFeatures.includes(key);
|
|
18843
18862
|
}
|
|
@@ -18855,6 +18874,14 @@ const _sfc_main$7 = defineComponent({
|
|
|
18855
18874
|
width: "54px"
|
|
18856
18875
|
});
|
|
18857
18876
|
}
|
|
18877
|
+
if (isProductCenterSuit.value) {
|
|
18878
|
+
columns.push({
|
|
18879
|
+
type: "seq",
|
|
18880
|
+
title: "\u5E8F\u53F7",
|
|
18881
|
+
width: "62px",
|
|
18882
|
+
align: "center"
|
|
18883
|
+
});
|
|
18884
|
+
}
|
|
18858
18885
|
childRules?.length && columns.push(
|
|
18859
18886
|
...childRules.reduce((pre, cur) => {
|
|
18860
18887
|
if (cur.hidden) {
|
|
@@ -18921,13 +18948,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
18921
18948
|
}
|
|
18922
18949
|
}
|
|
18923
18950
|
];
|
|
18924
|
-
if (
|
|
18925
|
-
"F2CTemplate",
|
|
18926
|
-
"B2CTemplate",
|
|
18927
|
-
"DistributeTemp",
|
|
18928
|
-
"FreshTemplate",
|
|
18929
|
-
"activityApply"
|
|
18930
|
-
].includes(tableConfig.value.template) && rule.name === "product") {
|
|
18951
|
+
if (isProductCenterSuit.value && rule.name === "product") {
|
|
18931
18952
|
columns2[0].title = "\u5546\u54C1\u7F16\u53F7";
|
|
18932
18953
|
}
|
|
18933
18954
|
if (associatedFields.length) {
|
|
@@ -18973,15 +18994,30 @@ const _sfc_main$7 = defineComponent({
|
|
|
18973
18994
|
delete newData._X_ROW_KEY;
|
|
18974
18995
|
data.push(newData);
|
|
18975
18996
|
}
|
|
18976
|
-
function handleDelete(index) {
|
|
18977
|
-
|
|
18997
|
+
async function handleDelete(index, needConfirm = true) {
|
|
18998
|
+
if (isProductCenter.value && needConfirm) {
|
|
18999
|
+
if (await utils.confirmModal("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u9879\uFF1F")) {
|
|
19000
|
+
data.splice(index, 1);
|
|
19001
|
+
}
|
|
19002
|
+
} else {
|
|
19003
|
+
data.splice(index, 1);
|
|
19004
|
+
}
|
|
18978
19005
|
}
|
|
18979
|
-
function handleBatchDelete() {
|
|
19006
|
+
async function handleBatchDelete() {
|
|
18980
19007
|
const selected = xGrid.value.getCheckboxRecords();
|
|
18981
|
-
|
|
18982
|
-
|
|
18983
|
-
|
|
18984
|
-
|
|
19008
|
+
if (isProductCenter.value) {
|
|
19009
|
+
if (await utils.confirmModal(`\u786E\u5B9A\u8981\u5220\u9664\u6240\u9009\u7684${selected?.length}\u6761\u6570\u636E\u4E48\uFF1F`)) {
|
|
19010
|
+
selected.forEach((item) => {
|
|
19011
|
+
const index = data.indexOf(item);
|
|
19012
|
+
handleDelete(index, false);
|
|
19013
|
+
});
|
|
19014
|
+
}
|
|
19015
|
+
} else {
|
|
19016
|
+
selected.forEach((item) => {
|
|
19017
|
+
const index = data.indexOf(item);
|
|
19018
|
+
handleDelete(index, false);
|
|
19019
|
+
});
|
|
19020
|
+
}
|
|
18985
19021
|
}
|
|
18986
19022
|
function handleDownload() {
|
|
18987
19023
|
xGrid.value.exportData({
|
|
@@ -18992,9 +19028,18 @@ const _sfc_main$7 = defineComponent({
|
|
|
18992
19028
|
}
|
|
18993
19029
|
});
|
|
18994
19030
|
}
|
|
18995
|
-
function handleImport() {
|
|
19031
|
+
async function handleImport() {
|
|
18996
19032
|
if (importDisabled()) {
|
|
18997
19033
|
message.error("\u8BF7\u5148\u9009\u62E9\u5E97\u94FA\uFF01");
|
|
19034
|
+
} else if (isProductCenterSuit.value) {
|
|
19035
|
+
if (data.length > 0) {
|
|
19036
|
+
if (await utils.confirmModal("\u518D\u6B21\u6279\u5BFC\u4F1A\u8986\u76D6\u5DF2\u6709\u6570\u636E")) {
|
|
19037
|
+
data.splice(0, data.length);
|
|
19038
|
+
inputRef.value.click();
|
|
19039
|
+
}
|
|
19040
|
+
} else {
|
|
19041
|
+
inputRef.value.click();
|
|
19042
|
+
}
|
|
18998
19043
|
} else {
|
|
18999
19044
|
inputRef.value.click();
|
|
19000
19045
|
}
|
|
@@ -19042,13 +19087,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
19042
19087
|
});
|
|
19043
19088
|
}
|
|
19044
19089
|
function processOtherAssociatedFields(field, fields, row, result) {
|
|
19045
|
-
if (
|
|
19046
|
-
"F2CTemplate",
|
|
19047
|
-
"B2CTemplate",
|
|
19048
|
-
"DistributeTemp",
|
|
19049
|
-
"FreshTemplate",
|
|
19050
|
-
"activityApply"
|
|
19051
|
-
].includes(tableConfig.value.template)) {
|
|
19090
|
+
if (isProductCenterSuit.value) {
|
|
19052
19091
|
fields?.forEach?.((item) => {
|
|
19053
19092
|
row[item] = result ? result[item] : void 0;
|
|
19054
19093
|
});
|
|
@@ -19081,7 +19120,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
19081
19120
|
file && reader.readAsText(file, "GB2312");
|
|
19082
19121
|
}
|
|
19083
19122
|
function isValidColumn(c) {
|
|
19084
|
-
return c.type !== "checkbox" && c.field !== oper;
|
|
19123
|
+
return c.type !== "checkbox" && c.type !== "seq" && c.field !== oper;
|
|
19085
19124
|
}
|
|
19086
19125
|
function parseCsv(result) {
|
|
19087
19126
|
let data2 = [];
|
|
@@ -19283,6 +19322,13 @@ const _sfc_main$7 = defineComponent({
|
|
|
19283
19322
|
}
|
|
19284
19323
|
function handlePressEnter(value, rule, row) {
|
|
19285
19324
|
row[rule.field] = value;
|
|
19325
|
+
if (isProductCenterSuit.value && rule.field === "productCode") {
|
|
19326
|
+
Object.keys(row).forEach((key) => {
|
|
19327
|
+
if (!["productCode", "_X_ROW_KEY"].includes(key)) {
|
|
19328
|
+
row[key] = void 0;
|
|
19329
|
+
}
|
|
19330
|
+
});
|
|
19331
|
+
}
|
|
19286
19332
|
queryProductInfo(rule, row);
|
|
19287
19333
|
}
|
|
19288
19334
|
function handleShopOption(value, rule, row) {
|
|
@@ -19427,6 +19473,12 @@ const _sfc_main$7 = defineComponent({
|
|
|
19427
19473
|
e.target.value = "";
|
|
19428
19474
|
}
|
|
19429
19475
|
}
|
|
19476
|
+
function getProductClearSetting(field) {
|
|
19477
|
+
let setting = props.rule.config.childRules?.find((rule) => {
|
|
19478
|
+
return rule.field === field;
|
|
19479
|
+
});
|
|
19480
|
+
return !!setting?.config?.doNotClearAfterFilterChange;
|
|
19481
|
+
}
|
|
19430
19482
|
return (_ctx, _cache) => {
|
|
19431
19483
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
19432
19484
|
createElementVNode("div", _hoisted_2$4, [
|
|
@@ -19612,8 +19664,9 @@ const _sfc_main$7 = defineComponent({
|
|
|
19612
19664
|
value: row[item.field],
|
|
19613
19665
|
disabled: item.disabled || pruductInputDisabled(item.config?.dataFiltering),
|
|
19614
19666
|
"shop-value": unref(formData)[item.config.dataFiltering],
|
|
19667
|
+
"do-not-clear-after-filter-change": getProductClearSetting(item.field),
|
|
19615
19668
|
onChange: ($event) => handlePressEnter($event, item, row)
|
|
19616
|
-
}, null, 8, ["value", "disabled", "shop-value", "onChange"])
|
|
19669
|
+
}, null, 8, ["value", "disabled", "shop-value", "do-not-clear-after-filter-change", "onChange"])
|
|
19617
19670
|
])
|
|
19618
19671
|
};
|
|
19619
19672
|
}),
|
|
@@ -20290,6 +20343,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20290
20343
|
props: [
|
|
20291
20344
|
"associatedFields",
|
|
20292
20345
|
"dataFiltering",
|
|
20346
|
+
"doNotClearAfterFilterChange",
|
|
20293
20347
|
"required",
|
|
20294
20348
|
"extraConfig",
|
|
20295
20349
|
"defalutValue",
|
|
@@ -20363,7 +20417,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20363
20417
|
watch(
|
|
20364
20418
|
() => formData.value[props.dataFiltering],
|
|
20365
20419
|
() => {
|
|
20366
|
-
if (inputValue.value) {
|
|
20420
|
+
if (inputValue.value && !props.doNotClearAfterFilterChange) {
|
|
20367
20421
|
reset();
|
|
20368
20422
|
}
|
|
20369
20423
|
}
|
|
@@ -20469,6 +20523,7 @@ var product = {
|
|
|
20469
20523
|
required: data.effect.required,
|
|
20470
20524
|
associatedFields: data.config.associatedFields,
|
|
20471
20525
|
dataFiltering: data.config.dataFiltering,
|
|
20526
|
+
doNotClearAfterFilterChange: data.config.doNotClearAfterFilterChange,
|
|
20472
20527
|
extraConfig: extraConfig,
|
|
20473
20528
|
defalutValue: data.value,
|
|
20474
20529
|
},
|
|
@@ -20498,6 +20553,7 @@ var product = {
|
|
|
20498
20553
|
required: data.effect.required,
|
|
20499
20554
|
associatedFields: data.config.associatedFields,
|
|
20500
20555
|
dataFiltering: data.config.dataFiltering,
|
|
20556
|
+
doNotClearAfterFilterChange: data.config.doNotClearAfterFilterChange,
|
|
20501
20557
|
defalutValue: data.value,
|
|
20502
20558
|
extraConfig: extraConfig,
|
|
20503
20559
|
},
|
|
@@ -4093,6 +4093,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4093
4093
|
return newRule;
|
|
4094
4094
|
}
|
|
4095
4095
|
function handleFormItemCopy(rule, parentRule) {
|
|
4096
|
+
if (!props?.dragCheckFunc(rule.config.config)) {
|
|
4097
|
+
return;
|
|
4098
|
+
}
|
|
4096
4099
|
const newRule = copyRule(
|
|
4097
4100
|
rule,
|
|
4098
4101
|
rule.config.config,
|
|
@@ -125,15 +125,15 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
|
|
|
125
125
|
onAddClick?: ((...args: any[]) => any) | undefined;
|
|
126
126
|
}, {
|
|
127
127
|
disabled: boolean;
|
|
128
|
+
placement: string;
|
|
129
|
+
fieldNames: Record<string, any>;
|
|
128
130
|
placeholder: string;
|
|
129
131
|
list: unknown[];
|
|
130
|
-
placement: string;
|
|
131
132
|
showEmpty: boolean;
|
|
132
133
|
showEmptyBtn: boolean;
|
|
133
134
|
unitStr: string;
|
|
134
135
|
btnText: string;
|
|
135
136
|
toolTipProps: Record<string, any>;
|
|
136
|
-
fieldNames: Record<string, any>;
|
|
137
137
|
alwaysInvoke: boolean;
|
|
138
138
|
}>>;
|
|
139
139
|
export { BmTagsDisplay };
|
|
@@ -123,15 +123,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
123
|
onAddClick?: ((...args: any[]) => any) | undefined;
|
|
124
124
|
}, {
|
|
125
125
|
disabled: boolean;
|
|
126
|
+
placement: string;
|
|
127
|
+
fieldNames: Record<string, any>;
|
|
126
128
|
placeholder: string;
|
|
127
129
|
list: unknown[];
|
|
128
|
-
placement: string;
|
|
129
130
|
showEmpty: boolean;
|
|
130
131
|
showEmptyBtn: boolean;
|
|
131
132
|
unitStr: string;
|
|
132
133
|
btnText: string;
|
|
133
134
|
toolTipProps: Record<string, any>;
|
|
134
|
-
fieldNames: Record<string, any>;
|
|
135
135
|
alwaysInvoke: boolean;
|
|
136
136
|
}>;
|
|
137
137
|
export default _default;
|
|
@@ -287,6 +287,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
287
287
|
onSetDefault?: ((...args: any[]) => any) | undefined;
|
|
288
288
|
}, {
|
|
289
289
|
loading: boolean;
|
|
290
|
+
labelCol: Record<string, any>;
|
|
290
291
|
value: Record<string, any>;
|
|
291
292
|
showExpandBtn: boolean;
|
|
292
293
|
showSearchIcon: boolean;
|
|
@@ -300,7 +301,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
300
301
|
setDefaultConfirmConfig: Record<string, any>;
|
|
301
302
|
gutter: number[];
|
|
302
303
|
userRule: unknown[];
|
|
303
|
-
labelCol: Record<string, any>;
|
|
304
304
|
ruleSpan: Record<string, any>;
|
|
305
305
|
fixedCount: number;
|
|
306
306
|
fixedFields: string[];
|
|
@@ -104,7 +104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
105
105
|
prefixCls: StringConstructor;
|
|
106
106
|
direction: {
|
|
107
|
-
type: import("vue").PropType<"
|
|
107
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
108
108
|
};
|
|
109
109
|
open: {
|
|
110
110
|
type: BooleanConstructor;
|
|
@@ -129,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
129
|
};
|
|
130
130
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
131
131
|
showAction: {
|
|
132
|
-
type: import("vue").PropType<("
|
|
132
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
133
133
|
};
|
|
134
134
|
id: StringConstructor;
|
|
135
135
|
placement: {
|
|
@@ -267,7 +267,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
267
267
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
268
268
|
prefixCls: StringConstructor;
|
|
269
269
|
direction: {
|
|
270
|
-
type: import("vue").PropType<"
|
|
270
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
271
271
|
};
|
|
272
272
|
open: {
|
|
273
273
|
type: BooleanConstructor;
|
|
@@ -292,7 +292,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
292
292
|
};
|
|
293
293
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
294
294
|
showAction: {
|
|
295
|
-
type: import("vue").PropType<("
|
|
295
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
296
296
|
};
|
|
297
297
|
id: StringConstructor;
|
|
298
298
|
placement: {
|
|
@@ -453,7 +453,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
453
453
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
454
454
|
prefixCls: StringConstructor;
|
|
455
455
|
direction: {
|
|
456
|
-
type: import("vue").PropType<"
|
|
456
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
457
457
|
};
|
|
458
458
|
open: {
|
|
459
459
|
type: BooleanConstructor;
|
|
@@ -478,7 +478,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
478
478
|
};
|
|
479
479
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
480
480
|
showAction: {
|
|
481
|
-
type: import("vue").PropType<("
|
|
481
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
482
482
|
};
|
|
483
483
|
id: StringConstructor;
|
|
484
484
|
placement: {
|
|
@@ -606,7 +606,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
606
606
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
607
607
|
prefixCls: StringConstructor;
|
|
608
608
|
direction: {
|
|
609
|
-
type: import("vue").PropType<"
|
|
609
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
610
610
|
};
|
|
611
611
|
open: {
|
|
612
612
|
type: BooleanConstructor;
|
|
@@ -631,7 +631,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
631
631
|
};
|
|
632
632
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
633
633
|
showAction: {
|
|
634
|
-
type: import("vue").PropType<("
|
|
634
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
635
635
|
};
|
|
636
636
|
id: StringConstructor;
|
|
637
637
|
placement: {
|
|
@@ -287,6 +287,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
287
|
onSetDefault?: ((...args: any[]) => any) | undefined;
|
|
288
288
|
}, {
|
|
289
289
|
loading: boolean;
|
|
290
|
+
labelCol: Record<string, any>;
|
|
290
291
|
value: Record<string, any>;
|
|
291
292
|
showExpandBtn: boolean;
|
|
292
293
|
showSearchIcon: boolean;
|
|
@@ -300,7 +301,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
300
301
|
setDefaultConfirmConfig: Record<string, any>;
|
|
301
302
|
gutter: number[];
|
|
302
303
|
userRule: unknown[];
|
|
303
|
-
labelCol: Record<string, any>;
|
|
304
304
|
ruleSpan: Record<string, any>;
|
|
305
305
|
fixedCount: number;
|
|
306
306
|
fixedFields: string[];
|