@vtx/modals2 5.0.33 → 5.0.35

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 (36) hide show
  1. package/lib/_components/vm-card-statistics/index.less +27 -27
  2. package/lib/_components/vm-factor-list/index.less +11 -11
  3. package/lib/_components/vm-popover/index.less +7 -7
  4. package/lib/_components/vm-table/index.js +4 -4
  5. package/lib/vtx-base-modal/Header/index.less +98 -98
  6. package/lib/vtx-base-modal/Tabs/index.less +54 -54
  7. package/lib/vtx-car-modal/api.js +42 -0
  8. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  9. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  10. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  11. package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +30 -3
  12. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +30 -3
  13. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
  14. package/lib/vtx-default-modal/api.js +2 -1
  15. package/lib/vtx-default-modal/components/BaseInfo/index.js +52 -55
  16. package/lib/vtx-default-modal/components/BaseInfo/index.less +11 -2
  17. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
  18. package/lib/vtx-df-modal/api.js +2 -1
  19. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +28 -31
  20. package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +1 -1
  21. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +4 -1
  22. package/lib/vtx-df-modal/components/BaseInfo/index.js +0 -3
  23. package/lib/vtx-df-modal/components/Metering/ChartJccc.js +1 -0
  24. package/lib/vtx-jzlj-df-tpd-modal/api.js +44 -0
  25. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +33 -4
  26. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +33 -4
  27. package/lib/vtx-jzlj-gcxm-modal/api.js +44 -0
  28. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +33 -4
  29. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +33 -4
  30. package/lib/vtx-jzlj-xnc-modal/api.js +44 -0
  31. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +33 -4
  32. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +33 -4
  33. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
  34. package/lib/vtx-restaurant-modal/config.js +52 -52
  35. package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
  36. package/package.json +78 -78
@@ -1,27 +1,27 @@
1
- .vm-car-statistics {
2
- width: 208px;
3
- height: 84px;
4
- display: flex;
5
- flex-direction: column;
6
- justify-content: space-between;
7
- padding: 20px;
8
- background-size: 100% 100%;
9
- &-label {
10
- color: var(--img-text-color);
11
- }
12
- &-value, &-unit {
13
- color: #1f1f1f;
14
- }
15
- &.vm-car-statistics-dark {
16
- .vm-car-statistics-value,.vm-car-statistics-unit {
17
- background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
18
- background-clip: text;
19
- -webkit-text-fill-color: transparent;
20
- }
21
- }
22
- &-value {
23
- font-size: 20px;
24
- font-weight: bold;
25
- margin-right: 4px;
26
- }
27
- }
1
+ .vm-car-statistics {
2
+ width: 208px;
3
+ height: 84px;
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: space-between;
7
+ padding: 20px;
8
+ background-size: 100% 100%;
9
+ &-label {
10
+ color: var(--img-text-color);
11
+ }
12
+ &-value, &-unit {
13
+ color: #1f1f1f;
14
+ }
15
+ &.vm-car-statistics-dark {
16
+ .vm-car-statistics-value,.vm-car-statistics-unit {
17
+ background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
18
+ background-clip: text;
19
+ -webkit-text-fill-color: transparent;
20
+ }
21
+ }
22
+ &-value {
23
+ font-size: 20px;
24
+ font-weight: bold;
25
+ margin-right: 4px;
26
+ }
27
+ }
@@ -1,11 +1,11 @@
1
- .vm-factor-list-wrap {
2
- display: flex;
3
- padding: 12px 16px;
4
- height: 68px;
5
- background: #F3F8FF;
6
- border-radius: 8px;
7
- gap: 26px;
8
- &.dark {
9
- background: rgba(0,136,240,0.15);
10
- }
11
- }
1
+ .vm-factor-list-wrap {
2
+ display: flex;
3
+ padding: 12px 16px;
4
+ height: 68px;
5
+ background: #F3F8FF;
6
+ border-radius: 8px;
7
+ gap: 26px;
8
+ &.dark {
9
+ background: rgba(0,136,240,0.15);
10
+ }
11
+ }
@@ -1,7 +1,7 @@
1
- .vm-popover {
2
- &.dark {
3
- .ant-popover-inner-content, .ant-popover-arrow-content, .ant-popover-arrow-content::before {
4
- background: rgb(51 95 135);
5
- }
6
- }
7
- }
1
+ .vm-popover {
2
+ &.dark {
3
+ .ant-popover-inner-content, .ant-popover-arrow-content, .ant-popover-arrow-content::before {
4
+ background: rgb(51 95 135);
5
+ }
6
+ }
7
+ }
@@ -173,10 +173,10 @@ var VMTable = function VMTable(props) {
173
173
  });
