systemrobotassistant 3.0.8
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.
Potentially problematic release.
This version of systemrobotassistant might be problematic. Click here for more details.
- package/.eslintignore +6 -0
- package/.eslintrc +45 -0
- package/.gitlab-ci.yml +52 -0
- package/.lecprc.ts +76 -0
- package/.yarnrc +1 -0
- package/CHANGELOG.md +114 -0
- package/README.md +14 -0
- package/custom-amd-plugin.ts +46 -0
- package/es/component/answer-itme/index.d.ts +20 -0
- package/es/component/answer-itme/index.d.ts.map +1 -0
- package/es/component/answer-itme/index.js +41 -0
- package/es/component/answer-itme/style.css +35 -0
- package/es/component/data-container/index.d.ts +19 -0
- package/es/component/data-container/index.d.ts.map +1 -0
- package/es/component/data-container/index.js +37 -0
- package/es/component/data-container/style.css +26 -0
- package/es/component/days-tab/index.d.ts +6 -0
- package/es/component/days-tab/index.d.ts.map +1 -0
- package/es/component/days-tab/index.js +119 -0
- package/es/component/days-tab/style.css +43 -0
- package/es/component/days-tab/utils.d.ts +32 -0
- package/es/component/days-tab/utils.d.ts.map +1 -0
- package/es/component/days-tab/utils.js +98 -0
- package/es/component/error-boundary/index.d.ts +2 -0
- package/es/component/error-boundary/index.d.ts.map +1 -0
- package/es/component/error-boundary/index.js +33 -0
- package/es/component/it-notice-modal/columns.d.ts +11 -0
- package/es/component/it-notice-modal/columns.d.ts.map +1 -0
- package/es/component/it-notice-modal/columns.js +108 -0
- package/es/component/it-notice-modal/double-tab.d.ts +6 -0
- package/es/component/it-notice-modal/double-tab.d.ts.map +1 -0
- package/es/component/it-notice-modal/double-tab.js +94 -0
- package/es/component/it-notice-modal/index.d.ts +6 -0
- package/es/component/it-notice-modal/index.d.ts.map +1 -0
- package/es/component/it-notice-modal/index.js +488 -0
- package/es/component/it-notice-modal/server.d.ts +8 -0
- package/es/component/it-notice-modal/server.d.ts.map +1 -0
- package/es/component/it-notice-modal/server.js +43 -0
- package/es/component/it-notice-modal/single-tab.d.ts +6 -0
- package/es/component/it-notice-modal/single-tab.d.ts.map +1 -0
- package/es/component/it-notice-modal/single-tab.js +82 -0
- package/es/component/it-notice-modal/style.css +301 -0
- package/es/component/it-notice-modal/utils.d.ts +2 -0
- package/es/component/it-notice-modal/utils.d.ts.map +1 -0
- package/es/component/it-notice-modal/utils.js +8 -0
- package/es/component/it-notice-tab/index.d.ts +6 -0
- package/es/component/it-notice-tab/index.d.ts.map +1 -0
- package/es/component/it-notice-tab/index.js +206 -0
- package/es/component/it-notice-tab/server.d.ts +3 -0
- package/es/component/it-notice-tab/server.d.ts.map +1 -0
- package/es/component/it-notice-tab/server.js +13 -0
- package/es/component/it-notice-tab/style.css +103 -0
- package/es/component/mail-list-modal/index.d.ts +2 -0
- package/es/component/mail-list-modal/index.d.ts.map +1 -0
- package/es/component/mail-list-modal/index.js +306 -0
- package/es/component/mail-list-modal/server.d.ts +7 -0
- package/es/component/mail-list-modal/server.d.ts.map +1 -0
- package/es/component/mail-list-modal/server.js +38 -0
- package/es/component/mail-list-modal/style.css +132 -0
- package/es/component/myself-chat-card/index.d.ts +15 -0
- package/es/component/myself-chat-card/index.d.ts.map +1 -0
- package/es/component/myself-chat-card/index.js +25 -0
- package/es/component/myself-chat-card/style.css +22 -0
- package/es/component/need-answer/index.d.ts +15 -0
- package/es/component/need-answer/index.d.ts.map +1 -0
- package/es/component/need-answer/index.js +60 -0
- package/es/component/need-answer/style.css +19 -0
- package/es/component/opppsition-chat-card/index.d.ts +11 -0
- package/es/component/opppsition-chat-card/index.d.ts.map +1 -0
- package/es/component/opppsition-chat-card/index.js +25 -0
- package/es/component/opppsition-chat-card/style.css +23 -0
- package/es/component/question-library/index.d.ts +10 -0
- package/es/component/question-library/index.d.ts.map +1 -0
- package/es/component/question-library/index.js +291 -0
- package/es/component/question-library/server.d.ts +4 -0
- package/es/component/question-library/server.d.ts.map +1 -0
- package/es/component/question-library/server.js +19 -0
- package/es/component/question-library/style.css +75 -0
- package/es/component/question-tag/index.d.ts +11 -0
- package/es/component/question-tag/index.d.ts.map +1 -0
- package/es/component/question-tag/index.js +23 -0
- package/es/component/question-tag/style.css +12 -0
- package/es/component/recommend-questions-card/index.d.ts +10 -0
- package/es/component/recommend-questions-card/index.d.ts.map +1 -0
- package/es/component/recommend-questions-card/index.js +104 -0
- package/es/component/recommend-questions-card/style.css +54 -0
- package/es/component/scroll-view/index.d.ts +3 -0
- package/es/component/scroll-view/index.d.ts.map +1 -0
- package/es/component/scroll-view/index.js +2 -0
- package/es/component/scroll-view/scroll-view.d.ts +18 -0
- package/es/component/scroll-view/scroll-view.d.ts.map +1 -0
- package/es/component/scroll-view/scroll-view.js +66 -0
- package/es/component/scroll-view/style.css +34 -0
- package/es/component/tab/index.d.ts +2 -0
- package/es/component/tab/index.d.ts.map +1 -0
- package/es/component/tab/index.js +18 -0
- package/es/component/tab/style.css +26 -0
- package/es/component/tips-answer/index.d.ts +15 -0
- package/es/component/tips-answer/index.d.ts.map +1 -0
- package/es/component/tips-answer/index.js +28 -0
- package/es/component/tips-answer/style.css +10 -0
- package/es/images/expire-robot.svg +16 -0
- package/es/images/pc-invalid.svg +11 -0
- package/es/images/screenshot-5.png +0 -0
- package/es/index.d.ts +92 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +506 -0
- package/es/js/const.d.ts +41 -0
- package/es/js/const.d.ts.map +1 -0
- package/es/js/const.js +46 -0
- package/es/js/gen-render-promise.d.ts +9 -0
- package/es/js/gen-render-promise.d.ts.map +1 -0
- package/es/js/gen-render-promise.js +30 -0
- package/es/js/get-time.d.ts +15 -0
- package/es/js/get-time.d.ts.map +1 -0
- package/es/js/get-time.js +35 -0
- package/es/js/hfc-space.d.ts +16 -0
- package/es/js/hfc-space.d.ts.map +1 -0
- package/es/js/hfc-space.js +71 -0
- package/es/js/render-special.d.ts +16 -0
- package/es/js/render-special.d.ts.map +1 -0
- package/es/js/render-special.js +53 -0
- package/es/js/request/fetch.d.ts +10 -0
- package/es/js/request/fetch.d.ts.map +1 -0
- package/es/js/request/fetch.js +81 -0
- package/es/js/request/request.d.ts +3 -0
- package/es/js/request/request.d.ts.map +1 -0
- package/es/js/request/request.js +63 -0
- package/es/js/showMessage.d.ts +15 -0
- package/es/js/showMessage.d.ts.map +1 -0
- package/es/js/showMessage.js +75 -0
- package/es/js/state-immer.d.ts +3 -0
- package/es/js/state-immer.d.ts.map +1 -0
- package/es/js/state-immer.js +19 -0
- package/es/js/timer-executor.d.ts +3 -0
- package/es/js/timer-executor.d.ts.map +1 -0
- package/es/js/timer-executor.js +83 -0
- package/es/js/to-hfc.d.ts +2 -0
- package/es/js/to-hfc.d.ts.map +1 -0
- package/es/js/to-hfc.js +8 -0
- package/es/js/utils.d.ts +3 -0
- package/es/js/utils.d.ts.map +1 -0
- package/es/js/utils.js +11 -0
- package/es/jsx/chat-modal.d.ts +16 -0
- package/es/jsx/chat-modal.d.ts.map +1 -0
- package/es/jsx/chat-modal.js +268 -0
- package/es/server.d.ts +8 -0
- package/es/server.d.ts.map +1 -0
- package/es/server.js +44 -0
- package/es/style.css +174 -0
- package/lib/component/answer-itme/index.d.ts +20 -0
- package/lib/component/answer-itme/index.d.ts.map +1 -0
- package/lib/component/answer-itme/index.js +51 -0
- package/lib/component/answer-itme/style.css +35 -0
- package/lib/component/data-container/index.d.ts +19 -0
- package/lib/component/data-container/index.d.ts.map +1 -0
- package/lib/component/data-container/index.js +45 -0
- package/lib/component/data-container/style.css +26 -0
- package/lib/component/days-tab/index.d.ts +6 -0
- package/lib/component/days-tab/index.d.ts.map +1 -0
- package/lib/component/days-tab/index.js +129 -0
- package/lib/component/days-tab/style.css +43 -0
- package/lib/component/days-tab/utils.d.ts +32 -0
- package/lib/component/days-tab/utils.d.ts.map +1 -0
- package/lib/component/days-tab/utils.js +110 -0
- package/lib/component/error-boundary/index.d.ts +2 -0
- package/lib/component/error-boundary/index.d.ts.map +1 -0
- package/lib/component/error-boundary/index.js +40 -0
- package/lib/component/it-notice-modal/columns.d.ts +11 -0
- package/lib/component/it-notice-modal/columns.d.ts.map +1 -0
- package/lib/component/it-notice-modal/columns.js +116 -0
- package/lib/component/it-notice-modal/double-tab.d.ts +6 -0
- package/lib/component/it-notice-modal/double-tab.d.ts.map +1 -0
- package/lib/component/it-notice-modal/double-tab.js +104 -0
- package/lib/component/it-notice-modal/index.d.ts +6 -0
- package/lib/component/it-notice-modal/index.d.ts.map +1 -0
- package/lib/component/it-notice-modal/index.js +499 -0
- package/lib/component/it-notice-modal/server.d.ts +8 -0
- package/lib/component/it-notice-modal/server.d.ts.map +1 -0
- package/lib/component/it-notice-modal/server.js +55 -0
- package/lib/component/it-notice-modal/single-tab.d.ts +6 -0
- package/lib/component/it-notice-modal/single-tab.d.ts.map +1 -0
- package/lib/component/it-notice-modal/single-tab.js +92 -0
- package/lib/component/it-notice-modal/style.css +301 -0
- package/lib/component/it-notice-modal/utils.d.ts +2 -0
- package/lib/component/it-notice-modal/utils.d.ts.map +1 -0
- package/lib/component/it-notice-modal/utils.js +15 -0
- package/lib/component/it-notice-tab/index.d.ts +6 -0
- package/lib/component/it-notice-tab/index.d.ts.map +1 -0
- package/lib/component/it-notice-tab/index.js +216 -0
- package/lib/component/it-notice-tab/server.d.ts +3 -0
- package/lib/component/it-notice-tab/server.d.ts.map +1 -0
- package/lib/component/it-notice-tab/server.js +20 -0
- package/lib/component/it-notice-tab/style.css +103 -0
- package/lib/component/mail-list-modal/index.d.ts +2 -0
- package/lib/component/mail-list-modal/index.d.ts.map +1 -0
- package/lib/component/mail-list-modal/index.js +316 -0
- package/lib/component/mail-list-modal/server.d.ts +7 -0
- package/lib/component/mail-list-modal/server.d.ts.map +1 -0
- package/lib/component/mail-list-modal/server.js +50 -0
- package/lib/component/mail-list-modal/style.css +132 -0
- package/lib/component/myself-chat-card/index.d.ts +15 -0
- package/lib/component/myself-chat-card/index.d.ts.map +1 -0
- package/lib/component/myself-chat-card/index.js +35 -0
- package/lib/component/myself-chat-card/style.css +22 -0
- package/lib/component/need-answer/index.d.ts +15 -0
- package/lib/component/need-answer/index.d.ts.map +1 -0
- package/lib/component/need-answer/index.js +70 -0
- package/lib/component/need-answer/style.css +19 -0
- package/lib/component/opppsition-chat-card/index.d.ts +11 -0
- package/lib/component/opppsition-chat-card/index.d.ts.map +1 -0
- package/lib/component/opppsition-chat-card/index.js +35 -0
- package/lib/component/opppsition-chat-card/style.css +23 -0
- package/lib/component/question-library/index.d.ts +10 -0
- package/lib/component/question-library/index.d.ts.map +1 -0
- package/lib/component/question-library/index.js +301 -0
- package/lib/component/question-library/server.d.ts +4 -0
- package/lib/component/question-library/server.d.ts.map +1 -0
- package/lib/component/question-library/server.js +27 -0
- package/lib/component/question-library/style.css +75 -0
- package/lib/component/question-tag/index.d.ts +11 -0
- package/lib/component/question-tag/index.d.ts.map +1 -0
- package/lib/component/question-tag/index.js +33 -0
- package/lib/component/question-tag/style.css +12 -0
- package/lib/component/recommend-questions-card/index.d.ts +10 -0
- package/lib/component/recommend-questions-card/index.d.ts.map +1 -0
- package/lib/component/recommend-questions-card/index.js +114 -0
- package/lib/component/recommend-questions-card/style.css +54 -0
- package/lib/component/scroll-view/index.d.ts +3 -0
- package/lib/component/scroll-view/index.d.ts.map +1 -0
- package/lib/component/scroll-view/index.js +10 -0
- package/lib/component/scroll-view/scroll-view.d.ts +18 -0
- package/lib/component/scroll-view/scroll-view.d.ts.map +1 -0
- package/lib/component/scroll-view/scroll-view.js +76 -0
- package/lib/component/scroll-view/style.css +34 -0
- package/lib/component/tab/index.d.ts +2 -0
- package/lib/component/tab/index.d.ts.map +1 -0
- package/lib/component/tab/index.js +28 -0
- package/lib/component/tab/style.css +26 -0
- package/lib/component/tips-answer/index.d.ts +15 -0
- package/lib/component/tips-answer/index.d.ts.map +1 -0
- package/lib/component/tips-answer/index.js +38 -0
- package/lib/component/tips-answer/style.css +10 -0
- package/lib/images/expire-robot.svg +16 -0
- package/lib/images/pc-invalid.svg +11 -0
- package/lib/images/screenshot-5.png +0 -0
- package/lib/index.d.ts +92 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +516 -0
- package/lib/js/const.d.ts +41 -0
- package/lib/js/const.d.ts.map +1 -0
- package/lib/js/const.js +55 -0
- package/lib/js/gen-render-promise.d.ts +9 -0
- package/lib/js/gen-render-promise.d.ts.map +1 -0
- package/lib/js/gen-render-promise.js +37 -0
- package/lib/js/get-time.d.ts +15 -0
- package/lib/js/get-time.d.ts.map +1 -0
- package/lib/js/get-time.js +43 -0
- package/lib/js/hfc-space.d.ts +16 -0
- package/lib/js/hfc-space.d.ts.map +1 -0
- package/lib/js/hfc-space.js +91 -0
- package/lib/js/render-special.d.ts +16 -0
- package/lib/js/render-special.d.ts.map +1 -0
- package/lib/js/render-special.js +61 -0
- package/lib/js/request/fetch.d.ts +10 -0
- package/lib/js/request/fetch.d.ts.map +1 -0
- package/lib/js/request/fetch.js +88 -0
- package/lib/js/request/request.d.ts +3 -0
- package/lib/js/request/request.d.ts.map +1 -0
- package/lib/js/request/request.js +71 -0
- package/lib/js/showMessage.d.ts +15 -0
- package/lib/js/showMessage.d.ts.map +1 -0
- package/lib/js/showMessage.js +83 -0
- package/lib/js/state-immer.d.ts +3 -0
- package/lib/js/state-immer.d.ts.map +1 -0
- package/lib/js/state-immer.js +27 -0
- package/lib/js/timer-executor.d.ts +3 -0
- package/lib/js/timer-executor.d.ts.map +1 -0
- package/lib/js/timer-executor.js +91 -0
- package/lib/js/to-hfc.d.ts +2 -0
- package/lib/js/to-hfc.d.ts.map +1 -0
- package/lib/js/to-hfc.js +14 -0
- package/lib/js/utils.d.ts +3 -0
- package/lib/js/utils.d.ts.map +1 -0
- package/lib/js/utils.js +19 -0
- package/lib/jsx/chat-modal.d.ts +16 -0
- package/lib/jsx/chat-modal.d.ts.map +1 -0
- package/lib/jsx/chat-modal.js +278 -0
- package/lib/server.d.ts +8 -0
- package/lib/server.d.ts.map +1 -0
- package/lib/server.js +58 -0
- package/lib/style.css +174 -0
- package/package.json +57 -0
- package/rct.config.js +8 -0
- package/src/component/answer-itme/index.jsx +64 -0
- package/src/component/answer-itme/style.less +37 -0
- package/src/component/data-container/index.jsx +45 -0
- package/src/component/data-container/style.less +27 -0
- package/src/component/days-tab/index.jsx +114 -0
- package/src/component/days-tab/style.less +55 -0
- package/src/component/days-tab/utils.js +87 -0
- package/src/component/error-boundary/index.jsx +39 -0
- package/src/component/it-notice-modal/columns.js +102 -0
- package/src/component/it-notice-modal/double-tab.jsx +83 -0
- package/src/component/it-notice-modal/index.jsx +404 -0
- package/src/component/it-notice-modal/server.js +43 -0
- package/src/component/it-notice-modal/single-tab.jsx +70 -0
- package/src/component/it-notice-modal/style.less +367 -0
- package/src/component/it-notice-modal/utils.js +8 -0
- package/src/component/it-notice-tab/index.jsx +196 -0
- package/src/component/it-notice-tab/server.js +14 -0
- package/src/component/it-notice-tab/style.less +120 -0
- package/src/component/mail-list-modal/index.jsx +270 -0
- package/src/component/mail-list-modal/server.js +38 -0
- package/src/component/mail-list-modal/style.less +154 -0
- package/src/component/myself-chat-card/index.jsx +27 -0
- package/src/component/myself-chat-card/style.less +30 -0
- package/src/component/need-answer/index.jsx +56 -0
- package/src/component/need-answer/style.less +21 -0
- package/src/component/opppsition-chat-card/index.jsx +25 -0
- package/src/component/opppsition-chat-card/style.less +33 -0
- package/src/component/question-library/index.jsx +316 -0
- package/src/component/question-library/server.js +19 -0
- package/src/component/question-library/style.less +102 -0
- package/src/component/question-tag/index.jsx +27 -0
- package/src/component/question-tag/style.less +15 -0
- package/src/component/recommend-questions-card/index.jsx +111 -0
- package/src/component/recommend-questions-card/style.less +66 -0
- package/src/component/scroll-view/index.js +3 -0
- package/src/component/scroll-view/scroll-view.jsx +74 -0
- package/src/component/scroll-view/style.less +37 -0
- package/src/component/tab/index.jsx +17 -0
- package/src/component/tab/style.less +26 -0
- package/src/component/tips-answer/index.jsx +38 -0
- package/src/component/tips-answer/style.less +11 -0
- package/src/images/expire-robot.svg +16 -0
- package/src/images/pc-invalid.svg +11 -0
- package/src/images/screenshot-5.png +0 -0
- package/src/index.jsx +554 -0
- package/src/js/const.js +48 -0
- package/src/js/gen-render-promise.js +32 -0
- package/src/js/get-time.js +35 -0
- package/src/js/hfc-space.js +91 -0
- package/src/js/render-special.js +64 -0
- package/src/js/request/fetch.js +87 -0
- package/src/js/request/request.js +74 -0
- package/src/js/showMessage.js +81 -0
- package/src/js/state-immer.js +12 -0
- package/src/js/timer-executor.js +37 -0
- package/src/js/to-hfc.js +9 -0
- package/src/js/utils.js +13 -0
- package/src/jsx/chat-modal.jsx +254 -0
- package/src/main.js +1 -0
- package/src/server.js +45 -0
- package/src/style.less +229 -0
- package/test/cases/case-01.assert.js +6 -0
- package/test/cases/case-01.source.jsx +17 -0
- package/test/cases/case-02.assert.js +6 -0
- package/test/cases/case-02.source.jsx +25 -0
- package/test/cases/case-02.style.less +15 -0
- package/test/cases/case-03.source.jsx +69 -0
- package/test/cases/case-03.style.less +3 -0
- package/tsconfig.json +48 -0
- package/typings.d.ts +5 -0
- package/umd/b415d90208c277ba3703.png +0 -0
- package/umd/index.css +1753 -0
- package/umd/index.js +36258 -0
- package/umd/index.min.css +1 -0
- package/umd/index.min.js +657 -0
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.openITNoticeModal = exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
9
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var _shineout = require("shineout");
|
|
11
|
+
var _Icon = _interopRequireDefault(require("@shein-components/Icon"));
|
|
12
|
+
var _dataContainer = _interopRequireDefault(require("../data-container"));
|
|
13
|
+
var _scrollView = _interopRequireDefault(require("../scroll-view"));
|
|
14
|
+
var _genRenderPromise = _interopRequireDefault(require("../../js/gen-render-promise"));
|
|
15
|
+
var _stateImmer = _interopRequireDefault(require("../../js/state-immer"));
|
|
16
|
+
var _singleTab = _interopRequireDefault(require("./single-tab"));
|
|
17
|
+
var _doubleTab = _interopRequireDefault(require("./double-tab"));
|
|
18
|
+
var _utils = require("./utils");
|
|
19
|
+
var _server = require("./server");
|
|
20
|
+
require("./style.css");
|
|
21
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
25
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
26
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
27
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
30
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
|
+
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."); }
|
|
32
|
+
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); }
|
|
33
|
+
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; }
|
|
34
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
35
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
36
|
+
var styles = {
|
|
37
|
+
"itNoticeModal": "shein-components_systemrobotassistant_itNoticeModal",
|
|
38
|
+
"modalHeader": "shein-components_systemrobotassistant_modalHeader",
|
|
39
|
+
"tabExtraCon": "shein-components_systemrobotassistant_tabExtraCon",
|
|
40
|
+
"closeIcon": "shein-components_systemrobotassistant_closeIcon",
|
|
41
|
+
"modalBody": "shein-components_systemrobotassistant_modalBody",
|
|
42
|
+
"leftCon": "shein-components_systemrobotassistant_leftCon",
|
|
43
|
+
"leftHeader": "shein-components_systemrobotassistant_leftHeader",
|
|
44
|
+
"indentIcon": "shein-components_systemrobotassistant_indentIcon",
|
|
45
|
+
"indentHeader": "shein-components_systemrobotassistant_indentHeader",
|
|
46
|
+
"leftListCon": "shein-components_systemrobotassistant_leftListCon",
|
|
47
|
+
"menuItem": "shein-components_systemrobotassistant_menuItem",
|
|
48
|
+
"active": "shein-components_systemrobotassistant_active",
|
|
49
|
+
"indentLeftCon": "shein-components_systemrobotassistant_indentLeftCon",
|
|
50
|
+
"headTitle": "shein-components_systemrobotassistant_headTitle",
|
|
51
|
+
"rightCon": "shein-components_systemrobotassistant_rightCon",
|
|
52
|
+
"tabHeader": "shein-components_systemrobotassistant_tabHeader",
|
|
53
|
+
"tabItem": "shein-components_systemrobotassistant_tabItem",
|
|
54
|
+
"helpIcon": "shein-components_systemrobotassistant_helpIcon",
|
|
55
|
+
"subTabCon": "shein-components_systemrobotassistant_subTabCon",
|
|
56
|
+
"tabCon": "shein-components_systemrobotassistant_tabCon",
|
|
57
|
+
"signatureCon": "shein-components_systemrobotassistant_signatureCon",
|
|
58
|
+
"signatureTextCon": "shein-components_systemrobotassistant_signatureTextCon",
|
|
59
|
+
"configText": "shein-components_systemrobotassistant_configText",
|
|
60
|
+
"mainNoticeCon": "shein-components_systemrobotassistant_mainNoticeCon",
|
|
61
|
+
"containerTitle": "shein-components_systemrobotassistant_containerTitle",
|
|
62
|
+
"numberText": "shein-components_systemrobotassistant_numberText",
|
|
63
|
+
"datesCon": "shein-components_systemrobotassistant_datesCon",
|
|
64
|
+
"dateItem": "shein-components_systemrobotassistant_dateItem",
|
|
65
|
+
"tableWrapper": "shein-components_systemrobotassistant_tableWrapper",
|
|
66
|
+
"table": "shein-components_systemrobotassistant_table",
|
|
67
|
+
"tdCol": "shein-components_systemrobotassistant_tdCol",
|
|
68
|
+
"title": "shein-components_systemrobotassistant_title",
|
|
69
|
+
"listItem": "shein-components_systemrobotassistant_listItem",
|
|
70
|
+
"clickText": "shein-components_systemrobotassistant_clickText",
|
|
71
|
+
"modalFooter": "shein-components_systemrobotassistant_modalFooter"
|
|
72
|
+
};
|
|
73
|
+
var cs = _classnames.default.bind(_classnames.default);
|
|
74
|
+
var TAB_TYPE = {
|
|
75
|
+
SINGLE: 1,
|
|
76
|
+
DOUBLE: 2
|
|
77
|
+
};
|
|
78
|
+
var defaultState = {
|
|
79
|
+
info: {},
|
|
80
|
+
menuCollapse: false,
|
|
81
|
+
activeDate: '',
|
|
82
|
+
curBelongSystemId: '',
|
|
83
|
+
planInfo: {},
|
|
84
|
+
pageNo: 1,
|
|
85
|
+
pageSize: 100,
|
|
86
|
+
reportLoading: false,
|
|
87
|
+
tabType: TAB_TYPE.SINGLE,
|
|
88
|
+
infoLoading: false,
|
|
89
|
+
curReportDateInfo: {},
|
|
90
|
+
sealConfig: '',
|
|
91
|
+
belongSystemList: [],
|
|
92
|
+
selectedDateInDouble: '',
|
|
93
|
+
// 双周计划中选中的时间
|
|
94
|
+
dateInfoList: []
|
|
95
|
+
};
|
|
96
|
+
var ITNoticeModal = _ref => {
|
|
97
|
+
var zIndex = _ref.zIndex,
|
|
98
|
+
defaultMenuCollapse = _ref.defaultMenuCollapse,
|
|
99
|
+
t = _ref.t,
|
|
100
|
+
onClose = _ref.onClose,
|
|
101
|
+
onOk = _ref.onOk;
|
|
102
|
+
var _useImmer = (0, _stateImmer.default)(_objectSpread(_objectSpread({}, defaultState), {}, {
|
|
103
|
+
menuCollapse: defaultMenuCollapse
|
|
104
|
+
})),
|
|
105
|
+
_useImmer2 = _slicedToArray(_useImmer, 2),
|
|
106
|
+
state = _useImmer2[0],
|
|
107
|
+
setState = _useImmer2[1];
|
|
108
|
+
var info = state.info,
|
|
109
|
+
menuCollapse = state.menuCollapse,
|
|
110
|
+
activeDate = state.activeDate,
|
|
111
|
+
sealConfig = state.sealConfig,
|
|
112
|
+
reportInfoList = state.reportInfoList,
|
|
113
|
+
pageNo = state.pageNo,
|
|
114
|
+
pageSize = state.pageSize,
|
|
115
|
+
reportLoading = state.reportLoading,
|
|
116
|
+
tabType = state.tabType,
|
|
117
|
+
infoLoading = state.infoLoading,
|
|
118
|
+
curReportDateInfo = state.curReportDateInfo,
|
|
119
|
+
belongSystemList = state.belongSystemList,
|
|
120
|
+
curBelongSystemId = state.curBelongSystemId,
|
|
121
|
+
dateInfoList = state.dateInfoList,
|
|
122
|
+
selectedDateInDouble = state.selectedDateInDouble,
|
|
123
|
+
submitLoading = state.submitLoading;
|
|
124
|
+
var getPopItInfo = (0, _react.useCallback)((itInformId, belongSystemId) => {
|
|
125
|
+
setState({
|
|
126
|
+
infoLoading: true
|
|
127
|
+
});
|
|
128
|
+
(0, _server.popITInform)({
|
|
129
|
+
itInformId,
|
|
130
|
+
belongSystemId
|
|
131
|
+
}).then(res => {
|
|
132
|
+
setState({
|
|
133
|
+
infoLoading: false
|
|
134
|
+
});
|
|
135
|
+
if (res) {
|
|
136
|
+
setState({
|
|
137
|
+
info: (res === null || res === void 0 ? void 0 : res.info) || {},
|
|
138
|
+
tabType: TAB_TYPE.SINGLE
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}, []);
|
|
143
|
+
var getDoubleItInfo = (0, _react.useCallback)((itInformId, belongSystemId, date) => {
|
|
144
|
+
setState({
|
|
145
|
+
infoLoading: true
|
|
146
|
+
});
|
|
147
|
+
(0, _server.popITDoubleWeekInform)({
|
|
148
|
+
itInformId,
|
|
149
|
+
belongSystemId,
|
|
150
|
+
date
|
|
151
|
+
}).then(res => {
|
|
152
|
+
setState({
|
|
153
|
+
infoLoading: false
|
|
154
|
+
});
|
|
155
|
+
if (res) {
|
|
156
|
+
setState({
|
|
157
|
+
info: (res === null || res === void 0 ? void 0 : res.info) || {},
|
|
158
|
+
tabType: TAB_TYPE.DOUBLE
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}, []);
|
|
163
|
+
var getSystemDateList = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
164
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(itInformId) {
|
|
165
|
+
var res, _res$info, _res$info$, _dateList$, _ref3, belongSystemId, dateList, date;
|
|
166
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
167
|
+
while (1) switch (_context.prev = _context.next) {
|
|
168
|
+
case 0:
|
|
169
|
+
_context.next = 2;
|
|
170
|
+
return (0, _server.systemDateList)({
|
|
171
|
+
itInformId
|
|
172
|
+
});
|
|
173
|
+
case 2:
|
|
174
|
+
res = _context.sent;
|
|
175
|
+
if (res) {
|
|
176
|
+
setState({
|
|
177
|
+
belongSystemList: (res === null || res === void 0 ? void 0 : res.info) || []
|
|
178
|
+
});
|
|
179
|
+
if (res !== null && res !== void 0 && (_res$info = res.info) !== null && _res$info !== void 0 && _res$info.length) {
|
|
180
|
+
_ref3 = res.info[0] || {}, belongSystemId = _ref3.belongSystemId;
|
|
181
|
+
dateList = (res === null || res === void 0 ? void 0 : (_res$info$ = res.info[0]) === null || _res$info$ === void 0 ? void 0 : _res$info$.dateInfoList) || [];
|
|
182
|
+
date = (_dateList$ = dateList[0]) === null || _dateList$ === void 0 ? void 0 : _dateList$.date;
|
|
183
|
+
setState({
|
|
184
|
+
curBelongSystemId: belongSystemId,
|
|
185
|
+
dateInfoList: dateList,
|
|
186
|
+
selectedDateInDouble: date
|
|
187
|
+
});
|
|
188
|
+
if (date) {
|
|
189
|
+
getDoubleItInfo(itInformId, belongSystemId, date);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
case 4:
|
|
194
|
+
case "end":
|
|
195
|
+
return _context.stop();
|
|
196
|
+
}
|
|
197
|
+
}, _callee);
|
|
198
|
+
}));
|
|
199
|
+
return function (_x) {
|
|
200
|
+
return _ref2.apply(this, arguments);
|
|
201
|
+
};
|
|
202
|
+
}(), []);
|
|
203
|
+
var getSystemList = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
204
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(itInformId) {
|
|
205
|
+
var res, _res$info2, _ref5, belongSystemId;
|
|
206
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
207
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
208
|
+
case 0:
|
|
209
|
+
_context2.next = 2;
|
|
210
|
+
return (0, _server.systemList)({
|
|
211
|
+
itInformId
|
|
212
|
+
});
|
|
213
|
+
case 2:
|
|
214
|
+
res = _context2.sent;
|
|
215
|
+
if (res) {
|
|
216
|
+
setState({
|
|
217
|
+
belongSystemList: (res === null || res === void 0 ? void 0 : res.info) || []
|
|
218
|
+
});
|
|
219
|
+
if ((_res$info2 = res.info) !== null && _res$info2 !== void 0 && _res$info2.length) {
|
|
220
|
+
_ref5 = res.info[0] || {}, belongSystemId = _ref5.belongSystemId;
|
|
221
|
+
setState({
|
|
222
|
+
curBelongSystemId: belongSystemId
|
|
223
|
+
});
|
|
224
|
+
// 请求单日计划
|
|
225
|
+
getPopItInfo(itInformId, belongSystemId);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
case 4:
|
|
229
|
+
case "end":
|
|
230
|
+
return _context2.stop();
|
|
231
|
+
}
|
|
232
|
+
}, _callee2);
|
|
233
|
+
}));
|
|
234
|
+
return function (_x2) {
|
|
235
|
+
return _ref4.apply(this, arguments);
|
|
236
|
+
};
|
|
237
|
+
}(), []);
|
|
238
|
+
var getReportList = (0, _react.useCallback)((params, isAdd) => {
|
|
239
|
+
setState({
|
|
240
|
+
reportLoading: true
|
|
241
|
+
});
|
|
242
|
+
(0, _server.allReportList)({
|
|
243
|
+
pageNo: params.pageNo || 1,
|
|
244
|
+
pageSize
|
|
245
|
+
}).then(res => {
|
|
246
|
+
setState({
|
|
247
|
+
reportLoading: false
|
|
248
|
+
});
|
|
249
|
+
if (res) {
|
|
250
|
+
var _ref6 = (res === null || res === void 0 ? void 0 : res.info) || {},
|
|
251
|
+
_ref6$reportInfoList = _ref6.reportInfoList,
|
|
252
|
+
_reportInfoList = _ref6$reportInfoList === void 0 ? [] : _ref6$reportInfoList;
|
|
253
|
+
var list = isAdd ? [...reportInfoList, ..._reportInfoList] : _reportInfoList;
|
|
254
|
+
var curInfo = !isAdd ? (list === null || list === void 0 ? void 0 : list[0]) || {} : curReportDateInfo;
|
|
255
|
+
setState({
|
|
256
|
+
sealConfig: res === null || res === void 0 ? void 0 : res.info.sealConfig,
|
|
257
|
+
reportInfoList: list,
|
|
258
|
+
curReportDateInfo: curInfo
|
|
259
|
+
});
|
|
260
|
+
if (isAdd && _reportInfoList !== null && _reportInfoList !== void 0 && _reportInfoList.length) {
|
|
261
|
+
setState({
|
|
262
|
+
pageNo: params.pageNo
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
if (!isAdd && _reportInfoList !== null && _reportInfoList !== void 0 && _reportInfoList.length) {
|
|
266
|
+
getSystemList(curInfo.itInformId);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}, [reportInfoList, activeDate, curReportDateInfo, getSystemList]);
|
|
271
|
+
(0, _react.useEffect)(() => {
|
|
272
|
+
getReportList({
|
|
273
|
+
pageNo: 1
|
|
274
|
+
});
|
|
275
|
+
}, []);
|
|
276
|
+
var readInfo = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
277
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(itInformId) {
|
|
278
|
+
var res;
|
|
279
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
280
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
281
|
+
case 0:
|
|
282
|
+
_context3.next = 2;
|
|
283
|
+
return (0, _server.readITInform)({
|
|
284
|
+
itInformId
|
|
285
|
+
});
|
|
286
|
+
case 2:
|
|
287
|
+
res = _context3.sent;
|
|
288
|
+
return _context3.abrupt("return", res);
|
|
289
|
+
case 4:
|
|
290
|
+
case "end":
|
|
291
|
+
return _context3.stop();
|
|
292
|
+
}
|
|
293
|
+
}, _callee3);
|
|
294
|
+
}));
|
|
295
|
+
return function (_x3) {
|
|
296
|
+
return _ref7.apply(this, arguments);
|
|
297
|
+
};
|
|
298
|
+
}(), [curReportDateInfo]);
|
|
299
|
+
return /*#__PURE__*/_react.default.createElement(_shineout.Modal, {
|
|
300
|
+
visible: true,
|
|
301
|
+
hideClose: true,
|
|
302
|
+
fullScreen: true,
|
|
303
|
+
maskCloseAble: true,
|
|
304
|
+
zIndex: zIndex,
|
|
305
|
+
className: styles.itNoticeModal,
|
|
306
|
+
onClose: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
307
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
308
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
309
|
+
case 0:
|
|
310
|
+
_context4.next = 2;
|
|
311
|
+
return readInfo(curReportDateInfo.itInformId);
|
|
312
|
+
case 2:
|
|
313
|
+
onClose();
|
|
314
|
+
case 3:
|
|
315
|
+
case "end":
|
|
316
|
+
return _context4.stop();
|
|
317
|
+
}
|
|
318
|
+
}, _callee4);
|
|
319
|
+
}))
|
|
320
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
321
|
+
className: styles.modalHeader
|
|
322
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, t('版本上线通知')), !curReportDateInfo.startDate ? null : /*#__PURE__*/_react.default.createElement("div", {
|
|
323
|
+
className: styles.tabExtraCon
|
|
324
|
+
}, t('生成日期:'), (0, _utils.getLabel)((0, _moment.default)(), curReportDateInfo.startDate)), /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
325
|
+
name: "pc-close",
|
|
326
|
+
className: styles.closeIcon,
|
|
327
|
+
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
328
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
329
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
330
|
+
case 0:
|
|
331
|
+
_context5.next = 2;
|
|
332
|
+
return readInfo(curReportDateInfo.itInformId);
|
|
333
|
+
case 2:
|
|
334
|
+
onClose();
|
|
335
|
+
case 3:
|
|
336
|
+
case "end":
|
|
337
|
+
return _context5.stop();
|
|
338
|
+
}
|
|
339
|
+
}, _callee5);
|
|
340
|
+
}))
|
|
341
|
+
})), /*#__PURE__*/_react.default.createElement(_dataContainer.default, {
|
|
342
|
+
className: styles.modalBody
|
|
343
|
+
}, reportInfoList !== null && reportInfoList !== void 0 && reportInfoList.length ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
344
|
+
className: cs(styles.leftCon, !menuCollapse && styles.indentLeftCon)
|
|
345
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
346
|
+
className: styles.leftHeader
|
|
347
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
348
|
+
className: styles.headTitle
|
|
349
|
+
}, t('公告列表')), /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
350
|
+
name: menuCollapse ? 'pc-indent' : 'pc-outdent',
|
|
351
|
+
className: styles.indentIcon,
|
|
352
|
+
onClick: () => {
|
|
353
|
+
setState({
|
|
354
|
+
menuCollapse: !menuCollapse
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
})), menuCollapse ? /*#__PURE__*/_react.default.createElement(_scrollView.default, {
|
|
358
|
+
className: styles.leftListCon,
|
|
359
|
+
loading: reportLoading,
|
|
360
|
+
onRefresh: () => {
|
|
361
|
+
getReportList({
|
|
362
|
+
pageNo: pageNo + 1
|
|
363
|
+
}, true);
|
|
364
|
+
}
|
|
365
|
+
}, reportInfoList === null || reportInfoList === void 0 ? void 0 : reportInfoList.map(item =>
|
|
366
|
+
/*#__PURE__*/
|
|
367
|
+
// 每次切换日期的时候,都默认到单日版本的tab
|
|
368
|
+
_react.default.createElement("div", {
|
|
369
|
+
className: cs(styles.menuItem, curReportDateInfo.itInformId === item.itInformId && styles.active),
|
|
370
|
+
onClick: () => {
|
|
371
|
+
setState({
|
|
372
|
+
curReportDateInfo: item,
|
|
373
|
+
tabType: TAB_TYPE.SINGLE,
|
|
374
|
+
dateInfoList: [],
|
|
375
|
+
belongSystemList: [],
|
|
376
|
+
info: {}
|
|
377
|
+
});
|
|
378
|
+
getSystemList(item.itInformId);
|
|
379
|
+
}
|
|
380
|
+
}, item.title))) : null), /*#__PURE__*/_react.default.createElement("div", {
|
|
381
|
+
className: styles.rightCon
|
|
382
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
383
|
+
className: styles.tabHeader
|
|
384
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
385
|
+
className: cs(styles.tabItem, tabType === TAB_TYPE.SINGLE && styles.active),
|
|
386
|
+
onClick: () => {
|
|
387
|
+
setState({
|
|
388
|
+
tabType: TAB_TYPE.SINGLE,
|
|
389
|
+
info: {},
|
|
390
|
+
belongSystemList: [],
|
|
391
|
+
dateInfoList: []
|
|
392
|
+
});
|
|
393
|
+
getSystemList(curReportDateInfo.itInformId);
|
|
394
|
+
}
|
|
395
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, curReportDateInfo.windowTitle), curReportDateInfo.windowTitlePlus ? /*#__PURE__*/_react.default.createElement("span", null, curReportDateInfo.windowTitlePlus) : null), /*#__PURE__*/_react.default.createElement("div", {
|
|
396
|
+
className: cs(styles.tabItem, tabType === TAB_TYPE.DOUBLE && styles.active),
|
|
397
|
+
onClick: () => {
|
|
398
|
+
setState({
|
|
399
|
+
tabType: TAB_TYPE.DOUBLE,
|
|
400
|
+
info: {},
|
|
401
|
+
belongSystemList: [],
|
|
402
|
+
dateInfoList: []
|
|
403
|
+
});
|
|
404
|
+
getSystemDateList(curReportDateInfo.itInformId);
|
|
405
|
+
}
|
|
406
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, t('双周计划')), /*#__PURE__*/_react.default.createElement("span", null, "(", curReportDateInfo.windowPlanTitle, ")"), /*#__PURE__*/_react.default.createElement("span", {
|
|
407
|
+
className: styles.helpIcon
|
|
408
|
+
}, /*#__PURE__*/_react.default.createElement(_shineout.Popover, {
|
|
409
|
+
zIndex: zIndex + 1,
|
|
410
|
+
trigger: "hover"
|
|
411
|
+
}, t('双周计划数据是版本上线通知生成时,查询到的计划上线数据。')), /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
412
|
+
name: "pc-help-circle",
|
|
413
|
+
fontSize: 14
|
|
414
|
+
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
415
|
+
className: styles.signatureCon
|
|
416
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
417
|
+
src: "https://assets.dotfashion.cn/unpkg/@shein/static-file@1.0.96/image/hfc/pc-invalid.svg",
|
|
418
|
+
alt: ""
|
|
419
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
420
|
+
className: styles.signatureTextCon
|
|
421
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
422
|
+
className: styles.configText
|
|
423
|
+
}, sealConfig), /*#__PURE__*/_react.default.createElement("div", null, t('IT通告发文专用章')))), tabType === TAB_TYPE.SINGLE ? /*#__PURE__*/_react.default.createElement(_singleTab.default, {
|
|
424
|
+
info: info,
|
|
425
|
+
belongSystemList: belongSystemList,
|
|
426
|
+
curBelongSystemId: curBelongSystemId,
|
|
427
|
+
infoLoading: infoLoading,
|
|
428
|
+
t: t,
|
|
429
|
+
onTabChange: value => {
|
|
430
|
+
setState({
|
|
431
|
+
curBelongSystemId: value
|
|
432
|
+
});
|
|
433
|
+
// 请求单日计划
|
|
434
|
+
getPopItInfo(curReportDateInfo.itInformId, value);
|
|
435
|
+
}
|
|
436
|
+
}) : /*#__PURE__*/_react.default.createElement(_doubleTab.default, {
|
|
437
|
+
info: info,
|
|
438
|
+
belongSystemList: belongSystemList,
|
|
439
|
+
curBelongSystemId: curBelongSystemId,
|
|
440
|
+
dateInfoList: dateInfoList,
|
|
441
|
+
selectedDateInDouble: selectedDateInDouble,
|
|
442
|
+
infoLoading: infoLoading,
|
|
443
|
+
t: t,
|
|
444
|
+
onSystemChange: value => {
|
|
445
|
+
var _belongSystemList$fin, _list$;
|
|
446
|
+
var list = (belongSystemList === null || belongSystemList === void 0 ? void 0 : (_belongSystemList$fin = belongSystemList.find(item => item.belongSystemId === value)) === null || _belongSystemList$fin === void 0 ? void 0 : _belongSystemList$fin.dateInfoList) || [];
|
|
447
|
+
var date = (list === null || list === void 0 ? void 0 : (_list$ = list[0]) === null || _list$ === void 0 ? void 0 : _list$.date) || '';
|
|
448
|
+
setState({
|
|
449
|
+
curBelongSystemId: value,
|
|
450
|
+
dateInfoList: list,
|
|
451
|
+
selectedDateInDouble: date
|
|
452
|
+
});
|
|
453
|
+
getDoubleItInfo(curReportDateInfo.itInformId, value, date);
|
|
454
|
+
},
|
|
455
|
+
onDateChange: item => {
|
|
456
|
+
setState({
|
|
457
|
+
selectedDateInDouble: item.date
|
|
458
|
+
});
|
|
459
|
+
getDoubleItInfo(curReportDateInfo.itInformId, curBelongSystemId, item.date);
|
|
460
|
+
}
|
|
461
|
+
}))) : null), reportInfoList !== null && reportInfoList !== void 0 && reportInfoList.length ? /*#__PURE__*/_react.default.createElement("div", {
|
|
462
|
+
className: styles.modalFooter
|
|
463
|
+
}, /*#__PURE__*/_react.default.createElement(_shineout.Button, {
|
|
464
|
+
type: "primary",
|
|
465
|
+
disabled: infoLoading,
|
|
466
|
+
loading: submitLoading,
|
|
467
|
+
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
468
|
+
var res;
|
|
469
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
470
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
471
|
+
case 0:
|
|
472
|
+
setState({
|
|
473
|
+
submitLoading: true
|
|
474
|
+
});
|
|
475
|
+
_context6.next = 3;
|
|
476
|
+
return readInfo(curReportDateInfo.itInformId);
|
|
477
|
+
case 3:
|
|
478
|
+
res = _context6.sent;
|
|
479
|
+
setState({
|
|
480
|
+
submitLoading: false
|
|
481
|
+
});
|
|
482
|
+
if (res) {
|
|
483
|
+
onOk();
|
|
484
|
+
}
|
|
485
|
+
case 6:
|
|
486
|
+
case "end":
|
|
487
|
+
return _context6.stop();
|
|
488
|
+
}
|
|
489
|
+
}, _callee6);
|
|
490
|
+
}))
|
|
491
|
+
}, t('我知道了'))) : null);
|
|
492
|
+
};
|
|
493
|
+
ITNoticeModal.defaultProps = {
|
|
494
|
+
defaultMenuCollapse: false
|
|
495
|
+
};
|
|
496
|
+
var openITNoticeModal = (0, _genRenderPromise.default)(ITNoticeModal, 'itNotice-modal');
|
|
497
|
+
exports.openITNoticeModal = openITNoticeModal;
|
|
498
|
+
var _default = ITNoticeModal;
|
|
499
|
+
exports.default = _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function getITInform(argument: any): any;
|
|
2
|
+
export function allReportList(argument: any): any;
|
|
3
|
+
export function systemList(argument: any): any;
|
|
4
|
+
export function popITInform(argument: any): any;
|
|
5
|
+
export function systemDateList(argument: any): any;
|
|
6
|
+
export function popITDoubleWeekInform(argument: any): any;
|
|
7
|
+
export function readITInform(argument: any): any;
|
|
8
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/component/it-notice-modal/server.js"],"names":[],"mappings":"AAIA,gDAEC;AAID,kDAEC;AAID,+CAEC;AAID,gDAEC;AAID,mDAEC;AAID,0DAEC;AAID,iDAEC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.allReportList = allReportList;
|
|
7
|
+
exports.getITInform = getITInform;
|
|
8
|
+
exports.popITDoubleWeekInform = popITDoubleWeekInform;
|
|
9
|
+
exports.popITInform = popITInform;
|
|
10
|
+
exports.readITInform = readITInform;
|
|
11
|
+
exports.systemDateList = systemDateList;
|
|
12
|
+
exports.systemList = systemList;
|
|
13
|
+
var _request = _interopRequireDefault(require("../../js/request/request"));
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
// 获取it通告
|
|
16
|
+
// https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_getITInform/doc
|
|
17
|
+
function getITInform(argument) {
|
|
18
|
+
return (0, _request.default)('/front/manual/getITInform', argument);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// 公告列表
|
|
22
|
+
// https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_allReportList/doc
|
|
23
|
+
function allReportList(argument) {
|
|
24
|
+
return (0, _request.default)('/front/manual/allReportList', argument);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 上线通知-返回系统列表
|
|
28
|
+
// https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_report_systemList/doc
|
|
29
|
+
function systemList(argument) {
|
|
30
|
+
return (0, _request.default)('/front/manual/report/systemList', argument);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// 返回弹窗信息-对应系统版本上线通知日期的数据
|
|
34
|
+
// https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_system_popITInform/doc
|
|
35
|
+
function popITInform(argument) {
|
|
36
|
+
return (0, _request.default)('/front/manual/system/popITInform', argument);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// 双周计划-返回系统、日期列表
|
|
40
|
+
// https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_plan_systemDateList/doc
|
|
41
|
+
function systemDateList(argument) {
|
|
42
|
+
return (0, _request.default)('/front/manual/plan/systemDateList', argument);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// 返回弹窗信息-指定系统指定日期双周计划
|
|
46
|
+
// https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_system_popITDoubleWeekInform/doc
|
|
47
|
+
function popITDoubleWeekInform(argument) {
|
|
48
|
+
return (0, _request.default)('/front/manual/system/popITDoubleWeekInform', argument);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// 已读未读状态变更
|
|
52
|
+
// https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_readITInform/doc
|
|
53
|
+
function readITInform(argument) {
|
|
54
|
+
return (0, _request.default)('/front/manual/readITInform', argument);
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"single-tab.d.ts","sourceRoot":"","sources":["../../../src/component/it-notice-modal/single-tab.jsx"],"names":[],"mappings":";AAMA,gFA6DC"}
|