@bit-sun/business-component 2.0.21 → 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 (34) hide show
  1. package/package.json +3 -2
  2. package/src/assets/exportFail.svg +25 -35
  3. package/src/assets/exportProcessing.svg +19 -29
  4. package/src/assets/exportSuccess.svg +23 -33
  5. package/src/assets/upExport.svg +8 -8
  6. package/src/components/Business/AddSelectBusiness/index.tsx +3 -1
  7. package/src/components/Business/SearchSelect/BusinessUtils.ts +1 -0
  8. package/src/components/Functional/AddSelect/index.md +2 -0
  9. package/src/components/Functional/BillEntry/index.tsx +4 -4
  10. package/src/components/Functional/SearchSelect/index.tsx +7 -1
  11. package/src/utils/utils.ts +22 -0
  12. package/dist/components/Business/AddSelectBusiness/index.d.ts +0 -1
  13. package/dist/components/Business/CommodityEntry/index.d.ts +0 -2
  14. package/dist/components/Business/CommonGuideWrapper/index.d.ts +0 -6
  15. package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +0 -5
  16. package/dist/components/Business/SearchSelect/common.d.ts +0 -17
  17. package/dist/components/Business/SearchSelect/index.d.ts +0 -3
  18. package/dist/components/Business/SearchSelect/utils.d.ts +0 -5
  19. package/dist/components/Business/StateFlow/index.d.ts +0 -3
  20. package/dist/components/Business/TreeSearchSelect/index.d.ts +0 -3
  21. package/dist/components/Business/TreeSearchSelect/utils.d.ts +0 -2
  22. package/dist/components/Functional/AddSelect/index.d.ts +0 -3
  23. package/dist/components/Functional/BillEntry/index.d.ts +0 -4
  24. package/dist/components/Functional/DataImport/index.d.ts +0 -144
  25. package/dist/components/Functional/DataValidation/index.d.ts +0 -144
  26. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +0 -12
  27. package/dist/components/Functional/QueryMutipleInput/index.d.ts +0 -5
  28. package/dist/components/Functional/SearchSelect/index.d.ts +0 -4
  29. package/dist/components/Functional/TreeSearchSelect/index.d.ts +0 -2
  30. package/dist/index.d.ts +0 -16
  31. package/dist/index.esm.js +0 -9049
  32. package/dist/index.js +0 -9074
  33. package/dist/utils/CheckOneUser/index.d.ts +0 -2
  34. package/dist/utils/requestUtils.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.0.21",
3
+ "version": "2.0.24",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -31,7 +31,8 @@
31
31
  "antd": "4.17.2",
32
32
  "axios": "^0.24.0",
33
33
  "classnames": "^2.3.1",
34
- "lodash": "^4.17.21",
34
+ "dayjs": "^1.11.5",
35
+ "lodash": "^4.7.21",
35
36
  "querystring": "^0.2.1",
36
37
  "react": "^16.12.0",
37
38
  "react-beautiful-dnd": "10.0.0",
@@ -1,43 +1,33 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>下载失败-icon</title>
4
- <defs>
5
- <rect id="path-1" x="0" y="0" width="40" height="40"></rect>
6
- </defs>
2
+ <svg width="40px" height="42px" viewBox="0 0 40 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 18</title>
7
4
  <g id="导出功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="列表数据导出功能-导出列表" transform="translate(-1584.000000, -137.000000)">
