@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
@@ -6,7 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
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
7
  import { VtxImage } from '@vtx/components';
8
8
  import { getVtxToken } from '@vtx/utils';
9
- import { Carousel, Col, Row } from 'antd';
9
+ import { Carousel } from 'antd';
10
10
  import { VmEmpty, VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
11
11
  import useSettings from "../../../_hooks/useSettings";
12
12
  import { CommonService } from "../../../_service";
@@ -50,63 +50,60 @@ var BaseInfo = function BaseInfo(props) {
50
50
  };
51
51
  })) || [];
52
52
  }
53
- return /*#__PURE__*/_jsx("div", {
53
+ return /*#__PURE__*/_jsxs("div", {
54
54
  className: "default-baseContent",
55
- children: /*#__PURE__*/_jsxs(Row, {
56
- gutter: [16, 10],
57
- children: [/*#__PURE__*/_jsx(Col, {
58
- flex: "430px",
59
- children: /*#__PURE__*/_jsxs(VmWrapper, {
60
- title: "\u57FA\u672C\u4FE1\u606F",
61
- children: [photos && /*#__PURE__*/_jsx("div", {
62
- className: "default-base-img",
63
- children: photos.length ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
64
- children: /*#__PURE__*/_jsx(Carousel, {
65
- style: {
66
- width: '100%',
67
- height: '100%',
68
- overflow: 'hidden'
69
- },
70
- children: photos.map(function (item) {
71
- return /*#__PURE__*/_jsx(VtxImage, {
72
- src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getVtxToken('token')),
73
- alt: item.name,
74
- style: {
75
- width: '100%',
76
- height: '100%',
77
- overflow: 'hidden'
78
- }
79
- }, item.id);
80
- })
55
+ children: [/*#__PURE__*/_jsx("div", {
56
+ className: "default-baseContent-left",
57
+ children: /*#__PURE__*/_jsxs(VmWrapper, {
58
+ title: "\u57FA\u672C\u4FE1\u606F",
59
+ children: [photos && /*#__PURE__*/_jsx("div", {
60
+ className: "default-base-img",
61
+ children: photos.length ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
62
+ children: /*#__PURE__*/_jsx(Carousel, {
63
+ style: {
64
+ width: '100%',
65
+ height: '100%',
66
+ overflow: 'hidden'
67
+ },
68
+ children: photos.map(function (item) {
69
+ return /*#__PURE__*/_jsx(VtxImage, {
70
+ src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getVtxToken('token')),
71
+ alt: item.name,
72
+ style: {
73
+ width: '100%',
74
+ height: '100%',
75
+ overflow: 'hidden'
76
+ }
77
+ }, item.id);
81
78
  })
82
- }) : /*#__PURE__*/_jsx(VmEmpty, {
83
- type: "NO_PICTURE",
84
- showText: false
85
79
  })
86
- }), /*#__PURE__*/_jsx("div", {
87
- className: "default-base-text",
88
- children: /*#__PURE__*/_jsx(VmInfoCollection, {
89
- data: (data === null || data === void 0 ? void 0 : data.length) > 0 ? data : getFieldRender(fields, info),
90
- horizontal: true,
91
- width: "50%",
92
- ellipsis: true
93
- })
94
- })]
95
- })
96
- }), /*#__PURE__*/_jsx(Col, {
97
- flex: "auto",
98
- children: /*#__PURE__*/_jsx("div", {
99
- className: "default-base-map",
100
- children: /*#__PURE__*/_jsx(VmMap, _objectSpread({
101
- mapCenter: mapCenter,
102
- mapType: (mapInfo === null || mapInfo === void 0 ? void 0 : mapInfo.mapType) || 'bmap',
103
- geometryType: geometryType,
104
- mapPoints: _mapPoints,
105
- mapPolygons: lineLayer !== null && lineLayer !== void 0 && lineLayer.rings ? [lineLayer] : []
106
- }, customMapInfo))
107
- })
108
- })]
109
- })
80
+ }) : /*#__PURE__*/_jsx(VmEmpty, {
81
+ type: "NO_PICTURE",
82
+ showText: false
83
+ })
84
+ }), /*#__PURE__*/_jsx("div", {
85
+ className: "default-base-text",
86
+ children: /*#__PURE__*/_jsx(VmInfoCollection, {
87
+ data: (data === null || data === void 0 ? void 0 : data.length) > 0 ? data : getFieldRender(fields, info),
88
+ horizontal: true,
89
+ width: "50%",
90
+ ellipsis: true
91
+ })
92
+ })]
93
+ })
94
+ }), /*#__PURE__*/_jsx("div", {
95
+ className: "default-baseContent-right",
96
+ children: /*#__PURE__*/_jsx("div", {
97
+ className: "default-base-map",
98
+ children: /*#__PURE__*/_jsx(VmMap, _objectSpread({
99
+ mapCenter: mapCenter,
100
+ mapType: (mapInfo === null || mapInfo === void 0 ? void 0 : mapInfo.mapType) || 'bmap',
101
+ geometryType: geometryType,
102
+ mapPoints: _mapPoints,
103
+ mapPolygons: lineLayer !== null && lineLayer !== void 0 && lineLayer.rings ? [lineLayer] : []
104
+ }, customMapInfo))
105
+ })
106
+ })]
110
107
  });
