@vtx/modals2 5.0.18 → 5.0.20

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 (137) hide show
  1. package/lib/_components/vm-empty/index.js +4 -1
  2. package/lib/_components/vm-empty/style/index.less +4 -0
  3. package/lib/_components/vm-filter/index.js +4 -2
  4. package/lib/_components/vm-pie-charts/index.js +8 -1
  5. package/lib/_components/vm-repair-maintain/RmRecord.js +3 -3
  6. package/lib/_components/vm-repair-maintain/index.js +2 -2
  7. package/lib/_components/vm-table/style/index.less +12 -4
  8. package/lib/_components/vm-theme-provider/index.js +3 -3
  9. package/lib/index.js +3 -1
  10. package/lib/vtx-area-modal/api.js +2 -2
  11. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -2
  12. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -2
  13. package/lib/vtx-area-modal/components/BaseInfo/index.js +2 -2
  14. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +2 -2
  15. package/lib/vtx-cp-modal/components/BaseInfo/index.js +2 -2
  16. package/lib/vtx-default-modal/index.js +0 -1
  17. package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +2 -2
  18. package/lib/vtx-df-modal/components/BaseInfo/index.js +6 -6
  19. package/lib/vtx-df-modal/components/Calendar/index.js +4 -4
  20. package/lib/vtx-df-modal/components/Metering/index.js +8 -8
  21. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -2
  22. package/lib/vtx-df-modal/components/WorkCondition/Table.js +3 -3
  23. package/lib/vtx-df-modal/components/WorkCondition/index.js +8 -8
  24. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +2 -2
  25. package/lib/vtx-jzlj-df-tpd-modal/api.js +212 -0
  26. package/lib/vtx-jzlj-df-tpd-modal/components/Base/index.js +24 -0
  27. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +96 -0
  28. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +341 -0
  29. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.less +57 -0
  30. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +208 -0
  31. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +378 -0
  32. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.less +65 -0
  33. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +88 -0
  34. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +104 -0
  35. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +86 -0
  36. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +92 -0
  37. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.less +65 -0
  38. package/lib/vtx-jzlj-df-tpd-modal/components/index.js +5 -0
  39. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_dark.png +0 -0
  40. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_light.png +0 -0
  41. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_dark.png +0 -0
  42. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_light.png +0 -0
  43. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_dark.png +0 -0
  44. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_light.png +0 -0
  45. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_dark.png +0 -0
  46. package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_light.png +0 -0
  47. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  48. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  49. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  50. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  51. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_dark.png +0 -0
  52. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_light.png +0 -0
  53. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_dark.png +0 -0
  54. package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_light.png +0 -0
  55. package/lib/vtx-jzlj-df-tpd-modal/index.js +117 -0
  56. package/lib/vtx-jzlj-df-tpd-modal/style/index.js +1 -0
  57. package/lib/vtx-jzlj-df-tpd-modal/style/index.less +1 -0
  58. package/lib/vtx-jzlj-gcxm-modal/api.js +294 -0
  59. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +276 -0
  60. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +185 -0
  61. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.less +34 -0
  62. package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +6 -3
  63. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +96 -0
  64. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +341 -0
  65. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.less +57 -0
  66. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +208 -0
  67. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +394 -0
  68. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.less +65 -0
  69. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +87 -0
  70. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +104 -0
  71. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +130 -0
  72. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +96 -0
  73. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.less +65 -0
  74. package/lib/vtx-jzlj-gcxm-modal/components/index.js +5 -1
  75. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_dark.png +0 -0
  76. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_light.png +0 -0
  77. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_dark.png +0 -0
  78. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_light.png +0 -0
  79. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_dark.png +0 -0
  80. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_light.png +0 -0
  81. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_dark.png +0 -0
  82. package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_light.png +0 -0
  83. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  84. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  85. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  86. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  87. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_dark.png +0 -0
  88. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_light.png +0 -0
  89. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_dark.png +0 -0
  90. package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_light.png +0 -0
  91. package/lib/vtx-jzlj-gcxm-modal/index.js +65 -24
  92. package/lib/vtx-jzlj-xnc-modal/api.js +212 -0
  93. package/lib/vtx-jzlj-xnc-modal/components/Base/index.js +23 -0
  94. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +96 -0
  95. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +341 -0
  96. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.less +57 -0
  97. package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +208 -0
  98. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +378 -0
  99. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.less +65 -0
  100. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +88 -0
  101. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +104 -0
  102. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +116 -0
  103. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +103 -0
  104. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.less +65 -0
  105. package/lib/vtx-jzlj-xnc-modal/components/index.js +5 -0
  106. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_dark.png +0 -0
  107. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_light.png +0 -0
  108. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_dark.png +0 -0
  109. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_light.png +0 -0
  110. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_dark.png +0 -0
  111. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_light.png +0 -0
  112. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_dark.png +0 -0
  113. package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_light.png +0 -0
  114. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  115. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  116. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  117. package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  118. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_dark.png +0 -0
  119. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_light.png +0 -0
  120. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_dark.png +0 -0
  121. package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_light.png +0 -0
  122. package/lib/vtx-jzlj-xnc-modal/index.js +114 -0
  123. package/lib/vtx-jzlj-xnc-modal/style/index.js +1 -0
  124. package/lib/vtx-jzlj-xnc-modal/style/index.less +1 -0
  125. package/lib/vtx-qyry-modal/api.js +1 -0
  126. package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +2 -2
  127. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +5 -5
  128. package/lib/vtx-staff-modal/components/Attendance/Exeception.js +4 -4
  129. package/lib/vtx-staff-modal/components/Attendance/Record.js +4 -4
  130. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +4 -4
  131. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +13 -4
  132. package/lib/vtx-staff-modal/components/BaseInfo/WorkStaticDay.js +2 -2
  133. package/lib/vtx-staff-modal/components/BaseInfo/index.js +5 -5
  134. package/lib/vtx-staff-modal/components/Calendar/index.js +1 -2
  135. package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +2 -2
  136. package/lib/vtx-tfd-modal/index.js +18 -2
  137. package/package.json +1 -1