9
- <g id="编组-13" transform="translate(1570.000000, 0.000000)">
10
- <g id="编组-21备份-21" transform="translate(0.000000, 126.000000)">
11
- <g id="编组-6" transform="translate(14.000000, 11.000000)">
12
- <mask id="mask-2" fill="white">
13
- <use xlink:href="#path-1"></use>
14
- </mask>
15
- <use id="下载失败-icon" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
16
- <g mask="url(#mask-2)">
17
- <g transform="translate(4.000000, 3.000000)">
18
- <path d="M4.57142857,31.7142857 L4.57142857,2.28571429 C4.57142857,1.02334914 5.59477771,-1.10037491e-15 6.85714286,0 L22.974729,0 L22.974729,0 L32,8.22182322 L32,31.7142857 C32,32.9766509 30.9766509,34 29.7142857,34 L6.85714286,34 C5.59477771,34 4.57142857,32.9766509 4.57142857,31.7142857 Z" id="路径-6" fill="#1B79FF"></path>
19
- <g id="编组-2" stroke-width="1" fill="none" transform="translate(0.000000, 10.200000)">
20
- <path d="M12.5714286,0.571428571 C13.0448155,0.571428571 13.4733869,0.763306536 13.7836116,1.07353123 C14.0938363,1.38375593 14.2857143,1.81232736 14.2857143,2.28571429 L14.2857143,2.28571429 L14.2857143,12.447619 C14.2857143,12.921006 14.0938363,13.3495774 13.7836116,13.6598021 C13.4733869,13.9700268 13.0448155,14.1619048 12.5714286,14.1619048 L12.5714286,14.1619048 L2.28571429,14.1619048 C1.81232736,14.1619048 1.38375593,13.9700268 1.07353123,13.6598021 C0.763306536,13.3495774 0.571428571,12.921006 0.571428571,12.447619 L0.571428571,12.447619 L0.571428571,2.28571429 C0.571428571,1.81232736 0.763306536,1.38375593 1.07353123,1.07353123 C1.38375593,0.763306536 1.81232736,0.571428571 2.28571429,0.571428571 L2.28571429,0.571428571 Z" id="矩形" stroke="#005CFF" stroke-width="1.14285714" fill="#FFFFFF"></path>
21
- <g id="X" transform="translate(4.555429, 4.646667)" fill="#005CFF" fill-rule="nonzero">
22
- <polygon id="路径" points="4.112 5.55333333 2.952 3.8318 1.808 5.55333333 0 5.55333333 2.04 2.74493333 0.088 0 1.872 0 2.992 1.60253333 4.096 0 5.808 0 3.856 2.68146667 5.936 5.55333333"></polygon>
23
- </g>
5
+ <g id="编组-13" transform="translate(-14.000000, -138.000000)">
6
+ <g id="编组-21备份-21" transform="translate(0.000000, 126.000000)">
7
+ <g id="编组-18" transform="translate(14.000000, 12.000000)">
8
+ <rect id="矩形" stroke="#979797" fill="#D8D8D8" opacity="0" x="0.5" y="0.5" width="39" height="41"></rect>
9
+ <g id="编组-10" transform="translate(6.000000, 4.000000)">
10
+ <g id="编组-6">
11
+ <path d="M4,28 L4,2 C4,0.8954305 4.8954305,-1.91384796e-17 6,0 L20.1028879,0 L20.1028879,0 L28,7.2545499 L28,28 C28,29.1045695 27.1045695,30 26,30 L6,30 C4.8954305,30 4,29.1045695 4,28 Z" id="路径-6" fill="#1B79FF"></path>
12
+ <g id="编组-2" transform="translate(0.000000, 9.000000)">
13
+ <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#005CFF" fill="#FFFFFF"></path>
14
+ <g id="X" transform="translate(3.986000, 4.100000)" fill="#005CFF" fill-rule="nonzero">
15
+ <polygon id="路径" points="3.598 4.9 2.583 3.381 1.582 4.9 0 4.9 1.785 2.422 0.077 0 1.638 0 2.618 1.414 3.584 0 5.082 0 3.374 2.366 5.194 4.9"></polygon>
24
16
  </g>
25
- <path d="M17.1428571,11.3333333 L20.5714286,11.3333333 C21.2026111,11.3333333 21.7142857,11.8450079 21.7142857,12.4761905 L21.7142857,13.5904762 C21.7142857,14.2216588 21.2026111,14.7333333 20.5714286,14.7333333 L17.1428571,14.7333333 C16.5116746,14.7333333 16,14.2216588 16,13.5904762 L16,12.4761905 C16,11.8450079 16.5116746,11.3333333 17.1428571,11.3333333 Z" id="矩形备份-7" fill="#005CFF"></path>
26
- <path d="M24,11.3333333 L27.4285714,11.3333333 C28.059754,11.3333333 28.5714286,11.8450079 28.5714286,12.4761905 L28.5714286,13.5904762 C28.5714286,14.2216588 28.059754,14.7333333 27.4285714,14.7333333 L24,14.7333333 C23.3688174,14.7333333 22.8571429,14.2216588 22.8571429,13.5904762 L22.8571429,12.4761905 C22.8571429,11.8450079 23.3688174,11.3333333 24,11.3333333 Z" id="矩形备份-18" fill="#005CFF"></path>
27
- <path d="M17.1428571,15.8666667 L20.5714286,15.8666667 C21.2026111,15.8666667 21.7142857,16.3783412 21.7142857,17.0095238 L21.7142857,18.1238095 C21.7142857,18.7549921 21.2026111,19.2666667 20.5714286,19.2666667 L17.1428571,19.2666667 C16.5116746,19.2666667 16,18.7549921 16,18.1238095 L16,17.0095238 C16,16.3783412 16.5116746,15.8666667 17.1428571,15.8666667 Z" id="矩形备份-20" fill="#005CFF"></path>
28
- <path d="M24,15.8666667 L27.4285714,15.8666667 C28.059754,15.8666667 28.5714286,16.3783412 28.5714286,17.0095238 L28.5714286,18.1238095 C28.5714286,18.7549921 28.059754,19.2666667 27.4285714,19.2666667 L24,19.2666667 C23.3688174,19.2666667 22.8571429,18.7549921 22.8571429,18.1238095 L22.8571429,17.0095238 C22.8571429,16.3783412 23.3688174,15.8666667 24,15.8666667 Z" id="矩形备份-19" fill="#005CFF"></path>
29
- <path d="M17.1428571,20.4 L20.5714286,20.4 C21.2026111,20.4 21.7142857,20.9116746 21.7142857,21.5428571 L21.7142857,22.6571429 C21.7142857,23.2883254 21.2026111,23.8 20.5714286,23.8 L17.1428571,23.8 C16.5116746,23.8 16,23.2883254 16,22.6571429 L16,21.5428571 C16,20.9116746 16.5116746,20.4 17.1428571,20.4 Z" id="矩形备份-22" fill="#005CFF"></path>
30
- <path d="M24,20.4 L27.4285714,20.4 C28.059754,20.4 28.5714286,20.9116746 28.5714286,21.5428571 L28.5714286,22.6571429 C28.5714286,23.2883254 28.059754,23.8 27.4285714,23.8 L24,23.8 C23.3688174,23.8 22.8571429,23.2883254 22.8571429,22.6571429 L22.8571429,21.5428571 C22.8571429,20.9116746 23.3688174,20.4 24,20.4 Z" id="矩形备份-21" fill="#005CFF"></path>
31
- <polygon id="路径-19" fill="#005CFF" points="22.9906832 0 22.9906832 8.22182322 32 8.22182322"></polygon>
32
17
  </g>