111
108
  };
112
109
  export default BaseInfo;
@@ -1,5 +1,15 @@
1
1
  .default-baseContent {
2
2
  height: 100%;
3
+ display: flex;
4
+ justify-content: start;
5
+ gap: 16px;
6
+
7
+ &-left {
8
+ width: 430px;
9
+ }
10
+ &-right {
11
+ flex: 1;
12
+ }
3
13
 
4
14
  .ant-row {
5
15
  height: 100%;
@@ -9,7 +19,6 @@
9
19
  &-img {
10
20
  margin-bottom: 16px;
11
21
  img {
12
- width: 100%;
13
22
  height: 207px;
14
23
  }
15
24
  }
@@ -20,7 +29,7 @@
20
29
  }
21
30
  .default-base-map {
22
31
  width: 100%;
23
- height: 660px;
32
+ height: 659px;
24
33
  border-radius: 8px;
25
34
  }
26
35
  }
@@ -1,66 +1,66 @@
1
- .vtx-device-analysis-dot {
2
- width: 6px;
3
- height: 6px;
4
- background: var(--green-color);
5
- border-radius: 50%;
6
- &.error {
7
- background: var(--red-color);
8
- }
9
- }
10
-
11
- .vtx-device-analysis-tabs {
12
- display: flex;
13
- gap: 16px;
14
- color: var(--modal-title-color);
15
- font-size: 14px;
16
- &-item {
17
- cursor: pointer;
18
- &.active {
19
- color: var(--blue-color);
20
- }
21
- }
22
- }
23
-
24
- .vtx-device-alarm-summary {
25
- width: 368px;
26
- height: 104px;
27
- padding: 20px;
28
- margin-bottom: 20px;
29
- color: var(--modal-title-color);
30
- display: flex;
31
- justify-content: space-between;
32
- flex-direction: column;
33
- cursor: pointer;
34
- background-image: url("../../imgs/current.png");
35
- background-size: 100% 100%;
36
- border-radius: 8px;
37
- border: 1px solid transparent;
38
- &-lable {
39
- font-size: 16px;
40
- font-weight: 600;
41
- }
42
- &-value {
43
- font-weight: 600;
44
- font-size: 24px;
45
- color: var(--red-color);
46
- }
47
- &.dark {
48
- background-image: url("../../imgs/current_dark.png");
49
- &:last-child {
50
- background-image: url("../../imgs/history_dark.png");
51
- }
52
- }
53
- &.active {
54
- border:1px solid var(--red-color);
55
- }
56
- &:last-child {
57
- margin-bottom: 0;
58
- background-image: url("../../imgs/history.png");
59
- .vtx-device-alarm-summary-value {
60
- color: var(--yellow-color);
61
- }
62
- &.active {
63
- border:1px solid var(--yellow-color);
64
- }
65
- }
66
- }
1
+ .vtx-device-analysis-dot {
2
+ width: 6px;
3
+ height: 6px;
4
+ background: var(--green-color);
5
+ border-radius: 50%;
6
+ &.error {
7
+ background: var(--red-color);
8
+ }
9
+ }
10
+
11
+ .vtx-device-analysis-tabs {
12
+ display: flex;
13
+ gap: 16px;
14
+ color: var(--modal-title-color);
15
+ font-size: 14px;
16
+ &-item {
17
+ cursor: pointer;
18
+ &.active {
19
+ color: var(--blue-color);
20
+ }
21
+ }
22
+ }
23
+
24
+ .vtx-device-alarm-summary {
25
+ width: 368px;
26
+ height: 104px;
27
+ padding: 20px;
28
+ margin-bottom: 20px;
29
+ color: var(--modal-title-color);
30
+ display: flex;
31
+ justify-content: space-between;
32
+ flex-direction: column;
33
+ cursor: pointer;
34
+ background-image: url("../../imgs/current.png");
35
+ background-size: 100% 100%;
36
+ border-radius: 8px;
37
+ border: 1px solid transparent;
38
+ &-lable {
39
+ font-size: 16px;
40
+ font-weight: 600;
41
+ }
42
+ &-value {
43
+ font-weight: 600;
44
+ font-size: 24px;
45
+ color: var(--red-color);
46
+ }
47
+ &.dark {
48
+ background-image: url("../../imgs/current_dark.png");
49
+ &:last-child {
50
+ background-image: url("../../imgs/history_dark.png");
51
+ }
52
+ }
53
+ &.active {
54
+ border:1px solid var(--red-color);
55
+ }
56
+ &:last-child {
57
+ margin-bottom: 0;
58
+ background-image: url("../../imgs/history.png");
59
+ .vtx-device-alarm-summary-value {
60
+ color: var(--yellow-color);
61
+ }
62
+ &.active {
63
+ border:1px solid var(--yellow-color);
64
+ }
65
+ }
66
+ }
@@ -28,7 +28,8 @@ var BaseService = {
28
28
  return request.get('/cloud/zd/lm/api/cp/dataBoard/getSumData.smvc', {
29
29
  data: {
30
30
  disposeUnitCode: code,
31
- date: date
31
+ date: date,
32
+ beenFilterProductNames: false
32
33
  }
33
34
  });
34
35
  }, {
@@ -22,40 +22,37 @@ export default function Jcqsfx(props) {
22
22
  children: /*#__PURE__*/_jsx(VmWrapper, {
23
23
  title: "\u8FDB\u573A\u8D8B\u52BF\u5206\u6790",
24
24
  needChange: false,
25
- children: /*#__PURE__*/_jsx("div", {
26
- className: "base-top--chart",
27
- children: /*#__PURE__*/_jsx(VmLineCharts, {
28
- unit: "\u5428",
29
- height: 320,
30
- showLegend: false,
31
- xAxis: (trendRes === null || trendRes === void 0 ? void 0 : trendRes.names) || [],
32
- yMax: maxNum,
33
- dataList: [{
34
- data: ((_trendRes$values2 = trendRes.values) === null || _trendRes$values2 === void 0 ? void 0 : _trendRes$values2[0]) || [],
35
- name: '进场量',
36
- markLine: {
37
- data: [{
38
- yAxis: trendRes !== null && trendRes !== void 0 && trendRes.values && trendRes.values[1] ? trendRes.values[1][0] : 0,
39
- lineStyle: {
40
- normal: {
41
- color: '#FFE25D'
42
- }
43
- },
44
- name: '设计能力(吨/日)'
45
- }],
25
+ children: /*#__PURE__*/_jsx(VmLineCharts, {
26
+ unit: "\u5428",
27
+ height: 240,
28
+ showLegend: false,
29
+ xAxis: (trendRes === null || trendRes === void 0 ? void 0 : trendRes.names) || [],
30
+ yMax: maxNum,
31
+ dataList: [{
32
+ data: ((_trendRes$values2 = trendRes.values) === null || _trendRes$values2 === void 0 ? void 0 : _trendRes$values2[0]) || [],
33
+ name: '进场量',
34
+ markLine: {
35
+ data: [{
36
+ yAxis: trendRes !== null && trendRes !== void 0 && trendRes.values && trendRes.values[1] ? trendRes.values[1][0] : 0,
46
37
  lineStyle: {
47
- color: '#52C41A'
38
+ normal: {
39
+ color: '#FFE25D'
40
+ }
48
41
  },
49
- label: {
50
- show: true,
51
- position: 'insideEndTop',
52
- formatter: '{b}: {c}',
53
- color: isDark ? '#fff' : chartFontColor,
54
- fontWeight: 'normal'
55
- }
42
+ name: '设计能力(吨/日)'
43
+ }],
44
+ lineStyle: {
45
+ color: '#52C41A'
46
+ },
47
+ label: {
48
+ show: true,
49
+ position: 'insideEndTop',
50
+ formatter: '{b}: {c}',
51
+ color: isDark ? '#fff' : chartFontColor,
52
+ fontWeight: 'normal'
56
53
  }
57
- }]
58
- })
54
+ }
55
+ }]
59
56
  })
60
57
  })
61
58
  });
@@ -19,7 +19,7 @@ function Qyjcl(props) {
19
19
  className: "df-qyjcl",
20
20
  children: areaSumData !== null && areaSumData !== void 0 && (_areaSumData$areaDeta = areaSumData.areaDetailList) !== null && _areaSumData$areaDeta !== void 0 && _areaSumData$areaDeta.length ? /*#__PURE__*/_jsx(VmPieCharts, {
21
21
  height: 216,
22
- total: total,
22
+ total: total === null || total === void 0 ? void 0 : total.toFixed(2),
23
23
  title: "\u5428",
24
24
  unit: "\u5428",
25
25
  name: "\u533A\u57DF\u8FDB\u573A\u91CF",
@@ -134,7 +134,10 @@ export default function RealtimeMonitor(_ref) {
134
134
  }, tableProps))
135
135
  })]
136
136
  }) : /*#__PURE__*/_jsx(VmEmpty, {
137
- type: "NO_DATA"
137
+ type: "NO_DATA",
138
+ style: {
139
+ height: 244
140
+ }
138
141
  })
