dlt-for-react 1.0.23 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/lib/components/Button/index.js +79 -0
- package/lib/components/HqSelector/HqLsrySelector/index.js +3 -5
- package/lib/components/HqSelector/HqRySelector/index.js +3 -5
- package/lib/components/HqSelector/HqWzSelector/index.js +3 -5
- package/lib/components/KyEditableTable/component.js +3 -5
- package/lib/components/KyEditableTable/index.js +7 -13
- package/lib/components/KyExcel/index.js +3 -5
- package/lib/components/KyInputPicker/render.js +13 -43
- package/lib/components/KyInputPicker/setting-checkbox.js +3 -5
- package/lib/components/KyInputPicker/setting-multiSelect.js +3 -5
- package/lib/components/KyInputPicker/setting-nhcascader.js +3 -5
- package/lib/components/KyInputPicker/setting-select.js +3 -5
- package/lib/components/KyInputPicker/setting-stu-selector.js +3 -5
- package/lib/components/KyInputPicker/setting-tea-selector.js +3 -5
- package/lib/components/KyTable/checkButtons.js +4 -7
- package/lib/components/KyTree/index.js +6 -16
- package/lib/components/KyUpload/index.js +13 -21
- package/lib/components/NHAuditPanel/config/Axios.js +263 -0
- package/lib/components/NHAuditPanel/config/api.js +479 -0
- package/lib/components/NHAuditPanel/config/data.js +156 -0
- package/lib/components/NHAuditPanel/config/typeMap.js +1234 -0
- package/lib/components/NHAuditPanel/config/uiValidate.js +92 -0
- package/lib/components/NHAuditPanel/index.js +413 -0
- package/lib/components/NHAuditPanel/node.js +619 -0
- package/lib/components/NHCascader/index.js +355 -0
- package/lib/components/NHCheckboxGroup/index.js +135 -0
- package/lib/components/NHDynamicFormShow/baseInfo/index.js +194 -0
- package/lib/components/NHDynamicFormShow/custom/index.js +553 -0
- package/lib/components/NHDynamicFormShow/customModule/common/CommonMethod.js +43 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/EditForm.js +1113 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/index.js +263 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/EditForm.js +880 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/index.js +171 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/EditForm.js +865 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/EditForm.js +571 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/index.js +147 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/EditForm.js +474 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/index.js +139 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/EditForm.js +506 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/index.js +143 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/EditForm.js +1074 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/index.js +172 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/EditForm.js +927 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/index.js +195 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/EditForm.js +1064 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/index.js +183 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/EditForm.js +763 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/index.js +137 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/EditForm.js +819 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/index.js +137 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/EditForm.js +700 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/index.js +162 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/EditForm.js +743 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/index.js +177 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/EditForm.js +848 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/EditForm.js +777 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/index.js +161 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/EditForm.js +706 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/cfjcEditForm.js +413 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/index.js +135 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/EditForm.js +1013 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/index.js +175 -0
- package/lib/components/NHDynamicFormShow/customModule/jjrlx/EditForm.js +1345 -0
- package/lib/components/NHDynamicFormShow/customModule/jjrlx/index.js +274 -0
- package/lib/components/NHDynamicFormShow/customModule/jxj/EditForm.js +669 -0
- package/lib/components/NHDynamicFormShow/customModule/jxj/index.js +134 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/EditForm.js +378 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/index.js +120 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/EditForm.js +638 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/index.js +133 -0
- package/lib/components/NHDynamicFormShow/customModule/qgzx/EditForm.js +965 -0
- package/lib/components/NHDynamicFormShow/customModule/qgzx/index.js +237 -0
- package/lib/components/NHDynamicFormShow/customModule/qjgl/EditForm.js +823 -0
- package/lib/components/NHDynamicFormShow/customModule/qjgl/index.js +188 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/EditForm.js +401 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/index.js +472 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/EditForm.js +304 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHCascader/index.js +375 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/RadioGroup.js +118 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/index.js +62 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/input-const.js +55 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/render.js +1238 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/index.js +375 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/collective/EditForm.js +554 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/collective/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/personal/EditForm.js +542 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/personal/index.js +133 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/EditForm.js +575 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/EditForm.js +563 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/index.js +133 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/EditForm.js +745 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/index.js +164 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/EditForm.js +587 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/index.js +143 -0
- package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/EditForm.js +743 -0
- package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/index.js +172 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/EditForm.js +1410 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/index.js +274 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/EditForm.js +755 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/EditForm.js +814 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/index.js +188 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/EditForm.js +769 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/whgcrych/EditForm.js +1004 -0
- package/lib/components/NHDynamicFormShow/customModule/whgcrych/index.js +126 -0
- package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/EditForm.js +503 -0
- package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/index.js +149 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlyhk/EditForm.js +379 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlyhk/index.js +148 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzxj/EditForm.js +748 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzxj/index.js +135 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/EditForm.js +762 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/index.js +134 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/cfjcEditForm.js +682 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/index.js +135 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/index.js +152 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/wjsbEditForm.js +783 -0
- package/lib/components/NHDynamicFormShow/customModule/zxj/EditForm.js +764 -0
- package/lib/components/NHDynamicFormShow/customModule/zxj/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/cfjcEditForm.js +677 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/EditForm.js +1173 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/index.js +242 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistForm.js +862 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistIndex.js +201 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/stuinfo/messageInfo.js +196 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/index.js +167 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/wjsbEditForm.js +1096 -0
- package/lib/components/NHDynamicFormShow/index.js +647 -0
- package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/cardItem/index.js +279 -0
- package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/index.js +206 -0
- package/lib/components/NHDynamicFormShow/oneOnMany/index.js +419 -0
- package/lib/components/NHDynamicFormShow/oneOnOne/EditForm.js +401 -0
- package/lib/components/NHDynamicFormShow/oneOnOne/index.js +271 -0
- package/lib/components/NHImagePicker/index.js +554 -0
- package/lib/components/NHInputPicker/RadioGroup.js +118 -0
- package/lib/components/NHInputPicker/index.js +62 -0
- package/lib/components/NHInputPicker/input-const.js +55 -0
- package/lib/components/NHInputPicker/render.js +1271 -0
- package/lib/components/NHListView/index.js +374 -0
- package/lib/components/NHMapGeolocation/index.js +537 -0
- package/lib/components/NHMapGeolocation/initMap/initGdMap.js +104 -0
- package/lib/components/NHMapGeolocation/initMap/initTencentMap.js +138 -0
- package/lib/components/NHMapGeolocation/style.js +51 -0
- package/lib/components/NHMultiSelect/index.js +272 -0
- package/lib/components/NHRadioGroup/index.js +118 -0
- package/lib/components/NHSelect/index.js +364 -0
- package/lib/components/NHTreeMenu/index.js +126 -0
- package/lib/components/NHTreeMenu/treeNode.js +164 -0
- package/lib/components/StuSelector/index.js +611 -0
- package/lib/index.js +161 -116
- package/lib/layouts/KyInputPicker/edit-page.js +585 -0
- package/lib/layouts/KyInputPicker/index.js +220 -0
- package/lib/layouts/KyInputPicker/input-const.js +134 -0
- package/lib/layouts/KyInputPicker/render.js +2477 -0
- package/lib/layouts/KyInputPicker/setting-checkbox.js +850 -0
- package/lib/layouts/KyInputPicker/setting-datepicker.js +430 -0
- package/lib/layouts/KyInputPicker/setting-datetimepicker.js +443 -0
- package/lib/layouts/KyInputPicker/setting-input.js +555 -0
- package/lib/layouts/KyInputPicker/setting-inputNumber.js +612 -0
- package/lib/layouts/KyInputPicker/setting-monthpicker.js +434 -0
- package/lib/layouts/KyInputPicker/setting-multiSelect.js +532 -0
- package/lib/layouts/KyInputPicker/setting-nhcascader.js +584 -0
- package/lib/layouts/KyInputPicker/setting-old-upload.js +428 -0
- package/lib/layouts/KyInputPicker/setting-radio.js +468 -0
- package/lib/layouts/KyInputPicker/setting-rangepicker.js +466 -0
- package/lib/layouts/KyInputPicker/setting-select.js +534 -0
- package/lib/layouts/KyInputPicker/setting-stu-selector.js +507 -0
- package/lib/layouts/KyInputPicker/setting-switch.js +274 -0
- package/lib/layouts/KyInputPicker/setting-tea-selector.js +507 -0
- package/lib/layouts/KyInputPicker/setting-textarea.js +619 -0
- package/lib/layouts/KyInputPicker/setting-timepicker.js +437 -0
- package/lib/layouts/KyInputPicker/setting-upload.js +766 -0
- package/lib/layouts/KyModal/buildTitle.js +81 -0
- package/lib/layouts/KyModal/dragM.js +127 -0
- package/lib/layouts/KyModal/index.js +321 -0
- package/lib/layouts/KyPreview/index.js +219 -0
- package/lib/layouts/KyUpload/index.js +1155 -0
- package/lib/layouts/LeftMenu/index.js +5 -11
- package/lib/layouts/NavigationBar/index.js +4 -10
- package/lib/layouts/Top/editPassWord.js +5 -7
- package/lib/layouts/Top/index.js +6 -20
- package/lib/layouts/TopMenu/index.js +11 -14
- package/lib/layouts/layout/index.js +7 -13
- package/lib/layouts/{Login → login}/index-pre.js +3 -5
- package/lib/layouts/{Login → login}/index.js +6 -8
- package/lib/layouts/{Login → login}/login.js +8 -17
- package/lib/layouts/mixTop/index.js +13 -28
- package/lib/layouts/settingDrawer/index.js +3 -5
- package/lib/routes/AuthorizedRoute.js +7 -13
- package/lib/utils/NHCore.js +46 -2
- package/lib/utils/base64.js +238 -0
- package/lib/utils/browserJudge.js +33 -0
- package/lib/utils/common.js +18 -20
- package/lib/utils/createUuid.js +11 -31
- package/lib/utils/device.js +44 -0
- package/lib/utils/dynamicLoadCss.js +14 -0
- package/lib/utils/dynamicLoadJs.js +21 -0
- package/lib/utils/getLoginUser.js +1 -1
- package/lib/utils/getSize.js +2 -11
- package/lib/utils/getStyle.js +26 -0
- package/lib/utils/getSuitHeight.js +49 -0
- package/lib/utils/hasAuth.js +11 -0
- package/lib/utils/index.js +1 -34
- package/lib/utils/loadJS.js +40 -0
- package/package.json +1 -1
- /package/lib/layouts/{Login → login}/lyPassword.js +0 -0
|
@@ -0,0 +1,237 @@
|
|
|
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 _EditForm = require('./EditForm');
|
|
26
|
+
|
|
27
|
+
var _EditForm2 = _interopRequireDefault(_EditForm);
|
|
28
|
+
|
|
29
|
+
var _NHFetch = require('../../../../utils/NHFetch');
|
|
30
|
+
|
|
31
|
+
var _NHFetch2 = _interopRequireDefault(_NHFetch);
|
|
32
|
+
|
|
33
|
+
var _moment = require('moment');
|
|
34
|
+
|
|
35
|
+
var _moment2 = _interopRequireDefault(_moment);
|
|
36
|
+
|
|
37
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
38
|
+
|
|
39
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
40
|
+
|
|
41
|
+
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; }
|
|
42
|
+
|
|
43
|
+
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; }
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 勤工助学岗位申请(移动端自定义表单)
|
|
47
|
+
* @author: zengxiangkai
|
|
48
|
+
* @date: 2020-05-19 10:55:40
|
|
49
|
+
*/
|
|
50
|
+
var ApplyForPositionIndex = function (_React$Component) {
|
|
51
|
+
_inherits(ApplyForPositionIndex, _React$Component);
|
|
52
|
+
|
|
53
|
+
function ApplyForPositionIndex(props) {
|
|
54
|
+
_classCallCheck(this, ApplyForPositionIndex);
|
|
55
|
+
|
|
56
|
+
var _this = _possibleConstructorReturn(this, (ApplyForPositionIndex.__proto__ || Object.getPrototypeOf(ApplyForPositionIndex)).call(this, props));
|
|
57
|
+
|
|
58
|
+
_this.validate = function (func) {
|
|
59
|
+
_this.nhEditForm.validateFields(function (err, formData) {
|
|
60
|
+
if (err) {
|
|
61
|
+
func(false);
|
|
62
|
+
} else {
|
|
63
|
+
//校验空闲时间是否为空
|
|
64
|
+
var kxsjEmptyFlag = true;
|
|
65
|
+
var kxsjChecked = _this.state.kxsjChecked;
|
|
66
|
+
|
|
67
|
+
kxsjout: for (var i = 0; i < kxsjChecked.length; i++) {
|
|
68
|
+
var arr = kxsjChecked[i];
|
|
69
|
+
for (var j = 0; j < arr.length; j++) {
|
|
70
|
+
if (arr[j] == 1) {
|
|
71
|
+
kxsjEmptyFlag = false;
|
|
72
|
+
break kxsjout;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
var fieldMap = _this.props.fieldMap;
|
|
77
|
+
|
|
78
|
+
if (fieldMap.KXSJ && fieldMap.KXSJ.sfxs === '1' && fieldMap.KXSJ.sfbt === '1' && kxsjEmptyFlag) {
|
|
79
|
+
func(false);
|
|
80
|
+
} else {
|
|
81
|
+
_this.setState({ formData: formData }, function () {
|
|
82
|
+
func(true);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
_this.saveKxsjChecked = function (kxsjChecked) {
|
|
90
|
+
_this.setState({
|
|
91
|
+
kxsjChecked: kxsjChecked
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
_this.save = function (func) {
|
|
96
|
+
var _this$props = _this.props,
|
|
97
|
+
processApplyId = _this$props.processApplyId,
|
|
98
|
+
objId = _this$props.objId,
|
|
99
|
+
pkid = _this$props.pkid;
|
|
100
|
+
var formData = _this.state.formData;
|
|
101
|
+
|
|
102
|
+
var param = formData;
|
|
103
|
+
param.gwxxid = formData.gwxxid ? formData.gwxxid[0] : '';
|
|
104
|
+
param.kssj = formData.kssj ? (0, _moment2.default)(formData.kssj, 'YYYY-MM-DD') : (0, _moment2.default)(new Date(), 'YYYY-MM-DD');
|
|
105
|
+
param.rzgwid = pkid;
|
|
106
|
+
param.xsid = objId;
|
|
107
|
+
param.lcslid = processApplyId;
|
|
108
|
+
// param.kxsj = JSON.stringify(this.state.kxsj);
|
|
109
|
+
param.sffcfp = formData.sffcfp ? '1' : '0';
|
|
110
|
+
|
|
111
|
+
var fjList = param.fjid ? [param.fjid] : [];
|
|
112
|
+
|
|
113
|
+
//计算空闲时间
|
|
114
|
+
var xq = [{ xs: "周一", db: 'Monday' }, { xs: "周二", db: 'Tuesday' }, { xs: "周三", db: 'Wednesday' }, { xs: "周四", db: 'Thursday' }, { xs: "周五", db: 'Friday' }];
|
|
115
|
+
var kxsjChecked = _this.state.kxsjChecked;
|
|
116
|
+
|
|
117
|
+
var kxsj = [];
|
|
118
|
+
for (var i = 0; i < 5; i++) {
|
|
119
|
+
var checked = [];
|
|
120
|
+
for (var j = 0; j < 8; j++) {
|
|
121
|
+
if (kxsjChecked[i][j] == 1) {
|
|
122
|
+
checked.push(j + 1);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (checked.length > 0) {
|
|
126
|
+
var obj = {
|
|
127
|
+
"week": xq[i].db,
|
|
128
|
+
"section": checked
|
|
129
|
+
};
|
|
130
|
+
kxsj.push(obj);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
param.kxsj = JSON.stringify(kxsj);
|
|
134
|
+
|
|
135
|
+
// 如果有附件则先保存附件
|
|
136
|
+
if (fjList && fjList.length > 0) {
|
|
137
|
+
(0, _NHFetch2.default)('front/zhxg-unauth/dynamic/save', 'POST', fjList).then(function (res) {
|
|
138
|
+
if (res && res.code === 200) {
|
|
139
|
+
return (0, _NHFetch2.default)('api/sm-work-study/openapi/saveXsgwrzsq', 'POST', param);
|
|
140
|
+
} else {
|
|
141
|
+
_toast2.default.fail("附件保存失败");
|
|
142
|
+
}
|
|
143
|
+
}).then(function (res) {
|
|
144
|
+
if (res && res.code === 200) {
|
|
145
|
+
func();
|
|
146
|
+
} else {
|
|
147
|
+
_toast2.default.fail("保存失败");
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
} else {
|
|
151
|
+
(0, _NHFetch2.default)('api/sm-work-study/openapi/saveXsgwrzsq', 'POST', param).then(function (res) {
|
|
152
|
+
if (res && res.code === 200) {
|
|
153
|
+
func();
|
|
154
|
+
} else {
|
|
155
|
+
_toast2.default.fail("保存失败");
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
_this.queryAuditList = function (pkid) {
|
|
162
|
+
(0, _NHFetch2.default)('api/sm-work-study/openapi/queryGwfzr/' + pkid, 'GET').then(function (res) {
|
|
163
|
+
if (res && res.code === 200) {
|
|
164
|
+
_this.auditCallback(res.data);
|
|
165
|
+
_this.setState({
|
|
166
|
+
auditList: res.data
|
|
167
|
+
});
|
|
168
|
+
} else {
|
|
169
|
+
message.error("请求异常,请稍后再试!");
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
_this.auditCallback = function (list) {
|
|
175
|
+
_this.props.auditCallback(list);
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
_this.state = {
|
|
179
|
+
formData: {},
|
|
180
|
+
// kxsj: []
|
|
181
|
+
auditList: [], //审核人列表
|
|
182
|
+
kxsjChecked: [] //空闲时间是否选中
|
|
183
|
+
};
|
|
184
|
+
return _this;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* 校验该分类表单是否全部填写完成,该方法必须存在
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
//保存空闲时间是否选中
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
//保存
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
//获取岗位信息负责人
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
_createClass(ApplyForPositionIndex, [{
|
|
202
|
+
key: 'render',
|
|
203
|
+
value: function render() {
|
|
204
|
+
var _this2 = this;
|
|
205
|
+
|
|
206
|
+
return _react2.default.createElement(_EditForm2.default, _extends({
|
|
207
|
+
ref: function ref(form) {
|
|
208
|
+
_this2.nhEditForm = form;
|
|
209
|
+
}
|
|
210
|
+
}, this.props, {
|
|
211
|
+
queryAuditList: this.queryAuditList,
|
|
212
|
+
saveKxsjChecked: this.saveKxsjChecked
|
|
213
|
+
}));
|
|
214
|
+
}
|
|
215
|
+
}]);
|
|
216
|
+
|
|
217
|
+
return ApplyForPositionIndex;
|
|
218
|
+
}(_react2.default.Component);
|
|
219
|
+
|
|
220
|
+
exports.default = ApplyForPositionIndex;
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
ApplyForPositionIndex.defaultProps = {
|
|
224
|
+
fieldMap: {},
|
|
225
|
+
params: {}
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
ApplyForPositionIndex.propTypes = {
|
|
229
|
+
pkid: _propTypes2.default.string, //业务表主键ID
|
|
230
|
+
objId: _propTypes2.default.string, //对象ID
|
|
231
|
+
processId: _propTypes2.default.string, //流程ID
|
|
232
|
+
processApplyId: _propTypes2.default.string, //流程申请主键ID
|
|
233
|
+
fieldMap: _propTypes2.default.object, //字段信息,可以通过该对象获取到该字段,是否可以显示(sfxs)、是否可以编辑(sfbj)、是否必填等信息(sfbt)
|
|
234
|
+
params: _propTypes2.default.object, //参数集合,主要通过该参数集合给自定义面板传参
|
|
235
|
+
isEdit: _propTypes2.default.bool, //是否是编辑状态
|
|
236
|
+
title: _propTypes2.default.string
|
|
237
|
+
};
|