18
+ <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#005CFF"></path>
19
+ <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#005CFF"></path>
20
+ <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#005CFF"></path>
21
+ <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#005CFF"></path>
22
+ <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#005CFF"></path>
23
+ <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#005CFF"></path>
24
+ <polygon id="路径-19" fill="#005CFF" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
33
25
  </g>
34
- <g id="编组-8" mask="url(#mask-2)">
35
- <g transform="translate(24.000000, 21.000000)">
36
- <circle id="椭圆形" stroke="#FFFFFF" fill="#FE0300" cx="8" cy="8" r="7.5"></circle>
37
- <g id="编组-9" stroke="none" fill="none" transform="translate(5.000000, 5.000000)" stroke-linecap="round">
38
- <polyline id="路径-20" stroke="#FFFFFF" stroke-width="1.13795117" transform="translate(3.181981, 3.181981) rotate(-315.000000) translate(-3.181981, -3.181981) " points="3.18198052 7.18198052 3.18198052 1.99975567 3.18198052 -0.818019485"></polyline>
39
- <polyline id="路径-20备份" stroke="#FFFFFF" stroke-width="1.13795117" transform="translate(3.181981, 3.181981) scale(-1, 1) rotate(-315.000000) translate(-3.181981, -3.181981) " points="3.18198052 7.18198052 3.18198052 1.99975567 3.18198052 -0.818019485"></polyline>
40
- </g>
26
+ <g id="编组-8" transform="translate(17.000000, 19.000000)" stroke="#FFFFFF">
27
+ <circle id="椭圆形" fill="#FE0300" cx="8" cy="8" r="7.5"></circle>
28
+ <g id="编组-9" transform="translate(5.000000, 5.000000)" stroke-linecap="round" stroke-width="1.13795117">
29
+ <polyline id="路径-20" transform="translate(3.181981, 3.181981) rotate(-315.000000) translate(-3.181981, -3.181981) " points="3.18198052 7.18198052 3.18198052 1.99975567 3.18198052 -0.818019485"></polyline>
30
+ <polyline id="路径-20备份" transform="translate(3.181981, 3.181981) scale(-1, 1) rotate(-315.000000) translate(-3.181981, -3.181981) " points="3.18198052 7.18198052 3.18198052 1.99975567 3.18198052 -0.818019485"></polyline>
41
31
  </g>
42
32
  </g>
43
33
  </g>
@@ -1,36 +1,26 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>下载中-icon</title>
4
- <defs>
5
- <rect id="path-1" x="0" y="0" width="40" height="40"></rect>
6
- </defs>
2
+ <svg width="40px" height="42px" viewBox="0 0 40 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 17</title>
7
4
  <g id="导出功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="列表数据导出功能-导出列表" transform="translate(-1584.000000, -75.000000)">