139
142
  })
140
143
  })
@@ -71,9 +71,6 @@ var BaseInfo = function BaseInfo(props) {
71
71
  })
72
72
  }), /*#__PURE__*/_jsx("div", {
73
73
  className: "base-top--base",
74
- style: {
75
- height: 382
76
- },
77
74
  children: /*#__PURE__*/_jsx(VmInfoCollection, {
78
75
  data: getFieldRender(fields, info),
79
76
  horizontal: true,
@@ -28,6 +28,7 @@ var ChartJccc = function ChartJccc(_ref) {
28
28
  needChange: false,
29
29
  children: [/*#__PURE__*/_jsxs("div", {
30
30
  className: "metering-content-charts-desc",
31
+ title: "\u8FDB\u573A\u9AD8\u5CF0\u96C6\u4E2D\u5728".concat((dates === null || dates === void 0 ? void 0 : dates.join('点、')) || 0, "\u70B9\uFF0C\u8FDB\u573A\u8F66\u6B21\u5206\u522B\u4E3A").concat((count === null || count === void 0 ? void 0 : count.join('次、')) || '-', "\u6B21\uFF0C\n \u6CE8\u610F\u5408\u7406\u8C03\u5EA6\uFF0C \u7F13\u89E3\u5382\u533A\u6392\u961F\u60C5\u51B5\u3002"),
31
32
  children: ["\u8FDB\u573A\u9AD8\u5CF0\u96C6\u4E2D\u5728", (dates === null || dates === void 0 ? void 0 : dates.join('点、')) || 0, "\u70B9\uFF0C\u8FDB\u573A\u8F66\u6B21\u5206\u522B\u4E3A", (count === null || count === void 0 ? void 0 : count.join('次、')) || '-', "\u6B21\uFF0C\u6CE8\u610F\u5408\u7406\u8C03\u5EA6\uFF0C \u7F13\u89E3\u5382\u533A\u6392\u961F\u60C5\u51B5\u3002"]
32
33
  }), /*#__PURE__*/_jsx("div", {
33
34
  style: {
@@ -240,4 +240,48 @@ export var useUnit = function useUnit() {
240
240
  return {
241
241
  unitStr: unitStr
242
242
  };
243
+ };
244
+
245
+ // 处置证字段配置
246
+ export var useCzzFields = function useCzzFields() {
247
+ var _useRequest9 = useRequest(function () {
248
+ return request.get("/cloud/jzlj/web/field/config/list", {
249
+ data: {
250
+ ledgerType: 'CZHZBA'
251
+ }
252
+ });
253
+ }, {
254
+ refreshDeps: []
255
+ }),
256
+ res = _useRequest9.data;
257
+ var dataList = (res === null || res === void 0 ? void 0 : res.data) || [];
258
+ var visibleList = dataList.filter(function (item) {
259
+ var _item$functionKeys;
260
+ 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'));
261
+ });
262
+ return {
263
+ visibleList: visibleList
264
+ };
265
+ };
266
+
267
+ // 联单字段配置
268
+ export var useLdFields = function useLdFields() {
269
+ var _useRequest10 = useRequest(function () {
270
+ return request.get("/cloud/jzlj/web/field/config/list", {
271
+ data: {
272
+ ledgerType: 'CLYSLD'
273
+ }
274
+ });
275
+ }, {
276
+ refreshDeps: []
277
+ }),
278
+ res = _useRequest10.data;
279
+ var dataList = (res === null || res === void 0 ? void 0 : res.data) || [];
280
+ var visibleList = dataList.filter(function (item) {
281
+ var _item$functionKeys2;
282
+ 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'));
283
+ });
284
+ return {
285
+ visibleList: visibleList
286
+ };
243
287
  };
@@ -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); }
@@ -16,7 +20,7 @@ import React, { useEffect } from 'react';
16
20
  import { JzljDfTpdContext } from "../..";
17
21
  import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../_components";
18
22
  import useSettings from "../../../_hooks/useSettings";
19
- import { collectionApis, useUnit } from "../../api";
23
+ import { collectionApis, useLdFields, useUnit } from "../../api";
20
24
  import "./index.less";
21
25
  import dayjs from 'dayjs';
22
26
  import cc_dark from "../../imgs/overview_ctyl_pjrcc_dark.png";
@@ -57,7 +61,32 @@ export default function Collection() {
57
61
  chartData = state.chartData;
58
62
  var _useUnit = useUnit(),
59
63
  unitStr = _useUnit.unitStr;
60
- var columns = [['联单编号', 'code', {
64
+ var _useLdFields = useLdFields(),
65
+ visibleList = _useLdFields.visibleList;
66
+ var columns = [].concat(_toConsumableArray(visibleList !== null && visibleList !== void 0 && visibleList.length ? visibleList.filter(function (item) {
67
+ return item.dataShowKey !== 'endingPointName' && item.dataShowKey !== 'endingPointDivisionName';
68
+ }).map(function (item) {
69
+ return [item.displayName, item.dataShowKey, item.dataShowKey === 'jointOrderStatusName' ? {
70
+ width: item.columnWidth || 120,
71
+ render: function render(text, record) {
72
+ var colorMap = {
73
+ yqy: 'yellow',
74
+ yyd: 'blue',
75
+ yjs: 'green',
76
+ yqr: 'green'
77
+ };
78
+ var color = colorMap[record.jointOrderStatusCode] || 'yellow';
79
+ return /*#__PURE__*/_jsx(VmTag, {
80
+ title: text,
81
+ type: color
82
+ });
83
+ }
84
+ } : {
85
+ width: 120,
86
+ ellipsis: true,
87
+ align: item.dataShowKey === 'receivedWeight' ? 'right' : 'left'
88
+ }];
89
+ }) : [['联单编号', 'code', {
61
90
  width: 120,
62
91
  fixed: 'left',
63
92
  ellipsis: true
@@ -99,7 +128,7 @@ export default function Collection() {
99
128
  }], ["\u8FD0\u91CF(".concat(unitStr, ")"), 'receivedWeight', {
100
129
  width: 120,
101
130
  align: 'right'
102
- }], ['操作', 'action', {
131
+ }]]), [['操作', 'action', {
103
132
  width: 60,
104
133
  fixed: 'right',
105
134
  render: function render(text, record) {
@@ -114,7 +143,7 @@ export default function Collection() {
114
143
  children: "\u67E5\u770B"
115
144
  });
116
145
  }
117
- }]].map(function (item) {
146
+ }]]).map(function (item) {
118
147
  return _objectSpread({
119
148
  title: item[0],
120
149
  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); }
@@ -16,7 +20,7 @@ import React from 'react';
16
20
  import { JzljDfTpdContext } from "../..";
17
21
  import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../_components";
18
22
  import useSettings from "../../../_hooks/useSettings";
19
- import { disposeApis, fetchJzljEnum, getByParamTypeCode, overviewApis, useUnit } from "../../api";
23
+ import { disposeApis, fetchJzljEnum, getByParamTypeCode, overviewApis, useCzzFields, useUnit } from "../../api";
20
24
  import FlowMap from "./FlowMap";
21
25
  import "./index.less";
22
26
  import dispose_czz_dark from "../../imgs/dispose_czz_dark.png";
@@ -54,9 +58,34 @@ export default function Dispose() {
54
58
  flowData = state.flowData;
55
59
  var _useUnit = useUnit(),
56
60
  unitStr = _useUnit.unitStr;
61
+ var _useCzzFields = useCzzFields(),
62
+ visibleList = _useCzzFields.visibleList;
57
63
  var effectiveStatusList = fetchJzljEnum('EffectiveStatusEnum');
58
64
  var garbageTypeList = getByParamTypeCode('param_jzlj_disposal_garbage_type');
59
- var columns = [['运输单位', 'transportUnitName', {
65
+ var columns = [].concat(_toConsumableArray(visibleList !== null && visibleList !== void 0 && visibleList.length ? visibleList.filter(function (item) {
66
+ return item.dataShowKey !== 'endingPointName';
67
+ }).map(function (item) {
68
+ return [item.displayName, item.dataShowKey, item.dataShowKey === 'effectiveStatusName' ? {
69
+ width: 100,
70
+ render: function render(text, record) {
71
+ var colorMap = {
72
+ wsx: 'yellow',
73
+ sxz: 'green',
74
+ ysx: 'red',
75
+ yzz: 'gray'
76
+ };
77
+ var color = colorMap[record.effectiveStatusCode] || 'yellow';
78
+ return /*#__PURE__*/_jsx(VmTag, {
79
+ title: text,
80
+ type: color
81
+ });
82
+ }
83
+ } : {
84
+ width: 100,
85
+ ellipsis: true,
86
+ align: item.dataShowKey === 'transportWeight' ? 'right' : 'left'
87
+ }];
88
+ }) : [['运输单位', 'transportUnitName', {
60
89
  width: 160,
61
90
  ellipsis: true
62
91
  }], ['运输起点', 'startingPointName', {
@@ -87,7 +116,7 @@ export default function Dispose() {
87
116
  type: color
88
117
  });
89
118
  }
90
- }], ['操作', 'action', {
119
+ }]]), [['操作', 'action', {
91
120
  width: 60,
92
121
  render: function render(_, record) {
93
122
  return /*#__PURE__*/_jsx("a", {
@@ -101,7 +130,7 @@ export default function Dispose() {
101
130
  children: "\u67E5\u770B"
102
131
  });
103
132
  }
104
- }]].map(function (item) {
133
+ }]]).map(function (item) {
105
134
  return _objectSpread({
106
135
  title: item[0],
107
136
  dataIndex: item[1],