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.
Files changed (213) hide show
  1. package/README.md +12 -2
  2. package/lib/components/Button/index.js +79 -0
  3. package/lib/components/HqSelector/HqLsrySelector/index.js +3 -5
  4. package/lib/components/HqSelector/HqRySelector/index.js +3 -5
  5. package/lib/components/HqSelector/HqWzSelector/index.js +3 -5
  6. package/lib/components/KyEditableTable/component.js +3 -5
  7. package/lib/components/KyEditableTable/index.js +7 -13
  8. package/lib/components/KyExcel/index.js +3 -5
  9. package/lib/components/KyInputPicker/render.js +13 -43
  10. package/lib/components/KyInputPicker/setting-checkbox.js +3 -5
  11. package/lib/components/KyInputPicker/setting-multiSelect.js +3 -5
  12. package/lib/components/KyInputPicker/setting-nhcascader.js +3 -5
  13. package/lib/components/KyInputPicker/setting-select.js +3 -5
  14. package/lib/components/KyInputPicker/setting-stu-selector.js +3 -5
  15. package/lib/components/KyInputPicker/setting-tea-selector.js +3 -5
  16. package/lib/components/KyTable/checkButtons.js +4 -7
  17. package/lib/components/KyTree/index.js +6 -16
  18. package/lib/components/KyUpload/index.js +13 -21
  19. package/lib/components/NHAuditPanel/config/Axios.js +263 -0
  20. package/lib/components/NHAuditPanel/config/api.js +479 -0
  21. package/lib/components/NHAuditPanel/config/data.js +156 -0
  22. package/lib/components/NHAuditPanel/config/typeMap.js +1234 -0
  23. package/lib/components/NHAuditPanel/config/uiValidate.js +92 -0
  24. package/lib/components/NHAuditPanel/index.js +413 -0
  25. package/lib/components/NHAuditPanel/node.js +619 -0
  26. package/lib/components/NHCascader/index.js +355 -0
  27. package/lib/components/NHCheckboxGroup/index.js +135 -0
  28. package/lib/components/NHDynamicFormShow/baseInfo/index.js +194 -0
  29. package/lib/components/NHDynamicFormShow/custom/index.js +553 -0
  30. package/lib/components/NHDynamicFormShow/customModule/common/CommonMethod.js +43 -0
  31. package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/EditForm.js +1113 -0
  32. package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/index.js +263 -0
  33. package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/EditForm.js +880 -0
  34. package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/index.js +171 -0
  35. package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/EditForm.js +865 -0
  36. package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/index.js +138 -0
  37. package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/EditForm.js +571 -0
  38. package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/index.js +147 -0
  39. package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/EditForm.js +474 -0
  40. package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/index.js +139 -0
  41. package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/EditForm.js +506 -0
  42. package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/index.js +143 -0
  43. package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/EditForm.js +1074 -0
  44. package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/index.js +172 -0
  45. package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/EditForm.js +927 -0
  46. package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/index.js +195 -0
  47. package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/EditForm.js +1064 -0
  48. package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/index.js +183 -0
  49. package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/EditForm.js +763 -0
  50. package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/index.js +137 -0
  51. package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/EditForm.js +819 -0
  52. package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/index.js +137 -0
  53. package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/EditForm.js +700 -0
  54. package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/index.js +162 -0
  55. package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/EditForm.js +743 -0
  56. package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/index.js +177 -0
  57. package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/EditForm.js +848 -0
  58. package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/index.js +138 -0
  59. package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/EditForm.js +777 -0
  60. package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/index.js +161 -0
  61. package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/EditForm.js +706 -0
  62. package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/index.js +130 -0
  63. package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/cfjcEditForm.js +413 -0
  64. package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/index.js +135 -0
  65. package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/EditForm.js +1013 -0
  66. package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/index.js +175 -0
  67. package/lib/components/NHDynamicFormShow/customModule/jjrlx/EditForm.js +1345 -0
  68. package/lib/components/NHDynamicFormShow/customModule/jjrlx/index.js +274 -0
  69. package/lib/components/NHDynamicFormShow/customModule/jxj/EditForm.js +669 -0
  70. package/lib/components/NHDynamicFormShow/customModule/jxj/index.js +134 -0
  71. package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/EditForm.js +378 -0
  72. package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/index.js +120 -0
  73. package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/EditForm.js +638 -0
  74. package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/index.js +133 -0
  75. package/lib/components/NHDynamicFormShow/customModule/qgzx/EditForm.js +965 -0
  76. package/lib/components/NHDynamicFormShow/customModule/qgzx/index.js +237 -0
  77. package/lib/components/NHDynamicFormShow/customModule/qjgl/EditForm.js +823 -0
  78. package/lib/components/NHDynamicFormShow/customModule/qjgl/index.js +188 -0
  79. package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/EditForm.js +401 -0
  80. package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/index.js +472 -0
  81. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/EditForm.js +304 -0
  82. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHCascader/index.js +375 -0
  83. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/RadioGroup.js +118 -0
  84. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/index.js +62 -0
  85. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/input-const.js +55 -0
  86. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/render.js +1238 -0
  87. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/index.js +375 -0
  88. package/lib/components/NHDynamicFormShow/customModule/rych/collective/EditForm.js +554 -0
  89. package/lib/components/NHDynamicFormShow/customModule/rych/collective/index.js +130 -0
  90. package/lib/components/NHDynamicFormShow/customModule/rych/personal/EditForm.js +542 -0
  91. package/lib/components/NHDynamicFormShow/customModule/rych/personal/index.js +133 -0
  92. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/EditForm.js +575 -0
  93. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/index.js +130 -0
  94. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/EditForm.js +563 -0
  95. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/index.js +133 -0
  96. package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/EditForm.js +745 -0
  97. package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/index.js +164 -0
  98. package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/EditForm.js +587 -0
  99. package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/index.js +143 -0
  100. package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/EditForm.js +743 -0
  101. package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/index.js +172 -0
  102. package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/EditForm.js +1410 -0
  103. package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/index.js +274 -0
  104. package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/EditForm.js +755 -0
  105. package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/index.js +130 -0
  106. package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/EditForm.js +814 -0
  107. package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/index.js +188 -0
  108. package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/EditForm.js +769 -0
  109. package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/index.js +130 -0
  110. package/lib/components/NHDynamicFormShow/customModule/whgcrych/EditForm.js +1004 -0
  111. package/lib/components/NHDynamicFormShow/customModule/whgcrych/index.js +126 -0
  112. package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/EditForm.js +503 -0
  113. package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/index.js +149 -0
  114. package/lib/components/NHDynamicFormShow/customModule/whtlyhk/EditForm.js +379 -0
  115. package/lib/components/NHDynamicFormShow/customModule/whtlyhk/index.js +148 -0
  116. package/lib/components/NHDynamicFormShow/customModule/whtlzxj/EditForm.js +748 -0
  117. package/lib/components/NHDynamicFormShow/customModule/whtlzxj/index.js +135 -0
  118. package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/EditForm.js +762 -0
  119. package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/index.js +134 -0
  120. package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/cfjcEditForm.js +682 -0
  121. package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/index.js +135 -0
  122. package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/index.js +152 -0
  123. package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/wjsbEditForm.js +783 -0
  124. package/lib/components/NHDynamicFormShow/customModule/zxj/EditForm.js +764 -0
  125. package/lib/components/NHDynamicFormShow/customModule/zxj/index.js +138 -0
  126. package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/cfjcEditForm.js +677 -0
  127. package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/index.js +138 -0
  128. package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/EditForm.js +1173 -0
  129. package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/index.js +242 -0
  130. package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistForm.js +862 -0
  131. package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistIndex.js +201 -0
  132. package/lib/components/NHDynamicFormShow/customModule/zzsd/stuinfo/messageInfo.js +196 -0
  133. package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/index.js +167 -0
  134. package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/wjsbEditForm.js +1096 -0
  135. package/lib/components/NHDynamicFormShow/index.js +647 -0
  136. package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/cardItem/index.js +279 -0
  137. package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/index.js +206 -0
  138. package/lib/components/NHDynamicFormShow/oneOnMany/index.js +419 -0
  139. package/lib/components/NHDynamicFormShow/oneOnOne/EditForm.js +401 -0
  140. package/lib/components/NHDynamicFormShow/oneOnOne/index.js +271 -0
  141. package/lib/components/NHImagePicker/index.js +554 -0
  142. package/lib/components/NHInputPicker/RadioGroup.js +118 -0
  143. package/lib/components/NHInputPicker/index.js +62 -0
  144. package/lib/components/NHInputPicker/input-const.js +55 -0
  145. package/lib/components/NHInputPicker/render.js +1271 -0
  146. package/lib/components/NHListView/index.js +374 -0
  147. package/lib/components/NHMapGeolocation/index.js +537 -0
  148. package/lib/components/NHMapGeolocation/initMap/initGdMap.js +104 -0
  149. package/lib/components/NHMapGeolocation/initMap/initTencentMap.js +138 -0
  150. package/lib/components/NHMapGeolocation/style.js +51 -0
  151. package/lib/components/NHMultiSelect/index.js +272 -0
  152. package/lib/components/NHRadioGroup/index.js +118 -0
  153. package/lib/components/NHSelect/index.js +364 -0
  154. package/lib/components/NHTreeMenu/index.js +126 -0
  155. package/lib/components/NHTreeMenu/treeNode.js +164 -0
  156. package/lib/components/StuSelector/index.js +611 -0
  157. package/lib/index.js +161 -116
  158. package/lib/layouts/KyInputPicker/edit-page.js +585 -0
  159. package/lib/layouts/KyInputPicker/index.js +220 -0
  160. package/lib/layouts/KyInputPicker/input-const.js +134 -0
  161. package/lib/layouts/KyInputPicker/render.js +2477 -0
  162. package/lib/layouts/KyInputPicker/setting-checkbox.js +850 -0
  163. package/lib/layouts/KyInputPicker/setting-datepicker.js +430 -0
  164. package/lib/layouts/KyInputPicker/setting-datetimepicker.js +443 -0
  165. package/lib/layouts/KyInputPicker/setting-input.js +555 -0
  166. package/lib/layouts/KyInputPicker/setting-inputNumber.js +612 -0
  167. package/lib/layouts/KyInputPicker/setting-monthpicker.js +434 -0
  168. package/lib/layouts/KyInputPicker/setting-multiSelect.js +532 -0
  169. package/lib/layouts/KyInputPicker/setting-nhcascader.js +584 -0
  170. package/lib/layouts/KyInputPicker/setting-old-upload.js +428 -0
  171. package/lib/layouts/KyInputPicker/setting-radio.js +468 -0
  172. package/lib/layouts/KyInputPicker/setting-rangepicker.js +466 -0
  173. package/lib/layouts/KyInputPicker/setting-select.js +534 -0
  174. package/lib/layouts/KyInputPicker/setting-stu-selector.js +507 -0
  175. package/lib/layouts/KyInputPicker/setting-switch.js +274 -0
  176. package/lib/layouts/KyInputPicker/setting-tea-selector.js +507 -0
  177. package/lib/layouts/KyInputPicker/setting-textarea.js +619 -0
  178. package/lib/layouts/KyInputPicker/setting-timepicker.js +437 -0
  179. package/lib/layouts/KyInputPicker/setting-upload.js +766 -0
  180. package/lib/layouts/KyModal/buildTitle.js +81 -0
  181. package/lib/layouts/KyModal/dragM.js +127 -0
  182. package/lib/layouts/KyModal/index.js +321 -0
  183. package/lib/layouts/KyPreview/index.js +219 -0
  184. package/lib/layouts/KyUpload/index.js +1155 -0
  185. package/lib/layouts/LeftMenu/index.js +5 -11
  186. package/lib/layouts/NavigationBar/index.js +4 -10
  187. package/lib/layouts/Top/editPassWord.js +5 -7
  188. package/lib/layouts/Top/index.js +6 -20
  189. package/lib/layouts/TopMenu/index.js +11 -14
  190. package/lib/layouts/layout/index.js +7 -13
  191. package/lib/layouts/{Login → login}/index-pre.js +3 -5
  192. package/lib/layouts/{Login → login}/index.js +6 -8
  193. package/lib/layouts/{Login → login}/login.js +8 -17
  194. package/lib/layouts/mixTop/index.js +13 -28
  195. package/lib/layouts/settingDrawer/index.js +3 -5
  196. package/lib/routes/AuthorizedRoute.js +7 -13
  197. package/lib/utils/NHCore.js +46 -2
  198. package/lib/utils/base64.js +238 -0
  199. package/lib/utils/browserJudge.js +33 -0
  200. package/lib/utils/common.js +18 -20
  201. package/lib/utils/createUuid.js +11 -31
  202. package/lib/utils/device.js +44 -0
  203. package/lib/utils/dynamicLoadCss.js +14 -0
  204. package/lib/utils/dynamicLoadJs.js +21 -0
  205. package/lib/utils/getLoginUser.js +1 -1
  206. package/lib/utils/getSize.js +2 -11
  207. package/lib/utils/getStyle.js +26 -0
  208. package/lib/utils/getSuitHeight.js +49 -0
  209. package/lib/utils/hasAuth.js +11 -0
  210. package/lib/utils/index.js +1 -34
  211. package/lib/utils/loadJS.js +40 -0
  212. package/package.json +1 -1
  213. /package/lib/layouts/{Login → login}/lyPassword.js +0 -0