@@ -0,0 +1,212 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["startingPointId", "page", "size"],
3
+ _excluded2 = ["startingPointId"],
4
+ _excluded3 = ["startingPointId", "stepThreeOperateTimeLeft", "stepThreeOperateTimeRight", "page", "size"],
5
+ _excluded4 = ["startingPointId", "stepThreeOperateTimeLeft", "stepThreeOperateTimeRight"];
6
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
+ 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; }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ 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); }
11
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
12
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13
+ import { getVtxToken, request } from '@vtx/utils';
14
+ import { useRequest } from 'ahooks';
15
+ import dayjs from 'dayjs';
16
+ var overviewApis = {
17
+ useInfo: function useInfo(id) {
18
+ var _useRequest = useRequest(function () {
19
+ return request.get('/cloud/jcss-reborn/facility/get', {
20
+ data: {
21
+ id: id,
22
+ coordType: 'wgs84'
23
+ }
24
+ });
25
+ }, {
26
+ ready: !!id,
27
+ refreshDeps: [id]
28
+ }),
29
+ data = _useRequest.data;
30
+ return {
31
+ info: (data === null || data === void 0 ? void 0 : data.data) || {}
32
+ };
33
+ },
34
+ useJcssBubble: function useJcssBubble(id) {
35
+ var _useRequest2 = useRequest(function () {
36
+ return request.get('/cloud/jzlj/web/api/gis/real/time/jcssBubble', {
37
+ data: {
38
+ id: id,
39
+ coordType: 'wgs84'
40
+ }
41
+ });
42
+ }, {
43
+ ready: !!id,
44
+ refreshDeps: [id]
45
+ }),
46
+ data = _useRequest2.data;
47
+ return {
48
+ jcssBubbleData: (data === null || data === void 0 ? void 0 : data.data) || {}
49
+ };
50
+ },
51
+ // 处置证信息
52
+ useCzz: function useCzz(id) {
53
+ var _useRequest3 = useRequest(function () {
54
+ return request.get('/cloud/jzlj/web/api/gis/real/time/jcssCzzInfo', {
55
+ data: {
56
+ id: id,
57
+ startEndType: 'END'
58
+ }
59
+ });
60
+ }),
61
+ data = _useRequest3.data;
62
+ return {
63
+ data: (data === null || data === void 0 ? void 0 : data.data) || {}
64
+ };
65
+ },
66
+ // 出土量分析
67
+ useCtl: function useCtl(id) {
68
+ var _useRequest4 = useRequest(function () {
69
+ return request.get('/cloud/jzlj/web/api/gis/real/time/jcssOrderCzzSummary', {
70
+ data: {
71
+ id: id,
72
+ startEndType: 'END',
73
+ startDate: dayjs().format('YYYY-MM-DD'),
74
+ endDate: dayjs().format('YYYY-MM-DD')
75
+ }
76
+ });
77
+ }),
78
+ data = _useRequest4.data,
79
+ loading = _useRequest4.loading;
80
+ return {
81
+ data: (data === null || data === void 0 ? void 0 : data.data) || {},
82
+ loading: loading
83
+ };
84
+ },
85
+ // 出土运量
86
+ useCtyl: function useCtyl(id) {
87
+ var _useRequest5 = useRequest(function () {
88
+ return request.get('/cloud/jzlj/web/api/gis/real/time/jcssOrderAnalyse', {
89
+ data: {
90
+ id: id,
91
+ startEndType: 'END',
92
+ startDate: dayjs().subtract(6, 'day').format('YYYY-MM-DD'),
93
+ endDate: dayjs().format('YYYY-MM-DD')
94
+ }
95
+ });
96
+ }),
97
+ data = _useRequest5.data,
98
+ loading = _useRequest5.loading;
99
+ return {
100
+ data: (data === null || data === void 0 ? void 0 : data.data) || {},
101
+ loading: loading
102
+ };
103
+ }
104
+ };
105
+ var disposeApis = {
106
+ page: function page(_ref) {
107
+ var startingPointId = _ref.startingPointId,
108
+ _page = _ref.page,
109
+ size = _ref.size,
110
+ restParams = _objectWithoutProperties(_ref, _excluded);
111
+ return request.get("/cloud/jzlj/web/api/disposal/certificate/info/page", {
112
+ data: _objectSpread({
113
+ page: _page,
114
+ size: size,
115
+ endingPointId: startingPointId
116
+ }, restParams)
117
+ });
118
+ },
119
+ list: function list(_ref2) {
120
+ var startingPointId = _ref2.startingPointId,
121
+ restParams = _objectWithoutProperties(_ref2, _excluded2);
122
+ return request.get("/cloud/jzlj/web/api/disposal/certificate/info/list", {
123
+ data: _objectSpread({
124
+ endingPointId: startingPointId,
125
+ coordinateType: 'wgs84'
126
+ }, restParams)
127
+ });
128
+ }
129
+ };
130
+
131
+ // 联单
132
+ var collectionApis = {
133
+ page: function page(_ref3) {
134
+ var startingPointId = _ref3.startingPointId,
135
+ stepThreeOperateTimeLeft = _ref3.stepThreeOperateTimeLeft,
136
+ stepThreeOperateTimeRight = _ref3.stepThreeOperateTimeRight,
137
+ _page2 = _ref3.page,
138
+ size = _ref3.size,
139
+ restParams = _objectWithoutProperties(_ref3, _excluded3);
140
+ return request.get("/cloud/jzlj/web/api/car/transport/joint/order/record/page", {
141
+ data: _objectSpread({
142
+ page: _page2,
143
+ size: size,
144
+ endingPointId: startingPointId,
145
+ stepThreeOperateTimeLeft: stepThreeOperateTimeLeft,
146
+ stepThreeOperateTimeRight: stepThreeOperateTimeRight
147
+ }, restParams)
148
+ });
149
+ },
150
+ // 统计
151
+ total: function total(_ref4) {
152
+ var startingPointId = _ref4.startingPointId,
153
+ stepThreeOperateTimeLeft = _ref4.stepThreeOperateTimeLeft,
154
+ stepThreeOperateTimeRight = _ref4.stepThreeOperateTimeRight,
155
+ restParams = _objectWithoutProperties(_ref4, _excluded4);
156
+ return request.get("/cloud/jzlj/web/api/gis/real/time/jcssJzJointOrderSummaryStatistics", {
157
+ data: _objectSpread({
158
+ endingPointId: startingPointId,
159
+ stepThreeOperateTimeLeft: stepThreeOperateTimeLeft,
160
+ stepThreeOperateTimeRight: stepThreeOperateTimeRight
161
+ }, restParams)
162
+ });
163
+ },
164
+ // 图表
165
+ jcssOrderAnalyse: function jcssOrderAnalyse(_ref5) {
166
+ var startingPointId = _ref5.startingPointId,
167
+ startDate = _ref5.startDate,
168
+ endDate = _ref5.endDate;
169
+ return request.get("/cloud/jzlj/web/api/gis/real/time/jcssOrderAnalyse", {
170
+ data: {
171
+ id: startingPointId,
172
+ startDate: startDate,
173
+ endDate: endDate,
174
+ startEndType: 'END'
175
+ }
176
+ });
177
+ }
178
+ };
179
+ export { collectionApis, disposeApis, overviewApis };
180
+
181
+ // 建筑垃圾枚举
182
+ export var fetchJzljEnum = function fetchJzljEnum(enumName) {
183
+ var _useRequest6 = useRequest(function () {
184
+ return request.get("/cloud/jzlj/common/loadEnumValue", {
185
+ data: {
186
+ enumName: enumName
187
+ }
188
+ });
189
+ }, {
190
+ refreshDeps: [enumName]
191
+ }),
192
+ _useRequest6$data = _useRequest6.data,
193
+ data = _useRequest6$data === void 0 ? {} : _useRequest6$data;
194
+ return (data === null || data === void 0 ? void 0 : data.data) || [];
195
+ };
196
+ export var getByParamTypeCode = function getByParamTypeCode(paramTypeCode) {
197
+ var _useRequest7 = useRequest(function () {
198
+ return request.get("/cloud/management/rest/np/param/getByParamTypeCode", {
199
+ data: {
200
+ parameters: JSON.stringify({
201
+ paramTypeCode: paramTypeCode,
202
+ tenantId: getVtxToken('tenantId')
203
+ })
204
+ }
205
+ });
206
+ }, {
207
+ refreshDeps: [paramTypeCode]
208
+ }),
209
+ _useRequest7$data = _useRequest7.data,
210
+ data = _useRequest7$data === void 0 ? {} : _useRequest7$data;
211
+ return (data === null || data === void 0 ? void 0 : data.data) || [];
212
+ };
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { JzljDfTpdContext } from "../..";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ export default function Base() {
5
+ var _React$useContext = React.useContext(JzljDfTpdContext),
6
+ theme = _React$useContext.theme,
7
+ id = _React$useContext.id,
8
+ jcssCode = _React$useContext.jcssCode;
9
+ var src = "/jcss-reborn/#/facility?code=".concat(jcssCode, "&theme=").concat(theme, "&id=").concat(id);
10
+ return /*#__PURE__*/_jsx("div", {
11
+ style: {
12
+ width: '100%',
13
+ height: '100%'
14
+ },
15
+ children: /*#__PURE__*/_jsx("iframe", {
16
+ src: src,
17
+ style: {
18
+ width: '100%',
19
+ height: '100%',
20
+ border: 'none'
21
+ }
22
+ })
23
+ });
24
+ }
@@ -0,0 +1,96 @@
1
+ import { VmBarCharts, VmEmpty, VmFactorList, VmWrapper } from "../../../_components";
2
+ import useSettings from "../../../_hooks/useSettings";
3
+ import "./index.less";
4
+ import overview_ctyl_pjrcc_dark from "../../imgs/overview_ctyl_pjrcc_dark.png";
5
+ import overview_ctyl_pjrcc_light from "../../imgs/overview_ctyl_pjrcc_light.png";
6
+ import overview_ctyl_pjryl_dark from "../../imgs/overview_ctyl_pjryl_dark.png";
7
+ import overview_ctyl_pjryl_light from "../../imgs/overview_ctyl_pjryl_light.png";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export default function Chart(_ref) {
10
+ var _ref$data = _ref.data,
11
+ data = _ref$data === void 0 ? {} : _ref$data;
12
+ var _useSettings = useSettings(),
13
+ isDark = _useSettings.isDark;
14
+ var _data$avgDayCount = data.avgDayCount,
15
+ avgDayCount = _data$avgDayCount === void 0 ? 0 : _data$avgDayCount,
16
+ _data$avgDayWeight = data.avgDayWeight,
17
+ avgDayWeight = _data$avgDayWeight === void 0 ? 0 : _data$avgDayWeight,
18
+ _data$histogramList = data.histogramList,
19
+ histogramList = _data$histogramList === void 0 ? [] : _data$histogramList;
20
+ var dataList_top = [{
21
+ name: '平均日运量',
22
+ unit: '吨',
23
+ value: avgDayWeight,
24
+ img: isDark ? overview_ctyl_pjryl_dark : overview_ctyl_pjryl_light,
25
+ fontType: 'blue',
26
+ unitStyle: {
27
+ fontSize: 14
28
+ },
29
+ style: {
30
+ flex: 1,
31
+ justifyContent: 'center'
32
+ }
33
+ }, {
34
+ name: '平均日车次',
35
+ unit: '次',
36
+ value: avgDayCount,
37
+ img: isDark ? overview_ctyl_pjrcc_dark : overview_ctyl_pjrcc_light,
38
+ fontType: 'blue',
39
+ unitStyle: {
40
+ fontSize: 14
41
+ },
42
+ style: {
43
+ flex: 1,
44
+ justifyContent: 'center'
45
+ }
46
+ }];
47
+ return /*#__PURE__*/_jsxs(VmWrapper, {
48
+ showTitle: false,
49
+ style: {
50
+ border: 0
51
+ },
52
+ children: [/*#__PURE__*/_jsx(VmFactorList, {
53
+ list: dataList_top,
54
+ style: {
55
+ background: 'unset'
56
+ }
57
+ }), /*#__PURE__*/_jsx("div", {
58
+ style: {
59
+ height: 'calc(100% - 70px)'
60
+ },
61
+ children: histogramList !== null && histogramList !== void 0 && histogramList.length ? /*#__PURE__*/_jsx(VmBarCharts, {
62
+ dataList: [{
63
+ name: '运量',
64
+ data: histogramList.map(function (item) {
65
+ return "\u2000".concat(item.weight);
66
+ }),
67
+ color: 'geekblue',
68
+ yAxisIndex: 1
69
+ }],
70
+ xAxis: histogramList.map(function (item) {
71
+ return item.date;
72
+ }),
73
+ yAxisList: [{
74
+ key: "\u2001",
75
+ unit: '次',
76
+ name: '(次)'
77
+ }, {
78
+ key: "\u2000",
79
+ unit: '吨',
80
+ name: '(吨)'
81
+ }],
82
+ lineList: [{
83
+ name: '车次',
84
+ data: histogramList.map(function (item) {
85
+ return "\u2001".concat(item.count);
86
+ }),
87
+ color: '#0FB964',
88
+ yAxisIndex: 0
89
+ }],
90
+ barBorderRadius: [4, 4, 0, 0]
91
+ }) : /*#__PURE__*/_jsx(VmEmpty, {
92
+ type: "NO_CHART"
93
+ })
94
+ })]
95
+ });
96
+ }
@@ -0,0 +1,341 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ 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
+ 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); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { useAntdTable, useSetState } from 'ahooks';
14
+ import { Button } from 'antd';
15
+ import React, { useEffect } from 'react';
16
+ import { JzljDfTpdContext } from "../..";
17
+ import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../_components";
18
+ import useSettings from "../../../_hooks/useSettings";
19
+ import { collectionApis } from "../../api";
20
+ import "./index.less";
21
+ import dayjs from 'dayjs';
22
+ import cc_dark from "../../imgs/overview_ctyl_pjrcc_dark.png";
23
+ import cc_light from "../../imgs/overview_ctyl_pjrcc_light.png";
24
+ import yl_dark from "../../imgs/overview_ctyl_pjryl_dark.png";
25
+ import yl_light from "../../imgs/overview_ctyl_pjryl_light.png";
26
+ import Chart from "./Chart";
27
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
28
+ export default function Dispose() {
29
+ var _React$useContext = React.useContext(JzljDfTpdContext),
30
+ id = _React$useContext.id,
31
+ theme = _React$useContext.theme,
32
+ _React$useContext$inf = _React$useContext.info,
33
+ info = _React$useContext$inf === void 0 ? {} : _React$useContext$inf,
34
+ setIframeModalInfo = _React$useContext.setIframeModalInfo;
35
+ var _useSettings = useSettings(),
36
+ isDark = _useSettings.isDark;
37
+ var _useSetState = useSetState({
38
+ activeKey: 'chart',
39
+ stepThreeOperateTimeLeft: dayjs().subtract(6, 'day'),
40
+ stepThreeOperateTimeRight: dayjs(),
41
+ disposalCertificateInfoCode: undefined,
42
+ code: undefined,
43
+ endingPointName: undefined,
44
+ totalData: {},
45
+ chartData: {}
46
+ }),
47
+ _useSetState2 = _slicedToArray(_useSetState, 2),
48
+ state = _useSetState2[0],
49
+ setState = _useSetState2[1];
50
+ var activeKey = state.activeKey,
51
+ stepThreeOperateTimeLeft = state.stepThreeOperateTimeLeft,
52
+ stepThreeOperateTimeRight = state.stepThreeOperateTimeRight,
53
+ disposalCertificateInfoCode = state.disposalCertificateInfoCode,
54
+ code = state.code,
55
+ endingPointName = state.endingPointName,
56
+ totalData = state.totalData,
57
+ chartData = state.chartData;
58
+ var columns = [['联单编号', 'code', {
59
+ width: 120,
60
+ fixed: 'left',
61
+ ellipsis: true
62
+ }], ['核准编号', 'disposalCertificateInfoCode', {
63
+ width: 120,
64
+ ellipsis: true
65
+ }], ['联单状态', 'jointOrderStatusName', {
66
+ width: 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
+ }], ['运输起点', 'startingPointName', {
81
+ width: 120,
82
+ ellipsis: true
83
+ }], ['起点行政区划', 'startingPointDivisionName', {
84
+ width: 120,
85
+ ellipsis: true
86
+ }], ['起运时间', 'stepOneOperateTime', {
87
+ width: 180
88
+ }], ['运输单位', 'transportUnitName', {
89
+ width: 120,
90
+ ellipsis: true
91
+ }], ['车牌号', 'carCode', {
92
+ width: 120
93
+ }], ['接收时间', 'stepThreeOperateTime', {
94
+ width: 180
95
+ }], ['建筑垃圾类别', 'garbageTypeName', {
96
+ width: 120
97
+ }], ['运量(吨)', 'receivedWeight', {
98
+ width: 120,
99
+ align: 'right'
100
+ }], ['操作', 'action', {
101
+ width: 60,
102
+ fixed: 'right',
103
+ render: function render(text, record) {
104
+ return /*#__PURE__*/_jsx("a", {
105
+ onClick: function onClick() {
106
+ setIframeModalInfo({
107
+ visible: true,
108
+ title: '联单信息',
109
+ src: "/jzlj/#/constructionJointOrder?id=".concat(record.id)
110
+ });
111
+ },
112
+ children: "\u67E5\u770B"
113
+ });
114
+ }
115
+ }]].map(function (item) {
116
+ return _objectSpread({
117
+ title: item[0],
118
+ dataIndex: item[1],
119
+ key: item[1]
120
+ }, item[2]);
121
+ });
122
+ var getTableData = function getTableData(_ref) {
123
+ var current = _ref.current,
124
+ pageSize = _ref.pageSize;
125
+ var formData = {
126
+ startingPointId: id,
127
+ disposalCertificateInfoCode: disposalCertificateInfoCode,
128
+ code: code,
129
+ startingPointName: endingPointName,
130
+ stepThreeOperateTimeLeft: stepThreeOperateTimeLeft.format('YYYY-MM-DD'),
131
+ stepThreeOperateTimeRight: stepThreeOperateTimeRight.format('YYYY-MM-DD')
132
+ };
133
+ collectionApis.jcssOrderAnalyse({
134
+ startingPointId: id,
135
+ startDate: stepThreeOperateTimeLeft.format('YYYY-MM-DD'),
136
+ endDate: stepThreeOperateTimeRight.format('YYYY-MM-DD')
137
+ }).then(function (res) {
138
+ setState({
139
+ chartData: (res === null || res === void 0 ? void 0 : res.data) || {}
140
+ });
141
+ });
142
+ collectionApis.total(_objectSpread({}, formData)).then(function (res) {
143
+ setState({
144
+ totalData: (res === null || res === void 0 ? void 0 : res.data) || {}
145
+ });
146
+ });
147
+ return collectionApis.page(_objectSpread(_objectSpread({}, formData), {}, {
148
+ page: current - 1,
149
+ size: pageSize
150
+ })).then(function (res) {
151
+ var _res$data, _res$data2;
152
+ return {
153
+ total: (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.total) || 0,
154
+ list: (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.rows) || []
155
+ };
156
+ });
157
+ };
158
+ var _useAntdTable = useAntdTable(getTableData, {
159
+ defaultPageSize: 10
160
+ }),
161
+ tableProps = _useAntdTable.tableProps,
162
+ search = _useAntdTable.search;
163
+ var submit = search.submit,
164
+ reset = search.reset;
165
+ var myReset = function myReset() {
166
+ setState({
167
+ disposalCertificateInfoCode: undefined,
168
+ code: undefined,
169
+ endingPointName: undefined
170
+ });
171
+ reset();
172
+ };
173
+ var myTableProps = _objectSpread(_objectSpread({}, tableProps), {}, {
174
+ rowKey: 'id',
175
+ columns: columns,
176
+ indexFixed: true
177
+ });
178
+ var _totalData$totalCount = totalData.totalCount,
179
+ totalCount = _totalData$totalCount === void 0 ? 0 : _totalData$totalCount,
180
+ _totalData$totalWeigh = totalData.totalWeight,
181
+ totalWeight = _totalData$totalWeigh === void 0 ? 0 : _totalData$totalWeigh;
182
+ var totalList = [{
183
+ name: '总车次',
184
+ unit: '次',
185
+ value: totalCount,
186
+ unitStyle: {
187
+ fontSize: 14
188
+ },
189
+ style: {
190
+ flex: 1,
191
+ justifyContent: 'center',
192
+ alignItems: 'center'
193
+ },
194
+ img: isDark ? cc_dark : cc_light,
195
+ fontType: 'green'
196
+ }, {
197
+ name: '总接收量',
198
+ unit: '吨',
199
+ value: totalWeight,
200
+ unitStyle: {
201
+ fontSize: 14
202
+ },
203
+ style: {
204
+ flex: 1,
205
+ justifyContent: 'center',
206
+ alignItems: 'center'
207
+ },
208
+ img: isDark ? yl_dark : yl_light,
209
+ fontType: 'blue'
210
+ }];
211
+ var searchList = [{
212
+ title: '处置证编号',
213
+ weight: 1,
214
+ dom: /*#__PURE__*/_jsx(VmFilter.VMInput, {
215
+ style: {
216
+ width: 120
217
+ },
218
+ value: disposalCertificateInfoCode,
219
+ onValChange: function onValChange(val) {
220
+ setState({
221
+ disposalCertificateInfoCode: val
222
+ });
223
+ }
224
+ })
225
+ }, {
226
+ title: '联单编号',
227
+ weight: 1,
228
+ dom: /*#__PURE__*/_jsx(VmFilter.VMInput, {
229
+ style: {
230
+ width: 120
231
+ },
232
+ value: code,
233
+ onValChange: function onValChange(val) {
234
+ setState({
235
+ code: val
236
+ });
237
+ }
238
+ })
239
+ }, {
240
+ title: '运输起点',
241
+ weight: 1,
242
+ dom: /*#__PURE__*/_jsx(VmFilter.VMInput, {
243
+ style: {
244
+ width: 120
245
+ },
246
+ value: endingPointName,
247
+ onValChange: function onValChange(val) {
248
+ setState({
249
+ endingPointName: val
250
+ });
251
+ }
252
+ })
253
+ }];
254
+ useEffect(function () {
255
+ submit();
256
+ }, [stepThreeOperateTimeLeft, stepThreeOperateTimeRight]);
257
+ return /*#__PURE__*/_jsx("div", {
258
+ className: "collection",
259
+ children: /*#__PURE__*/_jsx(VmWrapper, {
260
+ title: "\u8054\u5355\u8FD0\u884C\u60C5\u51B5",
261
+ needChange: true,
262
+ activeKey: activeKey,
263
+ onChange: function onChange(key) {
264
+ return setState({
265
+ activeKey: key
266
+ });
267
+ },
268
+ filterType: "rangePicker",
269
+ dateValue: [stepThreeOperateTimeLeft, stepThreeOperateTimeRight],
270
+ filterChange: function filterChange(e) {
271
+ setState({
272
+ stepThreeOperateTimeLeft: e === null || e === void 0 ? void 0 : e[0],
273
+ stepThreeOperateTimeRight: e === null || e === void 0 ? void 0 : e[1]
274
+ });
275
+ },
276
+ contentStyle: {
277
+ padding: 0
278
+ },
279
+ children: /*#__PURE__*/_jsx(_Fragment, {
280
+ children: activeKey === 'chart' ? /*#__PURE__*/_jsx(Chart, {
281
+ data: chartData
282
+ }) : /*#__PURE__*/_jsxs("div", {
283
+ className: "collection-myTable",
284
+ children: [/*#__PURE__*/_jsxs("div", {
285
+ className: "collection-myTable-search ".concat(isDark ? 'dark' : ''),
286
+ children: [/*#__PURE__*/_jsx("div", {
287
+ className: "collection-myTable-search-left",
288
+ children: searchList.map(function (item) {
289
+ return /*#__PURE__*/_jsxs("span", {
290
+ style: {
291
+ display: 'flex',
292
+ alignItems: 'center'
293
+ },
294
+ children: [/*#__PURE__*/_jsx("span", {
295
+ style: {
296
+ marginRight: 8
297
+ },
298
+ children: item.title
299
+ }), /*#__PURE__*/_jsx("span", {
300
+ children: item.dom
301
+ })]
302
+ }, item.title);
303
+ })
304
+ }), /*#__PURE__*/_jsxs("div", {
305
+ className: "collection-myTable-search-right",
306
+ children: [/*#__PURE__*/_jsx(Button, {
307
+ type: "primary",
308
+ onClick: submit,
309
+ children: "\u67E5\u8BE2"
310
+ }), /*#__PURE__*/_jsx(Button, {
311
+ onClick: myReset,
312
+ children: "\u91CD\u7F6E"
313
+ })]
314
+ })]
315
+ }), /*#__PURE__*/_jsx("div", {
316
+ className: "collection-myTable-total",
317
+ children: /*#__PURE__*/_jsx(VmFactorList, {
318
+ list: totalList,
319
+ style: {
320
+ background: 'unset',
321
+ height: '100%'
322
+ }
323
+ })
324
+ }), /*#__PURE__*/_jsx("div", {
325
+ className: "collection-myTable-main",
326
+ children: /*#__PURE__*/_jsx(VmWrapper, {
327
+ showTitle: false,
328
+ style: {
329
+ border: 'unset'
330
+ },
331
+ contentStyle: {
332
+ padding: 0
333
+ },
334
+ children: /*#__PURE__*/_jsx(VmTable, _objectSpread({}, myTableProps))
335
+ })
336
+ })]
337
+ })
338
+ })
339
+ })
340
+ });
341
+ }