9
- <g id="编组-13" transform="translate(1570.000000, 0.000000)">
10
- <g id="编组-21备份-20" transform="translate(0.000000, 64.000000)">
11
- <g id="编组-6" transform="translate(14.000000, 11.000000)">
12
- <mask id="mask-2" fill="white">
13
- <use xlink:href="#path-1"></use>
14
- </mask>
15
- <use id="下载中-icon" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
16
- <g mask="url(#mask-2)">
17
- <g transform="translate(4.000000, 3.000000)">
18
- <path d="M4.57142857,31.7142857 L4.57142857,2.28571429 C4.57142857,1.02334914 5.59477771,-6.56285705e-16 6.85714286,0 L22.974729,0 L22.974729,0 L32,8.22182322 L32,31.7142857 C32,32.9766509 30.9766509,34 29.7142857,34 L6.85714286,34 C5.59477771,34 4.57142857,32.9766509 4.57142857,31.7142857 Z" id="路径-6" fill="#1B79FF"></path>
19
- <g id="编组-2" stroke-width="1" fill="none" transform="translate(0.000000, 10.200000)">
20
- <path d="M12.5714286,0.571428571 C13.0448155,0.571428571 13.4733869,0.763306536 13.7836116,1.07353123 C14.0938363,1.38375593 14.2857143,1.81232736 14.2857143,2.28571429 L14.2857143,2.28571429 L14.2857143,12.447619 C14.2857143,12.921006 14.0938363,13.3495774 13.7836116,13.6598021 C13.4733869,13.9700268 13.0448155,14.1619048 12.5714286,14.1619048 L12.5714286,14.1619048 L2.28571429,14.1619048 C1.81232736,14.1619048 1.38375593,13.9700268 1.07353123,13.6598021 C0.763306536,13.3495774 0.571428571,12.921006 0.571428571,12.447619 L0.571428571,12.447619 L0.571428571,2.28571429 C0.571428571,1.81232736 0.763306536,1.38375593 1.07353123,1.07353123 C1.38375593,0.763306536 1.81232736,0.571428571 2.28571429,0.571428571 L2.28571429,0.571428571 Z" id="矩形" stroke="#005CFF" stroke-width="1.14285714" fill="#FFFFFF"></path>
21
- <g id="X" transform="translate(4.555429, 4.646667)" fill="#005CFF" fill-rule="nonzero">
22
- <polygon id="路径" points="4.112 5.55333333 2.952 3.8318 1.808 5.55333333 0 5.55333333 2.04 2.74493333 0.088 0 1.872 0 2.992 1.60253333 4.096 0 5.808 0 3.856 2.68146667 5.936 5.55333333"></polygon>
23
- </g>
24
- </g>
25
- <path d="M17.1428571,11.3333333 L20.5714286,11.3333333 C21.2026111,11.3333333 21.7142857,11.8450079 21.7142857,12.4761905 L21.7142857,13.5904762 C21.7142857,14.2216588 21.2026111,14.7333333 20.5714286,14.7333333 L17.1428571,14.7333333 C16.5116746,14.7333333 16,14.2216588 16,13.5904762 L16,12.4761905 C16,11.8450079 16.5116746,11.3333333 17.1428571,11.3333333 Z" id="矩形备份-7" fill="#005CFF"></path>
26
- <path d="M24,11.3333333 L27.4285714,11.3333333 C28.059754,11.3333333 28.5714286,11.8450079 28.5714286,12.4761905 L28.5714286,13.5904762 C28.5714286,14.2216588 28.059754,14.7333333 27.4285714,14.7333333 L24,14.7333333 C23.3688174,14.7333333 22.8571429,14.2216588 22.8571429,13.5904762 L22.8571429,12.4761905 C22.8571429,11.8450079 23.3688174,11.3333333 24,11.3333333 Z" id="矩形备份-18" fill="#005CFF"></path>
27
- <path d="M17.1428571,15.8666667 L20.5714286,15.8666667 C21.2026111,15.8666667 21.7142857,16.3783412 21.7142857,17.0095238 L21.7142857,18.1238095 C21.7142857,18.7549921 21.2026111,19.2666667 20.5714286,19.2666667 L17.1428571,19.2666667 C16.5116746,19.2666667 16,18.7549921 16,18.1238095 L16,17.0095238 C16,16.3783412 16.5116746,15.8666667 17.1428571,15.8666667 Z" id="矩形备份-20" fill="#005CFF"></path>
28
- <path d="M24,15.8666667 L27.4285714,15.8666667 C28.059754,15.8666667 28.5714286,16.3783412 28.5714286,17.0095238 L28.5714286,18.1238095 C28.5714286,18.7549921 28.059754,19.2666667 27.4285714,19.2666667 L24,19.2666667 C23.3688174,19.2666667 22.8571429,18.7549921 22.8571429,18.1238095 L22.8571429,17.0095238 C22.8571429,16.3783412 23.3688174,15.8666667 24,15.8666667 Z" id="矩形备份-19" fill="#005CFF"></path>
29
- <path d="M17.1428571,20.4 L20.5714286,20.4 C21.2026111,20.4 21.7142857,20.9116746 21.7142857,21.5428571 L21.7142857,22.6571429 C21.7142857,23.2883254 21.2026111,23.8 20.5714286,23.8 L17.1428571,23.8 C16.5116746,23.8 16,23.2883254 16,22.6571429 L16,21.5428571 C16,20.9116746 16.5116746,20.4 17.1428571,20.4 Z" id="矩形备份-22" fill="#005CFF"></path>
30
- <path d="M24,20.4 L27.4285714,20.4 C28.059754,20.4 28.5714286,20.9116746 28.5714286,21.5428571 L28.5714286,22.6571429 C28.5714286,23.2883254 28.059754,23.8 27.4285714,23.8 L24,23.8 C23.3688174,23.8 22.8571429,23.2883254 22.8571429,22.6571429 L22.8571429,21.5428571 C22.8571429,20.9116746 23.3688174,20.4 24,20.4 Z" id="矩形备份-21" fill="#005CFF"></path>
31
- <polygon id="路径-19" fill="#005CFF" points="22.9906832 0 22.9906832 8.22182322 32 8.22182322"></polygon>
5
+ <g id="编组-13" transform="translate(-14.000000, -74.000000)">
6
+ <g id="编组-21备份-20" transform="translate(0.000000, 64.000000)">
7
+ <g id="编组-17" transform="translate(14.000000, 10.000000)">
8
+ <rect id="矩形" stroke="#979797" fill="#D8D8D8" opacity="0" x="0.5" y="0.5" width="39" height="41"></rect>
9
+ <g id="编组-6" transform="translate(6.000000, 6.000000)">
10
+ <path d="M4,28 L4,2 C4,0.8954305 4.8954305,-1.91384796e-17 6,0 L20.1028879,0 L20.1028879,0 L28,7.2545499 L28,28 C28,29.1045695 27.1045695,30 26,30 L6,30 C4.8954305,30 4,29.1045695 4,28 Z" id="路径-6" fill="#1B79FF"></path>
11
+ <g id="编组-2" transform="translate(0.000000, 9.000000)">
12
+ <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#005CFF" fill="#FFFFFF"></path>
13
+ <g id="X" transform="translate(3.986000, 4.100000)" fill="#005CFF" fill-rule="nonzero">
14
+ <polygon id="路径" points="3.598 4.9 2.583 3.381 1.582 4.9 0 4.9 1.785 2.422 0.077 0 1.638 0 2.618 1.414 3.584 0 5.082 0 3.374 2.366 5.194 4.9"></polygon>
32
15
  </g>