@@ -0,0 +1,819 @@
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 _textareaItem = require('antd-mobile/lib/textarea-item');
16
+
17
+ var _textareaItem2 = _interopRequireDefault(_textareaItem);
18
+
19
+ var _stepper = require('antd-mobile/lib/stepper');
20
+
21
+ var _stepper2 = _interopRequireDefault(_stepper);
22
+
23
+ var _picker = require('antd-mobile/lib/picker');
24
+
25
+ var _picker2 = _interopRequireDefault(_picker);
26
+
27
+ var _list = require('antd-mobile/lib/list');
28
+
29
+ var _list2 = _interopRequireDefault(_list);
30
+
31
+ var _inputItem = require('antd-mobile/lib/input-item');
32
+
33
+ var _inputItem2 = _interopRequireDefault(_inputItem);
34
+
35
+ var _modal = require('antd-mobile/lib/modal');
36
+
37
+ var _modal2 = _interopRequireDefault(_modal);
38
+
39
+ var _toast = require('antd-mobile/lib/toast');
40
+
41
+ var _toast2 = _interopRequireDefault(_toast);
42
+
43
+ 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; };
44
+
45
+ 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; }; }();
46
+
47
+ require('antd-mobile/lib/card/style/css');
48
+
49
+ require('antd-mobile/lib/white-space/style/css');
50
+
51
+ require('antd-mobile/lib/textarea-item/style/css');
52
+
53
+ require('antd-mobile/lib/stepper/style/css');
54
+
55
+ require('antd-mobile/lib/picker/style/css');
56
+
57
+ require('antd-mobile/lib/list/style/css');
58
+
59
+ require('antd-mobile/lib/input-item/style/css');
60
+
61
+ require('antd-mobile/lib/modal/style/css');
62
+
63
+ require('antd-mobile/lib/toast/style/css');
64
+
65
+ var _react = require('react');
66
+
67
+ var _react2 = _interopRequireDefault(_react);
68
+
69
+ var _NHFetch = require('../../../../../utils/NHFetch');
70
+
71
+ var _NHFetch2 = _interopRequireDefault(_NHFetch);
72
+
73
+ var _index = require('../../../../NHImagePicker/index');
74
+
75
+ var _index2 = _interopRequireDefault(_index);
76
+
77
+ var _rcForm = require('rc-form');
78
+
79
+ var _classnames = require('classnames');
80
+
81
+ var _classnames2 = _interopRequireDefault(_classnames);
82
+
83
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
84
+
85
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
86
+
87
+ 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; }
88
+
89
+ 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';
90
+
91
+
92
+ var EditInitForm = function (_React$Component) {
93
+ _inherits(EditInitForm, _React$Component);
94
+
95
+ function EditInitForm(props) {
96
+ _classCallCheck(this, EditInitForm);
97
+
98
+ var _this = _possibleConstructorReturn(this, (EditInitForm.__proto__ || Object.getPrototypeOf(EditInitForm)).call(this, props));
99
+
100
+ _this.componentDidMount = function () {
101
+ _this.initJxjForm();
102
+ };
103
+
104
+ _this.initJxjForm = function () {
105
+ var _this$props = _this.props,
106
+ objId = _this$props.objId,
107
+ pkid = _this$props.pkid,
108
+ params = _this$props.params;
109
+
110
+ var pcid = params.pcid; //批次ID,也就是任务ID
111
+ (0, _NHFetch2.default)('api/sm-scholarship/openapi/getDymxByGzfbid/' + pcid, 'GET').then(function (res) {
112
+ if (res) {
113
+ var mxsm = res.data.length;
114
+ if (mxsm === 1) {
115
+ //对应的奖项定义是不分等级的
116
+ _this.setState({
117
+ mxsm: 1,
118
+ mxid: res.data[0].MXID,
119
+ djmc: res.data[0].DJMC,
120
+ sfgdje: res.data[0].SFGDJE,
121
+ gdjj: res.data[0].GDJJ,
122
+ zdjj: res.data[0].ZDJJ,
123
+ zxjj: res.data[0].ZXJJ,
124
+ pjzqdm: res.data[0].SJDM,
125
+ pjzq: res.data[0].SJMC,
126
+ //当奖项定义不是固定金额的时候,申请时je会被作为奖金的初始化值,这个初始化值取奖项定义的最小奖金
127
+ je: res.data[0].SFGDJE === '1' ? 0 : res.data[0].ZXJJ
128
+
129
+ }, function () {
130
+
131
+ //判断是否有资格申请该奖项
132
+ var param = {
133
+ xsid: objId,
134
+ gzfbid: pcid,
135
+ mxid: res.data[0].MXID
136
+ };
137
+ _this.hasQualification(param);
138
+ });
139
+ } else {
140
+ //对应的奖项是分了多个等级的
141
+ var djxx = [];
142
+ res.data.map(function (v, i) {
143
+ djxx.push({ label: v.DJMC, value: v.MXID });
144
+ // return <Option value={v.MXID} key={i}>{v.DJMC}</Option>;
145
+ });
146
+ var mxidxx = res.data.map(function (v, i) {
147
+ return v.MXID;
148
+ });
149
+ var gdjjxx = res.data.map(function (v, i) {
150
+ return v.GDJJ;
151
+ });
152
+ _this.setState({
153
+ mxsm: mxsm,
154
+ djxx: djxx,
155
+ pjzqdm: res.data[0].SJDM,
156
+ pjzq: res.data[0].SJMC,
157
+ mxidxx: mxidxx,
158
+ gdjjxx: gdjjxx
159
+ });
160
+ }
161
+
162
+ //通过主键ID获取获奖名单表对应的数据
163
+ _this.getData(pkid);
164
+ }
165
+ });
166
+ };
167
+
168
+ _this.getData = function (pkid) {
169
+ //通过PKID去查询是否有申请数据,有说明是审核
170
+ (0, _NHFetch2.default)('api/sm-scholarship/openapi/getXshjmdByPkidHblgxy/' + pkid, 'GET').then(function (res) {
171
+ if (res && res.code === 200) {
172
+ if (res.data != null) {
173
+ _this.setState({
174
+ mxid: res.data.MXID,
175
+ pjzq: res.data.SJMC,
176
+ pjzqdm: res.data.SJDM,
177
+ //对于不固定金额的情况,审核时页面的金额应该是从申请数据里拿了,所以je的值要重新覆盖下
178
+ je: res.data.JE,
179
+ sqly: res.data.SQLY,
180
+ fjid: res.data.FJID,
181
+ djmc: res.data.DJMC,
182
+ sfgdje: res.data.SFGDJE,
183
+ gdjj: res.data.GDJJ,
184
+ zdjj: res.data.ZDJJ,
185
+ zxjj: res.data.ZXJJ,
186
+ //只有当奖项是分等级的时候,gdjjBydj这个值才会用到。所以直接给它赋值res.data.JE
187
+ gdjjBydj: res.data.JE,
188
+ bxnsqzyyt: res.data.BXNSQZYYT,
189
+ sxnszje: res.data.SXNSZJE,
190
+ sxnzzzyyt: res.data.SXNZZZYYT,
191
+ bjpy: res.data.BJPY,
192
+ pxzy: res.data.PXZY
193
+ });
194
+ }
195
+ } else {
196
+ _toast2.default.fail("调用接口失败");
197
+ }
198
+ });
199
+ };
200
+
201
+ _this.hasQualification = function (param) {
202
+ _this.props.setSubmitBtnDisabled && _this.props.setSubmitBtnDisabled(true); //默认办理按钮不可用
203
+ (0, _NHFetch2.default)('api/sm-scholarship/openapi/hasQualification', 'POST', param).then(function (res) {
204
+ if (res && res.code === 200) {
205
+ // const key = `open${Date.now()}`;
206
+ // const btn = (<Button type="primary" size="small" onClick={() => notification.close(key)}>确定</Button>)
207
+
208
+ if (!res.data.ZGMDID) {
209
+ //资格名单表查不到记录,调用资格鉴定接口
210
+ var zgid = res.data.ZGID2 ? res.data.ZGID2 : res.data.ZGID1;
211
+ (0, _NHFetch2.default)("api/sm-qualification/openapi/qualifications/checkOne?zgid=" + zgid + "&id=" + param.xsid + "&t=" + new Date().getTime(), "GET").then(function (res) {
212
+ if (res && res.code === 200) {
213
+
214
+ if (res.data.zt === '0' || res.data.zt === 0) {
215
+ var bfhtjs = res.data.bfhtj.split(";");
216
+ var bfhtj = bfhtjs.map(function (item, index) {
217
+ return _react2.default.createElement(
218
+ 'span',
219
+ { key: index + 1 },
220
+ index + 1,
221
+ '\u3001',
222
+ item,
223
+ _react2.default.createElement('br', null)
224
+ );
225
+ });
226
+
227
+ var msgTip = '';
228
+ if (bfhtjs && bfhtjs.length > 0) {
229
+ for (var i = 0; i < bfhtjs.length; i++) {
230
+ var currentTip = i + 1 + ' ' + bfhtjs[i] + ' ';
231
+ msgTip += currentTip;
232
+ }
233
+ }
234
+
235
+ var modelMessage = "您由于不满足以下条件,所以不能执行申请操作:" + msgTip;
236
+ _modal2.default.alert('提示', modelMessage);
237
+ } else {
238
+ _this.props.setSubmitBtnDisabled && _this.props.setSubmitBtnDisabled(false); //CheackOne通过后开启办理按钮
239
+ }
240
+ } else {
241
+ _toast2.default.fail("调用接口失败");
242
+ }
243
+ });
244
+ } else {
245
+ //表里有数据,看sfyx字段的状态
246
+
247
+ if (res.data.SFYX === "0" || res.data.SFYX === 0) {
248
+ var modelMessage = "您由于不满足以下条件,所以不能执行申请操作:" + res.data.SFYXLY;
249
+ _modal2.default.alert('提示', modelMessage);
250
+ } else {
251
+ _this.props.setSubmitBtnDisabled && _this.props.setSubmitBtnDisabled(false); //能办理的话开启办理按钮
252
+ }
253
+ }
254
+ } else {
255
+ _toast2.default.fail("调用接口失败");
256
+ }
257
+ });
258
+ };
259
+
260
+ _this.changeDj = function (v) {
261
+ var _this$props2 = _this.props,
262
+ objId = _this$props2.objId,
263
+ params = _this$props2.params;
264
+ var _this$state = _this.state,
265
+ mxidxx = _this$state.mxidxx,
266
+ gdjjxx = _this$state.gdjjxx;
267
+
268
+ if (!v && v.length < 1) return;
269
+ var index = mxidxx.findIndex(function (item) {
270
+ return item === v[0];
271
+ });
272
+ _this.setState({
273
+ gdjjBydj: gdjjxx[index]
274
+ }, function () {
275
+ //验证是否有资格申请
276
+ var param = {
277
+ xsid: objId,
278
+ gzfbid: params.pcid,
279
+ mxid: v[0]
280
+ };
281
+ _this.props.form.setFieldsValue({ je: gdjjxx[index] });
282
+ _this.hasQualification(param);
283
+ });
284
+ };
285
+
286
+ _this.onChangeStepper = function (val) {
287
+ _this.setState({ je: val });
288
+ };
289
+
290
+ _this.requiredParams = function (required, id) {
291
+ var getFieldError = _this.props.form.getFieldError;
292
+
293
+ return {
294
+ error: getFieldError(id) !== undefined
295
+ };
296
+ };
297
+
298
+ _this.getDataList = function (fieldMap) {
299
+ // const { getFieldDecorator } = this.props.form;
300
+ var _this$props$form = _this.props.form,
301
+ getFieldProps = _this$props$form.getFieldProps,
302
+ getFieldError = _this$props$form.getFieldError;
303
+ var _this$state2 = _this.state,
304
+ mxsm = _this$state2.mxsm,
305
+ mxid = _this$state2.mxid,
306
+ djmc = _this$state2.djmc,
307
+ djxx = _this$state2.djxx,
308
+ sfgdje = _this$state2.sfgdje,
309
+ gdjj = _this$state2.gdjj,
310
+ zdjj = _this$state2.zdjj,
311
+ zxjj = _this$state2.zxjj,
312
+ gdjjBydj = _this$state2.gdjjBydj,
313
+ pjzq = _this$state2.pjzq,
314
+ pjzqdm = _this$state2.pjzqdm,
315
+ je = _this$state2.je,
316
+ sqly = _this$state2.sqly,
317
+ fjid = _this$state2.fjid,
318
+ bxnsqzyyt = _this$state2.bxnsqzyyt,
319
+ sxnszje = _this$state2.sxnszje,
320
+ sxnzzzyyt = _this$state2.sxnzzzyyt,
321
+ bjpy = _this$state2.bjpy,
322
+ pxzy = _this$state2.pxzy;
323
+
324
+ var dataList = [];
325
+
326
+ if (fieldMap.DJMC && fieldMap.DJMC.sfxs === '1') {
327
+ var required = fieldMap.DJMC.sfbt === "1" ? true : false;
328
+ var editable = fieldMap.DJMC.sfbj === "1" ? true : false;
329
+ if (mxsm === 1) {
330
+ //没有分等级的,奖项名称始终显示
331
+ dataList.push({
332
+ title: fieldMap.DJMC.title,
333
+ text: djmc,
334
+ required: required,
335
+ render: function render() {
336
+ getFieldProps('mxid', {
337
+ initialValue: mxid
338
+ });
339
+ return _react2.default.createElement(
340
+ _inputItem2.default,
341
+ {
342
+ className: 'nh-input-item',
343
+ placeholder: '\u8BF7\u8F93\u5165',
344
+ value: djmc,
345
+ editable: false,
346
+ disabled: !editable
347
+ },
348
+ fieldMap.DJMC.title
349
+ );
350
+ }
351
+ });
352
+ } else {
353
+ //分等级,申请的时候奖项名称始终是一个下拉框
354
+ dataList.push({
355
+ // id: 'dymx',
356
+ title: fieldMap.DJMC.title,
357
+ required: required,
358
+ text: djmc,
359
+ render: function render() {
360
+ return _react2.default.createElement(
361
+ 'div',
362
+ {
363
+ className: (0, _classnames2.default)({ 'nh-inputrender': editable, 'nh-inputrender-disabled': !editable })
364
+ },
365
+ _react2.default.createElement(
366
+ _picker2.default,
367
+ _extends({
368
+ data: djxx,
369
+ cols: 1,
370
+ className: 'forss',
371
+ disabled: !editable
372
+ }, getFieldProps('mxid', {
373
+ initialValue: typeof mxid === 'string' ? [mxid] : mxid,
374
+ rules: [{ required: required, message: '\u8BF7\u8F93\u5165' + fieldMap.DJMC.title }],
375
+ onChange: _this.changeDj
376
+ })),
377
+ _react2.default.createElement(
378
+ _list2.default.Item,
379
+ _extends({ arrow: 'horizontal' }, _this.requiredParams(required, 'mxid')),
380
+ fieldMap.DJMC.title
381
+ )
382
+ )
383
+ );
384
+ }
385
+ });
386
+ }
387
+ }
388
+
389
+ if (fieldMap.JE && fieldMap.JE.sfxs === '1') {
390
+ var _required = fieldMap.JE.sfbt === "1" ? true : false;
391
+ var _editable = fieldMap.JE.sfbj === "1" ? true : false;
392
+ if (mxsm === 1) {
393
+ //没有分等级的
394
+ if (sfgdje === '1') {
395
+ //固定奖金
396
+ dataList.push({
397
+ title: fieldMap.JE.title,
398
+ text: gdjj,
399
+ required: _required,
400
+ render: function render() {
401
+ return _react2.default.createElement(
402
+ _inputItem2.default,
403
+ _extends({
404
+ className: 'nh-input-item',
405
+ placeholder: '\u8BF7\u8F93\u5165',
406
+ editable: false,
407
+ disabled: !_editable
408
+ }, _this.requiredParams(_required, 'je'), getFieldProps('je', {
409
+ initialValue: gdjj,
410
+ rules: [{ required: _required, message: '\u8BF7\u8F93\u5165' + fieldMap.JE.title }]
411
+ })),
412
+ fieldMap.JE.title
413
+ );
414
+ }
415
+ });
416
+ } else {
417
+ //没有固定金额
418
+ dataList.push({
419
+ title: fieldMap.JE.title,
420
+ required: _required,
421
+ text: je,
422
+ render: function render() {
423
+ return _react2.default.createElement(
424
+ _list2.default.Item,
425
+ { extra: _react2.default.createElement(_stepper2.default, _extends({
426
+ style: { width: '100%', minWidth: '100px' },
427
+ showNumber: true,
428
+ max: zdjj,
429
+ min: zxjj,
430
+ disabled: !_editable
431
+ }, getFieldProps('je', {
432
+ initialValue: je,
433
+ rules: [{ required: _required, message: '\u8BF7\u8F93\u5165' + fieldMap.JE.title }],
434
+ onChange: _this.onChangeStepper
435
+ })))
436
+ },
437
+ fieldMap.JE.title
438
+ );
439
+ }
440
+ });
441
+ }
442
+ } else {
443
+ //分等级的,每个等级都是固定金额,但金额要跟着等级变化
444
+ dataList.push({
445
+ title: fieldMap.JE.title,
446
+ text: gdjjBydj,
447
+ required: _required,
448
+ render: function render() {
449
+ return _react2.default.createElement(
450
+ _inputItem2.default,
451
+ _extends({
452
+ className: 'nh-input-item',
453
+ placeholder: '\u8BF7\u8F93\u5165',
454
+ editable: false,
455
+ disabled: !_editable
456
+ }, _this.requiredParams(_required, 'je'), getFieldProps('je', {
457
+ initialValue: gdjjBydj,
458
+ rules: [{ required: _required, message: '\u8BF7\u8F93\u5165' + fieldMap.JE.title }]
459
+ })),
460
+ fieldMap.JE.title
461
+ );
462
+ }
463
+ });
464
+ }
465
+ }
466
+
467
+ if (fieldMap.PJZQ && fieldMap.PJZQ.sfxs === '1') {
468
+ var _required2 = fieldMap.PJZQ.sfbt === "1" ? true : false;
469
+ var _editable2 = fieldMap.PJZQ.sfbj === "1" ? true : false;
470
+ dataList.push({
471
+ id: 'pjzq',
472
+ title: fieldMap.PJZQ.title,
473
+ text: pjzq,
474
+ required: _required2,
475
+ render: function render() {
476
+ getFieldProps('pjzq', {
477
+ initialValue: pjzqdm
478
+ });
479
+ return _react2.default.createElement(
480
+ _inputItem2.default,
481
+ {
482
+ className: 'nh-input-item',
483
+ placeholder: '\u8BF7\u8F93\u5165',
484
+ editable: false,
485
+ disabled: !_editable2,
486
+ value: pjzq
487
+ },
488
+ fieldMap.PJZQ.title
489
+ );
490
+ }
491
+
492
+ });
493
+ }
494
+ if (fieldMap.SXNSZJE && fieldMap.SXNSZJE.sfxs === '1') {
495
+ var _required3 = fieldMap.SXNSZJE.sfbt === "1" ? true : false;
496
+ var _editable3 = fieldMap.SXNSZJE.sfbj === "1" ? true : false;
497
+ dataList.push({
498
+ id: 'sxnszje',
499
+ title: fieldMap.SXNSZJE.title,
500
+ text: sxnszje,
501
+ required: _required3,
502
+ render: function render() {
503
+ getFieldProps('sxnszje', {
504
+ initialValue: sxnszje
505
+ });
506
+ return _react2.default.createElement(
507
+ _inputItem2.default,
508
+ _extends({
509
+ className: 'nh-input-item',
510
+ placeholder: '\u8BF7\u8F93\u5165',
511
+ editable: _editable3,
512
+ disabled: !_editable3
513
+ }, _this.requiredParams(_required3, 'sxnszje'), getFieldProps('sxnszje', {
514
+ initialValue: sxnszje,
515
+ rules: [{ required: _required3, message: '\u8BF7\u8F93\u5165' + fieldMap.SXNSZJE.title }]
516
+ })),
517
+ fieldMap.SXNSZJE.title
518
+ );
519
+ }
520
+
521
+ });
522
+ }
523
+ if (fieldMap.SXNZZZYYT && fieldMap.SXNZZZYYT.sfxs === '1') {
524
+ var _required4 = fieldMap.SXNZZZYYT.sfbt === "1" ? true : false;
525
+ var _editable4 = fieldMap.SXNZZZYYT.sfbj === "1" ? true : false;
526
+ dataList.push({
527
+ id: 'sxnzzzyyt',
528
+ title: fieldMap.SXNZZZYYT.title,
529
+ text: sxnzzzyyt,
530
+ required: _required4,
531
+ isUpload: false,
532
+ render: function render() {
533
+ return _react2.default.createElement(_textareaItem2.default, _extends({
534
+ title: fieldMap.SXNZZZYYT.title,
535
+ placeholder: '\u8BF7\u8F93\u5165',
536
+ rows: 3,
537
+ count: 500,
538
+ editable: _editable4,
539
+ disabled: !_editable4
540
+ }, _this.requiredParams(_required4, 'sxnzzzyyt'), getFieldProps('sxnzzzyyt', {
541
+ initialValue: sxnzzzyyt,
542
+ rules: [{ required: _required4, message: '\u8BF7\u8F93\u5165' + fieldMap.SXNZZZYYT.title }],
543
+ onChange: function onChange(v) {
544
+ return _this.setState({ sxnzzzyyt: v });
545
+ }
546
+ })));
547
+ }
548
+ });
549
+ }
550
+ if (fieldMap.BXNSQZYYT && fieldMap.BXNSQZYYT.sfxs === '1') {
551
+ var _required5 = fieldMap.BXNSQZYYT.sfbt === "1" ? true : false;
552
+ var _editable5 = fieldMap.BXNSQZYYT.sfbj === "1" ? true : false;
553
+ dataList.push({
554
+ id: 'bxnsqzyyt',
555
+ title: fieldMap.BXNSQZYYT.title,
556
+ text: bxnsqzyyt,
557
+ required: _required5,
558
+ isUpload: false,
559
+ render: function render() {
560
+ return _react2.default.createElement(_textareaItem2.default, _extends({
561
+ title: fieldMap.BXNSQZYYT.title,
562
+ placeholder: '\u8BF7\u8F93\u5165',
563
+ rows: 3,
564
+ count: 500,
565
+ editable: _editable5,
566
+ disabled: !_editable5
567
+ }, _this.requiredParams(_required5, 'bxnsqzyyt'), getFieldProps('bxnsqzyyt', {
568
+ initialValue: bxnsqzyyt,
569
+ rules: [{ required: _required5, message: '\u8BF7\u8F93\u5165' + fieldMap.BXNSQZYYT.title }],
570
+ onChange: function onChange(v) {
571
+ return _this.setState({ bxnsqzyyt: v });
572
+ }
573
+ })));
574
+ }
575
+ });
576
+ }
577
+ if (fieldMap.SQLY && fieldMap.SQLY.sfxs === '1') {
578
+ var _required6 = fieldMap.SQLY.sfbt === "1" ? true : false;
579
+ var _editable6 = fieldMap.SQLY.sfbj === "1" ? true : false;
580
+ dataList.push({
581
+ id: 'sqly',
582
+ title: fieldMap.SQLY.title,
583
+ text: sqly,
584
+ required: _required6,
585
+ isUpload: false,
586
+ render: function render() {
587
+ return _react2.default.createElement(_textareaItem2.default, _extends({
588
+ title: fieldMap.SQLY.title,
589
+ placeholder: '\u8BF7\u8F93\u5165',
590
+ rows: 3,
591
+ count: 500,
592
+ editable: _editable6,
593
+ disabled: !_editable6
594
+ }, _this.requiredParams(_required6, 'sqly'), getFieldProps('sqly', {
595
+ initialValue: sqly,
596
+ rules: [{ required: _required6, message: '\u8BF7\u8F93\u5165' + fieldMap.SQLY.title }],
597
+ onChange: function onChange(v) {
598
+ return _this.setState({ sqly: v });
599
+ }
600
+ })));
601
+ }
602
+ });
603
+ }
604
+ if (fieldMap.BJPY && fieldMap.BJPY.sfxs === '1') {
605
+ var _required7 = fieldMap.BJPY.sfbt === "1" ? true : false;
606
+ var _editable7 = fieldMap.BJPY.sfbj === "1" ? true : false;
607
+ dataList.push({
608
+ id: 'bjpy',
609
+ title: fieldMap.BJPY.title,
610
+ text: bjpy,
611
+ required: _required7,
612
+ isUpload: false,
613
+ render: function render() {
614
+ return _react2.default.createElement(_textareaItem2.default, _extends({
615
+ title: fieldMap.BJPY.title,
616
+ placeholder: '\u8BF7\u8F93\u5165',
617
+ rows: 3,
618
+ count: 500,
619
+ editable: _editable7,
620
+ disabled: !_editable7
621
+ }, _this.requiredParams(_required7, 'bjpy'), getFieldProps('bjpy', {
622
+ initialValue: bjpy,
623
+ rules: [{ required: _required7, message: '\u8BF7\u8F93\u5165' + fieldMap.BJPY.title }],
624
+ onChange: function onChange(v) {
625
+ return _this.setState({ bjpy: v });
626
+ }
627
+ })));
628
+ }
629
+ });
630
+ }
631
+
632
+ if (fieldMap.PXZY && fieldMap.PXZY.sfxs === '1') {
633
+ var _required8 = fieldMap.PXZY.sfbt === "1" ? true : false;
634
+ var _editable8 = fieldMap.PXZY.sfbj === "1" ? true : false;
635
+ dataList.push({
636
+ id: 'pxzy',
637
+ title: fieldMap.PXZY.title,
638
+ text: pxzy,
639
+ required: _required8,
640
+ isUpload: false,
641
+ render: function render() {
642
+ return _react2.default.createElement(_textareaItem2.default, _extends({
643
+ title: fieldMap.PXZY.title,
644
+ placeholder: '\u8BF7\u8F93\u5165',
645
+ rows: 3,
646
+ count: 500,
647
+ editable: _editable8,
648
+ disabled: !_editable8
649
+ }, _this.requiredParams(_required8, 'pxzy'), getFieldProps('pxzy', {
650
+ initialValue: pxzy,
651
+ rules: [{ required: _required8, message: '\u8BF7\u8F93\u5165' + fieldMap.PXZY.title }],
652
+ onChange: function onChange(v) {
653
+ return _this.setState({ pxzy: v });
654
+ }
655
+ })));
656
+ }
657
+ });
658
+ }
659
+ if (fieldMap.FJID && fieldMap.FJID.sfxs === '1') {
660
+ var _required9 = fieldMap.FJID.sfbt === "1" ? true : false;
661
+ var _editable9 = fieldMap.FJID.sfbj === "1" ? true : false;
662
+ dataList.push({
663
+ id: 'fjid',
664
+ title: fieldMap.FJID.title,
665
+ text: fjid,
666
+ required: _required9,
667
+ isUpload: true,
668
+ render: function render() {
669
+ return _react2.default.createElement(
670
+ _list2.default.Item,
671
+ _this.requiredParams(_required9, 'fjid'),
672
+ _react2.default.createElement(
673
+ 'label',
674
+ { className: (0, _classnames2.default)({ 'nh-dynamic-form-disabled': !_editable9 }) },
675
+ fieldMap.FJID.title
676
+ ),
677
+ _react2.default.createElement(_index2.default, _extends({
678
+ serviceMark: 'sm-scholarship',
679
+ moduleName: '奖学金',
680
+ isEdit: _this.props.isEdit && _editable9,
681
+ numberOfLimit: 10,
682
+ numberOfSize: 5
683
+ }, getFieldProps('fjid', {
684
+ initialValue: fjid,
685
+ rules: [{ required: _required9, message: '请上传附件' }]
686
+ })))
687
+ );
688
+ },
689
+ renderView: function renderView() {
690
+ return _react2.default.createElement(_index2.default, {
691
+ serviceMark: 'sm-scholarship',
692
+ moduleName: '奖学金',
693
+ isEdit: false,
694
+ value: fjid
695
+ });
696
+ }
697
+ });
698
+ }
699
+ return dataList;
700
+ };
701
+
702
+ _this.state = {
703
+ mxsm: 1, //明细数目
704
+ mxid: undefined, //明细id
705
+ djmc: undefined, //等级名称
706
+ sfgdje: undefined, //是否固定金额
707
+ gdjj: undefined, //固定奖金
708
+ zdjj: 0, //最大奖金
709
+ zxjj: 0, //最小奖金
710
+ pjzqdm: undefined, //评奖周期代码
711
+ pjzq: undefined, //评奖周期
712
+ sffdj: undefined, //是否分等级
713
+ fjid: undefined,
714
+ sqly: undefined,
715
+ je: undefined,
716
+ djxx: [], //等级信息,用于存有多个等级的情况
717
+ mxidxx: [], //分等级情况下,记录下所有的mxid
718
+ gdjjxx: [], //分等级情况下,记录下所有的固定金额,跟mxidxx对应
719
+ gdjjBydj: undefined, //用于分等级情况下,根据不同等级显示不同金额
720
+ bxnsqzyyt: '',
721
+ sxnszje: '',
722
+ sxnzzzyyt: '',
723
+ bjpy: '', //班级评议
724
+ pxzy: '' //评选组员
725
+ };
726
+
727
+ return _this;
728
+ }
729
+
730
+ //改变等级
731
+
732
+ //步进器改变
733
+
734
+
735
+ _createClass(EditInitForm, [{
736
+ key: 'render',
737
+ value: function render() {
738
+ var _props = this.props,
739
+ form = _props.form,
740
+ isEdit = _props.isEdit,
741
+ fieldMap = _props.fieldMap,
742
+ title = _props.title;
743
+
744
+ var dataList = this.getDataList(fieldMap);
745
+ if (isEdit) {
746
+ return _react2.default.createElement(
747
+ 'form',
748
+ null,
749
+ _react2.default.createElement(
750
+ _list2.default,
751
+ { renderHeader: function renderHeader() {
752
+ return title;
753
+ } },
754
+ dataList.map(function (item, index) {
755
+ return _react2.default.createElement(
756
+ 'div',
757
+ { key: index, className: (0, _classnames2.default)('nh-dynamic-list-item', { 'nh-dynamic-required': item.required }) },
758
+ item.render !== undefined ? item.render() : null
759
+ );
760
+ })
761
+ ),
762
+ _react2.default.createElement(_whiteSpace2.default, { size: 'lg' })
763
+ );
764
+ }
765
+ return _react2.default.createElement(
766
+ 'div',
767
+ null,
768
+ _react2.default.createElement(
769
+ _card2.default,
770
+ { full: true },
771
+ _react2.default.createElement(_card2.default.Header, {
772
+ title: _react2.default.createElement(
773
+ 'div',
774
+ { style: { borderLeft: '3px solid #1890ff', paddingLeft: '10px' } },
775
+ title
776
+ )
777
+ }),
778
+ _react2.default.createElement(
779
+ _card2.default.Body,
780
+ null,
781
+ dataList.map(function (item, index) {
782
+ if (item.isUpload) {
783
+ return _react2.default.createElement(
784
+ 'div',
785
+ { key: index },
786
+ _react2.default.createElement(
787
+ 'font',
788
+ { color: 'grey' },
789
+ item.title,
790
+ '\uFF1A '
791
+ ),
792
+ item.renderView()
793
+ );
794
+ }
795
+ return _react2.default.createElement(
796
+ 'div',
797
+ null,
798
+ _react2.default.createElement(
799
+ 'font',
800
+ { color: 'grey' },
801
+ item.title,
802
+ '\uFF1A '
803
+ ),
804
+ item.text,
805
+ _react2.default.createElement('br', null)
806
+ );
807
+ })
808
+ )
809
+ ),
810
+ _react2.default.createElement(_whiteSpace2.default, { size: 'lg' })
811
+ );
812
+ }
813
+ }]);
814
+
815
+ return EditInitForm;
816
+ }(_react2.default.Component);
817
+
818
+ var EditForm = (0, _rcForm.createForm)()(EditInitForm);
819
+ exports.default = EditForm;