dlt-for-react 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/README.md +4 -0
  2. package/lib/index.js +7 -1
  3. package/lib/layouts/Top/index.js +1 -1
  4. package/lib/layouts/layout/index.js +77 -31
  5. package/lib/layouts/mixTop/index.js +3 -3
  6. package/lib/utils/createUuid.js +31 -11
  7. package/lib/utils/getLoginUser.js +1 -1
  8. package/lib/utils/getSize.js +11 -2
  9. package/lib/utils/index.js +35 -2
  10. package/package.json +1 -1
  11. package/lib/components/Button/index.js +0 -79
  12. package/lib/components/NHAuditPanel/config/Axios.js +0 -263
  13. package/lib/components/NHAuditPanel/config/api.js +0 -479
  14. package/lib/components/NHAuditPanel/config/data.js +0 -156
  15. package/lib/components/NHAuditPanel/config/typeMap.js +0 -1234
  16. package/lib/components/NHAuditPanel/config/uiValidate.js +0 -92
  17. package/lib/components/NHAuditPanel/index.js +0 -413
  18. package/lib/components/NHAuditPanel/node.js +0 -619
  19. package/lib/components/NHCascader/index.js +0 -355
  20. package/lib/components/NHCheckboxGroup/index.js +0 -135
  21. package/lib/components/NHDynamicFormShow/baseInfo/index.js +0 -194
  22. package/lib/components/NHDynamicFormShow/custom/index.js +0 -553
  23. package/lib/components/NHDynamicFormShow/customModule/common/CommonMethod.js +0 -43
  24. package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/EditForm.js +0 -1113
  25. package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/index.js +0 -263
  26. package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/EditForm.js +0 -880
  27. package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/index.js +0 -171
  28. package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/EditForm.js +0 -865
  29. package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/index.js +0 -138
  30. package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/EditForm.js +0 -571
  31. package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/index.js +0 -147
  32. package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/EditForm.js +0 -474
  33. package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/index.js +0 -139
  34. package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/EditForm.js +0 -506
  35. package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/index.js +0 -143
  36. package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/EditForm.js +0 -1074
  37. package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/index.js +0 -172
  38. package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/EditForm.js +0 -927
  39. package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/index.js +0 -195
  40. package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/EditForm.js +0 -1064
  41. package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/index.js +0 -183
  42. package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/EditForm.js +0 -763
  43. package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/index.js +0 -137
  44. package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/EditForm.js +0 -819
  45. package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/index.js +0 -137
  46. package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/EditForm.js +0 -700
  47. package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/index.js +0 -162
  48. package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/EditForm.js +0 -743
  49. package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/index.js +0 -177
  50. package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/EditForm.js +0 -848
  51. package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/index.js +0 -138
  52. package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/EditForm.js +0 -777
  53. package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/index.js +0 -161
  54. package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/EditForm.js +0 -706
  55. package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/index.js +0 -130
  56. package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/cfjcEditForm.js +0 -413
  57. package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/index.js +0 -135
  58. package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/EditForm.js +0 -1013
  59. package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/index.js +0 -175
  60. package/lib/components/NHDynamicFormShow/customModule/jjrlx/EditForm.js +0 -1345
  61. package/lib/components/NHDynamicFormShow/customModule/jjrlx/index.js +0 -274
  62. package/lib/components/NHDynamicFormShow/customModule/jxj/EditForm.js +0 -669
  63. package/lib/components/NHDynamicFormShow/customModule/jxj/index.js +0 -134
  64. package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/EditForm.js +0 -378
  65. package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/index.js +0 -120
  66. package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/EditForm.js +0 -638
  67. package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/index.js +0 -133
  68. package/lib/components/NHDynamicFormShow/customModule/qgzx/EditForm.js +0 -965
  69. package/lib/components/NHDynamicFormShow/customModule/qgzx/index.js +0 -237
  70. package/lib/components/NHDynamicFormShow/customModule/qjgl/EditForm.js +0 -823
  71. package/lib/components/NHDynamicFormShow/customModule/qjgl/index.js +0 -188
  72. package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/EditForm.js +0 -401
  73. package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/index.js +0 -472
  74. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/EditForm.js +0 -304
  75. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHCascader/index.js +0 -375
  76. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/RadioGroup.js +0 -118
  77. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/index.js +0 -62
  78. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/input-const.js +0 -55
  79. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/render.js +0 -1238
  80. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/index.js +0 -375
  81. package/lib/components/NHDynamicFormShow/customModule/rych/collective/EditForm.js +0 -554
  82. package/lib/components/NHDynamicFormShow/customModule/rych/collective/index.js +0 -130
  83. package/lib/components/NHDynamicFormShow/customModule/rych/personal/EditForm.js +0 -542
  84. package/lib/components/NHDynamicFormShow/customModule/rych/personal/index.js +0 -133
  85. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/EditForm.js +0 -575
  86. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/index.js +0 -130
  87. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/EditForm.js +0 -563
  88. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/index.js +0 -133
  89. package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/EditForm.js +0 -745
  90. package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/index.js +0 -164
  91. package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/EditForm.js +0 -587
  92. package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/index.js +0 -143
  93. package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/EditForm.js +0 -743
  94. package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/index.js +0 -172
  95. package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/EditForm.js +0 -1410
  96. package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/index.js +0 -274
  97. package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/EditForm.js +0 -755
  98. package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/index.js +0 -130
  99. package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/EditForm.js +0 -814
  100. package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/index.js +0 -188
  101. package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/EditForm.js +0 -769
  102. package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/index.js +0 -130
  103. package/lib/components/NHDynamicFormShow/customModule/whgcrych/EditForm.js +0 -1004
  104. package/lib/components/NHDynamicFormShow/customModule/whgcrych/index.js +0 -126
  105. package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/EditForm.js +0 -503
  106. package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/index.js +0 -149
  107. package/lib/components/NHDynamicFormShow/customModule/whtlyhk/EditForm.js +0 -379
  108. package/lib/components/NHDynamicFormShow/customModule/whtlyhk/index.js +0 -148
  109. package/lib/components/NHDynamicFormShow/customModule/whtlzxj/EditForm.js +0 -748
  110. package/lib/components/NHDynamicFormShow/customModule/whtlzxj/index.js +0 -135
  111. package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/EditForm.js +0 -762
  112. package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/index.js +0 -134
  113. package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/cfjcEditForm.js +0 -682
  114. package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/index.js +0 -135
  115. package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/index.js +0 -152
  116. package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/wjsbEditForm.js +0 -783
  117. package/lib/components/NHDynamicFormShow/customModule/zxj/EditForm.js +0 -764
  118. package/lib/components/NHDynamicFormShow/customModule/zxj/index.js +0 -138
  119. package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/cfjcEditForm.js +0 -677
  120. package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/index.js +0 -138
  121. package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/EditForm.js +0 -1173
  122. package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/index.js +0 -242
  123. package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistForm.js +0 -862
  124. package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistIndex.js +0 -201
  125. package/lib/components/NHDynamicFormShow/customModule/zzsd/stuinfo/messageInfo.js +0 -196
  126. package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/index.js +0 -167
  127. package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/wjsbEditForm.js +0 -1096
  128. package/lib/components/NHDynamicFormShow/index.js +0 -647
  129. package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/cardItem/index.js +0 -279
  130. package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/index.js +0 -206
  131. package/lib/components/NHDynamicFormShow/oneOnMany/index.js +0 -419
  132. package/lib/components/NHDynamicFormShow/oneOnOne/EditForm.js +0 -401
  133. package/lib/components/NHDynamicFormShow/oneOnOne/index.js +0 -271
  134. package/lib/components/NHImagePicker/index.js +0 -554
  135. package/lib/components/NHInputPicker/RadioGroup.js +0 -118
  136. package/lib/components/NHInputPicker/index.js +0 -62
  137. package/lib/components/NHInputPicker/input-const.js +0 -55
  138. package/lib/components/NHInputPicker/render.js +0 -1271
  139. package/lib/components/NHListView/index.js +0 -374
  140. package/lib/components/NHMapGeolocation/index.js +0 -537
  141. package/lib/components/NHMapGeolocation/initMap/initGdMap.js +0 -104
  142. package/lib/components/NHMapGeolocation/initMap/initTencentMap.js +0 -138
  143. package/lib/components/NHMapGeolocation/style.js +0 -51
  144. package/lib/components/NHMultiSelect/index.js +0 -272
  145. package/lib/components/NHRadioGroup/index.js +0 -118
  146. package/lib/components/NHSelect/index.js +0 -364
  147. package/lib/components/NHTreeMenu/index.js +0 -126
  148. package/lib/components/NHTreeMenu/treeNode.js +0 -164
  149. package/lib/components/StuSelector/index.js +0 -611
  150. package/lib/layouts/KyInputPicker/edit-page.js +0 -585
  151. package/lib/layouts/KyInputPicker/index.js +0 -220
  152. package/lib/layouts/KyInputPicker/input-const.js +0 -134
  153. package/lib/layouts/KyInputPicker/render.js +0 -2477
  154. package/lib/layouts/KyInputPicker/setting-checkbox.js +0 -850
  155. package/lib/layouts/KyInputPicker/setting-datepicker.js +0 -430
  156. package/lib/layouts/KyInputPicker/setting-datetimepicker.js +0 -443
  157. package/lib/layouts/KyInputPicker/setting-input.js +0 -555
  158. package/lib/layouts/KyInputPicker/setting-inputNumber.js +0 -612
  159. package/lib/layouts/KyInputPicker/setting-monthpicker.js +0 -434
  160. package/lib/layouts/KyInputPicker/setting-multiSelect.js +0 -532
  161. package/lib/layouts/KyInputPicker/setting-nhcascader.js +0 -584
  162. package/lib/layouts/KyInputPicker/setting-old-upload.js +0 -428
  163. package/lib/layouts/KyInputPicker/setting-radio.js +0 -468
  164. package/lib/layouts/KyInputPicker/setting-rangepicker.js +0 -466
  165. package/lib/layouts/KyInputPicker/setting-select.js +0 -534
  166. package/lib/layouts/KyInputPicker/setting-stu-selector.js +0 -507
  167. package/lib/layouts/KyInputPicker/setting-switch.js +0 -274
  168. package/lib/layouts/KyInputPicker/setting-tea-selector.js +0 -507
  169. package/lib/layouts/KyInputPicker/setting-textarea.js +0 -619
  170. package/lib/layouts/KyInputPicker/setting-timepicker.js +0 -437
  171. package/lib/layouts/KyInputPicker/setting-upload.js +0 -766
  172. package/lib/layouts/KyModal/buildTitle.js +0 -81
  173. package/lib/layouts/KyModal/dragM.js +0 -127
  174. package/lib/layouts/KyModal/index.js +0 -321
  175. package/lib/layouts/KyPreview/index.js +0 -219
  176. package/lib/layouts/KyUpload/index.js +0 -1155
  177. package/lib/utils/browserJudge.js +0 -33
  178. package/lib/utils/dynamicLoadCss.js +0 -14
  179. package/lib/utils/dynamicLoadJs.js +0 -21
  180. package/lib/utils/getStyle.js +0 -26
  181. package/lib/utils/getSuitHeight.js +0 -49
  182. package/lib/utils/hasAuth.js +0 -11
  183. package/lib/utils/loadJS.js +0 -40
  184. /package/lib/layouts/{login → Login}/index-pre.js +0 -0
  185. /package/lib/layouts/{login → Login}/index.js +0 -0
  186. /package/lib/layouts/{login → Login}/login.js +0 -0
  187. /package/lib/layouts/{login → Login}/lyPassword.js +0 -0