33
16
  </g>
17
+ <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#005CFF"></path>
18
+ <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#005CFF"></path>
19
+ <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#005CFF"></path>
20
+ <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#005CFF"></path>
21
+ <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#005CFF"></path>
22
+ <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#005CFF"></path>
23
+ <polygon id="路径-19" fill="#005CFF" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
34
24
  </g>
35
25
  </g>
36
26
  </g>
@@ -1,41 +1,31 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>下载中-icon</title>
4
- <defs>
5
- <rect id="path-1" x="0" y="0" width="40" height="40"></rect>
6
- </defs>
2
+ <svg width="40px" height="42px" viewBox="0 0 40 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 19</title>
7
4
  <g id="导出功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="列表数据导出功能-导出列表" transform="translate(-1584.000000, -199.000000)">
9
- <g id="编组-13" transform="translate(1570.000000, 0.000000)">
10
- <g id="编组-21备份-22" transform="translate(0.000000, 188.000000)">
11
- <g id="编组-6" transform="translate(14.000000, 11.000000)">
12
- <mask id="mask-2" fill="white">
13
- <use xlink:href="#path-1"></use>
14
- </mask>
15
- <use id="下载中-icon" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
16
- <g mask="url(#mask-2)">
17
- <g transform="translate(4.000000, 3.000000)">
18
- <path d="M4.57142857,31.7142857 L4.57142857,2.28571429 C4.57142857,1.02334914 5.59477771,-1.10037491e-15 6.85714286,0 L22.974729,0 L22.974729,0 L32,8.22182322 L32,31.7142857 C32,32.9766509 30.9766509,34 29.7142857,34 L6.85714286,34 C5.59477771,34 4.57142857,32.9766509 4.57142857,31.7142857 Z" id="路径-6" fill="#1B79FF"></path>
19
- <g id="编组-2" stroke-width="1" fill="none" transform="translate(0.000000, 10.200000)">
20
- <path d="M12.5714286,0.571428571 C13.0448155,0.571428571 13.4733869,0.763306536 13.7836116,1.07353123 C14.0938363,1.38375593 14.2857143,1.81232736 14.2857143,2.28571429 L14.2857143,2.28571429 L14.2857143,12.447619 C14.2857143,12.921006 14.0938363,13.3495774 13.7836116,13.6598021 C13.4733869,13.9700268 13.0448155,14.1619048 12.5714286,14.1619048 L12.5714286,14.1619048 L2.28571429,14.1619048 C1.81232736,14.1619048 1.38375593,13.9700268 1.07353123,13.6598021 C0.763306536,13.3495774 0.571428571,12.921006 0.571428571,12.447619 L0.571428571,12.447619 L0.571428571,2.28571429 C0.571428571,1.81232736 0.763306536,1.38375593 1.07353123,1.07353123 C1.38375593,0.763306536 1.81232736,0.571428571 2.28571429,0.571428571 L2.28571429,0.571428571 Z" id="矩形" stroke="#005CFF" stroke-width="1.14285714" fill="#FFFFFF"></path>
21
- <g id="X" transform="translate(4.555429, 4.646667)" fill="#005CFF" fill-rule="nonzero">
22
- <polygon id="路径" points="4.112 5.55333333 2.952 3.8318 1.808 5.55333333 0 5.55333333 2.04 2.74493333 0.088 0 1.872 0 2.992 1.60253333 4.096 0 5.808 0 3.856 2.68146667 5.936 5.55333333"></polygon>
23
- </g>
5
+ <g id="编组-13" transform="translate(-14.000000, -200.000000)">
6
+ <g id="编组-21备份-22" transform="translate(0.000000, 188.000000)">
7
+ <g id="编组-19" transform="translate(14.000000, 12.000000)">
8
+ <rect id="矩形" stroke="#979797" fill="#D8D8D8" opacity="0" x="0.5" y="0.5" width="39" height="41"></rect>
9
+ <g id="编组-16" transform="translate(6.000000, 4.000000)">
10
+ <g id="编组-6">
11
+ <path d="M4,28 L4,2 C4,0.8954305 4.8954305,-1.91384796e-17 6,0 L20.1028879,0 L20.1028879,0 L28,7.2545499 L28,28 C28,29.1045695 27.1045695,30 26,30 L6,30 C4.8954305,30 4,29.1045695 4,28 Z" id="路径-6" fill="#1B79FF"></path>
12
+ <g id="编组-2" transform="translate(0.000000, 9.000000)">
13
+ <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#005CFF" fill="#FFFFFF"></path>
14
+ <g id="X" transform="translate(3.986000, 4.100000)" fill="#005CFF" fill-rule="nonzero">
15
+ <polygon id="路径" points="3.598 4.9 2.583 3.381 1.582 4.9 0 4.9 1.785 2.422 0.077 0 1.638 0 2.618 1.414 3.584 0 5.082 0 3.374 2.366 5.194 4.9"></polygon>
24
16
  </g>
