@vtx/modals2 6.0.0-beta.1 → 6.0.0-beta.10
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.
- package/lib/_components/index.js +1 -0
- package/lib/_components/vm-appraisal-info/api.js +55 -0
- package/lib/_components/vm-appraisal-info/imgs/count.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/count_light.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract_light.png +0 -0
- package/lib/_components/vm-appraisal-info/index.js +230 -0
- package/lib/_components/vm-appraisal-info/index.less +7 -0
- package/lib/_components/vm-calendar/index.js +3 -4
- package/lib/_components/vm-factor/index.js +2 -1
- package/lib/_components/vm-filter/index.js +8 -8
- package/lib/_components/vm-filter/style/index.less +7 -11
- package/lib/_components/vm-info-collection/index.js +3 -2
- package/lib/_components/vm-line-charts/index.js +4 -1
- package/lib/_components/vm-progress/index.js +2 -1
- package/lib/_components/vm-repair-maintain/index.js +34 -2
- package/lib/_components/vm-table/index.js +3 -3
- package/lib/_components/vm-tag/index.js +2 -1
- package/lib/_components/vm-title/index.js +2 -1
- package/lib/_components/vm-video/HistoryGrid.js +53 -3
- package/lib/_components/vm-video/RealtimeGrid.js +24 -3
- package/lib/_components/vm-video/index.js +99 -37
- package/lib/_components/vm-video/index.less +18 -14
- package/lib/_components/vm-wrapper/index.js +1 -1
- package/lib/_components/vm-wrapper/style/index.less +4 -2
- package/lib/_hooks/useGetChannels.js +20 -6
- package/lib/_service/index.js +7 -33
- package/lib/_util/http.js +32 -5
- package/lib/_util/index.js +6 -5
- package/lib/locales/en.json +140 -1
- package/lib/locales/zh-CN.json +142 -3
- package/lib/vtx-base-modal/Tabs/index.js +2 -1
- package/lib/vtx-base-modal/index.js +2 -1
- package/lib/vtx-car-modal/api.js +415 -25
- package/lib/vtx-car-modal/components/Info/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/EleUse/index.js +218 -0
- package/lib/vtx-car-modal/content/Common/EleUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/OilUse/index.js +230 -0
- package/lib/vtx-car-modal/content/Common/OilUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +376 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -0
- package/lib/vtx-car-modal/content/Common/WaterUse/index.js +201 -0
- package/lib/vtx-car-modal/content/Common/WaterUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/index.js +9 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +2 -1
- package/lib/vtx-car-modal/imgs/czb_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/czb_bg_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +31 -9
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +2 -5
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +7 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +8 -4
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +2 -2
- package/lib/vtx-cp-modal/index.js +12 -12
- package/lib/vtx-default-modal/index.js +7 -6
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +2 -2
- package/lib/vtx-df-modal/index.js +7 -15
- package/lib/vtx-kh-modal/components/Record/index.js +1 -205
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +50 -33
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +3 -3
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +9 -1
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +8 -1
- package/lib/vtx-road-modal/index.js +6 -3
- package/lib/vtx-road-modal/utils/url.js +12 -0
- package/lib/vtx-shxq-modal/api.js +2 -2
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +2 -2
- package/lib/vtx-shxq-modal/index.js +21 -4
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +4 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-wr-modal/index.js +28 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +4 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +5 -4
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +12 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +10 -5
- package/lib/vtx-zzz-modal/index.js +28 -22
- package/package.json +6 -6
|
@@ -3,8 +3,10 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
4
|
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); }
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
+
import Appraisal from "../_components/vm-appraisal-info";
|
|
6
7
|
import VmCustom from "../_components/vm-custom";
|
|
7
8
|
import VmRepairMaintain from "../_components/vm-repair-maintain";
|
|
9
|
+
import VmVideo, { insertVideoTab } from "../_components/vm-video";
|
|
8
10
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
9
11
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
10
12
|
import VtxBaseModal from "../vtx-base-modal";
|
|
@@ -20,6 +22,7 @@ var TABS_WARNNING = 'warning';
|
|
|
20
22
|
var TABS_EXECEPTION = 'exeception';
|
|
21
23
|
var TABS_RM = 'default-rm';
|
|
22
24
|
var TABS_VIDEO = 'video';
|
|
25
|
+
var TABS_APPRAISAL = 'appraisal';
|
|
23
26
|
var VtxCpModal = function VtxCpModal(props) {
|
|
24
27
|
var id = props.id,
|
|
25
28
|
title = props.title,
|
|
@@ -59,21 +62,12 @@ var VtxCpModal = function VtxCpModal(props) {
|
|
|
59
62
|
var tabsList = tabsData;
|
|
60
63
|
if (!(facConfig !== null && facConfig !== void 0 && (_facConfig$data = facConfig.data) !== null && _facConfig$data !== void 0 && _facConfig$data.beenCollect)) {
|
|
61
64
|
tabsList = tabsList.filter(function (ele) {
|
|
62
|
-
return !['
|
|
65
|
+
return !['sy', 'warning', 'exeception'].includes(ele.key);
|
|
63
66
|
});
|
|
64
67
|
}
|
|
65
|
-
|
|
66
|
-
return ele.key === 'cp-video';
|
|
67
|
-
}) > -1) {
|
|
68
|
-
if ((channels === null || channels === void 0 ? void 0 : channels.length) < 1) {
|
|
69
|
-
tabsList = tabsList.filter(function (ele) {
|
|
70
|
-
return ele.key !== 'cp-video';
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return tabsList;
|
|
68
|
+
return insertVideoTab(tabsList, channels);
|
|
75
69
|
}, [JSON.stringify(tabsData), JSON.stringify(channels), JSON.stringify(facConfig)]);
|
|
76
|
-
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
|
|
70
|
+
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
|
|
77
71
|
id: id,
|
|
78
72
|
baseInfo: baseInfo,
|
|
79
73
|
info: info,
|
|
@@ -84,8 +78,14 @@ var VtxCpModal = function VtxCpModal(props) {
|
|
|
84
78
|
id: id
|
|
85
79
|
})), TABS_EXECEPTION, /*#__PURE__*/_jsx(ExeceptionInfo, {
|
|
86
80
|
id: id
|
|
81
|
+
})), TABS_APPRAISAL, /*#__PURE__*/_jsx(Appraisal, {
|
|
82
|
+
id: id
|
|
83
|
+
})), "rm", /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
84
|
+
id: id
|
|
87
85
|
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
88
86
|
id: id
|
|
87
|
+
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
88
|
+
channels: channels
|
|
89
89
|
}));
|
|
90
90
|
// 自定义页签可配置多个,包含custom即可
|
|
91
91
|
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
@@ -5,8 +5,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
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
7
|
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
8
|
-
/**
|
|
9
|
-
* 通用弹窗
|
|
8
|
+
/**
|
|
9
|
+
* 通用弹窗
|
|
10
10
|
*/
|
|
11
11
|
import { useMemo } from 'react';
|
|
12
12
|
import { VmCustom, VmRepairMaintain, VmVideo } from "../_components";
|
|
@@ -15,7 +15,7 @@ import useGetConfig from "../_hooks/useGetConfig";
|
|
|
15
15
|
import { CommonService } from "../_service";
|
|
16
16
|
import VtxBaseModal from "../vtx-base-modal";
|
|
17
17
|
import Metering from "../vtx-df-modal/components/Metering";
|
|
18
|
-
import Appraisal from "../
|
|
18
|
+
import Appraisal from "../_components/vm-appraisal-info";
|
|
19
19
|
import { BaseInfo } from "./components";
|
|
20
20
|
import "./style";
|
|
21
21
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -27,6 +27,7 @@ var TABS_METERING = 'metering';
|
|
|
27
27
|
var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
28
28
|
var _info$geometryInfo, _info$geometryInfo2, _info$geometryInfo3;
|
|
29
29
|
var id = props.id,
|
|
30
|
+
facilityId = props.facilityId,
|
|
30
31
|
title = props.title,
|
|
31
32
|
subTitle = props.subTitle,
|
|
32
33
|
theme = props.theme,
|
|
@@ -94,17 +95,17 @@ var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
|
94
95
|
id: id
|
|
95
96
|
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
96
97
|
id: id
|
|
97
|
-
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
98
|
-
channels: channels
|
|
99
98
|
})), TABS_METERING, /*#__PURE__*/_jsx(Metering, {
|
|
100
99
|
id: id
|
|
100
|
+
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
101
|
+
channels: channels
|
|
101
102
|
}));
|
|
102
103
|
// 自定义页签可配置多个,包含custom即可
|
|
103
104
|
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
104
105
|
tabsData.forEach(function (ele) {
|
|
105
106
|
if (ele.url) {
|
|
106
107
|
contents[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
|
|
107
|
-
id: id,
|
|
108
|
+
id: ele.url.indexOf('type=1') > -1 ? facilityId : id,
|
|
108
109
|
url: ele === null || ele === void 0 ? void 0 : ele.url
|
|
109
110
|
});
|
|
110
111
|
}
|
|
@@ -5,8 +5,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
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; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
|
-
/**
|
|
9
|
-
* 监测指标趋势分析
|
|
8
|
+
/**
|
|
9
|
+
* 监测指标趋势分析
|
|
10
10
|
*/
|
|
11
11
|
import { useSetState } from 'ahooks';
|
|
12
12
|
import dayjs from 'dayjs';
|
|
@@ -5,8 +5,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
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; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
|
-
/**
|
|
9
|
-
* 监测指标趋势分析
|
|
8
|
+
/**
|
|
9
|
+
* 监测指标趋势分析
|
|
10
10
|
*/
|
|
11
11
|
import { useSetState } from 'ahooks';
|
|
12
12
|
import dayjs from 'dayjs';
|
|
@@ -11,8 +11,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
12
|
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); }
|
|
13
13
|
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
14
|
-
/**
|
|
15
|
-
* 计量-工况信息
|
|
14
|
+
/**
|
|
15
|
+
* 计量-工况信息
|
|
16
16
|
*/
|
|
17
17
|
import dayjs from 'dayjs';
|
|
18
18
|
import { VmTable } from "../../../_components";
|
|
@@ -4,11 +4,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
4
4
|
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); }
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { BaseInfo as DefaultBaseInfo } from "../vtx-default-modal/components";
|
|
7
|
-
import { BaseInfo, BaseInfoZdReborn, Calendar, CalendarZdReborn, Metering, MeteringZdReborn, WorkCondition } from "./components";
|
|
8
7
|
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
8
|
+
import { BaseInfo, BaseInfoZdReborn, Calendar, CalendarZdReborn, Metering, MeteringZdReborn, WorkCondition } from "./components";
|
|
9
9
|
// import Appraisal from '../vm-appraisal-info';
|
|
10
10
|
import VmRepairMaintain from "../_components/vm-repair-maintain";
|
|
11
|
-
import VmVideo from "../_components/vm-video";
|
|
11
|
+
import VmVideo, { insertVideoTab } from "../_components/vm-video";
|
|
12
12
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
13
13
|
import { CommonService } from "../_service";
|
|
14
14
|
import { BaseService } from "./api";
|
|
@@ -59,7 +59,9 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
59
59
|
detail = _CommonService.detail;
|
|
60
60
|
var _BaseService$useRealt = BaseService.useRealtimeMonitor(info === null || info === void 0 ? void 0 : info.code),
|
|
61
61
|
realtimeMonitor = _BaseService$useRealt.realtimeMonitor;
|
|
62
|
-
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode))
|
|
62
|
+
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode) && (tabsData === null || tabsData === void 0 ? void 0 : tabsData.findIndex(function (ele) {
|
|
63
|
+
return ele.key === 'video';
|
|
64
|
+
})) > -1),
|
|
63
65
|
channels = _useGetChannels.channels;
|
|
64
66
|
|
|
65
67
|
// realtimeRes为空则无工况,beenWeigh为false则无计量
|
|
@@ -67,22 +69,12 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
67
69
|
var tabsList = tabsData;
|
|
68
70
|
if (!(detail !== null && detail !== void 0 && detail.beenWeigh)) {
|
|
69
71
|
tabsList = tabsList.filter(function (ele) {
|
|
70
|
-
return ele.key !== '
|
|
72
|
+
return ele.key !== 'metering';
|
|
71
73
|
});
|
|
72
74
|
}
|
|
73
|
-
|
|
74
|
-
return ele.key === 'df-video';
|
|
75
|
-
}) > -1) {
|
|
76
|
-
if ((channels === null || channels === void 0 ? void 0 : channels.length) < 1) {
|
|
77
|
-
tabsList = tabsList.filter(function (ele) {
|
|
78
|
-
return ele.key !== 'df-video';
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return tabsList;
|
|
75
|
+
return insertVideoTab(tabsList, channels);
|
|
83
76
|
}, [JSON.stringify(tabsData), JSON.stringify(channels), JSON.stringify(detail)]);
|
|
84
77
|
var ZLBase = zdReborn ? BaseInfoZdReborn : BaseInfo;
|
|
85
|
-
console.log(zdReborn);
|
|
86
78
|
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, !(detail !== null && detail !== void 0 && detail.beenWeigh) && !(realtimeMonitor !== null && realtimeMonitor !== void 0 && realtimeMonitor.length) ? /*#__PURE__*/_jsx(DefaultBaseInfo, {
|
|
87
79
|
id: id,
|
|
88
80
|
info: info,
|
|
@@ -1,205 +1 @@
|
|
|
1
|
-
|
|
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 _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); }
|
|
11
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
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."); }
|
|
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); }
|
|
14
|
-
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; }
|
|
15
|
-
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; } }
|
|
16
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
-
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
18
|
-
/**
|
|
19
|
-
* 考核信息-列表
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
import { VtxImage } from '@vtx/components';
|
|
23
|
-
import { useSetState } from 'ahooks';
|
|
24
|
-
import dayjs from 'dayjs';
|
|
25
|
-
import { VmFactor, VmFilter, VmTable, VmWrapper } from "../../../_components";
|
|
26
|
-
import useSettings from "../../../_hooks/useSettings";
|
|
27
|
-
import { BaseService, ReocrdService } from "../../api2";
|
|
28
|
-
import "./index.less";
|
|
29
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
-
var List = function List(props) {
|
|
31
|
-
var _useSettings = useSettings(),
|
|
32
|
-
isDark = _useSettings.isDark;
|
|
33
|
-
var id = props.id;
|
|
34
|
-
var _useSetState = useSetState({
|
|
35
|
-
pagination: {
|
|
36
|
-
current: 1,
|
|
37
|
-
pageSize: 10,
|
|
38
|
-
total: 0
|
|
39
|
-
},
|
|
40
|
-
startDate: dayjs().startOf('M'),
|
|
41
|
-
endDate: dayjs(),
|
|
42
|
-
checkActivityCode: '1',
|
|
43
|
-
sort: ''
|
|
44
|
-
}),
|
|
45
|
-
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
46
|
-
state = _useSetState2[0],
|
|
47
|
-
setState = _useSetState2[1];
|
|
48
|
-
var pagination = state.pagination,
|
|
49
|
-
startDate = state.startDate,
|
|
50
|
-
endDate = state.endDate,
|
|
51
|
-
checkActivityCode = state.checkActivityCode,
|
|
52
|
-
sort = state.sort;
|
|
53
|
-
var _BaseService$useKhInf = BaseService.useKhInfo(id, startDate.format('YYYY-MM-DD'), endDate.format('YYYY-MM-DD'), checkActivityCode === '1' ? '' : checkActivityCode),
|
|
54
|
-
khRes = _BaseService$useKhInf.khRes;
|
|
55
|
-
var _ReocrdService$useRec = ReocrdService.useRecordInfo(id, startDate.format('YYYY-MM-DD'), endDate.format('YYYY-MM-DD'), checkActivityCode === '1' ? '' : checkActivityCode, pagination.current - 1, sort),
|
|
56
|
-
records = _ReocrdService$useRec.records,
|
|
57
|
-
loading = _ReocrdService$useRec.loading;
|
|
58
|
-
var columns = [{
|
|
59
|
-
title: translateLocaleText("t('vtxkhmodal.image')"),
|
|
60
|
-
dataIndex: 'photos',
|
|
61
|
-
key: 'photos',
|
|
62
|
-
width: 120,
|
|
63
|
-
render: function render(text) {
|
|
64
|
-
var photos = JSON.parse(text || '[]');
|
|
65
|
-
var a = [].concat(_toConsumableArray(photos), _toConsumableArray(photos), _toConsumableArray(photos), _toConsumableArray(photos));
|
|
66
|
-
return (photos === null || photos === void 0 ? void 0 : photos.length) > 0 ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
|
|
67
|
-
children: a.map(function (ele, index) {
|
|
68
|
-
return /*#__PURE__*/_jsx(VtxImage, {
|
|
69
|
-
src: "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(ele.id),
|
|
70
|
-
style: {
|
|
71
|
-
width: 80,
|
|
72
|
-
height: 80,
|
|
73
|
-
visibility: index > 0 ? 'hidden' : 'visible'
|
|
74
|
-
},
|
|
75
|
-
alt: ele.name
|
|
76
|
-
}, index);
|
|
77
|
-
})
|
|
78
|
-
}) : '--';
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
81
|
-
title: translateLocaleText("t('vtxkhmodal.hours')"),
|
|
82
|
-
dataIndex: 'checkDate',
|
|
83
|
-
key: 'checkDate',
|
|
84
|
-
width: 150,
|
|
85
|
-
ellipsis: true
|
|
86
|
-
}, {
|
|
87
|
-
title: translateLocaleText("t('vtxkhmodal.assessmentActivity')"),
|
|
88
|
-
dataIndex: 'checkActivityName',
|
|
89
|
-
key: 'checkActivityName',
|
|
90
|
-
width: 200
|
|
91
|
-
}, {
|
|
92
|
-
title: translateLocaleText("t('vtxkhmodal.assessor')"),
|
|
93
|
-
dataIndex: 'checkUserName',
|
|
94
|
-
key: 'checkUserName'
|
|
95
|
-
}, {
|
|
96
|
-
title: translateLocaleText("t('vtxkhmodal.group')"),
|
|
97
|
-
dataIndex: 'ruleGroupName',
|
|
98
|
-
key: 'ruleGroupName'
|
|
99
|
-
}, {
|
|
100
|
-
title: translateLocaleText("t('vtxkhmodal.assessmentStandard')"),
|
|
101
|
-
dataIndex: 'ruleName',
|
|
102
|
-
key: 'ruleName',
|
|
103
|
-
width: 150
|
|
104
|
-
}, {
|
|
105
|
-
title: translateLocaleText("t('vtxkhmodal.score')"),
|
|
106
|
-
dataIndex: 'deductPoints',
|
|
107
|
-
key: 'deductPoints',
|
|
108
|
-
align: 'right'
|
|
109
|
-
}];
|
|
110
|
-
var pageChange = function pageChange(page) {
|
|
111
|
-
setState({
|
|
112
|
-
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
113
|
-
current: page
|
|
114
|
-
})
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
var tableProps = {
|
|
118
|
-
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
119
|
-
total: records.total,
|
|
120
|
-
defaultPageSize: 10,
|
|
121
|
-
onChange: pageChange
|
|
122
|
-
}),
|
|
123
|
-
height: 384,
|
|
124
|
-
loading: loading,
|
|
125
|
-
dataSource: records.rows,
|
|
126
|
-
onChange: function onChange(_pagination, _filters, sorter) {
|
|
127
|
-
if (sorter.order) {
|
|
128
|
-
var order = sorter.order === 'ascend' ? 'asc' : 'desc';
|
|
129
|
-
setState({
|
|
130
|
-
sort: "".concat(sorter.field, ",").concat(order)
|
|
131
|
-
});
|
|
132
|
-
} else {
|
|
133
|
-
setState({
|
|
134
|
-
sort: ''
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
var filterChange = function filterChange(dateValue) {
|
|
140
|
-
setState({
|
|
141
|
-
startDate: dateValue[0],
|
|
142
|
-
endDate: dateValue[1]
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
146
|
-
title: translateLocaleText("t('vtxkhmodal.details')"),
|
|
147
|
-
filterType: "rangePicker",
|
|
148
|
-
dateValue: [startDate, endDate],
|
|
149
|
-
filterChange: filterChange,
|
|
150
|
-
extraLeft: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
|
|
151
|
-
options: [{
|
|
152
|
-
value: '1',
|
|
153
|
-
label: translateLocaleText("t('export.all')")
|
|
154
|
-
}, {
|
|
155
|
-
value: 'RCDC',
|
|
156
|
-
label: translateLocaleText("t('vtxkhmodal.day')")
|
|
157
|
-
}, {
|
|
158
|
-
value: 'ZXDC',
|
|
159
|
-
label: translateLocaleText("t('vtxkhmodal.specialSupervision')")
|
|
160
|
-
}, {
|
|
161
|
-
value: 'DSFCP',
|
|
162
|
-
label: translateLocaleText("t('vtxkhmodal.thirdPartyEvaluation')")
|
|
163
|
-
}, {
|
|
164
|
-
value: 'RCXC',
|
|
165
|
-
label: translateLocaleText("t('vtxkhmodal.day2')")
|
|
166
|
-
}],
|
|
167
|
-
style: {
|
|
168
|
-
width: 132
|
|
169
|
-
},
|
|
170
|
-
value: checkActivityCode,
|
|
171
|
-
onChange: function onChange(e) {
|
|
172
|
-
return setState({
|
|
173
|
-
checkActivityCode: e
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
}),
|
|
177
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
178
|
-
className: "kh-record-summary",
|
|
179
|
-
children: [{
|
|
180
|
-
name: translateLocaleText("t('vtxkhmodal.times')"),
|
|
181
|
-
value: khRes === null || khRes === void 0 ? void 0 : khRes.monthCheckTims,
|
|
182
|
-
key: 'count',
|
|
183
|
-
unit: translateLocaleText("t('common.timesUnit')"),
|
|
184
|
-
fontType: 'blue'
|
|
185
|
-
}, {
|
|
186
|
-
name: translateLocaleText("t('vtxkhmodal.totalDeductedPoints')"),
|
|
187
|
-
value: khRes === null || khRes === void 0 ? void 0 : khRes.monthDeductPoint,
|
|
188
|
-
key: 'subtract',
|
|
189
|
-
unit: translateLocaleText("t('vtxkhmodal.scoreUnit')"),
|
|
190
|
-
fontType: 'red'
|
|
191
|
-
}].map(function (ele) {
|
|
192
|
-
return /*#__PURE__*/_jsx(VmFactor, _objectSpread(_objectSpread({}, ele), {}, {
|
|
193
|
-
img: require("../../imgs/".concat(ele.key).concat(isDark ? '' : '_light', ".png")),
|
|
194
|
-
unitStyle: {
|
|
195
|
-
fontSize: 14
|
|
196
|
-
}
|
|
197
|
-
}), ele.key);
|
|
198
|
-
})
|
|
199
|
-
}), /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
200
|
-
columns: columns,
|
|
201
|
-
rowKey: "id"
|
|
202
|
-
}, tableProps))]
|
|
203
|
-
});
|
|
204
|
-
};
|
|
205
|
-
export default List;
|
|
1
|
+
export { default } from "../../../_components/vm-appraisal-info";
|
|
@@ -73,7 +73,7 @@ var CalendarContent = function CalendarContent(_ref) {
|
|
|
73
73
|
children: [/*#__PURE__*/_jsx("div", {
|
|
74
74
|
children: collectItem !== null && collectItem !== void 0 && collectItem.weighTime ? dayjs(collectItem.weighTime).format('HH:mm:ss') : '--' || '--'
|
|
75
75
|
}), /*#__PURE__*/_jsx(VmTag, {
|
|
76
|
-
title: '
|
|
76
|
+
title: translateLocaleText("t('vtxrestaurantmodal.collected')"),
|
|
77
77
|
type: 'green'
|
|
78
78
|
})]
|
|
79
79
|
}), /*#__PURE__*/_jsxs("div", {
|
|
@@ -81,13 +81,13 @@ var CalendarContent = function CalendarContent(_ref) {
|
|
|
81
81
|
style: {
|
|
82
82
|
height: 14
|
|
83
83
|
},
|
|
84
|
-
children: [collectItem === null || collectItem === void 0 ? void 0 : collectItem.trashNum, "
|
|
84
|
+
children: [collectItem === null || collectItem === void 0 ? void 0 : collectItem.trashNum, translateLocaleText("t('common.unit.bucket')"), " / ", collectItem === null || collectItem === void 0 ? void 0 : collectItem.netWeight, "kg"]
|
|
85
85
|
}), /*#__PURE__*/_jsx("div", {
|
|
86
86
|
className: 'cc_restaurant_calendar-content-item',
|
|
87
87
|
children: collectItem === null || collectItem === void 0 ? void 0 : collectItem.carCode
|
|
88
88
|
})]
|
|
89
89
|
}) : null, isEmpty(collectList) && isAfter && isCollect ? /*#__PURE__*/_jsx(VmTag, {
|
|
90
|
-
title: '
|
|
90
|
+
title: translateLocaleText("t('vtxrestaurantmodal.notCollected')"),
|
|
91
91
|
type: 'yellow',
|
|
92
92
|
style: {
|
|
93
93
|
width: '100%'
|
|
@@ -19,7 +19,7 @@ var Content = function Content(_ref) {
|
|
|
19
19
|
id: id
|
|
20
20
|
});
|
|
21
21
|
var infoData = [{
|
|
22
|
-
label: '
|
|
22
|
+
label: translateLocaleText("t('vtxrestaurantmodal.contractNumber')"),
|
|
23
23
|
value: data.contractNumber,
|
|
24
24
|
key: 'contractNumber'
|
|
25
25
|
}, {
|
|
@@ -48,8 +48,13 @@ var Content = function Content(_ref) {
|
|
|
48
48
|
value: data.time,
|
|
49
49
|
key: 'time'
|
|
50
50
|
}] : []), [{
|
|
51
|
-
label: '
|
|
52
|
-
value: data.garbageType === 'fqyz' ? "
|
|
51
|
+
label: translateLocaleText("t('vtxrestaurantmodal.transportVolume')"),
|
|
52
|
+
value: data.garbageType === 'fqyz' ? translateLocaleText("t('vtxrestaurantmodal.transportVolumeWeekMonthValue')", {
|
|
53
|
+
week: data.trafficWeek || '-',
|
|
54
|
+
month: data.trafficMonth || '-'
|
|
55
|
+
}) : translateLocaleText("t('vtxrestaurantmodal.transportVolumeDayValue')", {
|
|
56
|
+
day: data.trafficDay || '-'
|
|
57
|
+
}),
|
|
53
58
|
key: 'trafficDay'
|
|
54
59
|
}], _toConsumableArray(data.garbageType === 'fqyz' ? [{
|
|
55
60
|
label: translateLocaleText("t('vtxrestaurantmodal.times2')"),
|
|
@@ -60,39 +65,47 @@ var Content = function Content(_ref) {
|
|
|
60
65
|
value: data.time,
|
|
61
66
|
key: 'time'
|
|
62
67
|
}, {
|
|
63
|
-
label: '
|
|
68
|
+
label: translateLocaleText("t('vtxrestaurantmodal.paymentMethod')"),
|
|
64
69
|
value: data.paymentMethod,
|
|
65
70
|
key: 'paymentMethod'
|
|
66
71
|
}] : [{
|
|
67
|
-
label: '
|
|
68
|
-
value: "
|
|
72
|
+
label: translateLocaleText("t('vtxrestaurantmodal.contractAmount')"),
|
|
73
|
+
value: translateLocaleText("t('common.value.yuanPerYear')", {
|
|
74
|
+
value: data.contractAmount || '-'
|
|
75
|
+
}),
|
|
69
76
|
key: 'contractAmount'
|
|
70
77
|
}]), [{
|
|
71
|
-
label: '
|
|
72
|
-
value: "
|
|
78
|
+
label: translateLocaleText("t('vtxrestaurantmodal.firstPartyClassificationPenalty')"),
|
|
79
|
+
value: translateLocaleText("t('common.value.yuanPerTon')", {
|
|
80
|
+
value: data.classifyPenalty || '-'
|
|
81
|
+
}),
|
|
73
82
|
key: 'classifyPenalty'
|
|
74
83
|
}], _toConsumableArray(data.garbageType === 'fqyz' ? [{
|
|
75
|
-
label: '
|
|
76
|
-
value: "
|
|
84
|
+
label: translateLocaleText("t('vtxrestaurantmodal.agreementViolationTerminationPeriod')"),
|
|
85
|
+
value: translateLocaleText("t('common.value.days')", {
|
|
86
|
+
value: data.terminationPeriod || '-'
|
|
87
|
+
}),
|
|
77
88
|
key: 'terminationPeriod'
|
|
78
89
|
}] : [{
|
|
79
90
|
label: translateLocaleText("t('vtxrestaurantmodal.otherUnitItems')"),
|
|
80
|
-
value: "
|
|
91
|
+
value: translateLocaleText("t('common.value.yuanPerTimes')", {
|
|
92
|
+
value: data.transferOtherPenalty || '-'
|
|
93
|
+
}),
|
|
81
94
|
key: 'terminationPeriod'
|
|
82
95
|
}]));
|
|
83
96
|
var columns = [{
|
|
84
|
-
title: '
|
|
97
|
+
title: translateLocaleText("t('vtxrestaurantmodal.capacity')"),
|
|
85
98
|
dataIndex: 'capacity',
|
|
86
99
|
align: 'center'
|
|
87
100
|
}, {
|
|
88
|
-
title: '
|
|
101
|
+
title: translateLocaleText("t('vtxrestaurantmodal.bucketCount')"),
|
|
89
102
|
dataIndex: 'barrelage',
|
|
90
103
|
align: 'center'
|
|
91
104
|
}];
|
|
92
105
|
var token = getVtxToken('token');
|
|
93
106
|
return /*#__PURE__*/_jsx("div", {
|
|
94
107
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
95
|
-
title: "
|
|
108
|
+
title: translateLocaleText("t('vtxrestaurantmodal.contractInformation')"),
|
|
96
109
|
rightContent: /*#__PURE__*/_jsxs(Space, {
|
|
97
110
|
children: [/*#__PURE__*/_jsx(Button, {
|
|
98
111
|
onClick: function onClick() {
|
|
@@ -125,7 +138,7 @@ var Content = function Content(_ref) {
|
|
|
125
138
|
width: "50%",
|
|
126
139
|
ellipsis: true
|
|
127
140
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
128
|
-
title: '
|
|
141
|
+
title: translateLocaleText("t('vtxrestaurantmodal.freeBucketConfiguration')")
|
|
129
142
|
}), /*#__PURE__*/_jsx(VmTable, {
|
|
130
143
|
columns: columns,
|
|
131
144
|
dataSource: [{
|
|
@@ -139,22 +152,26 @@ var Content = function Content(_ref) {
|
|
|
139
152
|
pagination: false
|
|
140
153
|
}), /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
141
154
|
data: [{
|
|
142
|
-
label: '
|
|
143
|
-
value: "
|
|
155
|
+
label: translateLocaleText("t('vtxrestaurantmodal.deposit')"),
|
|
156
|
+
value: translateLocaleText("t('common.value.yuan')", {
|
|
157
|
+
value: data.deposit || '-'
|
|
158
|
+
}),
|
|
144
159
|
key: 'deposit'
|
|
145
160
|
}].concat(_toConsumableArray(data.garbageType === 'ccfqw' ? [{
|
|
146
|
-
label: '
|
|
147
|
-
value: "
|
|
161
|
+
label: translateLocaleText("t('vtxrestaurantmodal.smallBucketConfiguration')"),
|
|
162
|
+
value: translateLocaleText("t('common.value.count')", {
|
|
163
|
+
value: data.keg || '-'
|
|
164
|
+
}),
|
|
148
165
|
key: 'keg'
|
|
149
166
|
}] : [])),
|
|
150
167
|
horizontal: true,
|
|
151
168
|
width: "50%",
|
|
152
169
|
ellipsis: true
|
|
153
170
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
154
|
-
title: '
|
|
171
|
+
title: translateLocaleText("t('vtxrestaurantmodal.firstPartyInformation')")
|
|
155
172
|
}), /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
156
173
|
data: [{
|
|
157
|
-
label: '
|
|
174
|
+
label: translateLocaleText("t('vtxrestaurantmodal.signature')"),
|
|
158
175
|
value: data.firstSign,
|
|
159
176
|
key: 'firstSign',
|
|
160
177
|
render: data.firstSign ? function () {
|
|
@@ -165,7 +182,7 @@ var Content = function Content(_ref) {
|
|
|
165
182
|
src: "/cloudFile/common/downloadFile?id=".concat(data === null || data === void 0 ? void 0 : data.firstSign, "&token=").concat(token),
|
|
166
183
|
maskClassName: 'maskClass'
|
|
167
184
|
},
|
|
168
|
-
alt: "
|
|
185
|
+
alt: translateLocaleText("t('vtxrestaurantmodal.signature')"),
|
|
169
186
|
style: {
|
|
170
187
|
width: 100,
|
|
171
188
|
height: 100
|
|
@@ -173,16 +190,16 @@ var Content = function Content(_ref) {
|
|
|
173
190
|
});
|
|
174
191
|
} : undefined
|
|
175
192
|
}, {
|
|
176
|
-
label: '
|
|
193
|
+
label: translateLocaleText("t('vtxrestaurantmodal.signatureSeal')"),
|
|
177
194
|
value: data.firstSignature,
|
|
178
195
|
key: 'firstSignature',
|
|
179
196
|
componentType: 'image'
|
|
180
197
|
}, {
|
|
181
|
-
label: '
|
|
198
|
+
label: translateLocaleText("t('vtxrestaurantmodal.legalRepresentative')"),
|
|
182
199
|
value: data.firstRepresentative,
|
|
183
200
|
key: 'firstRepresentative'
|
|
184
201
|
}, {
|
|
185
|
-
label: '
|
|
202
|
+
label: translateLocaleText("t('vtxrestaurantmodal.authorizedAgent')"),
|
|
186
203
|
value: data.firstProxy,
|
|
187
204
|
key: 'firstProxy'
|
|
188
205
|
}, {
|
|
@@ -191,7 +208,7 @@ var Content = function Content(_ref) {
|
|
|
191
208
|
key: 'firstMailingAddress',
|
|
192
209
|
isAddress: true
|
|
193
210
|
}, {
|
|
194
|
-
label: '
|
|
211
|
+
label: translateLocaleText("t('vtxrestaurantmodal.contactPhone')"),
|
|
195
212
|
value: data.firstPhone,
|
|
196
213
|
key: 'firstPhone',
|
|
197
214
|
isAddress: true
|
|
@@ -200,10 +217,10 @@ var Content = function Content(_ref) {
|
|
|
200
217
|
width: "50%",
|
|
201
218
|
ellipsis: true
|
|
202
219
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
203
|
-
title: '
|
|
220
|
+
title: translateLocaleText("t('vtxrestaurantmodal.secondPartyInformation')")
|
|
204
221
|
}), /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
205
222
|
data: [{
|
|
206
|
-
label: '
|
|
223
|
+
label: translateLocaleText("t('vtxrestaurantmodal.signature')"),
|
|
207
224
|
value: data.secondSign,
|
|
208
225
|
key: 'secondSign',
|
|
209
226
|
render: data.secondSign ? function () {
|
|
@@ -214,7 +231,7 @@ var Content = function Content(_ref) {
|
|
|
214
231
|
src: "/cloudFile/common/downloadFile?id=".concat(data === null || data === void 0 ? void 0 : data.secondSign, "&token=").concat(token),
|
|
215
232
|
maskClassName: 'maskClass'
|
|
216
233
|
},
|
|
217
|
-
alt: "
|
|
234
|
+
alt: translateLocaleText("t('vtxrestaurantmodal.signature')"),
|
|
218
235
|
style: {
|
|
219
236
|
width: 100,
|
|
220
237
|
height: 100
|
|
@@ -222,16 +239,16 @@ var Content = function Content(_ref) {
|
|
|
222
239
|
});
|
|
223
240
|
} : undefined
|
|
224
241
|
}, {
|
|
225
|
-
label: '
|
|
242
|
+
label: translateLocaleText("t('vtxrestaurantmodal.signatureSeal')"),
|
|
226
243
|
value: data.collectSignature,
|
|
227
244
|
key: 'collectSignature',
|
|
228
245
|
componentType: 'image'
|
|
229
246
|
}, {
|
|
230
|
-
label: '
|
|
247
|
+
label: translateLocaleText("t('vtxrestaurantmodal.legalRepresentative')"),
|
|
231
248
|
value: data.secondRepresentative,
|
|
232
249
|
key: 'secondRepresentative'
|
|
233
250
|
}, {
|
|
234
|
-
label: '
|
|
251
|
+
label: translateLocaleText("t('vtxrestaurantmodal.authorizedAgent')"),
|
|
235
252
|
value: data.secondProxy,
|
|
236
253
|
key: 'secondProxy'
|
|
237
254
|
}, {
|
|
@@ -240,7 +257,7 @@ var Content = function Content(_ref) {
|
|
|
240
257
|
key: 'secondMailingAddress',
|
|
241
258
|
isAddress: true
|
|
242
259
|
}, {
|
|
243
|
-
label: '
|
|
260
|
+
label: translateLocaleText("t('vtxrestaurantmodal.contactPhone')"),
|
|
244
261
|
value: data.secondPhone,
|
|
245
262
|
key: 'secondPhone',
|
|
246
263
|
isAddress: true
|