@vtx/modals2 5.0.31 → 5.0.32

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 (44) hide show
  1. package/lib/_components/index.js +2 -1
  2. package/lib/_components/vm-info-collection/style/index.js +1 -0
  3. package/lib/_components/vm-pie-charts/index.js +4 -2
  4. package/lib/_components/vm-popover/index.js +19 -0
  5. package/lib/_components/vm-popover/index.less +7 -0
  6. package/lib/style/index.less +1 -1
  7. package/lib/vtx-base-modal/style/index.less +0 -1
  8. package/lib/vtx-car-modal/api.js +47 -4
  9. package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +6 -6
  10. package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +27 -20
  11. package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +21 -6
  12. package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +11 -6
  13. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +19 -12
  14. package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +9 -7
  15. package/lib/vtx-car-modal/index.js +1 -1
  16. package/lib/vtx-device-modal/components/BaseInfo/KnowledgeBasesDetail.js +77 -0
  17. package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +92 -0
  18. package/lib/vtx-device-modal/components/BaseInfo/index.js +104 -46
  19. package/lib/vtx-jzlj-df-tpd-modal/api.js +31 -0
  20. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +5 -4
  21. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +9 -6
  22. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +8 -6
  23. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +7 -6
  24. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +5 -4
  25. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +5 -4
  26. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +11 -3
  27. package/lib/vtx-jzlj-gcxm-modal/api.js +31 -0
  28. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +5 -4
  29. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +9 -6
  30. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +9 -7
  31. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +6 -5
  32. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +5 -4
  33. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +9 -8
  34. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -2
  35. package/lib/vtx-jzlj-xnc-modal/api.js +31 -0
  36. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +5 -4
  37. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +9 -6
  38. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +9 -7
  39. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +7 -6
  40. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +5 -4
  41. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +8 -7
  42. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +11 -3
  43. package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
  44. package/package.json +78 -78
@@ -19,4 +19,5 @@ export { default as VmTabs } from "./vm-tabs";
19
19
  export { default as VmTag } from "./vm-tag";
20
20
  export { default as VmTitle } from "./vm-title";
21
21
  export { default as VmVideo } from "./vm-video";
22
- export { default as VmWrapper } from "./vm-wrapper";
22
+ export { default as VmWrapper } from "./vm-wrapper";
23
+ export { default as VmPopover } from "./vm-popover";
@@ -1 +1,2 @@
1
+ import '@vtx/components/lib/vtx-image/style/index';
1
2
  import "./index.less";