25
- <path d="M17.1428571,11.3333333 L20.5714286,11.3333333 C21.2026111,11.3333333 21.7142857,11.8450079 21.7142857,12.4761905 L21.7142857,13.5904762 C21.7142857,14.2216588 21.2026111,14.7333333 20.5714286,14.7333333 L17.1428571,14.7333333 C16.5116746,14.7333333 16,14.2216588 16,13.5904762 L16,12.4761905 C16,11.8450079 16.5116746,11.3333333 17.1428571,11.3333333 Z" id="矩形备份-7" fill="#005CFF"></path>
26
- <path d="M24,11.3333333 L27.4285714,11.3333333 C28.059754,11.3333333 28.5714286,11.8450079 28.5714286,12.4761905 L28.5714286,13.5904762 C28.5714286,14.2216588 28.059754,14.7333333 27.4285714,14.7333333 L24,14.7333333 C23.3688174,14.7333333 22.8571429,14.2216588 22.8571429,13.5904762 L22.8571429,12.4761905 C22.8571429,11.8450079 23.3688174,11.3333333 24,11.3333333 Z" id="矩形备份-18" fill="#005CFF"></path>
27
- <path d="M17.1428571,15.8666667 L20.5714286,15.8666667 C21.2026111,15.8666667 21.7142857,16.3783412 21.7142857,17.0095238 L21.7142857,18.1238095 C21.7142857,18.7549921 21.2026111,19.2666667 20.5714286,19.2666667 L17.1428571,19.2666667 C16.5116746,19.2666667 16,18.7549921 16,18.1238095 L16,17.0095238 C16,16.3783412 16.5116746,15.8666667 17.1428571,15.8666667 Z" id="矩形备份-20" fill="#005CFF"></path>
28
- <path d="M24,15.8666667 L27.4285714,15.8666667 C28.059754,15.8666667 28.5714286,16.3783412 28.5714286,17.0095238 L28.5714286,18.1238095 C28.5714286,18.7549921 28.059754,19.2666667 27.4285714,19.2666667 L24,19.2666667 C23.3688174,19.2666667 22.8571429,18.7549921 22.8571429,18.1238095 L22.8571429,17.0095238 C22.8571429,16.3783412 23.3688174,15.8666667 24,15.8666667 Z" id="矩形备份-19" fill="#005CFF"></path>
29
- <path d="M17.1428571,20.4 L20.5714286,20.4 C21.2026111,20.4 21.7142857,20.9116746 21.7142857,21.5428571 L21.7142857,22.6571429 C21.7142857,23.2883254 21.2026111,23.8 20.5714286,23.8 L17.1428571,23.8 C16.5116746,23.8 16,23.2883254 16,22.6571429 L16,21.5428571 C16,20.9116746 16.5116746,20.4 17.1428571,20.4 Z" id="矩形备份-22" fill="#005CFF"></path>
30
- <path d="M24,20.4 L27.4285714,20.4 C28.059754,20.4 28.5714286,20.9116746 28.5714286,21.5428571 L28.5714286,22.6571429 C28.5714286,23.2883254 28.059754,23.8 27.4285714,23.8 L24,23.8 C23.3688174,23.8 22.8571429,23.2883254 22.8571429,22.6571429 L22.8571429,21.5428571 C22.8571429,20.9116746 23.3688174,20.4 24,20.4 Z" id="矩形备份-21" fill="#005CFF"></path>
31
- <polygon id="路径-19" fill="#005CFF" points="22.9906832 0 22.9906832 8.22182322 32 8.22182322"></polygon>
32
17
  </g>
18
+ <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#005CFF"></path>
19
+ <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#005CFF"></path>
20
+ <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#005CFF"></path>
21
+ <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#005CFF"></path>
22
+ <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#005CFF"></path>
23
+ <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#005CFF"></path>
24
+ <polygon id="路径-19" fill="#005CFF" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
33
25
  </g>