174
174
  };
175
175
 
176
- /**
177
- * 表格导出按钮
178
- * @param props
179
- * @returns
176
+ /**
177
+ * 表格导出按钮
178
+ * @param props
179
+ * @returns
180
180
  */
181
181
 
182
182
  export var ExportBtn = function ExportBtn(props) {
@@ -1,98 +1,98 @@
1
- .vm-modal-header-container {
2
- width: 100%;
3
- height: 116px;
4
- border-radius: 8px 8px 0 0;
5
- background: var(--modal-head-bg);
6
- padding: 0 16px;
7
- margin-top: 1px;
8
- }
9
-
10
- .vm-modal-header-wrap {
11
- width: 100%;
12
- height: 56px;
13
- display: flex;
14
- align-items: center;
15
- justify-content: space-between;
16
- position: relative;
17
- &::after {
18
- position: absolute;
19
- top: 54px;
20
- left: 0;
21
- content: '';
22
- width: 180px;
23
- height: 1px;
24
- background: var(--modal-head-line-bg);
25
- box-shadow: var(--modal-head-line-shadow);
26
- border-radius: 8px;
27
- animation: move 6s linear infinite;
28
-
29
- @keyframes move {
30
- 0% {
31
- left: 0;
32
- }
33
-
34
- 100% {
35
- left: calc(100% - 180px);
36
- }
37
- }
38
- }
39
-
40
- &-left {
41
- display: flex;
42
- align-items: center;
43
- gap: 8px;
44
-
45
- &-title {
46
- font-weight: bold;
47
- font-size: 20px;
48
- color: var(--modal-title-color);
49
- }
50
-
51
- &-tag {
52
- display: flex;
53
- align-items: center;
54
- justify-content: center;
55
- gap: 4px;
56
- height: 24px;
57
- border-radius: 16px;
58
- font-size: 12px;
59
- padding: 0 8px;
60
- border: 1px solid;
61
- }
62
- }
63
-
64
- &-right {
65
- display: flex;
66
- align-items: center;
67
- gap: 16px;
68
-
69
- &-close {
70
- display: flex;
71
- align-items: center;
72
- justify-content: center;
73
- color: var(--modal-close-color);
74
- width: 28px;
75
- height: 28px;
76
- cursor: pointer;
77
- font-size: 16px;
78
- }
79
-
80
- &-line {
81
- width: 1px;
82
- height: 14px;
83
- background-color: var(--modal-head-split-line-color);
84
- }
85
-
86
- &-collect {
87
- width: 28px;
88
- height: 28px;
89
- border-radius: 8px;
90
- text-align: center;
91
- cursor: pointer;
92
-
93
- &.active {
94
- background: var(--collect-bg);
95
- }
96
- }
97
- }
98
- }
1
+ .vm-modal-header-container {
2
+ width: 100%;
3
+ height: 116px;
4
+ border-radius: 8px 8px 0 0;
5
+ background: var(--modal-head-bg);
6
+ padding: 0 16px;
7
+ margin-top: 1px;
8
+ }
9
+
10
+ .vm-modal-header-wrap {
11
+ width: 100%;
12
+ height: 56px;
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ position: relative;
17
+ &::after {
18
+ position: absolute;
19
+ top: 54px;
20
+ left: 0;
21
+ content: '';
22
+ width: 180px;
23
+ height: 1px;
24
+ background: var(--modal-head-line-bg);
25
+ box-shadow: var(--modal-head-line-shadow);
26
+ border-radius: 8px;
27
+ animation: move 6s linear infinite;
28
+
29
+ @keyframes move {
30
+ 0% {
31
+ left: 0;
32
+ }
33
+
34
+ 100% {
35
+ left: calc(100% - 180px);
36
+ }
37
+ }
38
+ }
39
+
40
+ &-left {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 8px;
44
+
45
+ &-title {
46
+ font-weight: bold;
47
+ font-size: 20px;
48
+ color: var(--modal-title-color);
49
+ }
50
+
51
+ &-tag {
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ gap: 4px;
56
+ height: 24px;
57
+ border-radius: 16px;
58
+ font-size: 12px;
59
+ padding: 0 8px;
60
+ border: 1px solid;
61
+ }
62
+ }
63
+
64
+ &-right {
65
+ display: flex;
66
+ align-items: center;
67
+ gap: 16px;
68
+
69
+ &-close {
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ color: var(--modal-close-color);
74
+ width: 28px;
75
+ height: 28px;
76
+ cursor: pointer;
77
+ font-size: 16px;
78
+ }
79
+
80
+ &-line {
81
+ width: 1px;
82
+ height: 14px;
83
+ background-color: var(--modal-head-split-line-color);
84
+ }
85
+
86
+ &-collect {
87
+ width: 28px;
88
+ height: 28px;
89
+ border-radius: 8px;
90
+ text-align: center;
91
+ cursor: pointer;
92
+
93
+ &.active {
94
+ background: var(--collect-bg);
95
+ }
96
+ }
97
+ }
98
+ }
@@ -1,54 +1,54 @@
1
- .vm-modal-tabs {
2
- width: 100%;
3
- height: 60px;
4
- background: var(--vm-tabs-bg);
5
- border-radius: 8px 8px 0 0;
6
- border: none;
7
- // border: 2px solid var(--vm-tab-border-color);
8
- display: flex;
9
- justify-content: center;
10
- gap: 16px;
11
- align-items: center;
12
-
13
- &-item {
14
- display: flex;
15
- height: 36px;
16
- padding: 0 14px;
17
- font-size: 16px;
18
- gap: 8px;
19
- color: var(--vm-tabs-font-color);
20
- cursor: pointer;
21
- align-items: center;
22
- justify-content: center;
23
-
24
- &-active {
25
- background: var(--vm-tab-item-active-bg-color);
26
- border-radius: 26px;
27
- color: var(--vm-tab-item-active-color);
28
- box-shadow: var(--vm-tab-item-active-box-shadow);
29
- &.vm-modal-tabs-item-dark {
30
- position: relative;
31
- &::before {
32
- content: '';
33
- position: absolute;
34
- top: 0;
35
- left: 0;
36
- right: 0;
37
- bottom: 0;
38
- background: linear-gradient(
39
- 180deg,
40
- rgba(255, 255, 255, 1),
41
- rgba(54, 161, 255, 1)
42
- );
43
- border-radius: 26px;
44
- padding: 1px;
45
- -webkit-mask: linear-gradient(#fff 0 0) content-box,
46
- linear-gradient(#fff 0 0);
47
- -webkit-mask-composite: xor;
48
- mask-composite: exclude;
49
- z-index: -1;
50
- }
51
- }
52
- }
53
- }
54
- }
1
+ .vm-modal-tabs {
2
+ width: 100%;
3
+ height: 60px;
4
+ background: var(--vm-tabs-bg);
5
+ border-radius: 8px 8px 0 0;
6
+ border: none;
7
+ // border: 2px solid var(--vm-tab-border-color);
8
+ display: flex;
9
+ justify-content: center;
10
+ gap: 16px;
11
+ align-items: center;
12
+
13
+ &-item {
14
+ display: flex;
15
+ height: 36px;
16
+ padding: 0 14px;
17
+ font-size: 16px;
18
+ gap: 8px;
19
+ color: var(--vm-tabs-font-color);
20
+ cursor: pointer;
21
+ align-items: center;
22
+ justify-content: center;
23
+
24
+ &-active {
25
+ background: var(--vm-tab-item-active-bg-color);
26
+ border-radius: 26px;
27
+ color: var(--vm-tab-item-active-color);
28
+ box-shadow: var(--vm-tab-item-active-box-shadow);
29
+ &.vm-modal-tabs-item-dark {
30
+ position: relative;
31
+ &::before {
32
+ content: '';
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ right: 0;
37
+ bottom: 0;
38
+ background: linear-gradient(
39
+ 180deg,
40
+ rgba(255, 255, 255, 1),
41
+ rgba(54, 161, 255, 1)
42
+ );
43
+ border-radius: 26px;
44
+ padding: 1px;
45
+ -webkit-mask: linear-gradient(#fff 0 0) content-box,
46
+ linear-gradient(#fff 0 0);
47
+ -webkit-mask-composite: xor;
48
+ mask-composite: exclude;
49
+ z-index: -1;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -1306,5 +1306,47 @@ export var JzljService = {
1306
1306
  return {
1307
1307
  unitStr: unitStr
1308
1308
  };
1309
+ },
1310
+ // 处置证字段配置
1311
+ useCzzFields: function useCzzFields() {
1312
+ var _useRequest51 = useRequest(function () {
1313
+ return http.get("/cloud/jzlj/web/field/config/list", {
1314
+ body: {
1315
+ ledgerType: 'CZHZBA'
1316
+ }
1317
+ });
1318
+ }, {
1319
+ refreshDeps: []
1320
+ }),
1321
+ res = _useRequest51.data;
1322
+ var dataList = (res === null || res === void 0 ? void 0 : res.data) || [];
1323
+ var visibleList = dataList.filter(function (item) {
1324
+ var _item$functionKeys;
1325
+ return ['YES', 'YES_NO_UPDATE'].includes(item.isVisible) && ['YES', 'YES_NO_UPDATE'].includes(item.listVisible) && (item === null || item === void 0 || (_item$functionKeys = item.functionKeys) === null || _item$functionKeys === void 0 || (_item$functionKeys = _item$functionKeys.split(',')) === null || _item$functionKeys === void 0 ? void 0 : _item$functionKeys.includes('modal_show'));
1326
+ });
1327
+ return {
1328
+ visibleList: visibleList
1329
+ };
1330
+ },
1331
+ // 联单字段配置
1332
+ useLdFields: function useLdFields() {
1333
+ var _useRequest52 = useRequest(function () {
1334
+ return http.get("/cloud/jzlj/web/field/config/list", {
1335
+ body: {
1336
+ ledgerType: 'CLYSLD'
1337
+ }
1338
+ });
1339
+ }, {
1340
+ refreshDeps: []
1341
+ }),
1342
+ res = _useRequest52.data;
1343
+ var dataList = (res === null || res === void 0 ? void 0 : res.data) || [];
1344
+ var visibleList = dataList.filter(function (item) {
1345
+ var _item$functionKeys2;
1346
+ return ['YES', 'YES_NO_UPDATE'].includes(item.isVisible) && ['YES', 'YES_NO_UPDATE'].includes(item.listVisible) && (item === null || item === void 0 || (_item$functionKeys2 = item.functionKeys) === null || _item$functionKeys2 === void 0 || (_item$functionKeys2 = _item$functionKeys2.split(',')) === null || _item$functionKeys2 === void 0 ? void 0 : _item$functionKeys2.includes('modal_show'));
1347
+ });
1348
+ return {
1349
+ visibleList: visibleList
1350
+ };
1309
1351
  }
1310
1352
  };
@@ -1,6 +1,6 @@
1
- .vm-car-map-wrap {
2
- flex: 1;
3
- min-height: 0;
4
- width: 100%;
5
- margin-top: 10px;
6
- }
1
+ .vm-car-map-wrap {
2
+ flex: 1;
3
+ min-height: 0;
4
+ width: 100%;
5
+ margin-top: 10px;
6
+ }
@@ -1,6 +1,6 @@
1
- .vtx-car-oil-wrap {
2
- height: 100%;
3
- display: flex;
4
- gap: 16px;
5
- flex-direction: column;
6
- }
1
+ .vtx-car-oil-wrap {
2
+ height: 100%;
3
+ display: flex;
4
+ gap: 16px;
5
+ flex-direction: column;
6
+ }
@@ -1,6 +1,6 @@
1
- .vtx-car-water-wrap {
2
- height: 100%;
3
- display: flex;
4
- gap: 16px;
5
- flex-direction: column;
6
- }
1
+ .vtx-car-water-wrap {
2
+ height: 100%;
3
+ display: flex;
4
+ gap: 16px;
5
+ flex-direction: column;
6
+ }
@@ -4,6 +4,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
10
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
11
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
12
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
13
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -55,7 +59,30 @@ export default function Collection() {
55
59
  endingPointName = state.endingPointName,
56
60
  totalData = state.totalData,
57
61
  chartData = state.chartData;
58
- var columns = [['联单编号', 'code', {
62
+ var _JzljService$useLdFie = JzljService.useLdFields(),
63
+ visibleList = _JzljService$useLdFie.visibleList;
64
+ var columns = [].concat(_toConsumableArray(visibleList !== null && visibleList !== void 0 && visibleList.length ? visibleList.map(function (item) {
65
+ return [item.displayName, item.dataShowKey, item.dataShowKey === 'jointOrderStatusName' ? {
66
+ width: item.columnWidth || 120,
67
+ render: function render(text, record) {
68
+ var colorMap = {
69
+ yqy: 'yellow',
70
+ yyd: 'blue',
71
+ yjs: 'green',
72
+ yqr: 'green'
73
+ };
74
+ var color = colorMap[record.jointOrderStatusCode] || 'yellow';
75
+ return /*#__PURE__*/_jsx(VmTag, {
76
+ title: text,
77
+ type: color
78
+ });
79
+ }
80
+ } : {
81
+ width: 120,
82
+ ellipsis: true,
83
+ align: item.dataShowKey === 'receivedWeight' ? 'right' : 'left'
84
+ }];
85
+ }) : [['联单编号', 'code', {
59
86
  width: 120,
60
87
  fixed: 'left',
61
88
  ellipsis: true
@@ -98,7 +125,7 @@ export default function Collection() {
98
125
  }], ['运量(吨)', 'receivedWeight', {
99
126
  width: 120,
100
127
  align: 'right'
101
- }], ['操作', 'action', {
128
+ }]]), [['操作', 'action', {
102
129
  width: 60,
103
130
  fixed: 'right',
104
131
  render: function render(text, record) {
@@ -113,7 +140,7 @@ export default function Collection() {
113
140
  children: "\u67E5\u770B"
114
141
  });
115
142
  }
116
- }]].map(function (item) {
143
+ }]]).map(function (item) {
117
144
  return _objectSpread({
118
145
  title: item[0],
119
146
  dataIndex: item[1],
@@ -4,6 +4,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
10
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
11
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
12
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
13
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -41,12 +45,35 @@ export default function Dispose() {
41
45
  startingPointName = state.startingPointName,
42
46
  effectiveStatusCode = state.effectiveStatusCode,
43
47
  pieData = state.pieData;
48
+ var _JzljService$useCzzFi = JzljService.useCzzFields(),
49
+ visibleList = _JzljService$useCzzFi.visibleList;
44
50
  var effectiveStatusList = JzljService.fetchJzljEnum('EffectiveStatusEnum');
45
51
  var fieldConfigData = JzljService.fieldConfig();
46
52
  var transportWeightField = fieldConfigData.find(function (item) {
47
53
  return item.dataKey === 'transportWeight';
48
54
  }) || {};
49
- var columns = [['处置证编号', 'code', {
55
+ var columns = [].concat(_toConsumableArray(visibleList !== null && visibleList !== void 0 && visibleList.length ? visibleList.map(function (item) {
56
+ return [item.displayName, item.dataShowKey, item.dataShowKey === 'effectiveStatusName' ? {
57
+ width: 100,
58
+ render: function render(text, record) {
59
+ var colorMap = {
60
+ wsx: 'yellow',
61
+ sxz: 'green',
62
+ ysx: 'red',
63
+ yzz: 'gray'
64
+ };
65
+ var color = colorMap[record.effectiveStatusCode] || 'yellow';
66
+ return /*#__PURE__*/_jsx(VmTag, {
67
+ title: text,
68
+ type: color
69
+ });
70
+ }
71
+ } : {
72
+ width: item.columnWidth || 120,
73
+ ellipsis: true,
74
+ align: item.dataShowKey === 'transportWeight' ? 'right' : 'left'
75
+ }];
76
+ }) : [['处置证编号', 'code', {
50
77
  width: 160,
51
78
  ellipsis: true
52
79
  }], ['运输单位', 'transportUnitName', {
@@ -80,7 +107,7 @@ export default function Dispose() {
80
107
  type: color
81
108
  });
82
109
  }
83
- }], ['操作', 'action', {
110
+ }]]), [['操作', 'action', {
84
111
  width: 60,
85
112
  render: function render(_, record) {
86
113
  return /*#__PURE__*/_jsx("a", {
@@ -94,7 +121,7 @@ export default function Dispose() {
94
121
  children: "\u67E5\u770B"
95
122
  });
96
123
  }
97
- }]].map(function (item) {
124
+ }]]).map(function (item) {
98
125
  return _objectSpread({
99
126
  title: item[0],
100
127
  dataIndex: item[1],
@@ -1,6 +1,6 @@
1
- .vm-cc-unit-map-wrap {
2
- flex: 1;
3
- min-height: 230px;
4
- width: 100%;
5
- margin-top: 10px;
6
- }
1
+ .vm-cc-unit-map-wrap {
2
+ flex: 1;
3
+ min-height: 230px;
4
+ width: 100%;
5
+ margin-top: 10px;
6
+ }
@@ -27,7 +27,8 @@ var BaseService = {
27
27
  disposeUnitCode: code,
28
28
  startDate: startDate,
29
29
  endDate: endDate,
30
- tenantId: ''
30
+ tenantId: '',
31
+ beenFilterProductNames: false
31
32
  }
32
33
  });
33
34
  }, {