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,1074 +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 _picker = require('antd-mobile/lib/picker');
16
-
17
- var _picker2 = _interopRequireDefault(_picker);
18
-
19
- var _list = require('antd-mobile/lib/list');
20
-
21
- var _list2 = _interopRequireDefault(_list);
22
-
23
- var _textareaItem = require('antd-mobile/lib/textarea-item');
24
-
25
- var _textareaItem2 = _interopRequireDefault(_textareaItem);
26
-
27
- var _inputItem = require('antd-mobile/lib/input-item');
28
-
29
- var _inputItem2 = _interopRequireDefault(_inputItem);
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/picker/style/css');
44
-
45
- require('antd-mobile/lib/list/style/css');
46
-
47
- require('antd-mobile/lib/textarea-item/style/css');
48
-
49
- require('antd-mobile/lib/input-item/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('../../../../NHCheckboxGroup/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 _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
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 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.UNSAFE_componentWillMount = function () {
91
- _this.getInitData();
92
- };
93
-
94
- _this.getGwszxlSource = function () {
95
- (0, _NHFetch2.default)('api/sm-work-study/proData/selectDataList?sign=DMK_QGZX_GWSZLX', "GET").then(function (res) {
96
- if (res && res.data) {
97
- _this.setState({ xGwszlxDataSource: _this.changeJsonArry(res.data) });
98
- }
99
- });
100
- };
101
-
102
- _this.buildGwszlxm = function (x_gwszlx) {
103
- if (x_gwszlx) {
104
- (0, _NHFetch2.default)('api/sm-work-study/proData/selectDataList?sign=DMK_QGZX_GWSZLX', "GET").then(function (res) {
105
- if (res && res.data) {
106
- _this.setState({ xGwszlxDataSource: _this.changeJsonArry(res.data) });
107
- var x_gwszlxm = "";
108
- var x_gwszlx_arr = x_gwszlx.split(",");
109
- x_gwszlx_arr.map(function (gwszlxItem) {
110
- res.data.map(function (item) {
111
- if ((item.value || item.VALUE) === gwszlxItem) {
112
- x_gwszlxm += (item.label || item.LABEL) + ",";
113
- }
114
- });
115
- });
116
- if (x_gwszlxm) {
117
- _this.setState({ x_gwszlxm: x_gwszlxm.substr(0, x_gwszlxm.length - 1) });
118
- }
119
- }
120
- });
121
- }
122
- };
123
-
124
- _this.getBmInfo = function () {
125
- var objId = _this.props.objId;
126
-
127
- (0, _NHFetch2.default)('api/sm-work-study/openapi/gnyxy/getBmid/' + objId, 'GET').then(function (res) {
128
- if (res && res.code === 200) {
129
- if (res.data) {
130
- _this.setState({ bmid: res.data });
131
- _this.selectFzrSource(res.data);
132
- _this.getKsInfo(res.data);
133
- }
134
- }
135
- });
136
- };
137
-
138
- _this.getInitData = function () {
139
- var pkid = _this.props.pkid;
140
-
141
- (0, _NHFetch2.default)('api/sm-work-study/openapi/gnyxy/getInitData/' + pkid, 'GET').then(function (res) {
142
- if (res && res.code == 200) {
143
- if (res.data) {
144
- var gwxxParams = res.data;
145
- _this.setState({
146
- gwmc: gwxxParams.GWMC,
147
- gwgznr: gwxxParams.GWGZNR,
148
- gzdd: gwxxParams.GZDD,
149
- xcbz: gwxxParams.XCBZ,
150
- xcbzm: gwxxParams.XCBZM,
151
- bmmc: gwxxParams.BMMC,
152
- bmid: gwxxParams.BMID,
153
- gwlb: gwxxParams.GWLB,
154
- gwlbm: gwxxParams.GWLBM,
155
- zpsl: gwxxParams.ZPSL,
156
- gwgzyq: gwxxParams.GWGZYQ,
157
- x_gwszlx: gwxxParams.X_GWSZLX,
158
- x_gwszlx_arr: gwxxParams.X_GWSZLX ? gwxxParams.X_GWSZLX.split(",") : [],
159
- x_zdls: gwxxParams.X_ZDLS,
160
- x_zdlsm: gwxxParams.X_ZDLSM,
161
- x_zdls_lxdh: gwxxParams.X_ZDLS_LXDH,
162
- x_ygzsc: gwxxParams.X_YGZSC,
163
- ksmc: gwxxParams.KSMC,
164
- ksid: gwxxParams.KSID,
165
- gzsj: gwxxParams.GZSJ,
166
- gzsjm: gwxxParams.GZSJM,
167
- gzsjmc: gwxxParams.GZSJMC,
168
- fzrxm: gwxxParams.GWFZR,
169
- fzr_arr: gwxxParams.GWFZRID ? gwxxParams.GWFZRID.split(",") : []
170
- }, function () {
171
- if (!gwxxParams.GWFZR) {
172
- _this.selectFzrSource(gwxxParams.BMID);
173
- }
174
- if (gwxxParams.X_GWSZLX) {
175
- _this.buildGwszlxm(gwxxParams.X_GWSZLX);
176
- }
177
- });
178
- }
179
- } else {
180
- _toast2.default.fail("调用接口失败");
181
- }
182
- });
183
- };
184
-
185
- _this.changeJsonArry = function (jsonArray) {
186
- var newJsonArray = [];
187
- jsonArray.map(function (item) {
188
- var newJson = {};
189
- newJson.value = item.VALUE || item.value;
190
- newJson.label = item.LABEL || item.label;
191
- newJsonArray.push(newJson);
192
- });
193
- return newJsonArray;
194
- };
195
-
196
- _this.getZdlsSource = function () {
197
- (0, _NHFetch2.default)('api/sm-work-study/proData/selectDataList?sign=gnyxy_workStudy_jsxx_select', "GET").then(function (res) {
198
- if (res && res.data) {
199
- _this.setState({ xZdlsDataSource: _this.changeJsonArry(res.data) });
200
- }
201
- });
202
- };
203
-
204
- _this.getBmSource = function () {
205
- (0, _NHFetch2.default)('api/sm-work-study/proData/selectDataList?sign=zhxg_workStudy_department_select', "GET").then(function (res) {
206
- if (res && res.data) {
207
- _this.setState({ bmDataSource: _this.changeJsonArry(res.data) });
208
- }
209
- });
210
- };
211
-
212
- _this.getXcbaSource = function () {
213
- (0, _NHFetch2.default)('api/sm-work-study/proData/selectDataList?sign=DMK_QGZX_XCBZM', 'GET').then(function (res) {
214
- if (res && res.data) {
215
- _this.setState({
216
- xcbzDataSource: _this.changeJsonArry(res.data)
217
- });
218
- } else {
219
- _toast2.default.fail("获取薪酬标准数据源失败");
220
- }
221
- });
222
- };
223
-
224
- _this.getGwlbSource = function () {
225
- (0, _NHFetch2.default)('api/sm-work-study/proData/selectDataList?sign=DMK_QGZX_GWLBM', 'GET').then(function (res) {
226
- if (res && res.data) {
227
- _this.setState({ gwlbDataSource: _this.changeJsonArry(res.data) });
228
- } else {
229
- _toast2.default.fail("获取岗位类别数据源失败");
230
- }
231
- });
232
- };
233
-
234
- _this.getGzsjmSource = function () {
235
- (0, _NHFetch2.default)('api/sm-work-study/proData/selectDataList?sign=DMK_QGZX_GZSJDWM', 'GET').then(function (res) {
236
- if (res && res.data) {
237
- _this.setState({ gzsjmDataSource: _this.changeJsonArry(res.data) });
238
- } else {
239
- _toast2.default.fail("获取岗位时间码数据源失败");
240
- }
241
- });
242
- };
243
-
244
- _this.updateBm = function (v) {
245
- var bmid = v;
246
- var formData = _this.props.form.getFieldsValue();
247
- _this.props.form.setFieldsValue({ ksid: undefined });
248
-
249
- Object.keys(formData).map(function (idx) {
250
- if (idx.startsWith('fzrid') || idx.startsWith('lxdh')) {
251
- _this.props.form.setFieldsValue(_defineProperty({}, '' + idx, null));
252
- }
253
- });
254
- _this.selectFzrSource(bmid);
255
- if (bmid) {
256
- _this.getKsInfo(bmid);
257
- } else {
258
- _this.setState({ ksxxDataSource: undefined });
259
- }
260
- };
261
-
262
- _this.selectFzrSource = function (v) {
263
- var bmid = v;
264
- (0, _NHFetch2.default)('api/sm-work-study/postMng/' + bmid + '/getTeaInfoBydepId', 'GET').then(function (res) {
265
- if (res && res.data) {
266
- if (res.data) {
267
- var fzrDataSource = res.data;
268
- var newFzrDataSource = [];
269
- fzrDataSource.map(function (item) {
270
- var newItem = {};
271
- newItem.value = item.VALUE || item.value;
272
- newItem.label = (item.LABEL || item.label) + "(" + (item.GH || item.gh) + ")";
273
- newFzrDataSource.push(newItem);
274
- });
275
- _this.setState({ fzrDataSource: newFzrDataSource });
276
- }
277
- } else {
278
- _toast2.default.fail("获取负责人数据源失败");
279
- }
280
- });
281
- };
282
-
283
- _this.getFzrInitData = function () {
284
- var pkid = _this.props.pkid;
285
-
286
- (0, _NHFetch2.default)('api/sm-work-study/openapi/getFzrInitData/' + pkid, 'GET').then(function (res) {
287
- if (res && res.data) {
288
- if (res.data) {
289
- var initDateList = res.data;
290
- var fzrDataSource = [];
291
- initDateList.map(function (item) {
292
- var fzrMap = {};
293
- fzrMap.value = item.FZRID;
294
- fzrMap.label = item.FZRMC + "(" + item.GH + ")";
295
- fzrDataSource.push(fzrMap);
296
- });
297
- _this.setState({ initFzrDataSource: fzrDataSource });
298
- }
299
- } else {
300
- _toast2.default.fail("加载初始化负责人数据源失败");
301
- }
302
- });
303
- };
304
-
305
- _this.requiredParams = function (required, id) {
306
- var getFieldError = _this.props.form.getFieldError;
307
-
308
- return {
309
- error: getFieldError(id) !== undefined
310
- };
311
- };
312
-
313
- _this.getDataList = function (fieldMap) {
314
- var isEdit = _this.props.isEdit;
315
- var getFieldProps = _this.props.form.getFieldProps;
316
- var _this$state = _this.state,
317
- gwmc = _this$state.gwmc,
318
- gwgznr = _this$state.gwgznr,
319
- gzdd = _this$state.gzdd,
320
- xcbz = _this$state.xcbz,
321
- xcbzm = _this$state.xcbzm,
322
- bmmc = _this$state.bmmc,
323
- gwlb = _this$state.gwlb,
324
- gwlbm = _this$state.gwlbm,
325
- zpsl = _this$state.zpsl,
326
- gwgzyq = _this$state.gwgzyq,
327
- ksxxDataSource = _this$state.ksxxDataSource,
328
- bmid = _this$state.bmid,
329
- gzsjmc = _this$state.gzsjmc,
330
- x_gwszlxm = _this$state.x_gwszlxm,
331
- x_ygzsc = _this$state.x_ygzsc,
332
- x_zdls = _this$state.x_zdls,
333
- x_zdlsm = _this$state.x_zdlsm,
334
- x_zdls_lxdh = _this$state.x_zdls_lxdh,
335
- ksid = _this$state.ksid,
336
- ksmc = _this$state.ksmc,
337
- gzsj = _this$state.gzsj,
338
- gzsjm = _this$state.gzsjm,
339
- fzrxm = _this$state.fzrxm,
340
- fzr_arr = _this$state.fzr_arr,
341
- x_gwszlx_arr = _this$state.x_gwszlx_arr;
342
- var _this$state2 = _this.state,
343
- xcbzDataSource = _this$state2.xcbzDataSource,
344
- gwlbDataSource = _this$state2.gwlbDataSource,
345
- fzrDataSource = _this$state2.fzrDataSource,
346
- xGwszlxDataSource = _this$state2.xGwszlxDataSource,
347
- bmDataSource = _this$state2.bmDataSource,
348
- xZdlsDataSource = _this$state2.xZdlsDataSource,
349
- gzsjmDataSource = _this$state2.gzsjmDataSource,
350
- ksFzrDataSource = _this$state2.ksFzrDataSource,
351
- initFzrDataSource = _this$state2.initFzrDataSource;
352
-
353
- var dataList = [];
354
-
355
- if (fieldMap.GWMC && fieldMap.GWMC.sfxs === '1') {
356
- //岗位名称
357
- var required = fieldMap.GWMC.sfbt === "1" ? true : false;
358
- var editable = fieldMap.GWMC.sfbj === "1" ? true : false;
359
- var label = fieldMap.GWMC.title;
360
- dataList.push({
361
- id: 'gwmc',
362
- title: label,
363
- required: required,
364
- text: gwmc,
365
- render: function render() {
366
- return _react2.default.createElement(
367
- _inputItem2.default,
368
- _extends({
369
- className: 'nh-input-item',
370
- placeholder: '\u8BF7\u8F93\u5165',
371
- editable: editable,
372
- disabled: !editable
373
- }, _this.requiredParams(required, 'gwmc'), getFieldProps('gwmc', {
374
- initialValue: gwmc,
375
- rules: [{ required: required, message: '\u8BF7\u8F93\u5165' + label }]
376
- })),
377
- label
378
- );
379
- }
380
- });
381
- }
382
-
383
- if (fieldMap.GWGZNR && fieldMap.GWGZNR.sfxs === '1') {
384
- //岗位工作内容
385
- var _required = fieldMap.GWGZNR.sfbt === "1" ? true : false;
386
- var _editable = fieldMap.GWGZNR.sfbj === "1" ? true : false;
387
- var _label = fieldMap.GWGZNR.title;
388
- dataList.push({
389
- id: 'gwgznr',
390
- title: _label,
391
- required: _required,
392
- text: gwgznr,
393
- render: function render() {
394
- return _react2.default.createElement(_textareaItem2.default, _extends({
395
- title: _label,
396
- placeholder: '\u8BF7\u8F93\u5165',
397
- rows: 3,
398
- count: 500,
399
- editable: _editable,
400
- disabled: !_editable
401
- }, _this.requiredParams(_required, 'gwgznr'), getFieldProps('gwgznr', {
402
- initialValue: gwgznr,
403
- rules: [{ required: _required, message: '\u8BF7\u8F93\u5165' + _label }]
404
- })));
405
- }
406
- });
407
- }
408
-
409
- if (fieldMap.GZDD && fieldMap.GZDD.sfxs === '1') {
410
- //工作地点
411
- var _required2 = fieldMap.GZDD.sfbt === "1" ? true : false;
412
- var _editable2 = fieldMap.GZDD.sfbj === "1" ? true : false;
413
- var _label2 = fieldMap.GZDD.title;
414
- dataList.push({
415
- id: 'gzdd',
416
- title: _label2,
417
- required: _required2,
418
- text: gzdd,
419
- render: function render() {
420
- return _react2.default.createElement(
421
- _inputItem2.default,
422
- _extends({
423
- className: 'nh-input-item',
424
- placeholder: '\u8BF7\u8F93\u5165',
425
- editable: _editable2,
426
- disabled: !_editable2
427
- }, _this.requiredParams(_required2, 'gzdd'), getFieldProps('gzdd', {
428
- initialValue: gzdd,
429
- rules: [{ required: _required2, message: '\u8BF7\u8F93\u5165' + _label2 }]
430
- })),
431
- _label2
432
- );
433
- }
434
- });
435
- }
436
-
437
- if (fieldMap.X_ZDLS && fieldMap.X_ZDLS.sfxs === '1') {
438
- //指导老师
439
- var _required3 = fieldMap.X_ZDLS.sfbt === "1" ? true : false;
440
- var _editable3 = fieldMap.X_ZDLS.sfbj === "1" ? true : false;
441
- var _label3 = fieldMap.X_ZDLS.title;
442
- dataList.push({
443
- id: 'x_zdls',
444
- title: _label3,
445
- required: _required3,
446
- text: x_zdlsm,
447
- render: function render() {
448
- return _react2.default.createElement(
449
- 'div',
450
- {
451
- className: (0, _classnames2.default)({ 'nh-inputrender': _editable3, 'nh-inputrender-disabled': !_editable3 })
452
- },
453
- _react2.default.createElement(
454
- _picker2.default,
455
- _extends({
456
- data: xZdlsDataSource,
457
- cols: 1,
458
- className: 'forss',
459
- disabled: !_editable3
460
- }, getFieldProps('x_zdls', {
461
- initialValue: typeof x_zdls === 'string' ? [x_zdls] : x_zdls,
462
- rules: [{ required: _required3, message: '\u8BF7\u8F93\u5165' + _label3 }]
463
- })),
464
- _react2.default.createElement(
465
- _list2.default.Item,
466
- _extends({ arrow: 'horizontal' }, _this.requiredParams(_required3, 'x_zdls')),
467
- _label3
468
- )
469
- )
470
- );
471
- }
472
- });
473
- }
474
-
475
- if (fieldMap.X_ZDLS_LXDH && fieldMap.X_ZDLS_LXDH.sfxs === '1') {
476
- //指导老师的联系电话
477
- var _required4 = fieldMap.X_ZDLS_LXDH.sfbt === "1" ? true : false;
478
- var _editable4 = fieldMap.X_ZDLS_LXDH.sfbj === "1" ? true : false;
479
- var _label4 = fieldMap.X_ZDLS_LXDH.title;
480
- dataList.push({
481
- id: 'x_zdls_lxdh',
482
- title: _label4,
483
- required: _required4,
484
- text: x_zdls_lxdh,
485
- render: function render() {
486
- return _react2.default.createElement(
487
- _inputItem2.default,
488
- _extends({
489
- className: 'nh-input-item',
490
- placeholder: '\u8BF7\u8F93\u5165',
491
- editable: _editable4,
492
- disabled: !_editable4
493
- }, _this.requiredParams(_required4, 'x_zdls_lxdh'), getFieldProps('x_zdls_lxdh', {
494
- initialValue: x_zdls_lxdh,
495
- rules: [{ required: _required4, message: '\u8BF7\u8F93\u5165' + _label4 }, { pattern: /^[0-9]*$/, message: "请输入正确的联系电话" }]
496
- })),
497
- _label4
498
- );
499
- }
500
- });
501
- }
502
-
503
- if (fieldMap.X_GWSZLX && fieldMap.X_GWSZLX.sfxs === '1') {
504
- //岗位设置类型
505
- var _required5 = fieldMap.X_GWSZLX.sfbt === "1" ? true : false;
506
- var _editable5 = fieldMap.X_GWSZLX.sfbj === "1" ? true : false;
507
- var _label5 = fieldMap.X_GWSZLX.title;
508
-
509
- dataList.push({
510
- id: 'x_gwszlx',
511
- title: _label5,
512
- required: _required5,
513
- text: x_gwszlxm,
514
- render: function render() {
515
- return _react2.default.createElement(_index2.default, _extends({
516
- disabled: !_editable5,
517
- value: x_gwszlx_arr.map(function (item) {
518
- return item;
519
- }),
520
- defaultValue: x_gwszlx_arr.map(function (item) {
521
- return item;
522
- }),
523
- label: _label5
524
- }, getFieldProps('x_gwszlx', {
525
- initialValue: x_gwszlx_arr,
526
- rules: [{ required: _required5, message: _label5 + '\u4E0D\u80FD\u4E3A\u7A7A' }]
527
- }), {
528
- options: xGwszlxDataSource
529
- }));
530
- }
531
- });
532
- }
533
-
534
- if (fieldMap.BMMC) {
535
- //用工部门
536
- var _required6 = true;
537
- var _editable6 = fieldMap.BMMC.sfbj === "1" ? true : false;
538
- var _label6 = fieldMap.BMMC.title;
539
- dataList.push({
540
- id: 'bmid',
541
- title: _label6,
542
- required: true,
543
- text: bmmc,
544
- render: function render() {
545
- return _react2.default.createElement(
546
- 'div',
547
- {
548
- className: (0, _classnames2.default)({ 'nh-inputrender': _editable6, 'nh-inputrender-disabled': !_editable6 })
549
- },
550
- _react2.default.createElement(
551
- _picker2.default,
552
- _extends({
553
- data: bmDataSource,
554
- cols: 1,
555
- className: 'forss',
556
- disabled: true
557
- }, getFieldProps('bmid', {
558
- initialValue: typeof bmid === 'string' ? [bmid] : bmid,
559
- rules: [{ required: _required6, message: '\u8BF7\u8F93\u5165' + _label6 }],
560
- onChange: _this.updateBm
561
- })),
562
- _react2.default.createElement(
563
- _list2.default.Item,
564
- _extends({ arrow: 'horizontal' }, _this.requiredParams(_required6, 'bmid')),
565
- _label6
566
- )
567
- )
568
- );
569
- }
570
- });
571
- }
572
- if (fieldMap.KSID && fieldMap.KSID.sfxs === '1') {
573
- //科室
574
- var _required7 = fieldMap.KSID.sfbt === "1" ? true : false;
575
- var _editable7 = fieldMap.KSID.sfbj === "1" ? true : false;
576
- var _label7 = fieldMap.KSID.title;
577
- dataList.push({
578
- id: 'ksid',
579
- title: _label7,
580
- required: _required7,
581
- text: ksmc,
582
- render: function render() {
583
- return _react2.default.createElement(
584
- 'div',
585
- {
586
- className: (0, _classnames2.default)({ 'nh-inputrender': _editable7, 'nh-inputrender-disabled': !_editable7 })
587
- },
588
- _react2.default.createElement(
589
- _picker2.default,
590
- _extends({
591
- data: ksxxDataSource,
592
- cols: 1,
593
- className: 'forss',
594
- disabled: !_editable7
595
- }, getFieldProps('ksid', {
596
- initialValue: typeof ksid === 'string' ? [ksid] : ksid,
597
- rules: [{ required: _required7, message: '\u8BF7\u8F93\u5165' + _label7 }],
598
- onChange: _this.ksChange
599
- })),
600
- _react2.default.createElement(
601
- _list2.default.Item,
602
- _extends({ arrow: 'horizontal' }, _this.requiredParams(_required7, 'ksid')),
603
- _label7
604
- )
605
- )
606
- );
607
- }
608
- });
609
- }
610
- if (fieldMap.GWLB && fieldMap.GWLB.sfxs === '1') {
611
- //岗位类别
612
- var _required8 = fieldMap.GWLB.sfbt === "1" ? true : false;
613
- var _editable8 = fieldMap.GWLB.sfbj === "1" ? true : false;
614
- var _label8 = fieldMap.GWLB.title;
615
- dataList.push({
616
- id: 'gwlbm',
617
- title: _label8,
618
- required: _required8,
619
- text: gwlb,
620
- render: function render() {
621
- return _react2.default.createElement(
622
- 'div',
623
- {
624
- className: (0, _classnames2.default)({ 'nh-inputrender': _editable8, 'nh-inputrender-disabled': !_editable8 })
625
- },
626
- _react2.default.createElement(
627
- _picker2.default,
628
- _extends({
629
- data: gwlbDataSource,
630
- cols: 1,
631
- className: 'forss',
632
- disabled: !_editable8
633
- }, getFieldProps('gwlbm', {
634
- initialValue: typeof gwlbm === 'string' ? [gwlbm] : gwlbm,
635
- rules: [{ required: _required8, message: '\u8BF7\u8F93\u5165' + _label8 }]
636
- })),
637
- _react2.default.createElement(
638
- _list2.default.Item,
639
- _extends({ arrow: 'horizontal' }, _this.requiredParams(_required8, 'gwlbm')),
640
- _label8
641
- )
642
- )
643
- );
644
- }
645
- });
646
- }
647
- if (fieldMap.XCBZ && fieldMap.XCBZ.sfxs === '1') {
648
- //薪酬标准
649
- var _required9 = fieldMap.XCBZ.sfbt === "1" ? true : false;
650
- var _editable9 = fieldMap.XCBZ.sfbj === "1" ? true : false;
651
- var _label9 = fieldMap.XCBZ.title;
652
- dataList.push({
653
- id: 'xcbzm',
654
- title: _label9,
655
- required: _required9,
656
- text: xcbz,
657
- render: function render() {
658
- return _react2.default.createElement(
659
- 'div',
660
- {
661
- className: (0, _classnames2.default)({ 'nh-inputrender': _editable9, 'nh-inputrender-disabled': !_editable9 })
662
- },
663
- _react2.default.createElement(
664
- _picker2.default,
665
- _extends({
666
- data: xcbzDataSource,
667
- cols: 1,
668
- className: 'forss',
669
- disabled: !_editable9
670
- }, getFieldProps('xcbzm', {
671
- initialValue: typeof xcbzm === 'string' ? [xcbzm] : xcbzm,
672
- rules: [{ required: _required9, message: '\u8BF7\u8F93\u5165' + _label9 }]
673
- })),
674
- _react2.default.createElement(
675
- _list2.default.Item,
676
- _extends({ arrow: 'horizontal' }, _this.requiredParams(_required9, 'xcbzm')),
677
- _label9
678
- )
679
- )
680
- );
681
- }
682
- });
683
- }
684
- //月工作时长
685
- if (fieldMap.X_YGZSC && fieldMap.X_YGZSC.sfxs === '1') {
686
- var _required10 = fieldMap.X_YGZSC.sfbt === "1" ? true : false;
687
- var _editable10 = fieldMap.X_YGZSC.sfbj === "1" ? true : false;
688
- var _label10 = fieldMap.X_YGZSC.title;
689
- dataList.push({
690
- id: 'x_ygzsc',
691
- title: _label10,
692
- text: x_ygzsc,
693
- required: _required10,
694
- render: function render() {
695
- return _react2.default.createElement(
696
- _inputItem2.default,
697
- _extends({
698
- className: 'nh-input-item',
699
- placeholder: '\u8BF7\u8F93\u5165',
700
- editable: _editable10,
701
- disabled: !_editable10
702
- }, _this.requiredParams(_required10, 'x_ygzsc'), getFieldProps('x_ygzsc', {
703
- initialValue: x_ygzsc,
704
- rules: [{ required: _required10, message: '\u8BF7\u8F93\u5165' + _label10 }, { pattern: /^[0-9]{0,4}$/, message: "请输入数字且长度不能超过4位" }]
705
- })),
706
- fieldMap.X_YGZSC.title
707
- );
708
- }
709
- });
710
- }
711
- //招聘数量
712
- if (fieldMap.ZPSL && fieldMap.ZPSL.sfxs === '1') {
713
- var _required11 = fieldMap.ZPSL.sfbt === "1" ? true : false;
714
- var _editable11 = fieldMap.ZPSL.sfbj === "1" ? true : false;
715
- var _label11 = fieldMap.ZPSL.title;
716
- dataList.push({
717
- id: 'zpsl',
718
- title: _label11,
719
- text: zpsl,
720
- required: _required11,
721
- render: function render() {
722
- return _react2.default.createElement(
723
- _inputItem2.default,
724
- _extends({
725
- className: 'nh-input-item',
726
- placeholder: '\u8BF7\u8F93\u5165',
727
- editable: _editable11,
728
- disabled: !_editable11
729
- }, _this.requiredParams(_required11, 'zpsl'), getFieldProps('zpsl', {
730
- initialValue: zpsl,
731
- rules: [{ required: _required11, message: '\u8BF7\u8F93\u5165' + _label11 }]
732
- })),
733
- fieldMap.ZPSL.title
734
- );
735
- }
736
- });
737
- }
738
- if (fieldMap.GZSJ && fieldMap.GZSJ.sfxs === '1') {
739
- var _required12 = fieldMap.GZSJ.sfbt === "1" ? true : false;
740
- var _editable12 = fieldMap.GZSJ.sfbj === "1" ? true : false;
741
- var _label12 = fieldMap.GZSJ.title;
742
- dataList.push({
743
- id: 'gzsj',
744
- title: _label12,
745
- text: gzsjmc,
746
- required: _required12,
747
- render: function render() {
748
- return _react2.default.createElement(
749
- _inputItem2.default,
750
- _extends({
751
- className: 'nh-input-item',
752
- placeholder: '\u8BF7\u8F93\u5165',
753
- editable: _editable12,
754
- disabled: !_editable12
755
- }, _this.requiredParams(_required12, 'gzsj'), getFieldProps('gzsj', {
756
- initialValue: gzsj,
757
- rules: [{ required: _required12, message: '\u8BF7\u8F93\u5165' + _label12 }, { pattern: /^[0-9]{0,4}$/, message: "请输入数字且长度不能超过4位" }]
758
- })),
759
- fieldMap.GZSJ.title
760
- );
761
- }
762
- });
763
- }
764
- if (isEdit && fieldMap.GZSJ && fieldMap.GZSJ.sfxs === '1') {
765
- var _required13 = fieldMap.GZSJ.sfbt === "1" ? true : false;
766
- var _editable13 = fieldMap.GZSJ.sfbj === "1" ? true : false;
767
- var _label13 = "工作时间单位";
768
- dataList.push({
769
- id: 'gzsjm',
770
- title: _label13,
771
- text: gzsjmc,
772
- required: _required13,
773
- render: function render() {
774
- return _react2.default.createElement(
775
- 'div',
776
- {
777
- className: (0, _classnames2.default)({ 'nh-inputrender': _editable13, 'nh-inputrender-disabled': !_editable13 })
778
- },
779
- _react2.default.createElement(
780
- _picker2.default,
781
- _extends({
782
- data: gzsjmDataSource,
783
- cols: 1,
784
- className: 'forss',
785
- disabled: !_editable13
786
- }, getFieldProps('gzsjm', {
787
- initialValue: typeof gzsjm === 'string' ? [gzsjm] : ["1"],
788
- rules: [{ required: _required13, message: '\u8BF7\u8F93\u5165' + _label13 }]
789
- })),
790
- _react2.default.createElement(
791
- _list2.default.Item,
792
- _extends({ arrow: 'horizontal' }, _this.requiredParams(_required13, 'gzsjm')),
793
- _label13
794
- )
795
- )
796
- );
797
- }
798
- });
799
- }
800
-
801
- if (fieldMap.GWGZYQ && fieldMap.GWGZYQ.sfxs === '1') {
802
- //申请理由
803
- var _required14 = fieldMap.GWGZYQ.sfbt === "1" ? true : false;
804
- var _editable14 = fieldMap.GWGZYQ.sfbj === "1" ? true : false;
805
- var _label14 = fieldMap.GWGZYQ.title;
806
- dataList.push({
807
- id: 'gwgzyq',
808
- title: _label14,
809
- text: gwgzyq,
810
- required: _required14,
811
- render: function render() {
812
- return _react2.default.createElement(_textareaItem2.default, _extends({
813
- title: fieldMap.GWGZYQ.title,
814
- placeholder: '\u8BF7\u8F93\u5165',
815
- rows: 3,
816
- count: 500,
817
- editable: _editable14,
818
- disabled: !_editable14
819
- }, _this.requiredParams(_required14, 'gwgzyq'), getFieldProps('gwgzyq', {
820
- initialValue: gwgzyq,
821
- rules: [{ required: _required14, message: '\u8BF7\u8F93\u5165' + _label14 }]
822
- })));
823
- }
824
- });
825
- }
826
- if (fieldMap.FZRMC && fieldMap.FZRMC.sfxs === '1') {
827
- //岗位负责人
828
- var _required15 = fieldMap.FZRMC.sfbt === "1" ? true : false;
829
- var _editable15 = fieldMap.FZRMC.sfbj === "1" ? true : false;
830
- var _label15 = fieldMap.FZRMC.title;
831
-
832
- dataList.push({
833
- id: 'fzrid',
834
- title: _label15,
835
- required: _required15,
836
- text: fzrxm,
837
- render: function render() {
838
- return _react2.default.createElement(_index2.default, _extends({
839
- disabled: !_editable15,
840
- label: _label15,
841
- value: fzr_arr.map(function (item) {
842
- return item;
843
- }),
844
- defaultValue: fzr_arr.map(function (item) {
845
- return item;
846
- })
847
- }, getFieldProps('fzrid', {
848
- initialValue: fzr_arr,
849
- rules: [{ required: _required15, message: _label15 + '\u4E0D\u80FD\u4E3A\u7A7A' }]
850
- }), {
851
- options: initFzrDataSource.length > 0 ? initFzrDataSource : ksFzrDataSource.length > 0 ? ksFzrDataSource : fzrDataSource
852
- }));
853
- }
854
- });
855
- }
856
- return dataList;
857
- };
858
-
859
- _this.hasKsInfo = function (v) {
860
- if (v) {
861
- _this.getKsFzr(v);
862
- }
863
- };
864
-
865
- _this.ksChange = function (v, t, op) {
866
- var formData = _this.props.form.getFieldsValue();
867
- if (v) {
868
- _this.getKsFzr(v);
869
- Object.keys(formData).map(function (idx) {
870
- if (idx.startsWith('fzrid') || idx.startsWith('lxdh')) {
871
- _this.props.form.setFieldsValue(_defineProperty({}, '' + idx, ''));
872
- }
873
- });
874
- } else {
875
- _this.setState({ ksfzrList: [] });
876
- if (formData.hasOwnProperty("bmid")) {
877
- var bmid = formData.bmid;
878
- _this.selectFzrSource(bmid);
879
- }
880
- Object.keys(formData).map(function (idx) {
881
- if (idx.startsWith('fzrid') || idx.startsWith('lxdh')) {
882
- _this.props.form.setFieldsValue(_defineProperty({}, '' + idx, ''));
883
- }
884
- });
885
- }
886
- };
887
-
888
- _this.getKsInfo = function (v) {
889
- // 获取科室下拉信息
890
- (0, _NHFetch2.default)("api/sm-work-study/gnyxy/ksxx/getKsInfoList?bmid=" + v, "GET").then(function (res) {
891
- if (res && res.data) {
892
- var ksxxList = [];
893
- res.data.map(function (item) {
894
- var ksxxMap = {};
895
- ksxxMap.value = item.pkid;
896
- ksxxMap.label = item.ksmc;
897
- ksxxList.push(ksxxMap);
898
- });
899
- _this.setState({ ksxxDataSource: ksxxList });
900
- }
901
- });
902
- };
903
-
904
- _this.getKsFzr = function (v) {
905
- (0, _NHFetch2.default)("api/sm-work-study/gnyxy/ksxx/getKsFzrInfoList?pkid=" + v, "GET").then(function (res) {
906
- if (res && res.data) {
907
- var ksfzrList = [];
908
- res.data.map(function (item) {
909
- var ksfzrMap = {};
910
- ksfzrMap.gh = item.fzrgh;
911
- ksfzrMap.lxdh = item.lxdh;
912
- ksfzrMap.fzrid = item.fzrid;
913
- ksfzrMap.label = item.fzrmc + "(" + item.fzrgh + ")";
914
- ksfzrMap.value = item.fzrid;
915
- ksfzrMap.bmmc = item.bmmc;
916
- ksfzrList.push(ksfzrMap);
917
- });
918
- _this.setState({ ksfzrList: ksfzrList, ksFzrDataSource: ksfzrList });
919
- }
920
- });
921
- };
922
-
923
- _this.state = {
924
- gwmc: '', //岗位名称
925
- gwgznr: '', //岗位工作内容
926
- gzdd: '', //岗位地点
927
- xcbz: '', //薪酬标准
928
- xcbzm: '', //薪酬标准码
929
- yxmc: '', //院系名称
930
- bmmc: '', //用工部门
931
- bmid: '', //部门ID
932
- gwlb: '', //岗位类别
933
- gwlbm: '', //岗位类别码
934
- zpsl: 1, //招聘数量
935
- bgdh: '', //办公电话
936
- gwgzyq: '', //岗位工作要求
937
- xcbzDataSource: [], //薪酬标准数据源
938
- gwlbDataSource: [], //岗位类别数据源
939
- bmDataSource: [],
940
- xGwszlxDataSource: [],
941
- xZdlsDataSource: [],
942
- gzsjmDataSource: [],
943
- ksxxDataSource: [], // 科室信息
944
- fzrDataSource: [],
945
- ksFzrDataSource: [],
946
- initFzrDataSource: [],
947
- ksfzrList: [],
948
- x_ygzsc: '',
949
- x_zdls: '',
950
- x_zdlsm: '',
951
- x_zdls_lxdh: '',
952
- x_gwszlx: undefined,
953
- x_gwszlxm: '',
954
- ksid: '',
955
- ksmc: '',
956
- gzsj: '',
957
- gzsjm: '1',
958
- gzsjmc: '',
959
- x_gwszlx_arr: [],
960
- fzrxm: '',
961
- fzr_arr: []
962
- };
963
-
964
- return _this;
965
- }
966
-
967
- _createClass(EditInitForm, [{
968
- key: 'componentDidMount',
969
- value: function componentDidMount() {
970
- this.getXcbaSource();
971
- this.getGwlbSource();
972
- this.getFzrInitData();
973
- this.getBmInfo();
974
- this.getBmSource();
975
- this.getZdlsSource();
976
- this.getGwszxlSource();
977
- this.getGzsjmSource();
978
- }
979
- //获取初始数据
980
-
981
- // 获取教师数据源
982
-
983
- // 获取部门数据源
984
-
985
-
986
- //获取薪酬标准数据源
987
-
988
-
989
- //获取岗位列表数据源
990
-
991
- }, {
992
- key: 'render',
993
- value: function render() {
994
- var _props = this.props,
995
- isEdit = _props.isEdit,
996
- fieldMap = _props.fieldMap,
997
- title = _props.title;
998
-
999
- var dataList = this.getDataList(fieldMap);
1000
- if (isEdit) {
1001
- return _react2.default.createElement(
1002
- 'form',
1003
- null,
1004
- _react2.default.createElement(
1005
- _list2.default,
1006
- { renderHeader: function renderHeader() {
1007
- return title;
1008
- } },
1009
- dataList.map(function (item, index) {
1010
- return _react2.default.createElement(
1011
- 'div',
1012
- { key: index, className: (0, _classnames2.default)('nh-dynamic-list-item', { 'nh-dynamic-required': item.required }) },
1013
- item.render !== undefined ? item.render() : null
1014
- );
1015
- })
1016
- ),
1017
- _react2.default.createElement(_whiteSpace2.default, { size: 'lg' })
1018
- );
1019
- }
1020
- return _react2.default.createElement(
1021
- 'div',
1022
- null,
1023
- _react2.default.createElement(
1024
- _card2.default,
1025
- { full: true },
1026
- _react2.default.createElement(_card2.default.Header, {
1027
- title: _react2.default.createElement(
1028
- 'div',
1029
- { style: { borderLeft: '3px solid #1890ff', paddingLeft: '10px' } },
1030
- title
1031
- )
1032
- }),
1033
- _react2.default.createElement(
1034
- _card2.default.Body,
1035
- null,
1036
- dataList.map(function (item, index) {
1037
- if (item.isUpload) {
1038
- return _react2.default.createElement(
1039
- 'div',
1040
- { key: index },
1041
- _react2.default.createElement(
1042
- 'font',
1043
- { color: 'grey' },
1044
- item.title,
1045
- '\uFF1A '
1046
- ),
1047
- item.renderView()
1048
- );
1049
- }
1050
- return _react2.default.createElement(
1051
- 'div',
1052
- null,
1053
- _react2.default.createElement(
1054
- 'font',
1055
- { color: 'grey' },
1056
- item.title,
1057
- '\uFF1A '
1058
- ),
1059
- item.text,
1060
- _react2.default.createElement('br', null)
1061
- );
1062
- })
1063
- )
1064
- ),
1065
- _react2.default.createElement(_whiteSpace2.default, { size: 'lg' })
1066
- );
1067
- }
1068
- }]);
1069
-
1070
- return EditInitForm;
1071
- }(_react2.default.Component);
1072
-
1073
- var EditForm = (0, _rcForm.createForm)()(EditInitForm);
1074
- exports.default = EditForm;