34
- <g id="编组-8" mask="url(#mask-2)" stroke="#FFFFFF">
35
- <g transform="translate(24.000000, 24.000000)">
36
- <circle id="椭圆形" stroke-width="1" fill="#14C255" fill-rule="evenodd" cx="8" cy="8" r="7.5"></circle>
37
- <polyline id="路径-20" stroke-width="1.13795117" fill="none" stroke-linecap="round" points="4 7.78993765 7.25875897 11 12 5"></polyline>
38
- </g>
26
+ <g id="编组-8" transform="translate(17.000000, 19.000000)" stroke="#FFFFFF">
27
+ <circle id="椭圆形" fill="#14C255" cx="8" cy="8" r="7.5"></circle>
28
+ <polyline id="路径-20" stroke-width="1.13795117" stroke-linecap="round" points="4 7.78993765 7.25875897 11 12 5"></polyline>
39
29
  </g>
40
30
  </g>
41
31
  </g>
@@ -1,20 +1,20 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>下载记录-icon</title>
3
+ <title>xinglan-icon-message备份 5</title>
4
4
  <defs>
5
5
  <rect id="path-1" x="0" y="0" width="24" height="24"></rect>
6
6
  </defs>
7
- <g id="首页" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="首页-消息入口" transform="translate(-1653.000000, -13.000000)">
9
- <g id="编组-11备份-2" transform="translate(1653.000000, 13.000000)">
7
+ <g id="导出功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <g id="导出功能-导出数据转入后台提示" transform="translate(-1659.000000, -18.000000)">
9
+ <g id="导入、导出记录icon" transform="translate(1659.000000, 18.000000)">
10
10
  <mask id="mask-2" fill="white">
11
11
  <use xlink:href="#path-1"></use>
12
12
  </mask>
13
13
  <use id="xinglan-icon-message" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
14
- <g id="编组-43" mask="url(#mask-2)" fill="#A9B7E0">
15
- <g transform="translate(3.000000, 5.000000)">
16
- <path d="M6.13636364,0 C8.63317229,0 10.7816931,1.49524673 11.7399047,3.64143255 C12.2798603,3.40935387 12.8750529,3.28161372 13.5,3.28161372 C15.9852814,3.28161372 18,5.30180291 18,7.79383258 C18,10.0230473 16.3878264,11.8746964 14.2687972,12.2404603 C14.2465364,11.7876875 14.070622,11.3415459 13.7391397,10.9841303 C13.1286438,10.3258726 12.1783769,10.1711683 11.4091093,10.5396215 L11.4091093,10.5396215 L11.4090909,8.93969663 L11.4036052,8.79043429 C11.327256,7.75557442 10.4634527,6.93969663 9.40909091,6.93969663 C8.30452141,6.93969663 7.40909091,7.83512713 7.40909091,8.93969663 L7.40909091,8.93969663 L7.41007537,10.5401022 C6.64063099,10.1710339 5.68980332,10.3255866 5.07904209,10.9841303 C4.78169022,11.3047453 4.60952003,11.696756 4.56026628,12.099988 C1.93590154,11.404792 0,9.00559976 0,6.15302572 C0,2.75480345 2.74734358,0 6.13636364,0 Z" id="形状结合" fill-rule="evenodd"></path>
17
- <path d="M9.40909091,8.13969663 C9.81693196,8.13969663 10.1534925,8.44488478 10.2028578,8.83934633 L10.2090909,8.93969663 L10.209,13.166 L11.7287222,11.757578 C12.0526731,11.4571323 12.5588465,11.476187 12.8592923,11.8001379 C13.1324247,12.0946387 13.1415072,12.5397367 12.8975122,12.843959 L12.8167323,12.930708 L9.40909091,16.0910982 L6.00144947,12.930708 C5.67749858,12.6302623 5.65844386,12.1240888 5.95888956,11.8001379 C6.23202202,11.5056371 6.67517742,11.4631166 6.99688293,11.6835488 L7.08945962,11.757578 L8.609,13.166 L8.60909091,8.93969663 C8.60909091,8.49786883 8.96726311,8.13969663 9.40909091,8.13969663 Z" id="形状结合备份-2" fill-rule="nonzero"></path>
14
+ <g id="responsetime" mask="url(#mask-2)" fill="#000000" fill-rule="nonzero">
15
+ <g transform="translate(3.000000, 2.000000)">
16
+ <path d="M5.21516417,6.74357406 L4.07552238,7.8711358 L0,3.83881343 L3.87940299,0 L5.02011939,1.12756173 L3.05785074,3.06796734 L9.4438209,3.06903059 C14.112,3.06903059 17.9075821,6.76802848 17.9978507,11.3659924 L18,11.5345153 C18,16.2095638 14.1689552,20 9.4438209,20 C4.71814925,20 0.887104494,16.2095638 0.887104469,11.5345153 L2.49904477,11.5345153 C2.49904477,15.3292044 5.6084776,18.4051461 9.4438209,18.4051461 C13.2786269,18.4051461 16.3880597,15.3292044 16.3880597,11.5345153 C16.3880597,7.73982616 13.2786269,4.66388453 9.4438209,4.66388453 L3.11265671,4.66335292 L5.21516417,6.74357406 Z" id="形状"></path>
17
+ <path d="M10.4,7.2 L10.399,12.381 L12.4660494,10.315207 L13.6934831,11.5426407 L9.55833777,15.677786 L5.2,11.5508424 L6.44018239,10.31066 L8.599,12.309 L8.6,7.2 L10.4,7.2 Z" id="形状结合" transform="translate(9.446742, 11.438893) scale(1, -1) translate(-9.446742, -11.438893) "></path>
18
18
  </g>
