@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
@@ -322,4 +322,48 @@ export var useUnit = function useUnit() {
322
322
  return {
323
323
  unitStr: unitStr
324
324
  };
325
+ };
326
+
327
+ // 处置证字段配置
328
+ export var useCzzFields = function useCzzFields() {
329
+ var _useRequest10 = useRequest(function () {
330
+ return request.get("/cloud/jzlj/web/field/config/list", {
331
+ data: {
332
+ ledgerType: 'CZHZBA'
333
+ }
334
+ });
335
+ }, {
336
+ refreshDeps: []
337
+ }),
338
+ res = _useRequest10.data;
339
+ var dataList = (res === null || res === void 0 ? void 0 : res.data) || [];
340
+ var visibleList = dataList.filter(function (item) {
341
+ var _item$functionKeys;
342
+ 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'));
343
+ });
344
+ return {
345
+ visibleList: visibleList
346
+ };
347
+ };
348
+
349
+ // 联单字段配置
350
+ export var useLdFields = function useLdFields() {
351
+ var _useRequest11 = useRequest(function () {
352
+ return request.get("/cloud/jzlj/web/field/config/list", {
353
+ data: {
354
+ ledgerType: 'CLYSLD'
355
+ }
356
+ });
357
+ }, {
358
+ refreshDeps: []
359
+ }),
360
+ res = _useRequest11.data;
361
+ var dataList = (res === null || res === void 0 ? void 0 : res.data) || [];
362
+ var visibleList = dataList.filter(function (item) {
363
+ var _item$functionKeys2;
364
+ 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'));
365
+ });
366
+ return {
367
+ visibleList: visibleList
368
+ };
325
369
  };
