dlt-for-react 1.0.23 → 1.1.0
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/README.md +12 -2
- package/lib/components/Button/index.js +79 -0
- package/lib/components/HqSelector/HqLsrySelector/index.js +3 -5
- package/lib/components/HqSelector/HqRySelector/index.js +3 -5
- package/lib/components/HqSelector/HqWzSelector/index.js +3 -5
- package/lib/components/KyEditableTable/component.js +3 -5
- package/lib/components/KyEditableTable/index.js +7 -13
- package/lib/components/KyExcel/index.js +3 -5
- package/lib/components/KyInputPicker/render.js +13 -43
- package/lib/components/KyInputPicker/setting-checkbox.js +3 -5
- package/lib/components/KyInputPicker/setting-multiSelect.js +3 -5
- package/lib/components/KyInputPicker/setting-nhcascader.js +3 -5
- package/lib/components/KyInputPicker/setting-select.js +3 -5
- package/lib/components/KyInputPicker/setting-stu-selector.js +3 -5
- package/lib/components/KyInputPicker/setting-tea-selector.js +3 -5
- package/lib/components/KyTable/checkButtons.js +4 -7
- package/lib/components/KyTree/index.js +6 -16
- package/lib/components/KyUpload/index.js +13 -21
- package/lib/components/NHAuditPanel/config/Axios.js +263 -0
- package/lib/components/NHAuditPanel/config/api.js +479 -0
- package/lib/components/NHAuditPanel/config/data.js +156 -0
- package/lib/components/NHAuditPanel/config/typeMap.js +1234 -0
- package/lib/components/NHAuditPanel/config/uiValidate.js +92 -0
- package/lib/components/NHAuditPanel/index.js +413 -0
- package/lib/components/NHAuditPanel/node.js +619 -0
- package/lib/components/NHCascader/index.js +355 -0
- package/lib/components/NHCheckboxGroup/index.js +135 -0
- package/lib/components/NHDynamicFormShow/baseInfo/index.js +194 -0
- package/lib/components/NHDynamicFormShow/custom/index.js +553 -0
- package/lib/components/NHDynamicFormShow/customModule/common/CommonMethod.js +43 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/EditForm.js +1113 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/index.js +263 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/EditForm.js +880 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/index.js +171 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/EditForm.js +865 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/EditForm.js +571 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/index.js +147 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/EditForm.js +474 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/index.js +139 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/EditForm.js +506 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/index.js +143 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/EditForm.js +1074 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/index.js +172 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/EditForm.js +927 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/index.js +195 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/EditForm.js +1064 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/index.js +183 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/EditForm.js +763 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/index.js +137 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/EditForm.js +819 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/index.js +137 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/EditForm.js +700 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/index.js +162 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/EditForm.js +743 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/index.js +177 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/EditForm.js +848 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/EditForm.js +777 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/index.js +161 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/EditForm.js +706 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/cfjcEditForm.js +413 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/index.js +135 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/EditForm.js +1013 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/index.js +175 -0
- package/lib/components/NHDynamicFormShow/customModule/jjrlx/EditForm.js +1345 -0
- package/lib/components/NHDynamicFormShow/customModule/jjrlx/index.js +274 -0
- package/lib/components/NHDynamicFormShow/customModule/jxj/EditForm.js +669 -0
- package/lib/components/NHDynamicFormShow/customModule/jxj/index.js +134 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/EditForm.js +378 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/index.js +120 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/EditForm.js +638 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/index.js +133 -0
- package/lib/components/NHDynamicFormShow/customModule/qgzx/EditForm.js +965 -0
- package/lib/components/NHDynamicFormShow/customModule/qgzx/index.js +237 -0
- package/lib/components/NHDynamicFormShow/customModule/qjgl/EditForm.js +823 -0
- package/lib/components/NHDynamicFormShow/customModule/qjgl/index.js +188 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/EditForm.js +401 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/index.js +472 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/EditForm.js +304 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHCascader/index.js +375 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/RadioGroup.js +118 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/index.js +62 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/input-const.js +55 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/render.js +1238 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/index.js +375 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/collective/EditForm.js +554 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/collective/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/personal/EditForm.js +542 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/personal/index.js +133 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/EditForm.js +575 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/EditForm.js +563 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/index.js +133 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/EditForm.js +745 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/index.js +164 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/EditForm.js +587 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/index.js +143 -0
- package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/EditForm.js +743 -0
- package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/index.js +172 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/EditForm.js +1410 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/index.js +274 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/EditForm.js +755 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/EditForm.js +814 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/index.js +188 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/EditForm.js +769 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/whgcrych/EditForm.js +1004 -0
- package/lib/components/NHDynamicFormShow/customModule/whgcrych/index.js +126 -0
- package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/EditForm.js +503 -0
- package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/index.js +149 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlyhk/EditForm.js +379 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlyhk/index.js +148 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzxj/EditForm.js +748 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzxj/index.js +135 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/EditForm.js +762 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/index.js +134 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/cfjcEditForm.js +682 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/index.js +135 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/index.js +152 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/wjsbEditForm.js +783 -0
- package/lib/components/NHDynamicFormShow/customModule/zxj/EditForm.js +764 -0
- package/lib/components/NHDynamicFormShow/customModule/zxj/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/cfjcEditForm.js +677 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/EditForm.js +1173 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/index.js +242 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistForm.js +862 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistIndex.js +201 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/stuinfo/messageInfo.js +196 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/index.js +167 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/wjsbEditForm.js +1096 -0
- package/lib/components/NHDynamicFormShow/index.js +647 -0
- package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/cardItem/index.js +279 -0
- package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/index.js +206 -0
- package/lib/components/NHDynamicFormShow/oneOnMany/index.js +419 -0
- package/lib/components/NHDynamicFormShow/oneOnOne/EditForm.js +401 -0
- package/lib/components/NHDynamicFormShow/oneOnOne/index.js +271 -0
- package/lib/components/NHImagePicker/index.js +554 -0
- package/lib/components/NHInputPicker/RadioGroup.js +118 -0
- package/lib/components/NHInputPicker/index.js +62 -0
- package/lib/components/NHInputPicker/input-const.js +55 -0
- package/lib/components/NHInputPicker/render.js +1271 -0
- package/lib/components/NHListView/index.js +374 -0
- package/lib/components/NHMapGeolocation/index.js +537 -0
- package/lib/components/NHMapGeolocation/initMap/initGdMap.js +104 -0
- package/lib/components/NHMapGeolocation/initMap/initTencentMap.js +138 -0
- package/lib/components/NHMapGeolocation/style.js +51 -0
- package/lib/components/NHMultiSelect/index.js +272 -0
- package/lib/components/NHRadioGroup/index.js +118 -0
- package/lib/components/NHSelect/index.js +364 -0
- package/lib/components/NHTreeMenu/index.js +126 -0
- package/lib/components/NHTreeMenu/treeNode.js +164 -0
- package/lib/components/StuSelector/index.js +611 -0
- package/lib/index.js +161 -116
- package/lib/layouts/KyInputPicker/edit-page.js +585 -0
- package/lib/layouts/KyInputPicker/index.js +220 -0
- package/lib/layouts/KyInputPicker/input-const.js +134 -0
- package/lib/layouts/KyInputPicker/render.js +2477 -0
- package/lib/layouts/KyInputPicker/setting-checkbox.js +850 -0
- package/lib/layouts/KyInputPicker/setting-datepicker.js +430 -0
- package/lib/layouts/KyInputPicker/setting-datetimepicker.js +443 -0
- package/lib/layouts/KyInputPicker/setting-input.js +555 -0
- package/lib/layouts/KyInputPicker/setting-inputNumber.js +612 -0
- package/lib/layouts/KyInputPicker/setting-monthpicker.js +434 -0
- package/lib/layouts/KyInputPicker/setting-multiSelect.js +532 -0
- package/lib/layouts/KyInputPicker/setting-nhcascader.js +584 -0
- package/lib/layouts/KyInputPicker/setting-old-upload.js +428 -0
- package/lib/layouts/KyInputPicker/setting-radio.js +468 -0
- package/lib/layouts/KyInputPicker/setting-rangepicker.js +466 -0
- package/lib/layouts/KyInputPicker/setting-select.js +534 -0
- package/lib/layouts/KyInputPicker/setting-stu-selector.js +507 -0
- package/lib/layouts/KyInputPicker/setting-switch.js +274 -0
- package/lib/layouts/KyInputPicker/setting-tea-selector.js +507 -0
- package/lib/layouts/KyInputPicker/setting-textarea.js +619 -0
- package/lib/layouts/KyInputPicker/setting-timepicker.js +437 -0
- package/lib/layouts/KyInputPicker/setting-upload.js +766 -0
- package/lib/layouts/KyModal/buildTitle.js +81 -0
- package/lib/layouts/KyModal/dragM.js +127 -0
- package/lib/layouts/KyModal/index.js +321 -0
- package/lib/layouts/KyPreview/index.js +219 -0
- package/lib/layouts/KyUpload/index.js +1155 -0
- package/lib/layouts/LeftMenu/index.js +5 -11
- package/lib/layouts/NavigationBar/index.js +4 -10
- package/lib/layouts/Top/editPassWord.js +5 -7
- package/lib/layouts/Top/index.js +6 -20
- package/lib/layouts/TopMenu/index.js +11 -14
- package/lib/layouts/layout/index.js +7 -13
- package/lib/layouts/{Login → login}/index-pre.js +3 -5
- package/lib/layouts/{Login → login}/index.js +6 -8
- package/lib/layouts/{Login → login}/login.js +8 -17
- package/lib/layouts/mixTop/index.js +13 -28
- package/lib/layouts/settingDrawer/index.js +3 -5
- package/lib/routes/AuthorizedRoute.js +7 -13
- package/lib/utils/NHCore.js +46 -2
- package/lib/utils/base64.js +238 -0
- package/lib/utils/browserJudge.js +33 -0
- package/lib/utils/common.js +18 -20
- package/lib/utils/createUuid.js +11 -31
- package/lib/utils/device.js +44 -0
- package/lib/utils/dynamicLoadCss.js +14 -0
- package/lib/utils/dynamicLoadJs.js +21 -0
- package/lib/utils/getLoginUser.js +1 -1
- package/lib/utils/getSize.js +2 -11
- package/lib/utils/getStyle.js +26 -0
- package/lib/utils/getSuitHeight.js +49 -0
- package/lib/utils/hasAuth.js +11 -0
- package/lib/utils/index.js +1 -34
- package/lib/utils/loadJS.js +40 -0
- package/package.json +1 -1
- /package/lib/layouts/{Login → login}/lyPassword.js +0 -0
package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistForm.js
ADDED
|
@@ -0,0 +1,862 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _whiteSpace = require("antd-mobile/lib/white-space");
|
|
8
|
+
|
|
9
|
+
var _whiteSpace2 = _interopRequireDefault(_whiteSpace);
|
|
10
|
+
|
|
11
|
+
var _button = require("antd-mobile/lib/button");
|
|
12
|
+
|
|
13
|
+
var _button2 = _interopRequireDefault(_button);
|
|
14
|
+
|
|
15
|
+
var _card = require("antd-mobile/lib/card");
|
|
16
|
+
|
|
17
|
+
var _card2 = _interopRequireDefault(_card);
|
|
18
|
+
|
|
19
|
+
var _textareaItem = require("antd-mobile/lib/textarea-item");
|
|
20
|
+
|
|
21
|
+
var _textareaItem2 = _interopRequireDefault(_textareaItem);
|
|
22
|
+
|
|
23
|
+
var _datePicker = require("antd-mobile/lib/date-picker");
|
|
24
|
+
|
|
25
|
+
var _datePicker2 = _interopRequireDefault(_datePicker);
|
|
26
|
+
|
|
27
|
+
var _stepper = require("antd-mobile/lib/stepper");
|
|
28
|
+
|
|
29
|
+
var _stepper2 = _interopRequireDefault(_stepper);
|
|
30
|
+
|
|
31
|
+
var _inputItem = require("antd-mobile/lib/input-item");
|
|
32
|
+
|
|
33
|
+
var _inputItem2 = _interopRequireDefault(_inputItem);
|
|
34
|
+
|
|
35
|
+
var _picker = require("antd-mobile/lib/picker");
|
|
36
|
+
|
|
37
|
+
var _picker2 = _interopRequireDefault(_picker);
|
|
38
|
+
|
|
39
|
+
var _list = require("antd-mobile/lib/list");
|
|
40
|
+
|
|
41
|
+
var _list2 = _interopRequireDefault(_list);
|
|
42
|
+
|
|
43
|
+
var _toast = require("antd-mobile/lib/toast");
|
|
44
|
+
|
|
45
|
+
var _toast2 = _interopRequireDefault(_toast);
|
|
46
|
+
|
|
47
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
48
|
+
|
|
49
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
50
|
+
|
|
51
|
+
require("antd-mobile/lib/white-space/style/css");
|
|
52
|
+
|
|
53
|
+
require("antd-mobile/lib/button/style/css");
|
|
54
|
+
|
|
55
|
+
require("antd-mobile/lib/card/style/css");
|
|
56
|
+
|
|
57
|
+
require("antd-mobile/lib/textarea-item/style/css");
|
|
58
|
+
|
|
59
|
+
require("antd-mobile/lib/date-picker/style/css");
|
|
60
|
+
|
|
61
|
+
require("antd-mobile/lib/stepper/style/css");
|
|
62
|
+
|
|
63
|
+
require("antd-mobile/lib/input-item/style/css");
|
|
64
|
+
|
|
65
|
+
require("antd-mobile/lib/picker/style/css");
|
|
66
|
+
|
|
67
|
+
require("antd-mobile/lib/list/style/css");
|
|
68
|
+
|
|
69
|
+
require("antd-mobile/lib/toast/style/css");
|
|
70
|
+
|
|
71
|
+
var _react = require("react");
|
|
72
|
+
|
|
73
|
+
var _react2 = _interopRequireDefault(_react);
|
|
74
|
+
|
|
75
|
+
var _NHFetch = require("../../../../../../utils/NHFetch");
|
|
76
|
+
|
|
77
|
+
var _NHFetch2 = _interopRequireDefault(_NHFetch);
|
|
78
|
+
|
|
79
|
+
var _rcForm = require("rc-form");
|
|
80
|
+
|
|
81
|
+
var _classnames = require("classnames");
|
|
82
|
+
|
|
83
|
+
var _classnames2 = _interopRequireDefault(_classnames);
|
|
84
|
+
|
|
85
|
+
var _moment = require("moment");
|
|
86
|
+
|
|
87
|
+
var _moment2 = _interopRequireDefault(_moment);
|
|
88
|
+
|
|
89
|
+
var _index = require("../../../../../NHImagePicker/index");
|
|
90
|
+
|
|
91
|
+
var _index2 = _interopRequireDefault(_index);
|
|
92
|
+
|
|
93
|
+
var _messageInfo = require("../../stuinfo/messageInfo");
|
|
94
|
+
|
|
95
|
+
var _messageInfo2 = _interopRequireDefault(_messageInfo);
|
|
96
|
+
|
|
97
|
+
var _index3 = require("../../../../../StuSelector/index");
|
|
98
|
+
|
|
99
|
+
var _index4 = _interopRequireDefault(_index3);
|
|
100
|
+
|
|
101
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
102
|
+
|
|
103
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
104
|
+
|
|
105
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
106
|
+
|
|
107
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
108
|
+
|
|
109
|
+
var IndividualRegistForm = function (_React$Component) {
|
|
110
|
+
_inherits(IndividualRegistForm, _React$Component);
|
|
111
|
+
|
|
112
|
+
function IndividualRegistForm(props) {
|
|
113
|
+
_classCallCheck(this, IndividualRegistForm);
|
|
114
|
+
|
|
115
|
+
var _this = _possibleConstructorReturn(this, (IndividualRegistForm.__proto__ || Object.getPrototypeOf(IndividualRegistForm)).call(this, props));
|
|
116
|
+
|
|
117
|
+
_this.componentDidMount = function () {
|
|
118
|
+
var pkid = _this.props.pkid;
|
|
119
|
+
|
|
120
|
+
var fz = '';
|
|
121
|
+
_this.getRcxwjlByPkid(pkid, function (data) {
|
|
122
|
+
if (data && data.xwjl && data.stuList && data.stuList.length > 0) {
|
|
123
|
+
var xwjl = data.xwjl;
|
|
124
|
+
var stuList = data.stuList;
|
|
125
|
+
var xsidList = [];
|
|
126
|
+
stuList.map(function (item, index) {
|
|
127
|
+
var xsid = item.XSID;
|
|
128
|
+
xsidList.push(xsid);
|
|
129
|
+
});
|
|
130
|
+
if (xwjl.XWXLXM && xwjl.FS && xwjl.XWXLXM === '1') {
|
|
131
|
+
fz = '+' + xwjl.FS + '分';
|
|
132
|
+
} else if (xwjl.XWXLXM && xwjl.FS && xwjl.XWXLXM === '2') {
|
|
133
|
+
fz = '-' + xwjl.FS + '分';
|
|
134
|
+
}
|
|
135
|
+
_this.setState({
|
|
136
|
+
xwxmc: xwjl.XWXMC || '',
|
|
137
|
+
xwfssj: xwjl.XWFSSJ || '',
|
|
138
|
+
xwmsxx: xwjl.XWMSXX || '',
|
|
139
|
+
zmcl: xwjl.ZMCL || '',
|
|
140
|
+
fz: fz || '',
|
|
141
|
+
jllb: [xwjl.JLLB] || '',
|
|
142
|
+
jlwhx: xwjl.JLWHX || '',
|
|
143
|
+
jllbmc: xwjl.JLLBMC || '',
|
|
144
|
+
xsInfoList: stuList,
|
|
145
|
+
xsidList: xsidList,
|
|
146
|
+
canDel: false,
|
|
147
|
+
isShowBtn: false
|
|
148
|
+
}, function () {
|
|
149
|
+
console.info("xsInfoList: ", _this.state.xsInfoList);
|
|
150
|
+
_this.props.setXsidList(xsidList);
|
|
151
|
+
});
|
|
152
|
+
} else {
|
|
153
|
+
//非审核
|
|
154
|
+
_this.props.params.setSubmitBtnDisabled && _this.props.params.setSubmitBtnDisabled(false);
|
|
155
|
+
//this.nhSelector.show();
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
_this.getXwxDataSource();
|
|
159
|
+
_this.getJllbDataSource();
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
_this.getRcxwjlByPkid = function (pkid, callback) {
|
|
163
|
+
var t = new Date().getTime();
|
|
164
|
+
(0, _NHFetch2.default)('api/sm-daily-behaviour/openapi/' + pkid + '/getRcxwjlByPkid', 'GET', t).then(function (res) {
|
|
165
|
+
if (res) {
|
|
166
|
+
if (res && res.code === 200) {
|
|
167
|
+
callback(res.data);
|
|
168
|
+
} else {
|
|
169
|
+
_toast2.default.fail("调用接口失败");
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
_this.getXwxDataSource = function () {
|
|
176
|
+
var t = new Date().getTime();
|
|
177
|
+
(0, _NHFetch2.default)('api/sm-daily-behaviour/openapi/getXwxDataSource', 'GET', t).then(function (res) {
|
|
178
|
+
if (res && res.code === 200) {
|
|
179
|
+
var xwxDataSource = res.data;
|
|
180
|
+
if (xwxDataSource != null) {
|
|
181
|
+
var xwxSelect = xwxDataSource.map(function (v, i) {
|
|
182
|
+
return {
|
|
183
|
+
value: v.XWXMC,
|
|
184
|
+
label: v.XWXMC
|
|
185
|
+
};
|
|
186
|
+
});
|
|
187
|
+
_this.setState({
|
|
188
|
+
xwxSelect: xwxSelect,
|
|
189
|
+
xwxDataSource: xwxDataSource
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
} else {
|
|
193
|
+
_toast2.default.fail("获取行为项数据失败");
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
_this.getJllbDataSource = function () {
|
|
199
|
+
var t = new Date().getTime();
|
|
200
|
+
(0, _NHFetch2.default)('api/sm-daily-behaviour/openapi/getJllbDataSource', 'GET', t).then(function (res) {
|
|
201
|
+
if (res && res.code === 200) {
|
|
202
|
+
var jllbDataSource = res.data;
|
|
203
|
+
if (jllbDataSource != null) {
|
|
204
|
+
var jllbSelect = jllbDataSource.map(function (v, i) {
|
|
205
|
+
return {
|
|
206
|
+
value: v.DM,
|
|
207
|
+
label: v.MC
|
|
208
|
+
};
|
|
209
|
+
});
|
|
210
|
+
_this.setState({
|
|
211
|
+
jllbSelect: jllbSelect
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
} else {
|
|
215
|
+
_toast2.default.fail("获取奖励类别数据失败");
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
_this.changeXwx = function (value) {
|
|
221
|
+
var xwxDataSource = _this.state.xwxDataSource;
|
|
222
|
+
|
|
223
|
+
xwxDataSource.map(function (item, i) {
|
|
224
|
+
if (item.XWXMC === value[0]) {
|
|
225
|
+
var str = '';
|
|
226
|
+
var xwxInfo = {};
|
|
227
|
+
var fz = '';
|
|
228
|
+
var fs = '';
|
|
229
|
+
str = item.XWXMC, xwxInfo = item;
|
|
230
|
+
if (item.XWXLXM && item.GDFZ && item.XWXLXM === '1') {
|
|
231
|
+
fz = '+' + item.GDFZ + '分';
|
|
232
|
+
fs = item.GDFZ;
|
|
233
|
+
} else {
|
|
234
|
+
fz = '-' + item.GDFZ + '分';
|
|
235
|
+
fs = item.GDFZ;
|
|
236
|
+
}
|
|
237
|
+
_this.setState({
|
|
238
|
+
xwxmc: str,
|
|
239
|
+
xwxInfo: xwxInfo,
|
|
240
|
+
fz: fz
|
|
241
|
+
}, function () {
|
|
242
|
+
_this.props.form.setFieldsValue({ 'fz': fz });
|
|
243
|
+
_this.onCallback(value, xwxDataSource);
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
_this.onCallback = function (value, xwxDataSource) {
|
|
250
|
+
_this.props.childCallback(value, xwxDataSource);
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
_this.getDataList = function (fieldMap) {
|
|
254
|
+
var getFieldProps = _this.props.form.getFieldProps;
|
|
255
|
+
var _this$state = _this.state,
|
|
256
|
+
xwxmc = _this$state.xwxmc,
|
|
257
|
+
_this$state$xwxInfo = _this$state.xwxInfo,
|
|
258
|
+
xwxInfo = _this$state$xwxInfo === undefined ? {} : _this$state$xwxInfo,
|
|
259
|
+
fz = _this$state.fz,
|
|
260
|
+
xwfssj = _this$state.xwfssj,
|
|
261
|
+
zmcl = _this$state.zmcl,
|
|
262
|
+
xwmsxx = _this$state.xwmsxx,
|
|
263
|
+
jllb = _this$state.jllb,
|
|
264
|
+
jlwhx = _this$state.jlwhx,
|
|
265
|
+
jllbmc = _this$state.jllbmc,
|
|
266
|
+
xwxSelect = _this$state.xwxSelect,
|
|
267
|
+
jllbSelect = _this$state.jllbSelect;
|
|
268
|
+
|
|
269
|
+
var dataList = [];
|
|
270
|
+
//奖励名称
|
|
271
|
+
if (fieldMap.XWXMC && fieldMap.XWXMC.sfxs === '1') {
|
|
272
|
+
// 是否必填
|
|
273
|
+
var required = fieldMap.XWXMC.sfbt === "1";
|
|
274
|
+
// 是否可编辑
|
|
275
|
+
var editable = fieldMap.XWXMC.sfbj === "1";
|
|
276
|
+
dataList.push({
|
|
277
|
+
title: '奖励名称',
|
|
278
|
+
text: xwxmc,
|
|
279
|
+
required: required,
|
|
280
|
+
render: function render() {
|
|
281
|
+
return _react2.default.createElement(
|
|
282
|
+
"div",
|
|
283
|
+
{
|
|
284
|
+
className: (0, _classnames2.default)({ 'nh-inputrender': editable, 'nh-inputrender-disabled': !editable })
|
|
285
|
+
},
|
|
286
|
+
editable ? _react2.default.createElement(
|
|
287
|
+
_picker2.default,
|
|
288
|
+
_extends({
|
|
289
|
+
data: xwxSelect,
|
|
290
|
+
cols: 1,
|
|
291
|
+
className: "forss",
|
|
292
|
+
disabled: !editable
|
|
293
|
+
}, getFieldProps('xwxmc', {
|
|
294
|
+
initialValue: xwxmc,
|
|
295
|
+
rules: [{ required: required, message: '请选择奖励类型' }],
|
|
296
|
+
onChange: _this.changeXwx
|
|
297
|
+
})),
|
|
298
|
+
_react2.default.createElement(
|
|
299
|
+
_list2.default.Item,
|
|
300
|
+
_extends({ arrow: "horizontal" }, _this.requiredParams(required, 'xwxmc')),
|
|
301
|
+
"\u5956\u52B1\u540D\u79F0"
|
|
302
|
+
)
|
|
303
|
+
) : _react2.default.createElement(
|
|
304
|
+
_inputItem2.default,
|
|
305
|
+
_extends({
|
|
306
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
307
|
+
editable: false,
|
|
308
|
+
disabled: !editable,
|
|
309
|
+
className: "nh-input-item"
|
|
310
|
+
}, _this.requiredParams(required, 'xwxmc'), getFieldProps('xwxmc', {
|
|
311
|
+
initialValue: xwxmc,
|
|
312
|
+
rules: [{ required: required, message: '请选择奖励类型' }]
|
|
313
|
+
})),
|
|
314
|
+
"\u5956\u52B1\u540D\u79F0"
|
|
315
|
+
)
|
|
316
|
+
);
|
|
317
|
+
},
|
|
318
|
+
span: 1
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
//分值
|
|
323
|
+
if (xwxInfo.XWXMC && xwxInfo.PFFSM === '1') {
|
|
324
|
+
var _required = true;
|
|
325
|
+
dataList.push({
|
|
326
|
+
title: '分值',
|
|
327
|
+
text: fz,
|
|
328
|
+
required: _required,
|
|
329
|
+
render: function render() {
|
|
330
|
+
return _react2.default.createElement(
|
|
331
|
+
_inputItem2.default,
|
|
332
|
+
_extends({
|
|
333
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
334
|
+
editable: false,
|
|
335
|
+
className: "nh-input-item"
|
|
336
|
+
}, _this.requiredParams(_required, 'fz'), getFieldProps('fz', {
|
|
337
|
+
initialValue: fz,
|
|
338
|
+
rules: [{ required: _required, message: '请输入分值' }]
|
|
339
|
+
})),
|
|
340
|
+
"\u5206\u503C"
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
} else if (xwxInfo.XWXMC && xwxInfo.PFFSM === '2') {
|
|
345
|
+
var _editable = true;
|
|
346
|
+
var _required2 = true;
|
|
347
|
+
dataList.push({
|
|
348
|
+
title: '分值',
|
|
349
|
+
text: fz,
|
|
350
|
+
required: _required2,
|
|
351
|
+
render: function render() {
|
|
352
|
+
return _react2.default.createElement(
|
|
353
|
+
_list2.default.Item,
|
|
354
|
+
{ extra: _react2.default.createElement(_stepper2.default, _extends({
|
|
355
|
+
style: { width: '100%', minWidth: '100px' },
|
|
356
|
+
showNumber: true,
|
|
357
|
+
max: xwxInfo.ZDFS,
|
|
358
|
+
min: xwxInfo.ZXFS,
|
|
359
|
+
disabled: !_editable
|
|
360
|
+
}, getFieldProps('fz', {
|
|
361
|
+
initialValue: fz,
|
|
362
|
+
rules: [{ required: _required2, message: '请输入分值!' }]
|
|
363
|
+
})))
|
|
364
|
+
},
|
|
365
|
+
"\u5206\u503C"
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
} else if (fieldMap.XWXMC && fieldMap.XWXMC.sfxs === '1') {
|
|
370
|
+
var _required3 = true;
|
|
371
|
+
dataList.push({
|
|
372
|
+
title: '分值',
|
|
373
|
+
text: fz,
|
|
374
|
+
required: _required3,
|
|
375
|
+
render: function render() {
|
|
376
|
+
return _react2.default.createElement(
|
|
377
|
+
_inputItem2.default,
|
|
378
|
+
_extends({
|
|
379
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
380
|
+
editable: false,
|
|
381
|
+
className: "nh-input-item"
|
|
382
|
+
}, _this.requiredParams(_required3, 'fz'), getFieldProps('fz', {
|
|
383
|
+
initialValue: fz,
|
|
384
|
+
rules: [{ required: _required3, message: '请输入分值' }]
|
|
385
|
+
})),
|
|
386
|
+
"\u5206\u503C"
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
//奖励日期
|
|
393
|
+
if (fieldMap.XWFSSJ && fieldMap.XWFSSJ.sfxs === '1') {
|
|
394
|
+
var _required4 = fieldMap.XWFSSJ.sfbt === "1";
|
|
395
|
+
var _editable2 = fieldMap.XWFSSJ.sfbj === "1";
|
|
396
|
+
var now = _editable2 ? new Date() : null;
|
|
397
|
+
var jlrq = xwfssj ? (0, _moment2.default)(xwfssj, "YYYY-MM-DD").toDate() : now;
|
|
398
|
+
dataList.push({
|
|
399
|
+
title: '奖励日期',
|
|
400
|
+
isUpload: false,
|
|
401
|
+
text: xwfssj,
|
|
402
|
+
required: _required4,
|
|
403
|
+
render: function render() {
|
|
404
|
+
return _react2.default.createElement(
|
|
405
|
+
"div",
|
|
406
|
+
{
|
|
407
|
+
className: (0, _classnames2.default)({ 'nh-inputrender': _editable2, 'nh-inputrender-disabled': !_editable2 })
|
|
408
|
+
},
|
|
409
|
+
_react2.default.createElement(
|
|
410
|
+
_datePicker2.default,
|
|
411
|
+
_extends({
|
|
412
|
+
mode: "date",
|
|
413
|
+
title: "\u5956\u52B1\u65E5\u671F",
|
|
414
|
+
extra: "\u8BF7\u9009\u62E9",
|
|
415
|
+
disabled: !_editable2
|
|
416
|
+
}, getFieldProps('jlrq', {
|
|
417
|
+
initialValue: jlrq,
|
|
418
|
+
rules: [{ required: _required4, message: '请选择奖励日期' }]
|
|
419
|
+
})),
|
|
420
|
+
_react2.default.createElement(
|
|
421
|
+
_list2.default.Item,
|
|
422
|
+
_extends({ arrow: "horizontal" }, _this.requiredParams(_required4, 'jlrq')),
|
|
423
|
+
"\u5956\u52B1\u65E5\u671F"
|
|
424
|
+
)
|
|
425
|
+
)
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
//描述信息
|
|
432
|
+
if (fieldMap.XWMSXX && fieldMap.XWMSXX.sfxs === '1') {
|
|
433
|
+
|
|
434
|
+
var _required5 = fieldMap.XWMSXX.sfbt === "1";
|
|
435
|
+
var _editable3 = fieldMap.XWMSXX.sfbj === "1";
|
|
436
|
+
|
|
437
|
+
dataList.push({
|
|
438
|
+
title: '描述信息',
|
|
439
|
+
isUpload: false,
|
|
440
|
+
text: xwmsxx,
|
|
441
|
+
required: _required5,
|
|
442
|
+
render: function render() {
|
|
443
|
+
return _react2.default.createElement(_textareaItem2.default, _extends({
|
|
444
|
+
title: "\u63CF\u8FF0\u4FE1\u606F",
|
|
445
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
446
|
+
rows: 4,
|
|
447
|
+
count: 500,
|
|
448
|
+
editable: _editable3,
|
|
449
|
+
disabled: !_editable3
|
|
450
|
+
}, _this.requiredParams(_required5, 'xwmsxx'), getFieldProps('xwmsxx', {
|
|
451
|
+
initialValue: xwmsxx,
|
|
452
|
+
rules: [{ required: _required5, message: '请输入描述信息' }]
|
|
453
|
+
})));
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
//证明材料
|
|
459
|
+
if (fieldMap.ZMCL && fieldMap.ZMCL.sfxs === '1') {
|
|
460
|
+
var _required6 = fieldMap.ZMCL.sfbt === "1" ? true : false;
|
|
461
|
+
var _editable4 = fieldMap.ZMCL.sfbj === "1" ? true : false;
|
|
462
|
+
dataList.push({
|
|
463
|
+
id: 'zmcl',
|
|
464
|
+
title: '证明材料',
|
|
465
|
+
text: zmcl,
|
|
466
|
+
required: _required6,
|
|
467
|
+
isUpload: true,
|
|
468
|
+
render: function render() {
|
|
469
|
+
return _react2.default.createElement(
|
|
470
|
+
_list2.default.Item,
|
|
471
|
+
_this.requiredParams(_required6, 'zmcl'),
|
|
472
|
+
_react2.default.createElement(
|
|
473
|
+
"label",
|
|
474
|
+
{ className: (0, _classnames2.default)({ 'nh-dynamic-form-disabled': !_editable4 }) },
|
|
475
|
+
"\u8BC1\u660E\u6750\u6599"
|
|
476
|
+
),
|
|
477
|
+
_react2.default.createElement(_index2.default, _extends({
|
|
478
|
+
serviceMark: 'sm-daily-behaviour',
|
|
479
|
+
moduleName: '日常行为个人登记',
|
|
480
|
+
isEdit: _this.props.isEdit && _editable4
|
|
481
|
+
}, getFieldProps('zmcl', {
|
|
482
|
+
initialValue: zmcl,
|
|
483
|
+
rules: [{ required: _required6, message: '请上传证明材料' }]
|
|
484
|
+
})))
|
|
485
|
+
);
|
|
486
|
+
},
|
|
487
|
+
renderView: function renderView() {
|
|
488
|
+
return _react2.default.createElement(_index2.default, {
|
|
489
|
+
serviceMark: 'sm-punish',
|
|
490
|
+
moduleName: '违纪处分-违纪上报',
|
|
491
|
+
isEdit: false,
|
|
492
|
+
value: zmcl
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
//奖励类别
|
|
499
|
+
if (fieldMap.JLLB && fieldMap.JLLB.sfxs === '1') {
|
|
500
|
+
|
|
501
|
+
var _required7 = fieldMap.JLLB.sfbt === "1" ? true : false;
|
|
502
|
+
var _editable5 = fieldMap.JLLB.sfbj === "1" ? true : false;
|
|
503
|
+
|
|
504
|
+
dataList.push({
|
|
505
|
+
title: '奖励类别',
|
|
506
|
+
isUpload: false,
|
|
507
|
+
text: jllbmc,
|
|
508
|
+
required: _required7,
|
|
509
|
+
render: function render() {
|
|
510
|
+
return _react2.default.createElement(
|
|
511
|
+
"div",
|
|
512
|
+
{
|
|
513
|
+
className: (0, _classnames2.default)({ 'nh-inputrender': _editable5, 'nh-inputrender-disabled': !_editable5 })
|
|
514
|
+
},
|
|
515
|
+
_react2.default.createElement(
|
|
516
|
+
_picker2.default,
|
|
517
|
+
_extends({
|
|
518
|
+
data: jllbSelect,
|
|
519
|
+
cols: 1,
|
|
520
|
+
className: "forss",
|
|
521
|
+
disabled: !_editable5
|
|
522
|
+
}, getFieldProps('jllb', {
|
|
523
|
+
initialValue: jllb,
|
|
524
|
+
rules: [{ required: _required7, message: '请选择奖励类别' }]
|
|
525
|
+
})),
|
|
526
|
+
_react2.default.createElement(
|
|
527
|
+
_list2.default.Item,
|
|
528
|
+
_extends({ arrow: "horizontal" }, _this.requiredParams(_required7, 'jllb')),
|
|
529
|
+
"\u5956\u52B1\u7C7B\u522B"
|
|
530
|
+
)
|
|
531
|
+
)
|
|
532
|
+
);
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
//奖励文号项
|
|
538
|
+
if (fieldMap.JLWHX && fieldMap.JLWHX.sfxs === '1') {
|
|
539
|
+
|
|
540
|
+
var _required8 = fieldMap.JLWHX.sfbt === "1" ? true : false;
|
|
541
|
+
var _editable6 = fieldMap.JLWHX.sfbj === "1" ? true : false;
|
|
542
|
+
|
|
543
|
+
dataList.push({
|
|
544
|
+
title: '奖励文号项',
|
|
545
|
+
isUpload: false,
|
|
546
|
+
text: jlwhx,
|
|
547
|
+
required: _required8,
|
|
548
|
+
render: function render() {
|
|
549
|
+
return _react2.default.createElement(
|
|
550
|
+
_inputItem2.default,
|
|
551
|
+
_extends({
|
|
552
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
553
|
+
editable: _editable6,
|
|
554
|
+
disabled: !_editable6,
|
|
555
|
+
className: "nh-input-item"
|
|
556
|
+
}, _this.requiredParams(_required8, 'jlwhx'), getFieldProps('jlwhx', {
|
|
557
|
+
initialValue: jlwhx,
|
|
558
|
+
rules: [{ required: _required8, message: '请输入奖励文号项' }]
|
|
559
|
+
})),
|
|
560
|
+
"\u5956\u52B1\u6587\u53F7"
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
return dataList;
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
_this.requiredParams = function (required, id) {
|
|
570
|
+
var getFieldError = _this.props.form.getFieldError;
|
|
571
|
+
|
|
572
|
+
return {
|
|
573
|
+
error: getFieldError(id) !== undefined
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
_this.deleteXs = function (index) {
|
|
578
|
+
var _this$state2 = _this.state,
|
|
579
|
+
xsInfoList = _this$state2.xsInfoList,
|
|
580
|
+
xsidList = _this$state2.xsidList,
|
|
581
|
+
canDel = _this$state2.canDel,
|
|
582
|
+
selectedstu = _this$state2.selectedstu;
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
if (xsInfoList && xsInfoList.length <= 1) {
|
|
586
|
+
_toast2.default.fail("学生至少选择一位!");
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
if (canDel) {
|
|
590
|
+
xsInfoList.splice(index, 1);
|
|
591
|
+
xsidList.splice(index, 1);
|
|
592
|
+
selectedstu.splice(index, 1);
|
|
593
|
+
_this.setState({
|
|
594
|
+
xsInfoList: xsInfoList,
|
|
595
|
+
xsidList: xsidList,
|
|
596
|
+
selectedstu: selectedstu
|
|
597
|
+
}, function () {
|
|
598
|
+
// this.props.setDjxxQx(this.state.djxxQx);
|
|
599
|
+
console.info(_this.state.xsInfoList, " ", _this.state.xsidList);
|
|
600
|
+
_this.props.setXsidList(xsidList);
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
_this.addbtn = function () {
|
|
606
|
+
_this.setState({
|
|
607
|
+
selector: true
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
_this.addXS = function (info) {
|
|
612
|
+
var xsInfoList = [];
|
|
613
|
+
// 存放 id
|
|
614
|
+
var xsidList = [];
|
|
615
|
+
if (info && info instanceof Array) {
|
|
616
|
+
info.map(function (item, index) {
|
|
617
|
+
var xs = {
|
|
618
|
+
XM: item.xm,
|
|
619
|
+
XH: item.xh,
|
|
620
|
+
XB: item.xb,
|
|
621
|
+
BMMC: item.bmmc,
|
|
622
|
+
ZYMC: item.zymc,
|
|
623
|
+
BJMC: item.bjmc
|
|
624
|
+
};
|
|
625
|
+
var xsid = item.xsid;
|
|
626
|
+
xsInfoList.push(xs);
|
|
627
|
+
xsidList.push(xsid);
|
|
628
|
+
});
|
|
629
|
+
} else {
|
|
630
|
+
var xs = {
|
|
631
|
+
XM: item.xm,
|
|
632
|
+
XH: item.xh,
|
|
633
|
+
XB: item.xb,
|
|
634
|
+
BMMC: item.bmmc,
|
|
635
|
+
ZYMC: item.zymc,
|
|
636
|
+
BJMC: item.bjmc
|
|
637
|
+
};
|
|
638
|
+
var xsid = item.xsid;
|
|
639
|
+
xsInfoList.push(xs);
|
|
640
|
+
xsidList.push(xsid);
|
|
641
|
+
}
|
|
642
|
+
_this.setState({
|
|
643
|
+
xsInfoList: xsInfoList,
|
|
644
|
+
xsidList: xsidList,
|
|
645
|
+
// 所有学生信息传回去
|
|
646
|
+
selectedstu: info,
|
|
647
|
+
selector: false
|
|
648
|
+
}, function () {
|
|
649
|
+
_this.props.setXsidList(xsidList);
|
|
650
|
+
});
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
_this.state = {
|
|
654
|
+
xwxmc: '', //行为项名称
|
|
655
|
+
xwxInfo: {}, //单条行为项信息
|
|
656
|
+
fz: '', //分值字符串
|
|
657
|
+
xwfssj: '', //行为奖励日期
|
|
658
|
+
zmcl: '', //证明材料
|
|
659
|
+
xwmsxx: '', //描述信息
|
|
660
|
+
jllb: '', //奖励类别
|
|
661
|
+
jllbmc: '',
|
|
662
|
+
jlwhx: '', //奖励文号项
|
|
663
|
+
xwxSelect: [], // 行为项选择器
|
|
664
|
+
jllbSelect: [], // 奖励类别选择器
|
|
665
|
+
xwxDataSource: [], // 行为项数据源
|
|
666
|
+
// 学生信息
|
|
667
|
+
xsInfoList: [],
|
|
668
|
+
// 学生id
|
|
669
|
+
xsidList: [],
|
|
670
|
+
// 已选择的学生对象,传递给选择器显示已选择的学生,格式为[{}, {}...]
|
|
671
|
+
selectedstu: [],
|
|
672
|
+
// 是否显示学生选择器
|
|
673
|
+
selector: false,
|
|
674
|
+
// 是否可以删除学生
|
|
675
|
+
canDel: true,
|
|
676
|
+
// 是否显示添加学生
|
|
677
|
+
isShowBtn: true
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
return _this;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
//获取行为项数据源
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
//获取奖励类别数据源
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
//改变行为项下拉框
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
//回调方法
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
// 删除学生
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
// 唤醒学生选择器,添加学生
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
// 学生选择器回调
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
_createClass(IndividualRegistForm, [{
|
|
705
|
+
key: "render",
|
|
706
|
+
value: function render() {
|
|
707
|
+
var _props = this.props,
|
|
708
|
+
form = _props.form,
|
|
709
|
+
isEdit = _props.isEdit,
|
|
710
|
+
fieldMap = _props.fieldMap,
|
|
711
|
+
title = _props.title;
|
|
712
|
+
var _state = this.state,
|
|
713
|
+
xsInfoList = _state.xsInfoList,
|
|
714
|
+
selector = _state.selector,
|
|
715
|
+
selectedstu = _state.selectedstu,
|
|
716
|
+
isShowBtn = _state.isShowBtn;
|
|
717
|
+
|
|
718
|
+
var dataList = this.getDataList(fieldMap);
|
|
719
|
+
|
|
720
|
+
if (isEdit) {
|
|
721
|
+
return _react2.default.createElement(
|
|
722
|
+
"div",
|
|
723
|
+
null,
|
|
724
|
+
_react2.default.createElement(
|
|
725
|
+
"div",
|
|
726
|
+
{ style: { display: selector ? 'none' : 'block' } },
|
|
727
|
+
_react2.default.createElement(
|
|
728
|
+
_card2.default,
|
|
729
|
+
{ full: true },
|
|
730
|
+
_react2.default.createElement(_card2.default.Header, {
|
|
731
|
+
title: _react2.default.createElement(
|
|
732
|
+
"div",
|
|
733
|
+
{ style: { borderLeft: '3px solid #1890ff', paddingLeft: '10px' } },
|
|
734
|
+
"学生基础信息"
|
|
735
|
+
)
|
|
736
|
+
}),
|
|
737
|
+
_react2.default.createElement(
|
|
738
|
+
_card2.default.Body,
|
|
739
|
+
null,
|
|
740
|
+
_react2.default.createElement(_messageInfo2.default, { dataList: xsInfoList, deleteXs: this.deleteXs, canDel: this.state.canDel }),
|
|
741
|
+
isShowBtn && _react2.default.createElement(
|
|
742
|
+
_button2.default,
|
|
743
|
+
{ icon: "plus", type: "ghost", size: "small", onClick: this.addbtn },
|
|
744
|
+
"\u6DFB\u52A0\u5B66\u751F"
|
|
745
|
+
)
|
|
746
|
+
)
|
|
747
|
+
),
|
|
748
|
+
_react2.default.createElement(_whiteSpace2.default, { size: "lg" }),
|
|
749
|
+
_react2.default.createElement(
|
|
750
|
+
"form",
|
|
751
|
+
null,
|
|
752
|
+
_react2.default.createElement(
|
|
753
|
+
_list2.default,
|
|
754
|
+
{ renderHeader: function renderHeader() {
|
|
755
|
+
return title;
|
|
756
|
+
} },
|
|
757
|
+
dataList.map(function (item, index) {
|
|
758
|
+
return _react2.default.createElement(
|
|
759
|
+
"div",
|
|
760
|
+
{ key: index, className: (0, _classnames2.default)('nh-dynamic-list-item', { 'nh-dynamic-required': item.required }) },
|
|
761
|
+
item.render !== undefined ? item.render() : null
|
|
762
|
+
);
|
|
763
|
+
})
|
|
764
|
+
),
|
|
765
|
+
_react2.default.createElement(_whiteSpace2.default, { size: "lg" })
|
|
766
|
+
)
|
|
767
|
+
),
|
|
768
|
+
_react2.default.createElement(
|
|
769
|
+
"div",
|
|
770
|
+
{ style: { display: selector ? 'block' : 'none' } },
|
|
771
|
+
selector ? _react2.default.createElement(_index4.default, { selectType: 'multi', user: selectedstu, rangeFilter: true, ifShowFilter: true, handleOkClick: this.addXS }) : null
|
|
772
|
+
),
|
|
773
|
+
_react2.default.createElement("input", { id: "isEndZzsd", hidden: true })
|
|
774
|
+
);
|
|
775
|
+
}
|
|
776
|
+
return _react2.default.createElement(
|
|
777
|
+
"div",
|
|
778
|
+
null,
|
|
779
|
+
_react2.default.createElement(
|
|
780
|
+
"div",
|
|
781
|
+
{ style: { display: selector ? 'none' : 'block' } },
|
|
782
|
+
_react2.default.createElement(
|
|
783
|
+
_card2.default,
|
|
784
|
+
{ full: true },
|
|
785
|
+
_react2.default.createElement(_card2.default.Header, {
|
|
786
|
+
title: _react2.default.createElement(
|
|
787
|
+
"div",
|
|
788
|
+
{ style: { borderLeft: '3px solid #1890ff', paddingLeft: '10px' } },
|
|
789
|
+
"学生基础信息"
|
|
790
|
+
)
|
|
791
|
+
}),
|
|
792
|
+
_react2.default.createElement(
|
|
793
|
+
_card2.default.Body,
|
|
794
|
+
null,
|
|
795
|
+
_react2.default.createElement(_messageInfo2.default, { dataList: xsInfoList, deleteXs: this.deleteXs, canDel: this.state.canDel }),
|
|
796
|
+
isShowBtn && _react2.default.createElement(
|
|
797
|
+
_button2.default,
|
|
798
|
+
{ icon: "plus", type: "ghost", size: "small", onClick: this.addbtn },
|
|
799
|
+
"\u6DFB\u52A0\u5B66\u751F"
|
|
800
|
+
)
|
|
801
|
+
)
|
|
802
|
+
),
|
|
803
|
+
_react2.default.createElement(_whiteSpace2.default, { size: "lg" }),
|
|
804
|
+
_react2.default.createElement(
|
|
805
|
+
_card2.default,
|
|
806
|
+
{ full: true },
|
|
807
|
+
_react2.default.createElement(_card2.default.Header, {
|
|
808
|
+
title: _react2.default.createElement(
|
|
809
|
+
"div",
|
|
810
|
+
{ style: { borderLeft: '3px solid #1890ff', paddingLeft: '10px' } },
|
|
811
|
+
title
|
|
812
|
+
)
|
|
813
|
+
}),
|
|
814
|
+
_react2.default.createElement(
|
|
815
|
+
_card2.default.Body,
|
|
816
|
+
null,
|
|
817
|
+
dataList.map(function (item, index) {
|
|
818
|
+
if (item.isUpload) {
|
|
819
|
+
return _react2.default.createElement(
|
|
820
|
+
"div",
|
|
821
|
+
{ key: index },
|
|
822
|
+
_react2.default.createElement(
|
|
823
|
+
"font",
|
|
824
|
+
{ color: "grey" },
|
|
825
|
+
item.title,
|
|
826
|
+
"\uFF1A "
|
|
827
|
+
),
|
|
828
|
+
item.renderView()
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
return _react2.default.createElement(
|
|
832
|
+
"div",
|
|
833
|
+
{ key: index },
|
|
834
|
+
_react2.default.createElement(
|
|
835
|
+
"font",
|
|
836
|
+
{ color: "grey" },
|
|
837
|
+
item.title,
|
|
838
|
+
"\uFF1A "
|
|
839
|
+
),
|
|
840
|
+
item.text,
|
|
841
|
+
_react2.default.createElement("br", null)
|
|
842
|
+
);
|
|
843
|
+
})
|
|
844
|
+
)
|
|
845
|
+
),
|
|
846
|
+
_react2.default.createElement(_whiteSpace2.default, { size: "lg" })
|
|
847
|
+
),
|
|
848
|
+
_react2.default.createElement(
|
|
849
|
+
"div",
|
|
850
|
+
{ style: { display: selector ? 'block' : 'none' } },
|
|
851
|
+
selector ? _react2.default.createElement(_index4.default, { selectType: 'multi', user: selectedstu, rangeFilter: true, ifShowFilter: true, handleOkClick: this.addXS }) : null
|
|
852
|
+
),
|
|
853
|
+
_react2.default.createElement("input", { id: "isEndZzsd", hidden: true })
|
|
854
|
+
);
|
|
855
|
+
}
|
|
856
|
+
}]);
|
|
857
|
+
|
|
858
|
+
return IndividualRegistForm;
|
|
859
|
+
}(_react2.default.Component);
|
|
860
|
+
|
|
861
|
+
var individualRegistForm = (0, _rcForm.createForm)()(IndividualRegistForm);
|
|
862
|
+
exports.default = individualRegistForm;
|