@bit-sun/business-component 2.0.23 → 2.0.24

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.
Files changed (29) hide show
  1. package/package.json +1 -1
  2. package/src/components/Business/AddSelectBusiness/index.tsx +1 -0
  3. package/src/components/Business/SearchSelect/BusinessUtils.ts +1 -0
  4. package/src/components/Functional/AddSelect/index.md +1 -0
  5. package/src/components/Functional/BillEntry/index.tsx +1 -1
  6. package/dist/components/Business/AddSelectBusiness/index.d.ts +0 -1
  7. package/dist/components/Business/CommodityEntry/index.d.ts +0 -2
  8. package/dist/components/Business/CommonGuideWrapper/index.d.ts +0 -6
  9. package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +0 -5
  10. package/dist/components/Business/SearchSelect/common.d.ts +0 -17
  11. package/dist/components/Business/SearchSelect/index.d.ts +0 -3
  12. package/dist/components/Business/SearchSelect/utils.d.ts +0 -5
  13. package/dist/components/Business/StateFlow/index.d.ts +0 -3
  14. package/dist/components/Business/TreeSearchSelect/index.d.ts +0 -3
  15. package/dist/components/Business/TreeSearchSelect/utils.d.ts +0 -2
  16. package/dist/components/Functional/AddSelect/index.d.ts +0 -3
  17. package/dist/components/Functional/BillEntry/index.d.ts +0 -4
  18. package/dist/components/Functional/DataImport/index.d.ts +0 -144
  19. package/dist/components/Functional/DataValidation/index.d.ts +0 -144
  20. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +0 -12
  21. package/dist/components/Functional/QueryMutipleInput/index.d.ts +0 -5
  22. package/dist/components/Functional/SearchSelect/index.d.ts +0 -4
  23. package/dist/components/Functional/TreeSearchSelect/index.d.ts +0 -2
  24. package/dist/index.d.ts +0 -16
  25. package/dist/index.esm.js +0 -9062
  26. package/dist/index.js +0 -9087
  27. package/dist/utils/CheckOneUser/index.d.ts +0 -2
  28. package/dist/utils/requestUtils.d.ts +0 -1
  29. package/dist/utils/utils.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -24,6 +24,7 @@ export const AddSkuSelect = (parProps: any) => {
24
24
  otherParams: {
25
25
  'qp-combination-eq': false,
26
26
  'qp-approveStatus-eq': 1,
27
+ 'qp-status-eq': 1,
27
28
  }, // 默认参数
28
29
  mappingTextField: 'name',
29
30
  mappingValueField: 'skuCode',
@@ -244,6 +244,7 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
244
244
  otherParams: {
245
245
  'qp-combination-eq': false,
246
246
  'qp-approveStatus-eq': 1,
247
+ 'qp-status-eq': 1,
247
248
  // 'qp-type-eq': 10, // 查唯一国际条码【有些项目不需要必须要有国际条码,故注释,需要的项目自己定义otherParams补充上这个条件】
248
249
  sorter: 'desc-id'
249
250
  }, // 默认参数
@@ -31,6 +31,7 @@ export default () => {
31
31
  otherParams: {
32
32
  'qp-combination-eq': false,
33
33
  'qp-approveStatus-eq': 1,
34
+ 'qp-status-eq': 1,
34
35
  }, // 默认参数
35
36
  mappingTextField: 'name',
36
37
  mappingValueField: 'skuCode',
@@ -19,7 +19,7 @@ const InputElement = ({
19
19
 
20
20
  const onSerchdata = (name: any) => {
21
21
  axios
22
- .get(`/items/sku/pager/v2?${stringify({ 'skuCodeAndSkuName': name, 'pageSize': 100, 'qp-combination-eq': false, 'qp-approveStatus-eq': 1 })}`)
22
+ .get(`/items/sku/pager/v2?${stringify({ 'skuCodeAndSkuName': name, 'pageSize': 100, 'qp-combination-eq': false, 'qp-approveStatus-eq': 1, 'qp-status-eq': 1 })}`)
23
23
  .then(({ data, status }: any) => {
24
24
  if (status === 200) {
25
25
  if (data.status === '0') {
@@ -1 +0,0 @@
1
- export declare const AddSkuSelect: (parProps: any) => JSX.Element;
@@ -1,2 +0,0 @@
1
- declare const CommodityEntry: (props: any) => JSX.Element;
2
- export default CommodityEntry;
@@ -1,6 +0,0 @@
1
- import { Component } from "react";
2
- import './index.less';
3
- export default class GuideWrapper extends Component {
4
- static Field: ({ children, ...props }: any) => JSX.Element;
5
- render(): JSX.Element;
6
- }
@@ -1,5 +0,0 @@
1
- export declare function commonFun(type?: string, prefixUrl: any, requestConfigProp?: any, modalTableBusProps?: any): {
2
- modalTableProps: any;
3
- requestConfig: any;
4
- needModalTable: any;
5
- };
@@ -1,17 +0,0 @@
1
- declare const shopFileType: {
2
- text: string;
3
- value: string;
4
- }[];
5
- declare const shopFile2Type: {
6
- text: string;
7
- value: string;
8
- }[];
9
- declare const arrivalPaySupportList: {
10
- text: string;
11
- value: number;
12
- }[];
13
- declare const sharingType: {
14
- text: string;
15
- value: string;
16
- }[];
17
- export { shopFileType, arrivalPaySupportList, sharingType, shopFile2Type };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>>;
3
- export default _default;
@@ -1,5 +0,0 @@
1
- declare const getDictionarySource: (dicCode: string, needConvertInterger?: boolean) => {};
2
- declare const getDictionaryTextByValue: (dicCode: string, value: string | number) => any;
3
- declare const loadSelectSource: (url: string, params?: any) => Promise<unknown>;
4
- declare const handleDefaultPrefixUrl: (type: string) => string;
5
- export { getDictionarySource, getDictionaryTextByValue, loadSelectSource, handleDefaultPrefixUrl };
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const _default: (props: any) => JSX.Element;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const handleDefaultProps: (type: string) => {};
2
- export { handleDefaultProps };
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const AddSelect: (props: any) => JSX.Element;
3
- export default AddSelect;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const BillEntry: React.FC;
4
- export default BillEntry;
@@ -1,144 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare class DataImport extends React.Component {
4
- constructor(props: any);
5
- onDragEnd(result: any): void;
6
- getCount: () => {
7
- total: any;
8
- error: any;
9
- };
10
- setConfig: (data: any) => {
11
- container: string;
12
- showtoolbar: boolean;
13
- hook: {
14
- columnTitleCellRenderBefore: (columnAbc: any, postion: any, ctx: any) => void;
15
- cellRenderBefore: (cell: any, postion: any, sheetFile: any, ctx: any) => void;
16
- cellAllRenderBefore: (data: any, sheetFile: any, ctx: any) => void;
17
- };
18
- data: {
19
- name: string;
20
- color: string;
21
- index: number;
22
- status: number;
23
- order: number;
24
- hide: number;
25
- row: number;
26
- column: number;
27
- defaultRowHeight: number;
28
- defaultColWidth: number;
29
- config: {};
30
- celldata: any;
31
- scrollLeft: number;
32
- luckysheet_select_save: never[];
33
- calcChain: never[];
34
- isPivotTable: boolean;
35
- pivotTable: {};
36
- filter_select: {};
37
- filter: null;
38
- luckysheet_alternateformat_save: {
39
- cellrange: {
40
- row: number[];
41
- column: number[];
42
- };
43
- format: {
44
- head: {
45
- fc: string;
46
- bc: string;
47
- };
48
- one: {
49
- bc: string;
50
- };
51
- two: {
52
- bc: string;
53
- };
54
- foot: {
55
- fc: string;
56
- bc: string;
57
- };
58
- };
59
- hasRowHeader: boolean;
60
- hasRowFooter: boolean;
61
- }[];
62
- luckysheet_alternateformat_save_modelCustom: {
63
- head: {
64
- fc: string;
65
- bc: string;
66
- };
67
- one: {
68
- fc: string;
69
- bc: string;
70
- };
71
- two: {
72
- fc: string;
73
- bc: string;
74
- };
75
- foot: {
76
- fc: string;
77
- bc: string;
78
- };
79
- }[];
80
- luckysheet_conditionformat_save: {};
81
- frozen: {};
82
- chart: never[];
83
- zoomRatio: number;
84
- image: never[];
85
- showGridLines: number;
86
- dataVerification: {};
87
- }[];
88
- cellRightClickConfig: {
89
- copy: boolean;
90
- copyAs: boolean;
91
- paste: boolean;
92
- insertRow: boolean;
93
- insertColumn: boolean;
94
- deleteCell: boolean;
95
- hideRow: boolean;
96
- hideColumn: boolean;
97
- rowHeight: boolean;
98
- columnWidth: boolean;
99
- clear: boolean;
100
- matrix: boolean;
101
- sort: boolean;
102
- filter: boolean;
103
- chart: boolean;
104
- image: boolean;
105
- link: boolean;
106
- data: boolean;
107
- cellFormat: boolean;
108
- };
109
- showsheetbar: boolean;
110
- optionstate: boolean;
111
- showstatisticBarConfig: {
112
- count: boolean;
113
- view: boolean;
114
- zoom: boolean;
115
- };
116
- column: number;
117
- columnHeaderHeight: number;
118
- lang: string;
119
- defaultFontSize: string;
120
- frozen: {
121
- type: string;
122
- range: {
123
- row_focus: number;
124
- column_focus: number;
125
- };
126
- };
127
- };
128
- componentDidMount(): void;
129
- componentWillUnmount(): void;
130
- getValidateData: () => {
131
- successData: any;
132
- failData: any;
133
- };
134
- getData: () => any;
135
- resetData: () => void;
136
- filterData: (type: string) => void;
137
- toggleData: () => void;
138
- onChange: (e: any) => void;
139
- errorChange: (e: any) => void;
140
- menuList: JSX.Element;
141
- leftMenu: JSX.Element;
142
- render(): JSX.Element;
143
- }
144
- export default DataImport;
@@ -1,144 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare class DataValidation extends React.Component {
4
- constructor(props: any);
5
- onDragEnd(result: any): void;
6
- getCount: () => {
7
- total: any;
8
- error: any;
9
- };
10
- setConfig: (data: any) => {
11
- container: string;
12
- showtoolbar: boolean;
13
- hook: {
14
- columnTitleCellRenderBefore: (columnAbc: any, postion: any, ctx: any) => void;
15
- cellRenderBefore: (cell: any, postion: any, sheetFile: any, ctx: any) => void;
16
- cellAllRenderBefore: (data: any, sheetFile: any, ctx: any) => void;
17
- };
18
- data: {
19
- name: string;
20
- color: string;
21
- index: number;
22
- status: number;
23
- order: number;
24
- hide: number;
25
- row: number;
26
- column: number;
27
- defaultRowHeight: number;
28
- defaultColWidth: number;
29
- config: {};
30
- celldata: any;
31
- scrollLeft: number;
32
- luckysheet_select_save: never[];
33
- calcChain: never[];
34
- isPivotTable: boolean;
35
- pivotTable: {};
36
- filter_select: {};
37
- filter: null;
38
- luckysheet_alternateformat_save: {
39
- cellrange: {
40
- row: number[];
41
- column: number[];
42
- };
43
- format: {
44
- head: {
45
- fc: string;
46
- bc: string;
47
- };
48
- one: {
49
- bc: string;
50
- };
51
- two: {
52
- bc: string;
53
- };
54
- foot: {
55
- fc: string;
56
- bc: string;
57
- };
58
- };
59
- hasRowHeader: boolean;
60
- hasRowFooter: boolean;
61
- }[];
62
- luckysheet_alternateformat_save_modelCustom: {
63
- head: {
64
- fc: string;
65
- bc: string;
66
- };
67
- one: {
68
- fc: string;
69
- bc: string;
70
- };
71
- two: {
72
- fc: string;
73
- bc: string;
74
- };
75
- foot: {
76
- fc: string;
77
- bc: string;
78
- };
79
- }[];
80
- luckysheet_conditionformat_save: {};
81
- frozen: {};
82
- chart: never[];
83
- zoomRatio: number;
84
- image: never[];
85
- showGridLines: number;
86
- dataVerification: {};
87
- }[];
88
- cellRightClickConfig: {
89
- copy: boolean;
90
- copyAs: boolean;
91
- paste: boolean;
92
- insertRow: boolean;
93
- insertColumn: boolean;
94
- deleteCell: boolean;
95
- hideRow: boolean;
96
- hideColumn: boolean;
97
- rowHeight: boolean;
98
- columnWidth: boolean;
99
- clear: boolean;
100
- matrix: boolean;
101
- sort: boolean;
102
- filter: boolean;
103
- chart: boolean;
104
- image: boolean;
105
- link: boolean;
106
- data: boolean;
107
- cellFormat: boolean;
108
- };
109
- showsheetbar: boolean;
110
- optionstate: boolean;
111
- showstatisticBarConfig: {
112
- count: boolean;
113
- view: boolean;
114
- zoom: boolean;
115
- };
116
- column: number;
117
- columnHeaderHeight: number;
118
- lang: string;
119
- defaultFontSize: string;
120
- frozen: {
121
- type: string;
122
- range: {
123
- row_focus: number;
124
- column_focus: number;
125
- };
126
- };
127
- };
128
- componentDidMount(): void;
129
- componentWillUnmount(): void;
130
- getValidateData: () => {
131
- successData: any;
132
- failData: any;
133
- };
134
- getData: () => any;
135
- resetData: () => void;
136
- filterData: (type: string) => void;
137
- toggleData: () => void;
138
- onChange: (e: any) => void;
139
- errorChange: (e: any) => void;
140
- menuList: JSX.Element;
141
- leftMenu: JSX.Element;
142
- render(): JSX.Element;
143
- }
144
- export default DataValidation;
@@ -1,12 +0,0 @@
1
- interface exportIconType {
2
- /** others选填,使用axios发请求,*/
3
- request: {
4
- url: string;
5
- params: Function | Object;
6
- others?: Object;
7
- };
8
- /** BsSulaQueryTable的tableRef*/
9
- tableRef: any;
10
- }
11
- declare const ExportIcon: ({ request, tableRef }: exportIconType) => JSX.Element;
12
- export default ExportIcon;
@@ -1,5 +0,0 @@
1
- import './index.less';
2
- declare const QueryMutipleInput: ({ onValueChange }: {
3
- onValueChange: any;
4
- }) => JSX.Element;
5
- export default QueryMutipleInput;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const SearchSelect: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
- export default SearchSelect;
@@ -1,2 +0,0 @@
1
- declare const TreeSearchSelect: (props: any) => JSX.Element;
2
- export default TreeSearchSelect;
package/dist/index.d.ts DELETED
@@ -1,16 +0,0 @@
1
- import './utils/requestUtils';
2
- export { default as DataValidation } from './components/Functional/DataValidation';
3
- export { default as DataImport } from './components/Functional/DataImport';
4
- export { default as QueryMutipleInput } from './components/Functional/QueryMutipleInput';
5
- export { default as SearchSelect } from './components/Functional/SearchSelect';
6
- export { default as AddSelect } from './components/Functional/AddSelect';
7
- export { default as BillEntry } from './components/Functional/BillEntry';
8
- export { default as BusinessSearchSelect } from './components/Business/SearchSelect';
9
- export * from './components/Business/AddSelectBusiness';
10
- export { default as CommodityEntry } from './components/Business/CommodityEntry';
11
- export { default as CheckOneUser } from './utils/CheckOneUser';
12
- export { default as TreeSearchSelect } from './components/Functional/TreeSearchSelect';
13
- export { default as BusinessTreeSearchSelect } from './components/Business/TreeSearchSelect';
14
- export { default as StateFlow } from './components/Business/StateFlow';
15
- export { default as GuideWrapper } from './components/Business/CommonGuideWrapper';
16
- export { default as ExportIcon } from './components/Functional/ExportFunctions/ExportIcon';