@@ -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 { JzljGcxmContext } 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 !== 'startingPointName' && item.dataShowKey !== 'startingPointDivisionName';
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 { JzljGcxmContext } 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";
@@ -56,9 +60,34 @@ export default function Dispose() {
56
60
  flowData = state.flowData;
57
61
  var _useUnit = useUnit(),
58
62
  unitStr = _useUnit.unitStr;
63
+ var _useCzzFields = useCzzFields(),
64
+ visibleList = _useCzzFields.visibleList;
59
65
  var effectiveStatusList = fetchJzljEnum('EffectiveStatusEnum');
60
66
  var garbageTypeList = getByParamTypeCode('param_jzlj_disposal_garbage_type');
61
- var columns = [['运输单位', 'transportUnitName', {
67
+ var columns = [].concat(_toConsumableArray(visibleList !== null && visibleList !== void 0 && visibleList.length ? visibleList.filter(function (item) {
68
+ return item.dataShowKey !== 'startingPointName';
69
+ }).map(function (item) {
70
+ return [item.displayName, item.dataShowKey, item.dataShowKey === 'effectiveStatusName' ? {
71
+ width: item.columnWidth || 120,
72
+ render: function render(text, record) {
73
+ var colorMap = {
74
+ wsx: 'yellow',
75
+ sxz: 'green',
76
+ ysx: 'red',
77
+ yzz: 'gray'
78
+ };
79
+ var color = colorMap[record.effectiveStatusCode] || 'yellow';
80
+ return /*#__PURE__*/_jsx(VmTag, {
81
+ title: text,
82
+ type: color
83
+ });
84
+ }
85
+ } : {
86
+ width: 100,
87
+ ellipsis: true,
88
+ align: item.dataShowKey === 'transportWeight' ? 'right' : 'left'
89
+ }];
90
+ }) : [['运输单位', 'transportUnitName', {
62
91
  width: 160,
63
92
  ellipsis: true
64
93
  }], ['运输终点', 'endingPointName', {
@@ -89,7 +118,7 @@ export default function Dispose() {
89
118
  type: color
90
119
  });
91
120
  }
92
- }], ['操作', 'action', {
121
+ }]]), [['操作', 'action', {
93
122
  width: 60,
94
123
  render: function render(_, record) {
95
124
  return /*#__PURE__*/_jsx("a", {
@@ -103,7 +132,7 @@ export default function Dispose() {
103
132
  children: "\u67E5\u770B"
104
133
  });
105
134
  }
106
- }]].map(function (item) {
135
+ }]]).map(function (item) {
107
136
  return _objectSpread({
108
137
  title: item[0],
109
138
  dataIndex: item[1],
@@ -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 { JzljXncContext } 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 { JzljXncContext } 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: item.columnWidth || 120,
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],
@@ -1,16 +1,16 @@
1
- .vtx-restaurant-rule_item {
2
- border-radius: 8px 8px 8px 8px;
3
- border: 1px solid var(--gray-line-color);
4
- padding: 16px 16px 8px;
5
- margin-top: 12px;
6
- position: relative;
7
- .vtx-restaurant-border {
8
- width: 100%;
9
- position: absolute;
10
- left: 0;
11
- top: -2px;
12
- height: 44px;
13
- border-radius: 8px 8px 0px 0px;
14
- border-top: 2px solid var(--blue-color);
15
- }
16
- }
1
+ .vtx-restaurant-rule_item {
2
+ border-radius: 8px 8px 8px 8px;
3
+ border: 1px solid var(--gray-line-color);
4
+ padding: 16px 16px 8px;
5
+ margin-top: 12px;
6
+ position: relative;
7
+ .vtx-restaurant-border {
8
+ width: 100%;
9
+ position: absolute;
10
+ left: 0;
11
+ top: -2px;
12
+ height: 44px;
13
+ border-radius: 8px 8px 0px 0px;
14
+ border-top: 2px solid var(--blue-color);
15
+ }
16
+ }
@@ -60,108 +60,108 @@ export var QD_DETAIL_FIELDS = [{
60
60
  label: '二维码'
61
61
  }];
62
62
  export var RestaurantConfigureEnum = {
63
- /**
64
- * 编号
63
+ /**
64
+ * 编号
65
65
  */
66
66
  CODE: 'code',
67
- /**
68
- * 产生单位名称
67
+ /**
68
+ * 产生单位名称
69
69
  */
70
70
  NAME: 'name',
71
- /**
72
- * 店铺名称
71
+ /**
72
+ * 店铺名称
73
73
  */
74
74
  SHORT_NAME: 'shortName',
75
- /**
76
- * 行政区划名称
75
+ /**
76
+ * 行政区划名称
77
77
  */
78
78
  DIVISION_NAME: 'divisionId',
79
- /**
80
- * 联系人
79
+ /**
80
+ * 联系人
81
81
  */
82
82
  CONTACT_PERSON: 'contactPerson',
83
- /**
84
- * 联系方式
83
+ /**
84
+ * 联系方式
85
85
  */
86
86
  CONTACT_PHONE: 'contactPhone',
87
- /**
88
- * 身份证号
87
+ /**
88
+ * 身份证号
89
89
  */
90
90
  CARD_ID: 'cardId',
91
- /**
92
- * 商户地址
91
+ /**
92
+ * 商户地址
93
93
  */
94
94
  ADDRESS: 'address',
95
- /**
96
- * 经纬度
95
+ /**
96
+ * 经纬度
97
97
  */
98
98
  LOCATION: 'location',
99
- /**
100
- * 产生单位状态
99
+ /**
100
+ * 产生单位状态
101
101
  */
102
102
  SIGNED_STATUS: 'signedStatus',
103
- /**
104
- * 签约状态
103
+ /**
104
+ * 签约状态
105
105
  */
106
106
  IS_SIGN: 'isSign',
107
- /**
108
- * 收集类型
107
+ /**
108
+ * 收集类型
109
109
  */
110
110
  COLLECT_STATUS: 'collectStatus',
111
- /**
112
- * 收集点
111
+ /**
112
+ * 收集点
113
113
  */
114
114
  SY_POINT_NAME: 'syPointId',
115
- /**
116
- * 商户类型名称
115
+ /**
116
+ * 商户类型名称
117
117
  */
118
118
  CLASSES_NAME: 'classesId',
119
- /**
120
- * 规模名称
119
+ /**
120
+ * 规模名称
121
121
  */
122
122
  SCALE_NAME: 'scaleId',
123
- /**
124
- * 垃圾桶个数
123
+ /**
124
+ * 垃圾桶个数
125
125
  */
126
126
  TRASH_CAN_NUM: 'trashCanNum',
127
- /**
128
- * 统一社会信用代码
127
+ /**
128
+ * 统一社会信用代码
129
129
  */
130
130
  CREDIT_CODE: 'creditCode',
131
- /**
132
- * 行业名称
131
+ /**
132
+ * 行业名称
133
133
  */
134
134
  INDUSTRY_NAME: 'industryId',
135
- /**
136
- * 经营范围
135
+ /**
136
+ * 经营范围
137
137
  */
138
138
  BUSINESS_SCOPE: 'businessScope',
139
- /**
140
- * 注册资金
139
+ /**
140
+ * 注册资金
141
141
  */
142
142
  REGISTER_MONEY: 'registerMoney',
143
- /**
144
- * 企业成立时间
143
+ /**
144
+ * 企业成立时间
145
145
  */
146
146
  ESTABLISHED_TIME: 'establishedTime',
147
- /**
148
- * 建议收集时间
147
+ /**
148
+ * 建议收集时间
149
149
  */
150
150
  SUGGEST_COLLECT_TIME: 'suggestCollectTime',
151
- /**
152
- * 营业时间段
151
+ /**
152
+ * 营业时间段
153
153
  */
154
154
  BUSINESS_TIME: 'businessTime',
155
- /**
156
- * 垃圾桶摆放位置图片
155
+ /**
156
+ * 垃圾桶摆放位置图片
157
157
  */
158
158
  TRASH_BIN_LOCATION_PHOTO: 'trashBinLocationPhoto',
159
- /**
160
- * 商户图片
159
+ /**
160
+ * 商户图片
161
161
  */
162
162
  PHOTO_IDS: 'photoIds',
163
- /**
164
- * 证件图片
163
+ /**
164
+ * 证件图片
165
165
  */
166
166
  PAPER_FILE_IDS: 'paperFileIds'
167
167
  };
@@ -1,32 +1,32 @@
1
- .road-statistic-summary-main-rate {
2
- --bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
3
- &-dark {
4
- --bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
5
- }
6
- width: 100%;
7
- height: 130px;
8
- display: flex;
9
- align-items: center;
10
- justify-content: space-around;
11
- padding: 0 24px;
12
- background: var(--bg-color);
13
- border-radius: 8px;
14
- &--block {
15
- width: 8px;
16
- height: 8px;
17
- border-radius: 50%;
18
- }
19
- &--label {
20
- display: flex;
21
- gap: 4px;
22
- align-items: center;
23
- font-size: 16px;
24
- color: var(--img-text-color);
25
- }
26
- &--value {
27
- margin-left: 12px;
28
- font-weight: bold;
29
- font-size: 24px;
30
- color: #1F1F1F;
31
- }
32
- }
1
+ .road-statistic-summary-main-rate {
2
+ --bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
3
+ &-dark {
4
+ --bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
5
+ }
6
+ width: 100%;
7
+ height: 130px;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-around;
11
+ padding: 0 24px;
12
+ background: var(--bg-color);
13
+ border-radius: 8px;
14
+ &--block {
15
+ width: 8px;
16
+ height: 8px;
17
+ border-radius: 50%;
18
+ }
19
+ &--label {
20
+ display: flex;
21
+ gap: 4px;
22
+ align-items: center;
23
+ font-size: 16px;
24
+ color: var(--img-text-color);
25
+ }
26
+ &--value {
27
+ margin-left: 12px;
28
+ font-weight: bold;
29
+ font-size: 24px;
30
+ color: #1F1F1F;
31
+ }
32
+ }