@@ -39,7 +39,9 @@ var PieCharts = function PieCharts(_ref) {
39
39
  _ref$colors2 = _ref.colors2,
40
40
  colors2 = _ref$colors2 === void 0 ? null : _ref$colors2,
41
41
  _ref$subTitle = _ref.subTitle,
42
- subTitle = _ref$subTitle === void 0 ? null : _ref$subTitle;
42
+ subTitle = _ref$subTitle === void 0 ? null : _ref$subTitle,
43
+ _ref$tooltipFormatter = _ref.tooltipFormatter,
44
+ tooltipFormatter = _ref$tooltipFormatter === void 0 ? null : _ref$tooltipFormatter;
43
45
  var _useSettings = useSettings(),
44
46
  chartFontColor = _useSettings.chartFontColor,
45
47
  isDark = _useSettings.isDark;
@@ -51,7 +53,7 @@ var PieCharts = function PieCharts(_ref) {
51
53
  var option = {
52
54
  tooltip: {
53
55
  trigger: 'item',
54
- formatter: "{a} <br/>{b}: {c}".concat(unit, " ({d}%)"),
56
+ formatter: tooltipFormatter || "{a} <br/>{b}: {c}".concat(unit, " ({d}%)"),
55
57
  position: function position(point, _params, _dom, _rect, size) {
56
58
  // 固定在顶部
57
59
  var leftSize = point[0] - size.contentSize[0];
@@ -0,0 +1,19 @@
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
+ import { Popover } from 'antd';
8
+ import useSettings from "../../_hooks/useSettings";
9
+ import "./index.less";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ var VmPopover = function VmPopover(props) {
12
+ var _useSettings = useSettings(),
13
+ isDark = _useSettings.isDark;
14
+ return /*#__PURE__*/_jsx(Popover, _objectSpread(_objectSpread({}, props), {}, {
15
+ overlayClassName: "vm-popover ".concat(isDark ? 'dark' : ''),
16
+ children: props.children
17
+ }));
18
+ };
19
+ export default VmPopover;
@@ -0,0 +1,7 @@
1
+ .vm-popover {
2
+ &.dark {
3
+ .ant-popover-inner-content, .ant-popover-arrow-content, .ant-popover-arrow-content::before {
4
+ background: rgb(51 95 135);
5
+ }
6
+ }
7
+ }
@@ -89,7 +89,7 @@
89
89
  --modal-head-line-bg: transparent;
90
90
  --modal-head-split-line-color: rgba(89, 89, 89, 0.2);
91
91
  --modal-head-line-shadow: transparent;
92
- --modal-content-bg: #ecf0f5;
92
+ --modal-content-bg: rgba(236, 240, 245, 0.8);
93
93
  --modal-content-box-shadow: #ecf0f5;
94
94
  --modal-close-color: #595959;
95
95
  --modal-content-border-color: linear-gradient(
@@ -44,7 +44,6 @@
44
44
  width: 100%;
45
45
  background: var(--modal-content-bg);
46
46
  border-radius: 8px;
47
- opacity: 0.8;
48
47
  }
49
48
  .vm-base-modal-content-wrap {
50
49
  flex: 1;
@@ -1145,6 +1145,19 @@ export var JzljService = {
1145
1145
  data = _useRequest46$data === void 0 ? {} : _useRequest46$data;
1146
1146
  return (data === null || data === void 0 ? void 0 : data.data) || [];
1147
1147
  },
1148
+ // 字段配置
1149
+ fieldConfig: function fieldConfig() {
1150
+ var _useRequest47 = useRequest(function () {
1151
+ return http.get("/cloud/jzlj/web/field/config/list?ledgerType=CZHZBA", {
1152
+ body: {}
1153
+ });
1154
+ }, {
1155
+ refreshDeps: []
1156
+ }),
1157
+ _useRequest47$data = _useRequest47.data,
1158
+ data = _useRequest47$data === void 0 ? {} : _useRequest47$data;
1159
+ return (data === null || data === void 0 ? void 0 : data.data) || [];
1160
+ },
1148
1161
  // 联单-分页
1149
1162
  ldPage: function ldPage(_ref27) {
1150
1163
  var carId = _ref27.carId,
@@ -1226,7 +1239,7 @@ export var JzljService = {
1226
1239
  var carId = _ref32.carId,
1227
1240
  startDate = _ref32.startDate,
1228
1241
  endDate = _ref32.endDate;
1229
- var _useRequest47 = useRequest(function () {
1242
+ var _useRequest48 = useRequest(function () {
1230
1243
  return http.get("/cloud/jzlj/web/dz/kanban/carAlarmTypeCountSummaryInfo", {
1231
1244
  body: {
1232
1245
  carId: carId,
@@ -1238,7 +1251,7 @@ export var JzljService = {
1238
1251
  }, {
1239
1252
  refreshDeps: [carId, startDate, endDate]
1240
1253
  }),
1241
- alarmSummaryRes = _useRequest47.data;
1254
+ alarmSummaryRes = _useRequest48.data;
1242
1255
  return {
1243
1256
  alarmSummaryData: (alarmSummaryRes === null || alarmSummaryRes === void 0 ? void 0 : alarmSummaryRes.data) || {}
1244
1257
  };
@@ -1248,7 +1261,7 @@ export var JzljService = {
1248
1261
  var id = _ref33.id,
1249
1262
  startDate = _ref33.startDate,
1250
1263
  endDate = _ref33.endDate;
1251
- var _useRequest48 = useRequest(function () {
1264
+ var _useRequest49 = useRequest(function () {
1252
1265
  return http.get("/cloud/jzlj/web/api/gis/real/time/carOrderAlarmAnalyse", {
1253
1266
  body: {
1254
1267
  id: id,
@@ -1259,9 +1272,39 @@ export var JzljService = {
1259
1272
  }, {
1260
1273
  refreshDeps: [id, startDate, endDate]
1261
1274
  }),
1262
- alarmTrendRes = _useRequest48.data;
1275
+ alarmTrendRes = _useRequest49.data;
1263
1276
  return {
1264
1277
  alarmTrendData: (alarmTrendRes === null || alarmTrendRes === void 0 ? void 0 : alarmTrendRes.data) || []
1265
1278
  };
1279
+ },
1280
+ // 单位
1281
+ useUnit: function useUnit() {
1282
+ var _data$data3, _unitStr;
1283
+ var groupCode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'XTPZ';
1284
+ var _useRequest50 = useRequest(function () {
1285
+ return http.get("/cloud/jzlj/web/api/tenant/system/config/getConfig", {
1286
+ body: {}
1287
+ });
1288
+ }, {
1289
+ refreshDeps: [groupCode]
1290
+ }),
1291
+ data = _useRequest50.data;
1292
+ var obj = {};
1293
+ var originalData = data === null || data === void 0 || (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3[groupCode];
1294
+ for (var group in originalData) {
1295
+ if (originalData.hasOwnProperty(group)) {
1296
+ for (var item in originalData[group]) {
1297
+ var _originalData$group;
1298
+ obj[item] = (_originalData$group = originalData[group]) === null || _originalData$group === void 0 ? void 0 : _originalData$group[item];
1299
+ }
1300
+ }
1301
+ }
1302
+ var jointOrderWeightUnitTypeName = obj === null || obj === void 0 ? void 0 : obj.jointOrderWeightUnitTypeName;
1303
+ var nameSplitArr = jointOrderWeightUnitTypeName === null || jointOrderWeightUnitTypeName === void 0 ? void 0 : jointOrderWeightUnitTypeName.split('(');
1304
+ var unitStr = (nameSplitArr === null || nameSplitArr === void 0 ? void 0 : nameSplitArr[1]) || '吨)';
1305
+ unitStr = (_unitStr = unitStr) === null || _unitStr === void 0 ? void 0 : _unitStr.replace(')', '');
1306
+ return {
1307
+ unitStr: unitStr
1308
+ };
1266
1309
  }
1267
1310
  };
@@ -93,11 +93,11 @@ export default function Bottom(_ref) {
93
93
  width: 150,
94
94
  ellipsis: true
95
95
  }], ['报警开始时间', 'alarmStartTime', {
96
- width: 180
96
+ width: 160
97
97
  }], ['报警结束时间', 'alarmEndTime', {
98
- width: 180
98
+ width: 160
99
99
  }], ['处置状态', 'processStatusChs', {
100
- width: 150,
100
+ width: 100,
101
101
  render: function render(text, record) {
102
102
  return text ? /*#__PURE__*/_jsx("span", {
103
103
  style: {
@@ -107,7 +107,7 @@ export default function Bottom(_ref) {
107
107
  }) : '-';
108
108
  }
109
109
  }], ['处置结果', 'processResultChs', {
110
- width: 150,
110
+ width: 120,
111
111
  render: function render(text, record) {
112
112
  return text ? /*#__PURE__*/_jsx("span", {
113
113
  style: {
@@ -170,7 +170,7 @@ export default function Bottom(_ref) {
170
170
  }) : '-';
171
171
  }
172
172
  }], ['处置状态', 'processStatusChs', {
173
- width: 150,
173
+ width: 100,
174
174
  render: function render(text, record) {
175
175
  return text ? /*#__PURE__*/_jsx("span", {
176
176
  style: {
@@ -180,7 +180,7 @@ export default function Bottom(_ref) {
180
180
  }) : '-';
181
181
  }
182
182
  }], ['处置结果', 'processResultChs', {
183
- width: 150,
183
+ width: 120,
184
184
  render: function render(text, record) {
185
185
  return text ? /*#__PURE__*/_jsx("span", {
186
186
  style: {
@@ -20,14 +20,13 @@ import pjryl_dark from "../../../imgs/jzlj/pjryl_dark.png";
20
20
  import pjryl_light from "../../../imgs/jzlj/pjryl_light.png";
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  var BaseInfo = function BaseInfo() {
23
- var _dailyCarRunData$driv;
24
23
  var _useContext = useContext(CarContext),
25
24
  id = _useContext.id,
26
25
  startDate = _useContext.startDate,
27
26
  info = _useContext.info;
28
27
  var _useSettings = useSettings(),
29
28
  isDark = _useSettings.isDark;
30
- var _useState = useState(dayjs(startDate)),
29
+ var _useState = useState(startDate ? dayjs(startDate) : dayjs()),
31
30
  _useState2 = _slicedToArray(_useState, 2),
32
31
  date = _useState2[0],
33
32
  setDate = _useState2[1];
@@ -43,6 +42,8 @@ var BaseInfo = function BaseInfo() {
43
42
  endDate: dayjs(date).format('YYYY-MM-DD')
44
43
  }),
45
44
  dailyCarRunData = _JzljService$useDaily.dailyCarRunData;
45
+ var _JzljService$useUnit = JzljService.useUnit(),
46
+ unitStr = _JzljService$useUnit.unitStr;
46
47
  var extraList = [{
47
48
  name: '生效中处置证',
48
49
  unit: '张',
@@ -57,13 +58,15 @@ var BaseInfo = function BaseInfo() {
57
58
  justifyContent: 'center',
58
59
  textAlign: 'center'
59
60
  };
60
- var yxxxList_top = [{
61
- name: '核算行驶里程',
62
- unit: 'km',
63
- value: (dailyCarRunData === null || dailyCarRunData === void 0 ? void 0 : dailyCarRunData.sumMileage) || 0,
64
- fontType: 'blue',
65
- style: itemStyle
66
- }, {
61
+ var yxxxList_top = [
62
+ // {
63
+ // name: '核算行驶里程',
64
+ // unit: 'km',
65
+ // value: dailyCarRunData?.sumMileage || 0,
66
+ // fontType: 'blue',
67
+ // style: itemStyle,
68
+ // },
69
+ {
67
70
  name: '完成联单数',
68
71
  unit: '单',
69
72
  value: (zlOtherInfoData === null || zlOtherInfoData === void 0 ? void 0 : zlOtherInfoData.orderCount) || 0,
@@ -78,15 +81,19 @@ var BaseInfo = function BaseInfo() {
78
81
  fontSize: 14
79
82
  }
80
83
  }];
81
- var yxxxList_bottom = [{
82
- name: '作业时长',
83
- unit: '',
84
- value: secondToFormatTime(((_dailyCarRunData$driv = dailyCarRunData === null || dailyCarRunData === void 0 ? void 0 : dailyCarRunData.driveDuration) !== null && _dailyCarRunData$driv !== void 0 ? _dailyCarRunData$driv : 0) / 1000 || 0),
85
- fontType: 'blue',
86
- style: itemStyle
87
- }, {
84
+ var yxxxList_bottom = [
85
+ // {
86
+ // name: '作业时长',
87
+ // unit: '',
88
+ // value: secondToFormatTime(
89
+ // (dailyCarRunData?.driveDuration ?? 0) / 1000 || 0,
90
+ // ),
91
+ // fontType: 'blue',
92
+ // style: itemStyle,
93
+ // },
94
+ {
88
95
  name: '已运输量',
89
- unit: '吨',
96
+ unit: unitStr,
90
97
  value: (zlOtherInfoData === null || zlOtherInfoData === void 0 ? void 0 : zlOtherInfoData.yysWeight) || 0,
91
98
  style: itemStyle
92
99
  }, {
@@ -116,7 +123,7 @@ var BaseInfo = function BaseInfo() {
116
123
  var ccDataAvg = ccData !== null && ccData !== void 0 && ccData.length ? mean(ccData).toFixed(2) : '0';
117
124
  var yxfxList = [{
118
125
  name: '平均日运量',
119
- unit: '吨',
126
+ unit: unitStr,
120
127
  value: ylDataAvg,
121
128
  img: isDark ? pjryl_dark : pjryl_light,
122
129
  fontType: 'blue',
@@ -209,8 +216,8 @@ var BaseInfo = function BaseInfo() {
209
216
  name: '(次)'
210
217
  }, {
211
218
  key: "\u2000",
212
- unit: '吨',
213
- name: '()'
219
+ unit: unitStr,
220
+ name: "(".concat(unitStr, ")")
214
221
  }],
215
222
  lineList: [{
216
223
  name: '车次',
@@ -11,7 +11,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
11
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
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import { useAntdTable, useSetState } from 'ahooks';
14
- import { Button } from 'antd';
14
+ import { Button, Tooltip } from 'antd';
15
15
  import dayjs from 'dayjs';
16
16
  import { useContext, useEffect } from 'react';
17
17
  import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../../_components";
@@ -19,6 +19,7 @@ import useSettings from "../../../../_hooks/useSettings";
19
19
  import { JzljService } from "../../../api";
20
20
  import { CarContext } from "../../../index";
21
21
  import "./index.less";
22
+ import { QuestionCircleOutlined } from '@ant-design/icons';
22
23
  import cc_dark from "../../../imgs/jzlj/pjrcc_dark.png";
23
24
  import cc_light from "../../../imgs/jzlj/pjrcc_light.png";
24
25
  import yl_dark from "../../../imgs/jzlj/pjryl_dark.png";
@@ -106,7 +107,7 @@ export default function Collection() {
106
107
  setIframeModalInfo({
107
108
  visible: true,
108
109
  title: '联单信息',
109
- src: "/jzlj/#/constructionJointOrder?id=".concat(record.id)
110
+ src: "/jzlj/#/constructionJointOrder?id=".concat(record.id, "&stepOneOperateTimeLeft=").concat(record.stepOneOperateTime ? dayjs(record.stepOneOperateTime).format('YYYY-MM-DD') : '', "&stepOneOperateTimeRight=").concat(record.stepOneOperateTime ? dayjs(record.stepOneOperateTime).format('YYYY-MM-DD') : '', "&stepThreeOperateTimeLeft=").concat(record.stepThreeOperateTime ? dayjs(record.stepThreeOperateTime).format('YYYY-MM-DD') : '', "&stepThreeOperateTimeRight=").concat(record.stepThreeOperateTime ? dayjs(record.stepThreeOperateTime).format('YYYY-MM-DD') : '')
110
111
  });
111
112
  },
112
113
  children: "\u67E5\u770B"
@@ -128,8 +129,8 @@ export default function Collection() {
128
129
  code: code,
129
130
  startingPointName: startingPointName,
130
131
  endingPointName: endingPointName,
131
- stepThreeOperateTimeLeft: stepThreeOperateTimeLeft.format('YYYY-MM-DD'),
132
- stepThreeOperateTimeRight: stepThreeOperateTimeRight.format('YYYY-MM-DD')
132
+ stepThreeOperateTimeLeft: stepThreeOperateTimeLeft.format('YYYY-MM-DD 00:00:00'),
133
+ stepThreeOperateTimeRight: stepThreeOperateTimeRight.format('YYYY-MM-DD 23:59:59')
133
134
  };
134
135
  JzljService.ldChart({
135
136
  id: id,
@@ -168,7 +169,9 @@ export default function Collection() {
168
169
  disposalCertificateInfoCode: undefined,
169
170
  code: undefined,
170
171
  startingPointName: undefined,
171
- endingPointName: undefined
172
+ endingPointName: undefined,
173
+ stepThreeOperateTimeLeft: dayjs().subtract(6, 'day'),
174
+ stepThreeOperateTimeRight: dayjs()
172
175
  });
173
176
  reset();
174
177
  };
@@ -273,7 +276,19 @@ export default function Collection() {
273
276
  return /*#__PURE__*/_jsx("div", {
274
277
  className: "jzlj-car-collection",
275
278
  children: /*#__PURE__*/_jsx(VmWrapper, {
276
- title: "\u8054\u5355\u8FD0\u884C\u60C5\u51B5",
279
+ title: /*#__PURE__*/_jsxs("span", {
280
+ children: [/*#__PURE__*/_jsx("span", {
281
+ children: "\u8054\u5355\u8FD0\u884C\u60C5\u51B5"
282
+ }), /*#__PURE__*/_jsx(Tooltip, {
283
+ title: "\u6309\u7167\u5DF2\u5B8C\u6210\u8054\u5355\u7EDF\u8BA1",
284
+ children: /*#__PURE__*/_jsx(QuestionCircleOutlined, {
285
+ style: {
286
+ cursor: 'pointer',
287
+ marginLeft: 4
288
+ }
289
+ })
290
+ })]
291
+ }),
277
292
  needChange: true,
278
293
  activeKey: activeKey,
279
294
  onChange: function onChange(key) {
@@ -19,6 +19,7 @@ export default function Pies(_ref) {
19
19
  value: item.czzCount
20
20
  });
21
21
  });
22
+ var startDataSum = startDataList === null || startDataList === void 0 ? void 0 : startDataList.length;
22
23
  var endPieData = pieData.find(function (item) {
23
24
  return item.startEndType === 'END';
24
25
  });
@@ -28,6 +29,8 @@ export default function Pies(_ref) {
28
29
  value: item.czzCount
29
30
  });
30
31
  });
32
+ var endDataSum = endDataList === null || endDataList === void 0 ? void 0 : endDataList.length;
33
+ var tooltipFormatter = "{a}\uFF1A<br/>{b}<br/>\u5173\u8054\u5904\u7F6E\u8BC1\uFF1A{c}\u5F20 ({d}%)";
31
34
  return /*#__PURE__*/_jsxs("div", {
32
35
  className: "jzlj-car-dispose-pies-main",
33
36
  children: [/*#__PURE__*/_jsx("div", {
@@ -36,7 +39,7 @@ export default function Pies(_ref) {
36
39
  dataList: startDataList,
37
40
  name: "\u8FD0\u8F93\u8D77\u70B9",
38
41
  title: "\u8FD0\u8F93\u8D77\u70B9(\u4E2A)",
39
- total: startPieData === null || startPieData === void 0 ? void 0 : startPieData.totalCount,
42
+ total: startDataSum !== null && startDataSum !== void 0 ? startDataSum : 0,
40
43
  unit: "\u4E2A",
41
44
  innerRadius: ['30%', '40%'],
42
45
  outerRadius: ['40%', '45%'],
@@ -47,9 +50,10 @@ export default function Pies(_ref) {
47
50
  });
48
51
  var info = startDataList[index] || {};
49
52
  var value = info.value;
50
- return "{name|".concat(name.slice(0, 6)).concat(name.length > 6 ? '...' : '', "}(\u5173\u8054").concat(value !== null && value !== void 0 ? value : 0, "\u5904\u7F6E\u8BC1)");
53
+ return "{name|".concat(name.slice(0, 6)).concat(name.length > 6 ? '...' : '', "}(\u5173\u8054").concat(value !== null && value !== void 0 ? value : 0, "\u5F20\u5904\u7F6E\u8BC1)");
51
54
  }
52
- }
55
+ },
56
+ tooltipFormatter: tooltipFormatter
53
57
  })
54
58
  }), /*#__PURE__*/_jsx("div", {
55
59
  className: "jzlj-car-dispose-pies-main-item",
@@ -57,7 +61,7 @@ export default function Pies(_ref) {
57
61
  dataList: endDataList,
58
62
  name: "\u8FD0\u8F93\u7EC8\u70B9",
59
63
  title: "\u8FD0\u8F93\u7EC8\u70B9(\u4E2A)",
60
- total: endPieData === null || endPieData === void 0 ? void 0 : endPieData.totalCount,
64
+ total: endDataSum !== null && endDataSum !== void 0 ? endDataSum : 0,
61
65
  unit: "\u4E2A",
62
66
  innerRadius: ['30%', '40%'],
63
67
  outerRadius: ['40%', '45%'],
@@ -68,9 +72,10 @@ export default function Pies(_ref) {
68
72
  });
69
73
  var info = endDataList[index] || {};
70
74
  var value = info.value;
71
- return "{name|".concat(name.slice(0, 6)).concat(name.length > 6 ? '...' : '', "}(\u5173\u8054").concat(value !== null && value !== void 0 ? value : 0, "\u5904\u7F6E\u8BC1)");
75
+ return "{name|".concat(name.slice(0, 6)).concat(name.length > 6 ? '...' : '', "}(\u5173\u8054").concat(value !== null && value !== void 0 ? value : 0, "\u5F20\u5904\u7F6E\u8BC1)");
72
76
  }
73
- }
77
+ },
78
+ tooltipFormatter: tooltipFormatter
74
79
  })
75
80
  })]
76
81
  });
@@ -29,7 +29,7 @@ export default function Dispose() {
29
29
  code: undefined,
30
30
  endingPointName: undefined,
31
31
  startingPointName: undefined,
32
- effectiveStatusCode: undefined,
32
+ effectiveStatusCode: 'sxz',
33
33
  pieData: []
34
34
  }),
35
35
  _useSetState2 = _slicedToArray(_useSetState, 2),
@@ -42,7 +42,14 @@ export default function Dispose() {
42
42
  effectiveStatusCode = state.effectiveStatusCode,
43
43
  pieData = state.pieData;
44
44
  var effectiveStatusList = JzljService.fetchJzljEnum('EffectiveStatusEnum');
45
- var columns = [['运输单位', 'transportUnitName', {
45
+ var fieldConfigData = JzljService.fieldConfig();
46
+ var transportWeightField = fieldConfigData.find(function (item) {
47
+ return item.dataKey === 'transportWeight';
48
+ }) || {};
49
+ var columns = [['处置证编号', 'code', {
50
+ width: 160,
51
+ ellipsis: true
52
+ }], ['运输单位', 'transportUnitName', {
46
53
  width: 160,
47
54
  ellipsis: true
48
55
  }], ['运输起点', 'startingPointName', {
@@ -53,11 +60,11 @@ export default function Dispose() {
53
60
  ellipsis: true
54
61
  }], ['运输垃圾类型', 'garbageTypeName', {
55
62
  width: 100
56
- }], ['运输量(吨)', 'transportWeight', {
57
- width: 80,
63
+ }], [(transportWeightField === null || transportWeightField === void 0 ? void 0 : transportWeightField.displayName) || '运输量(吨)', 'transportWeight', {
64
+ width: 100,
58
65
  align: 'right'
59
66
  }], ['申报有效期', 'effectiveDate', {
60
- width: 150
67
+ width: 180
61
68
  }], ['生效状态', 'effectiveStatusName', {
62
69
  width: 100,
63
70
  render: function render(text, record) {
@@ -81,7 +88,7 @@ export default function Dispose() {
81
88
  setIframeModalInfo({
82
89
  visible: true,
83
90
  title: '处置证信息',
84
- src: "/jzlj/#/disposalApprovalFill?id=".concat(record.id)
91
+ src: "/jzlj/#/disposalApprovalFill?id=".concat(record.id, "&effectiveStatusCode=").concat(record.effectiveStatusCode)
85
92
  });
86
93
  },
87
94
  children: "\u67E5\u770B"
@@ -159,30 +166,30 @@ export default function Dispose() {
159
166
  }
160
167
  })
161
168
  }, {
162
- title: '终点',
169
+ title: '起点',
163
170
  weight: 1,
164
171
  dom: /*#__PURE__*/_jsx(VmFilter.VMInput, {
165
172
  style: {
166
173
  width: 120
167
174
  },
168
- value: endingPointName,
175
+ value: startingPointName,
169
176
  onValChange: function onValChange(val) {
170
177
  setState({
171
- endingPointName: val
178
+ startingPointName: val
172
179
  });
173
180
  }
174
181
  })
175
182
  }, {
176
- title: '起点',
183
+ title: '终点',
177
184
  weight: 1,
178
185
  dom: /*#__PURE__*/_jsx(VmFilter.VMInput, {
179
186
  style: {
180
187
  width: 120
181
188
  },
182
- value: startingPointName,
189
+ value: endingPointName,
183
190
  onValChange: function onValChange(val) {
184
191
  setState({
185
- startingPointName: val
192
+ endingPointName: val
186
193
  });
187
194
  }
188
195
  })
@@ -51,6 +51,8 @@ export default function RunCalendar() {
51
51
  lds_icon = lds_dark;
52
52
  yl_icon = yl_dark;
53
53
  }
54
+ var _JzljService$useUnit = JzljService.useUnit(),
55
+ unitStr = _JzljService$useUnit.unitStr;
54
56
  var columns = [{
55
57
  title: '日期',
56
58
  dataIndex: 'date',
@@ -62,7 +64,7 @@ export default function RunCalendar() {
62
64
  key: 'count',
63
65
  width: 100
64
66
  }, {
65
- title: '运量()',
67
+ title: "\u8FD0\u91CF(".concat(unitStr, ")"),
66
68
  dataIndex: 'weight',
67
69
  key: 'weight',
68
70
  width: 100
@@ -91,7 +93,7 @@ export default function RunCalendar() {
91
93
  }), /*#__PURE__*/_jsx(VmCalendarInner, {
92
94
  type: "green",
93
95
  img: yl_icon,
94
- value: item.weight + ' 吨',
96
+ value: item.weight + " ".concat(unitStr),
95
97
  style: {
96
98
  width: '139px',
97
99
  justifyContent: 'space-between'
@@ -102,7 +104,7 @@ export default function RunCalendar() {
102
104
  return /*#__PURE__*/_jsx("div", {
103
105
  className: "vtx-jzlj-car-run-calendar",
104
106
  children: /*#__PURE__*/_jsxs(VmWrapper, {
105
- title: '作业分析',
107
+ title: '收运分析',
106
108
  needChange: true,
107
109
  showCalendar: true,
108
110
  onChange: setType,
@@ -120,7 +122,7 @@ export default function RunCalendar() {
120
122
  img: lds_icon,
121
123
  type: 'blue'
122
124
  }, {
123
- name: '运量()',
125
+ name: "\u8FD0\u91CF(".concat(unitStr, ")"),
124
126
  img: yl_icon,
125
127
  type: 'green'
126
128
  }].map(function (item, index) {
@@ -157,10 +159,10 @@ export default function RunCalendar() {
157
159
  name: '联单数(次)'
158
160
  }, {
159
161
  key: '',
160
- unit: '吨',
161
- name: '运量()'
162
+ unit: unitStr,
163
+ name: "\u8FD0\u91CF(".concat(unitStr, ")")
162
164
  }],
163
- unit: '吨',
165
+ unit: unitStr,
164
166
  lineList: [{
165
167
  name: '运量',
166
168
  data: yxfxData.map(function (item) {
@@ -222,7 +222,7 @@ var VtxCarModal = function VtxCarModal(props) {
222
222
  title: '报警信息'
223
223
  }, {
224
224
  key: TABS_JZLJ_CAR_RUNNING_CALENDAR,
225
- title: '运行日历'
225
+ title: '运输日历'
226
226
  }];
227
227
  } else {
228
228
  tabs = [{
@@ -0,0 +1,77 @@
1
+ import { VmWrapper } from "../../../_components";
2
+ import VtxBaseModal from "../../../vtx-base-modal";
3
+ import PreviewAndDownload from "./PreviewAndDownload";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ var Content = function Content(_ref) {
6
+ var info = _ref.info,
7
+ theme = _ref.theme;
8
+ var content = info.content,
9
+ title = info.title,
10
+ knowledgeCategoryName = info.knowledgeCategoryName;
11
+ var attachments = [];
12
+ if (info.attachments) {
13
+ attachments = JSON.parse(info.attachments);
14
+ }
15
+ return /*#__PURE__*/_jsx(VmWrapper, {
16
+ showTitle: false,
17
+ children: /*#__PURE__*/_jsxs("div", {
18
+ style: {
19
+ height: 'calc(100vh - 70px)'
20
+ },
21
+ children: [/*#__PURE__*/_jsx("h2", {
22
+ style: {
23
+ marginBottom: 24,
24
+ textAlign: 'center',
25
+ color: 'var(--modal-title-color)'
26
+ },
27
+ children: title
28
+ }), /*#__PURE__*/_jsx("div", {
29
+ style: {
30
+ color: 'var(--gray-color)'
31
+ },
32
+ children: knowledgeCategoryName
33
+ }), /*#__PURE__*/_jsx("div", {
34
+ className: "w-e-text-container",
35
+ children: /*#__PURE__*/_jsx("div", {
36
+ dangerouslySetInnerHTML: {
37
+ __html: content
38
+ },
39
+ "data-slate-editor": true
40
+ })
41
+ }), attachments.length > 0 ? attachments.map(function (item) {
42
+ return /*#__PURE__*/_jsx(PreviewAndDownload, {
43
+ data: item,
44
+ theme: theme
45
+ }, item.id);
46
+ }) : '--']
47
+ })
48
+ });
49
+ };
50
+ var KnowledgeBasesDetail = function KnowledgeBasesDetail(_ref2) {
51
+ var title = _ref2.title,
52
+ visible = _ref2.visible,
53
+ onCancel = _ref2.onCancel,
54
+ theme = _ref2.theme,
55
+ info = _ref2.info;
56
+ return visible ? /*#__PURE__*/_jsx(VtxBaseModal, {
57
+ width: "100vw",
58
+ height: "100vh",
59
+ top: 0,
60
+ left: 0,
61
+ title: title,
62
+ visible: visible,
63
+ theme: theme,
64
+ onCancel: onCancel,
65
+ tabs: [{
66
+ key: 'info'
67
+ }],
68
+ contents: {
69
+ info: /*#__PURE__*/_jsx(Content, {
70
+ info: info,
71
+ theme: theme
72
+ })
73
+ },
74
+ modalHeight: "100vh"
75
+ }) : null;
76
+ };
77
+ export default KnowledgeBasesDetail;