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