19
19
  </g>
20
20
  </g>
@@ -23,6 +23,8 @@ export const AddSkuSelect = (parProps: any) => {
23
23
  filter: 'qp-name-like', // 过滤参数 支持'qp-name-like'和['qp-name-like', 'qp-code-like']两种结构
24
24
  otherParams: {
25
25
  'qp-combination-eq': false,
26
+ 'qp-approveStatus-eq': 1,
27
+ 'qp-status-eq': 1,
26
28
  }, // 默认参数
27
29
  mappingTextField: 'name',
28
30
  mappingValueField: 'skuCode',
@@ -244,7 +246,7 @@ export const AddSkuSelect = (parProps: any) => {
244
246
  return basePackUnit.name || basePackUnit.unitCode
245
247
  }
246
248
 
247
-
249
+
248
250
  return <></>
249
251
  },
250
252
  },
@@ -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
  }, // 默认参数
@@ -30,6 +30,8 @@ export default () => {
30
30
  filter: 'qp-name-like', // 过滤参数 支持'qp-name-like'和['qp-name-like', 'qp-code-like']两种结构
31
31
  otherParams: {
32
32
  'qp-combination-eq': false,
33
+ 'qp-approveStatus-eq': 1,
34
+ 'qp-status-eq': 1,
33
35
  }, // 默认参数
34
36
  mappingTextField: 'name',
35
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 })}`)
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') {
@@ -423,7 +423,7 @@ const BillEntry: React.FC = ({ onSaveCallback }) => {
423
423
  return basePackUnit.name || basePackUnit.unitCode
424
424
  }
425
425
 
426
-
426
+
427
427
  return <></>
428
428
  },
429
429
  },
@@ -520,7 +520,7 @@ const BillEntry: React.FC = ({ onSaveCallback }) => {
520
520
  return (
521
521
  <div className='add_select'>
522
522
  <div className='add_select_quick_header'>
523
- <div className='add_select_quick_header_title'><div>快速录入</div><Button type="primary" onClick={() => {
523
+ <div className='add_select_quick_header_title'><div>快速录入</div><Button type="primary" onClick={() => {
524
524
  onSaveCallback(data)
525
525
  }}>提交</Button></div>
526
526
  <span><span>*</span> &nbsp;快捷键:【Tab】-跳格切换;【Shift+←、→】-当前行左、右移动;【 ↑、↓】-当前列上、下移动;【ctrl+Delete】-删除当前行;</span>
@@ -544,4 +544,4 @@ const BillEntry: React.FC = ({ onSaveCallback }) => {
544
544
  );
545
545
  };
546
546
 
547
- export default BillEntry;
547
+ export default BillEntry;
@@ -71,7 +71,13 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
71
71
  // 优化搜索参数 支持传多个
72
72
  let searchParams = {};
73
73
  if (typeof selectParamsKey === 'string') {
74
- searchParams = v ? { [selectParamsInitKey]: initVal } : { [selectParamsKey]: searchValue }
74
+ let selectParamsInitValue = initVal
75
+ if(labelInValue) {
76
+ selectParamsInitValue = Array.isArray(initVal)? initVal.map((i: any) => i.value || i.key).join(','): initVal
77
+ } else {
78
+ selectParamsInitValue = Array.isArray(initVal)? initVal.join(','): initVal
79
+ }
80
+ searchParams = v ? { [selectParamsInitKey]: selectParamsInitValue } : { [selectParamsKey]: searchValue }
75
81
  }
76
82
  if (Array.isArray(selectParamsKey)) {
77
83
  selectParamsKey.forEach((i: any) => {
@@ -0,0 +1,22 @@
1
+ import dayjs from 'dayjs'
2
+
3
+ export function downloadExcel(data: any, fileName?: any, isResUrl?: boolean) {
4
+ const resUrl = isResUrl
5
+ ? data
6
+ : window.URL.createObjectURL(
7
+ new Blob([data], {
8
+ type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
9
+ }),
10
+ );
11
+ const save_link = document.createElement('a');
12
+ save_link.href = resUrl;
13
+ if (fileName) {
14
+ save_link.download = fileName; /// 设置下载文件名
15
+ }
16
+ save_link.click();
17
+ }
18
+
19
+ export function handleCommonTimeRender(text: any, format?: any) {
20
+ const formatType = format || 'YYYY-MM-DD HH:mm:ss';
21
+ return text && dayjs(text).format(formatType);
22
+ }
@@ -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;