@@ -1,575 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _card = require('antd-mobile/lib/card');
8
-
9
- var _card2 = _interopRequireDefault(_card);
10
-
11
- var _whiteSpace = require('antd-mobile/lib/white-space');
12
-
13
- var _whiteSpace2 = _interopRequireDefault(_whiteSpace);
14
-
15
- var _list = require('antd-mobile/lib/list');
16
-
17
- var _list2 = _interopRequireDefault(_list);
18
-
19
- var _textareaItem = require('antd-mobile/lib/textarea-item');
20
-
21
- var _textareaItem2 = _interopRequireDefault(_textareaItem);
22
-
23
- var _inputItem = require('antd-mobile/lib/input-item');
24
-
25
- var _inputItem2 = _interopRequireDefault(_inputItem);
26
-
27
- var _toast = require('antd-mobile/lib/toast');
28
-
29
- var _toast2 = _interopRequireDefault(_toast);
30
-
31
- var _modal = require('antd-mobile/lib/modal');
32
-
33
- var _modal2 = _interopRequireDefault(_modal);
34
-
35
- 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; };
36
-
37
- 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; }; }();
38
-
39
- require('antd-mobile/lib/card/style/css');
40
-
41
- require('antd-mobile/lib/white-space/style/css');
42
-
43
- require('antd-mobile/lib/list/style/css');
44
-
45
- require('antd-mobile/lib/textarea-item/style/css');
46
-
47
- require('antd-mobile/lib/input-item/style/css');
48
-
49
- require('antd-mobile/lib/toast/style/css');
50
-
51
- require('antd-mobile/lib/modal/style/css');
52
-
53
- var _react = require('react');
54
-
55
- var _react2 = _interopRequireDefault(_react);
56
-
57
- var _NHFetch = require('../../../../../../utils/NHFetch');
58
-
59
- var _NHFetch2 = _interopRequireDefault(_NHFetch);
60
-
61
- var _index = require('../../../../../NHImagePicker/index');
62
-
63
- var _index2 = _interopRequireDefault(_index);
64
-
65
- var _rcForm = require('rc-form');
66
-
67
- var _classnames = require('classnames');
68
-
69
- var _classnames2 = _interopRequireDefault(_classnames);
70
-
71
- var _CommonMethod = require('../../../common/CommonMethod');
72
-
73
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
74
-
75
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
76
-
77
- 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; }
78
-
79
- 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; } // import { Form, Input, InputNumber, Select, Switch } from 'antd';
80
-
81
-
82
- var basicUrl = 'api/sm-honorary-title/';
83
-
84
- var EditInitForm = function (_React$Component) {
85
- _inherits(EditInitForm, _React$Component);
86
-
87
- function EditInitForm(props) {
88
- _classCallCheck(this, EditInitForm);
89
-
90
- var _this = _possibleConstructorReturn(this, (EditInitForm.__proto__ || Object.getPrototypeOf(EditInitForm)).call(this, props));
91
-
92
- _this.componentDidMount = function () {
93
- var _this$props = _this.props,
94
- objId = _this$props.objId,
95
- pkid = _this$props.pkid,
96
- params = _this$props.params;
97
-
98
- var pcid = params.pcid; //批次ID,也就是任务ID
99
-
100
- _this.getGzfbDetail(pcid, function (data) {
101
- _this.setState({
102
-
103
- rychid: data.RYCHID,
104
- rychmc: data.MC,
105
- pdzq: data.PXZQ,
106
- pdzqmc: data.PXZQMC,
107
- rychlbm: data.RYCHLBM,
108
- rychlbmc: data.RYCHLBMC,
109
- rychjbm: data.RYCHJBM,
110
- rychjbmc: data.RYCHJBMC,
111
- rychjj: data.JJ
112
-
113
- }, function () {
114
-
115
- //判断该学生是否有权限申请
116
- _this.checkPersonalRychQualification({ objId: objId, gzfbid: pcid }, function () {
117
- _this.judgeTaskIsOverTime();
118
- });
119
- //如果不是申请环节,还要获取到数据库中已有的数据用于回显
120
- _this.getCollectiveInfoByPkid(pkid);
121
- });
122
- });
123
- };
124
-
125
- _this.judgeTaskIsOverTime = function () {
126
- var _this$props2 = _this.props,
127
- processId = _this$props2.processId,
128
- rwid = _this$props2.rwid;
129
-
130
- (0, _NHFetch2.default)(basicUrl + 'openapi/sxgy/judgeTaskIsOverTime', 'POST', { "processId": processId, "rwid": rwid }).then(function (res) {
131
- if (res && res.data) {
132
- var isOver = res.data.isOver;
133
- if (isOver === 1) {
134
- _modal2.default.alert('提示', "任务已超时,如需进行操作需要管理员进行任务时间调整!");
135
- _this.props.setSubmitBtnDisabled && _this.props.setSubmitBtnDisabled(true);
136
- }
137
- }
138
- });
139
- };
140
-
141
- _this.onChange = function (seq, value, text) {
142
- _this.props.onChange && _this.props.onChange(seq, value, text);
143
- };
144
-
145
- _this.getGzfbDetail = function (gzfbid, callback) {
146
- var t = new Date().getTime();
147
- (0, _NHFetch2.default)(basicUrl + 'openapi/getGzfbDetail/' + gzfbid, 'GET', t).then(function (res) {
148
- if (res && res.data) {
149
- if (callback && typeof callback === 'function') {
150
- callback(res.data);
151
- }
152
- }
153
- });
154
- };
155
-
156
- _this.getCollectiveInfoByPkid = function (pkid) {
157
- var getCollectiveFormDataData = _this.props.getCollectiveFormDataData;
158
- //通过PKID去查询是否有申请数据,有说明是审核
159
-
160
- var t = new Date().getTime();
161
- (0, _NHFetch2.default)(basicUrl + 'openapi/getCollectiveInfoByPkid/' + pkid, 'GET', t).then(function (res) {
162
- if (res && res.code === 200) {
163
- if (res.data) {
164
- var data = res.data;
165
- _this.setState({
166
- rychid: data.RYCHID,
167
- rychmc: data.RYCHMC,
168
- pdzq: data.PDZQ,
169
- pdzqmc: data.PDZQMC,
170
- rychlbm: data.RYCHLBM,
171
- rychlbmc: data.RYCHLBMC,
172
- rychjbm: data.RYCHJBM,
173
- rychjbmc: data.RYCHJBMC,
174
- rychjj: data.JJ,
175
- sqly: data.SQLY,
176
- fjid: res.data.FJID
177
- });
178
- }
179
- } else {
180
- _toast2.default.fail("调用接口失败");
181
- }
182
- });
183
- };
184
-
185
- _this.checkPersonalRychQualification = function (param, callback) {
186
- //默认办理按钮不可用
187
- _this.props.setSubmitBtnDisabled && _this.props.setSubmitBtnDisabled(true);
188
- (0, _NHFetch2.default)(basicUrl + 'openapi/hasQualification', 'POST', param).then(function (res) {
189
- if (res && res.code === 200) {
190
- //资格名单表查不到记录,调用资格鉴定接口
191
- if (!res.data.ZGMDID) {
192
- var zgid = res.data.ZGID || '';
193
- (0, _CommonMethod.qualificationCheckOne)(zgid, param.objId, function (data) {
194
- var bfhtjs = data.bfhtj.split(";");
195
- var bfhtj = bfhtjs.map(function (item, index) {
196
- return _react2.default.createElement(
197
- 'span',
198
- { key: index + 1 },
199
- index + 1,
200
- '\u3001',
201
- item,
202
- _react2.default.createElement('br', null)
203
- );
204
- });
205
- var modelMessage = "您由于不满足以下条件,所以不能执行申请操作:" + bfhtj;
206
- _modal2.default.alert('提示', modelMessage);
207
- }, function () {
208
- //CheckOne通过后开启办理按钮
209
- _this.props.setSubmitBtnDisabled && _this.props.setSubmitBtnDisabled(false);
210
- });
211
- } else {
212
- //表里有数据,看sfyx字段的状态
213
- if (res.data.SFYX === "0" || res.data.SFYX === 0) {
214
- var modelMessage = "您由于不满足以下条件,所以不能执行申请操作:" + res.data.SCSM;
215
- _modal2.default.alert('提示', modelMessage);
216
- } else {
217
- //能办理的话开启办理按钮
218
- _this.props.setSubmitBtnDisabled && _this.props.setSubmitBtnDisabled(false);
219
- }
220
- }
221
- } else {
222
- _toast2.default.fail("调用接口失败");
223
- }
224
- if (callback) {
225
- callback();
226
- }
227
- });
228
- };
229
-
230
- _this.requiredParams = function (required, id) {
231
- var getFieldError = _this.props.form.getFieldError;
232
-
233
- return {
234
- error: getFieldError(id) !== undefined
235
- };
236
- };
237
-
238
- _this.getDataList = function (fieldMap) {
239
- // const { getFieldDecorator } = this.props.form;
240
- var _this$props$form = _this.props.form,
241
- getFieldProps = _this$props$form.getFieldProps,
242
- getFieldError = _this$props$form.getFieldError;
243
- var _this$state = _this.state,
244
- rychid = _this$state.rychid,
245
- rychmc = _this$state.rychmc,
246
- rychjj = _this$state.rychjj,
247
- pdzq = _this$state.pdzq,
248
- pdzqmc = _this$state.pdzqmc,
249
- rychlbm = _this$state.rychlbm,
250
- rychlbmc = _this$state.rychlbmc,
251
- rychjbm = _this$state.rychjbm,
252
- rychjbmc = _this$state.rychjbmc,
253
- sqly = _this$state.sqly,
254
- fjid = _this$state.fjid;
255
-
256
- var dataList = [];
257
-
258
- //荣誉称号名称
259
- if (fieldMap.MC && fieldMap.MC.sfxs === '1') {
260
- var required = fieldMap.MC.sfbt === "1" ? true : false;
261
- var editable = fieldMap.MC.sfbj === "1" ? true : false;
262
- dataList.push({
263
- id: fieldMap.MC.id,
264
- title: fieldMap.MC.title,
265
- text: rychmc,
266
- required: required,
267
- render: function render() {
268
- getFieldProps('rychid', {
269
- initialValue: rychid
270
- });
271
- return _react2.default.createElement(
272
- _inputItem2.default,
273
- {
274
- className: 'nh-input-item',
275
- placeholder: '\u8BF7\u8F93\u5165',
276
- value: rychmc,
277
- editable: false,
278
- disabled: !editable
279
- },
280
- fieldMap.MC.title
281
- );
282
- }
283
- });
284
- }
285
-
286
- //奖金
287
- if (fieldMap.JJ && fieldMap.JJ.sfxs === '1') {
288
- var _required = fieldMap.JJ.sfbt === "1" ? true : false;
289
- var _editable = fieldMap.JJ.sfbj === "1" ? true : false;
290
- dataList.push({
291
- id: fieldMap.JJ.id,
292
- title: fieldMap.JJ.title,
293
- text: rychjj ? rychjj + '\u5143' : '\u65E0',
294
- required: _required,
295
- render: function render() {
296
- getFieldProps('jj', {
297
- initialValue: rychjj
298
- });
299
- return _react2.default.createElement(
300
- _inputItem2.default,
301
- {
302
- className: 'nh-input-item',
303
- placeholder: '\u8BF7\u8F93\u5165',
304
- value: rychjj ? rychjj + '\u5143' : '\u65E0',
305
- editable: false,
306
- disabled: !_editable
307
- },
308
- fieldMap.JJ.title
309
- );
310
- }
311
- });
312
- }
313
-
314
- //评定周期
315
- if (fieldMap.PDZQ && fieldMap.PDZQ.sfxs === '1') {
316
- var _required2 = fieldMap.PDZQ.sfbt === "1" ? true : false;
317
- dataList.push({
318
- id: fieldMap.PDZQ.id,
319
- title: fieldMap.PDZQ.title,
320
- text: pdzqmc,
321
- required: _required2,
322
- render: function render() {
323
- getFieldProps('pdzq', {
324
- initialValue: pdzq
325
- });
326
- return _react2.default.createElement(
327
- _inputItem2.default,
328
- {
329
- className: 'nh-input-item',
330
- placeholder: '\u8BF7\u8F93\u5165',
331
- value: pdzqmc,
332
- editable: false,
333
- disabled: true
334
- },
335
- fieldMap.PDZQ.title
336
- );
337
- }
338
- });
339
- }
340
-
341
- //荣誉称号类型
342
- if (fieldMap.RYCHLBMC && fieldMap.RYCHLBMC.sfxs === '1') {
343
- var _required3 = fieldMap.RYCHLBMC.sfbt === "1" ? true : false;
344
- dataList.push({
345
- id: fieldMap.RYCHLBMC.id,
346
- title: fieldMap.RYCHLBMC.title,
347
- text: rychlbmc,
348
- required: _required3,
349
- render: function render() {
350
- getFieldProps('rychlbm', {
351
- initialValue: rychlbm
352
- });
353
- return _react2.default.createElement(
354
- _inputItem2.default,
355
- {
356
- className: 'nh-input-item',
357
- placeholder: '\u8BF7\u8F93\u5165',
358
- value: rychlbmc,
359
- editable: false,
360
- disabled: true
361
- },
362
- fieldMap.RYCHLBMC.title
363
- );
364
- }
365
- });
366
- }
367
-
368
- //荣誉称号级别
369
- if (fieldMap.RYCHJBMC && fieldMap.RYCHJBMC.sfxs === '1') {
370
- var _required4 = fieldMap.RYCHJBMC.sfbt === "1" ? true : false;
371
- dataList.push({
372
- id: fieldMap.RYCHJBMC.id,
373
- title: fieldMap.RYCHJBMC.title,
374
- text: rychjbmc,
375
- required: _required4,
376
- render: function render() {
377
- getFieldProps('rychjbm', {
378
- initialValue: rychjbm
379
- });
380
- return _react2.default.createElement(
381
- _inputItem2.default,
382
- {
383
- className: 'nh-input-item',
384
- placeholder: '\u8BF7\u8F93\u5165',
385
- value: rychjbmc,
386
- editable: false,
387
- disabled: true
388
- },
389
- fieldMap.RYCHJBMC.title
390
- );
391
- }
392
- });
393
- }
394
-
395
- if (fieldMap.SQLY && fieldMap.SQLY.sfxs === '1') {
396
- var _required5 = fieldMap.SQLY.sfbt === "1" ? true : false;
397
- var _editable2 = fieldMap.SQLY.sfbj === "1" ? true : false;
398
- dataList.push({
399
- id: fieldMap.SQLY.id,
400
- title: fieldMap.SQLY.title,
401
- text: sqly,
402
- required: _required5,
403
- isUpload: false,
404
- render: function render() {
405
- return _react2.default.createElement(_textareaItem2.default, _extends({
406
- title: fieldMap.SQLY.title,
407
- placeholder: '\u8BF7\u8F93\u5165',
408
- 'data-seed': 'logId',
409
- rows: 3,
410
- count: 500,
411
- editable: _editable2,
412
- disabled: !_editable2
413
- }, _this.requiredParams(_required5, 'sqly'), getFieldProps('sqly', {
414
- initialValue: sqly,
415
- rules: [{ required: _required5, message: '请输入申请理由!' }],
416
- onChange: function onChange(v) {
417
- return _this.setState({ sqly: v });
418
- }
419
- })));
420
- }
421
- });
422
- }
423
-
424
- if (fieldMap.FJID && fieldMap.FJID.sfxs === '1') {
425
- var _required6 = fieldMap.FJID.sfbt === "1" ? true : false;
426
- var _editable3 = fieldMap.FJID.sfbj === "1" ? true : false;
427
- dataList.push({
428
- id: fieldMap.FJID.id,
429
- title: fieldMap.FJID.title,
430
- text: fjid,
431
- required: _required6,
432
- isUpload: true,
433
- render: function render() {
434
- return _react2.default.createElement(
435
- _list2.default.Item,
436
- _this.requiredParams(_required6, 'fjid'),
437
- _react2.default.createElement(
438
- 'label',
439
- { className: (0, _classnames2.default)({ 'nh-dynamic-form-disabled': !_editable3 }) },
440
- fieldMap.FJID.title
441
- ),
442
- _react2.default.createElement(_index2.default, _extends({
443
- serviceMark: 'sm-honorary-title',
444
- moduleName: '集体荣誉称号',
445
- isEdit: _this.props.isEdit && _editable3,
446
- numberOfLimit: 10,
447
- numberOfSize: 5
448
- }, getFieldProps('fjid', {
449
- initialValue: fjid,
450
- rules: [{ required: _required6, message: '请上传附件' }]
451
- })))
452
- );
453
- },
454
- renderView: function renderView() {
455
- return _react2.default.createElement(_index2.default, {
456
- serviceMark: 'sm-honorary-title',
457
- moduleName: '集体荣誉称号',
458
- isEdit: false,
459
- value: fjid
460
- });
461
- }
462
- });
463
- }
464
- return dataList;
465
- };
466
-
467
- _this.state = {
468
- rychid: '', //荣誉称号ID
469
- rychmc: '', //荣誉称号名称
470
- pdzq: '', //评定周期
471
- pdzqmc: '', //评定周期
472
- rychlbm: '',
473
- rychlbmc: '', //荣誉称号类别
474
- ychjbm: '',
475
- rychjbmc: '', //荣誉称号级别
476
- rychjj: '', //荣誉称号奖金
477
-
478
- sqly: '', //申请理由
479
- fjid: '' //附件ID
480
- };
481
-
482
- return _this;
483
- }
484
-
485
- //根据工作发布ID查询详情
486
-
487
-
488
- //获取集体获奖信息
489
-
490
-
491
- _createClass(EditInitForm, [{
492
- key: 'render',
493
- value: function render() {
494
- var _props = this.props,
495
- form = _props.form,
496
- isEdit = _props.isEdit,
497
- fieldMap = _props.fieldMap,
498
- title = _props.title;
499
-
500
- var dataList = this.getDataList(fieldMap);
501
- if (isEdit) {
502
- return _react2.default.createElement(
503
- 'form',
504
- null,
505
- _react2.default.createElement(
506
- _list2.default,
507
- { renderHeader: function renderHeader() {
508
- return title;
509
- } },
510
- dataList.map(function (item) {
511
- return _react2.default.createElement(
512
- 'div',
513
- { className: (0, _classnames2.default)('nh-dynamic-list-item', { 'nh-dynamic-required': item.required }) },
514
- item.render !== undefined ? item.render() : null
515
- );
516
- })
517
- ),
518
- _react2.default.createElement(_whiteSpace2.default, { size: 'lg' })
519
- );
520
- }
521
- return _react2.default.createElement(
522
- 'div',
523
- null,
524
- _react2.default.createElement(
525
- _card2.default,
526
- { full: true },
527
- _react2.default.createElement(_card2.default.Header, {
528
- title: _react2.default.createElement(
529
- 'div',
530
- { style: { borderLeft: '3px solid #1890ff', paddingLeft: '10px' } },
531
- title
532
- )
533
- }),
534
- _react2.default.createElement(
535
- _card2.default.Body,
536
- null,
537
- dataList.map(function (item, index) {
538
- if (item.isUpload) {
539
- return _react2.default.createElement(
540
- 'div',
541
- { key: index },
542
- _react2.default.createElement(
543
- 'font',
544
- { color: 'grey' },
545
- item.title,
546
- '\uFF1A '
547
- ),
548
- item.renderView()
549
- );
550
- }
551
- return _react2.default.createElement(
552
- 'div',
553
- null,
554
- _react2.default.createElement(
555
- 'font',
556
- { color: 'grey' },
557
- item.title,
558
- '\uFF1A '
559
- ),
560
- item.text,
561
- _react2.default.createElement('br', null)
562
- );
563
- })
564
- )
565
- ),
566
- _react2.default.createElement(_whiteSpace2.default, { size: 'lg' })
567
- );
568
- }
569
- }]);
570
-
571
- return EditInitForm;
572
- }(_react2.default.Component);
573
-
574
- var EditForm = (0, _rcForm.createForm)()(EditInitForm);
575
- exports.default = EditForm;