@bchr/bchr-front-lib 0.3.131 → 0.3.134
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/lib/base/AppFormulaFunctions.js +71 -46
- package/lib/base/layout/ui_tpl/form/FormForBrowse.js +30 -8
- package/lib/base/layout/ui_tpl/form/FormForModify.js +30 -8
- package/package.json +1 -1
- package/src/base/AppFormulaFunctions.js +117 -64
- package/src/base/layout/ui_tpl/form/FormForBrowse.js +10 -4
- package/src/base/layout/ui_tpl/form/FormForModify.js +11 -4
|
@@ -4,6 +4,16 @@ var _moment = _interopRequireDefault(require("moment"));
|
|
|
4
4
|
|
|
5
5
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6
6
|
|
|
7
|
+
var workPlace = {
|
|
8
|
+
"TangGu": "1119001",
|
|
9
|
+
"YanJiao": "1119002",
|
|
10
|
+
"XinJiang": "1119003",
|
|
11
|
+
"ShangHai": "1119004",
|
|
12
|
+
"ZhanJiang": "1119005",
|
|
13
|
+
"ShenZhen": "1119006",
|
|
14
|
+
"HaiNan": "1119007",
|
|
15
|
+
"HaiWai": "1119008"
|
|
16
|
+
};
|
|
7
17
|
window.AppFormulaFunctions = {
|
|
8
18
|
getCurrentMonthFirstDay: function getCurrentMonthFirstDay() {
|
|
9
19
|
return (0, _moment["default"])().date(1).format("YYYY-MM-DD");
|
|
@@ -38,7 +48,7 @@ window.AppFormulaFunctions = {
|
|
|
38
48
|
datePlusMonths: function datePlusMonths(dateStr, during_months) {
|
|
39
49
|
if (dateStr && during_months) {
|
|
40
50
|
var baseDate = (0, _moment["default"])(dateStr, "YYYY-MM-DD");
|
|
41
|
-
return baseDate.add(during_months, 'months').format("YYYY-MM-DD");
|
|
51
|
+
return baseDate.add(during_months, 'months').subtract(1, 'days').format("YYYY-MM-DD");
|
|
42
52
|
}
|
|
43
53
|
|
|
44
54
|
return null;
|
|
@@ -51,26 +61,33 @@ window.AppFormulaFunctions = {
|
|
|
51
61
|
|
|
52
62
|
return null;
|
|
53
63
|
},
|
|
54
|
-
|
|
55
|
-
lifeBTLevel: function lifeBTLevel(
|
|
56
|
-
if (!
|
|
57
|
-
console.log("lifeBTLevel param post_wa_rank_pk: " +
|
|
64
|
+
//生活补贴标准级别
|
|
65
|
+
lifeBTLevel: function lifeBTLevel(execute_wa_grade_pk, work_place_pk) {
|
|
66
|
+
if (!execute_wa_grade_pk || !work_place_pk) {
|
|
67
|
+
console.log("lifeBTLevel param post_wa_rank_pk: " + execute_wa_grade_pk + ",work_place_pk" + work_place_pk);
|
|
58
68
|
return null;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
|
-
|
|
71
|
+
execute_wa_grade_pk = execute_wa_grade_pk + "";
|
|
62
72
|
work_place_pk = work_place_pk + "";
|
|
63
73
|
|
|
64
|
-
if (
|
|
74
|
+
if (execute_wa_grade_pk == "0" || work_place_pk == "0") {
|
|
65
75
|
return null;
|
|
66
|
-
} // M8
|
|
76
|
+
} // M8/T6/B2/W2及以上
|
|
67
77
|
|
|
68
78
|
|
|
69
|
-
var postWaRankOfDeptLevelAndUp = ["
|
|
79
|
+
var postWaRankOfDeptLevelAndUp = ["6018001003", "6018001004", "6018001005", // M8~M10
|
|
80
|
+
"6018001011", "6018001012", "6018001013", // T6~T8
|
|
81
|
+
"6018001015", "6018001016", "6018001017", "6018001018", "6018001019", "6018001020", "6018001021", "6018001022", "6018001023", // B2~B10
|
|
82
|
+
"6018001025", "6018001026", "6018001027", "6018001028", "6018001029", "6018001030", "6018001031", "6018001032", "6018001033", "6018001034", "6018001035", "6018001036", // W2~W13
|
|
83
|
+
"6018002003", "6018002004", "6018002005", "6018002006", "6018002007", "6018002008", "6018002009", "6018002010", "6018002011", // M8~M16
|
|
84
|
+
"6018002014", "6018002015", "6018002016", "6018002017", "6018002018", "6018002019", "6018002020", "6018002021", "6018002022", // T6~T8
|
|
85
|
+
"6018002024", "6018002025", "6018002026", "6018002027", "6018002028", "6018002029", "6018002030", "6018002031", "6018002032", "6018002033", "6018002034", "6018002035", "6018002036" // W2~W14
|
|
86
|
+
];
|
|
70
87
|
|
|
71
|
-
if (work_place_pk ==
|
|
88
|
+
if (work_place_pk == workPlace.ShangHai || work_place_pk == workPlace.ShenZhen) {
|
|
72
89
|
if (postWaRankOfDeptLevelAndUp.findIndex(function (item) {
|
|
73
|
-
return item ==
|
|
90
|
+
return item == execute_wa_grade_pk;
|
|
74
91
|
}) !== -1) {
|
|
75
92
|
// 400
|
|
76
93
|
return "6043006";
|
|
@@ -78,9 +95,9 @@ window.AppFormulaFunctions = {
|
|
|
78
95
|
// 320
|
|
79
96
|
return "6043008";
|
|
80
97
|
}
|
|
81
|
-
} else if (work_place_pk ==
|
|
98
|
+
} else if (work_place_pk == workPlace.TangGu || work_place_pk == workPlace.YanJiao || work_place_pk == workPlace.XinJiang || work_place_pk == workPlace.HaiWai) {
|
|
82
99
|
if (postWaRankOfDeptLevelAndUp.findIndex(function (item) {
|
|
83
|
-
return item ==
|
|
100
|
+
return item == execute_wa_grade_pk;
|
|
84
101
|
}) !== -1) {
|
|
85
102
|
// 355
|
|
86
103
|
return "6043007";
|
|
@@ -88,9 +105,9 @@ window.AppFormulaFunctions = {
|
|
|
88
105
|
// 284
|
|
89
106
|
return "6043010";
|
|
90
107
|
}
|
|
91
|
-
} else if (work_place_pk ==
|
|
108
|
+
} else if (work_place_pk == workPlace.ZhanJiang || work_place_pk == workPlace.HaiNan) {
|
|
92
109
|
if (postWaRankOfDeptLevelAndUp.findIndex(function (item) {
|
|
93
|
-
return item ==
|
|
110
|
+
return item == execute_wa_grade_pk;
|
|
94
111
|
}) !== -1) {
|
|
95
112
|
//250
|
|
96
113
|
return "6043011";
|
|
@@ -102,23 +119,23 @@ window.AppFormulaFunctions = {
|
|
|
102
119
|
|
|
103
120
|
return null;
|
|
104
121
|
},
|
|
105
|
-
//
|
|
106
|
-
houseBTLevel: function houseBTLevel(
|
|
107
|
-
if (!
|
|
108
|
-
console.log("houseBTLevel param
|
|
122
|
+
// 房补级别
|
|
123
|
+
houseBTLevel: function houseBTLevel(execute_wa_grade_pk, work_place_pk, person_class_pk) {
|
|
124
|
+
if (!execute_wa_grade_pk || !work_place_pk || !person_class_pk) {
|
|
125
|
+
console.log("houseBTLevel param execute_wa_grade_pk: " + execute_wa_grade_pk + ",work_place_pk" + work_place_pk + ", person_class_pk=" + person_class_pk);
|
|
109
126
|
return null;
|
|
110
127
|
}
|
|
111
128
|
|
|
112
|
-
|
|
129
|
+
execute_wa_grade_pk = execute_wa_grade_pk + "";
|
|
113
130
|
work_place_pk = work_place_pk + "";
|
|
114
131
|
person_class_pk = person_class_pk + "";
|
|
115
132
|
|
|
116
|
-
if (
|
|
133
|
+
if (execute_wa_grade_pk == "0" || execute_wa_grade_pk == "0") {
|
|
117
134
|
return null;
|
|
118
|
-
} //
|
|
135
|
+
} // 在岗员工-岗位合同制、在岗员工-新劳动合同制、在岗员工-社聘制-直接聘用
|
|
119
136
|
|
|
120
137
|
|
|
121
|
-
var houseBTPersonClassPKs = ["
|
|
138
|
+
var houseBTPersonClassPKs = ["100016", "100011", "100006"];
|
|
122
139
|
|
|
123
140
|
if (houseBTPersonClassPKs.findIndex(function (item) {
|
|
124
141
|
return item == person_class_pk;
|
|
@@ -126,25 +143,31 @@ window.AppFormulaFunctions = {
|
|
|
126
143
|
return null;
|
|
127
144
|
} // 塘沽 燕郊 新疆 上海 湛江 深圳 海南 海外 其他
|
|
128
145
|
// 1119001 1119002 1119003 1119004 1119005 1119006 1119007 1119008 1119999
|
|
129
|
-
// M6
|
|
146
|
+
// M6/T4级及以上/W1
|
|
130
147
|
|
|
131
148
|
|
|
132
|
-
var postWaRankOfM6AndT4Up = [
|
|
149
|
+
var postWaRankOfM6AndT4Up = [// 2021
|
|
150
|
+
"6018001001", "6018001009", "6018001008", "6018001007", "6018001006", "6018001024", // 2019
|
|
151
|
+
"6018002001", "6018002012", "6018002023", // 企劳制
|
|
152
|
+
"6018003012", "6018003013", "6018003014", "6018003015"]; // M8-M7/T6-T5级/W2/B1/B2
|
|
133
153
|
|
|
134
|
-
var postWaRankOfM7_8AndT5_6 = [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
// ];
|
|
154
|
+
var postWaRankOfM7_8AndT5_6 = [// 2021
|
|
155
|
+
"6018001002", "6018001003", "6018001010", "6018001011", "6018001025", "6018001014", "6018001014", // 2019
|
|
156
|
+
"6018002002", "6018002003", "6018002013", "6018002014", "6018002024", // 企劳制
|
|
157
|
+
"6018003016", "6018003017"]; // M9/T7/W3/B3级及以下
|
|
139
158
|
|
|
140
|
-
|
|
159
|
+
var postWaRankOfM9AndT7Down = [// 2021
|
|
160
|
+
"6018001004", "6018001005", "6018001012", "6018001013", "6018001026", "6018001027", "6018001028", "6018001029", "6018001030", "6018001031", "6018001032", "6018001033", "6018001034", "6018001035", "6018001036", "6018001016", "6018001017", "6018001018", "6018001019", "6018001020", "6018001021", "6018001022", "6018001023", // 2019
|
|
161
|
+
"6018002004", "6018002005", "6018002006", "6018002007", "6018002008", "6018002009", "6018002010", "6018002011", "6018002015", "6018002016", "6018002017", "6018002018", "6018002019", "6018002020", "6018002021", "6018002022", "6018002025", "6018002026", "6018002027", "6018002028", "6018002029", "6018002030", "6018002031", "6018002032", "6018002033", "6018002034", "6018002035", "6018002036"];
|
|
162
|
+
|
|
163
|
+
if (work_place_pk == workPlace.ShangHai || work_place_pk == workPlace.ShenZhen) {
|
|
141
164
|
if (postWaRankOfM6AndT4Up.findIndex(function (item) {
|
|
142
|
-
return item ==
|
|
165
|
+
return item == execute_wa_grade_pk;
|
|
143
166
|
}) !== -1) {
|
|
144
167
|
// 1800元/月
|
|
145
168
|
return "6046007";
|
|
146
169
|
} else if (postWaRankOfM7_8AndT5_6.findIndex(function (item) {
|
|
147
|
-
return item ==
|
|
170
|
+
return item == execute_wa_grade_pk;
|
|
148
171
|
}) !== -1) {
|
|
149
172
|
// 1500元/月
|
|
150
173
|
return "6046005";
|
|
@@ -152,18 +175,18 @@ window.AppFormulaFunctions = {
|
|
|
152
175
|
// 1200元/月
|
|
153
176
|
return "6046003";
|
|
154
177
|
}
|
|
155
|
-
} else if (work_place_pk ==
|
|
156
|
-
if (person_class_pk == "100006"
|
|
178
|
+
} else if (work_place_pk == workPlace.XinJiang) {
|
|
179
|
+
if (person_class_pk == "100006") {
|
|
157
180
|
// 800元/月
|
|
158
181
|
return "6046001";
|
|
159
|
-
} else if (person_class_pk == "
|
|
182
|
+
} else if (person_class_pk == "100006") {
|
|
160
183
|
if (postWaRankOfM6AndT4Up.findIndex(function (item) {
|
|
161
|
-
return item ==
|
|
184
|
+
return item == execute_wa_grade_pk;
|
|
162
185
|
}) !== -1) {
|
|
163
186
|
// 1650元/月
|
|
164
187
|
return "6046006";
|
|
165
188
|
} else if (postWaRankOfM7_8AndT5_6.findIndex(function (item) {
|
|
166
|
-
return item ==
|
|
189
|
+
return item == execute_wa_grade_pk;
|
|
167
190
|
}) !== -1) {
|
|
168
191
|
// 1350元/月
|
|
169
192
|
return "6046004";
|
|
@@ -174,12 +197,12 @@ window.AppFormulaFunctions = {
|
|
|
174
197
|
}
|
|
175
198
|
} else {
|
|
176
199
|
if (postWaRankOfM6AndT4Up.findIndex(function (item) {
|
|
177
|
-
return item ==
|
|
200
|
+
return item == execute_wa_grade_pk;
|
|
178
201
|
}) !== -1) {
|
|
179
202
|
// 1650元/月
|
|
180
203
|
return "6046006";
|
|
181
204
|
} else if (postWaRankOfM7_8AndT5_6.findIndex(function (item) {
|
|
182
|
-
return item ==
|
|
205
|
+
return item == execute_wa_grade_pk;
|
|
183
206
|
}) !== -1) {
|
|
184
207
|
// 1350元/月
|
|
185
208
|
return "6046004";
|
|
@@ -191,7 +214,7 @@ window.AppFormulaFunctions = {
|
|
|
191
214
|
|
|
192
215
|
return null;
|
|
193
216
|
},
|
|
194
|
-
//
|
|
217
|
+
// 意外险级别
|
|
195
218
|
accidentInsLevel: function accidentInsLevel(execute_wa_grade_pk) {
|
|
196
219
|
if (!execute_wa_grade_pk) {
|
|
197
220
|
console.log("accidentInsLevel param execute_wa_grade_pk: " + execute_wa_grade_pk);
|
|
@@ -205,15 +228,17 @@ window.AppFormulaFunctions = {
|
|
|
205
228
|
} // M1
|
|
206
229
|
|
|
207
230
|
|
|
208
|
-
var executeWaGradeLevel1 = [
|
|
231
|
+
var executeWaGradeLevel1 = []; // M2、M3、T1
|
|
232
|
+
|
|
233
|
+
var executeWaGradeLevel2 = ["6018001006"]; // M4~M6、T2~T4、W1
|
|
209
234
|
|
|
210
|
-
var
|
|
235
|
+
var executeWaGradeLevel3 = ["6018001001", "6018001007", "6018001008", "6018001009", "6018001024", "6018002001", "6018002012", "6018002023"]; // M7~M8、T5~T6、B1、B2、W2
|
|
211
236
|
|
|
212
|
-
var
|
|
237
|
+
var executeWaGradeLevel4 = ["6018001002", "6018001003", "6018001010", "6018001011", "6018001014", "6018001015", "6018001025", "6018002002", "6018002003", "6018002013", "6018002014", "6018002024", "6018003016", "6018003017"]; // M9~M13、T7~T11、W3~W6、B3~B7
|
|
213
238
|
|
|
214
|
-
var
|
|
239
|
+
var executeWaGradeLevel5 = ["6018001004", "6018001005", "6018001012", "6018001013", "6018001026", "6018001027", "6018001028", "6018001029", "6018001016", "6018001017", "6018001018", "6018001019", "6018001020", "6018002004", "6018002005", "6018002006", "6018002007", "6018002008", "6018002015", "6018002016", "6018002017", "6018002018", "6018002019", "6018002025", "6018002026", "6018002027", "6018002028", "6018003018", "6018003019", "6018003020", "6018003021"]; // M14、T12、W7、B8及以下、G
|
|
215
240
|
|
|
216
|
-
var
|
|
241
|
+
var executeWaGradeLastLevel = [];
|
|
217
242
|
|
|
218
243
|
if (executeWaGradeLevel1.findIndex(function (item) {
|
|
219
244
|
return item == execute_wa_grade_pk;
|
|
@@ -90,8 +90,12 @@ var FormForBrowse = /*#__PURE__*/function (_React$Component) {
|
|
|
90
90
|
return item.belong_form_group === groupName && !item.b_show_infoset_field_group;
|
|
91
91
|
}).map(function (item, index) {
|
|
92
92
|
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
xs: _this.xs,
|
|
94
|
+
sm: _this.sm,
|
|
95
|
+
md: _this.md,
|
|
96
|
+
lg: _this.lg,
|
|
97
|
+
xl: _this.xl,
|
|
98
|
+
xxl: _this.xxl,
|
|
95
99
|
key: "ext_col_" + index
|
|
96
100
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
97
101
|
className: "ant-form-item-group-" + _this.props.label_col + (item.className ? " " + item.className : ""),
|
|
@@ -113,8 +117,12 @@ var FormForBrowse = /*#__PURE__*/function (_React$Component) {
|
|
|
113
117
|
return !item.b_show_infoset_field_group;
|
|
114
118
|
}).map(function (item, index) {
|
|
115
119
|
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
116
|
-
|
|
117
|
-
|
|
120
|
+
xs: _this.xs,
|
|
121
|
+
sm: _this.sm,
|
|
122
|
+
md: _this.md,
|
|
123
|
+
lg: _this.lg,
|
|
124
|
+
xl: _this.xl,
|
|
125
|
+
xxl: _this.xxl,
|
|
118
126
|
key: "ext_col_" + index
|
|
119
127
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
120
128
|
className: "ant-form-item-group-" + _this.props.label_col + (item.className ? " " + item.className : ""),
|
|
@@ -304,8 +312,12 @@ var FormForBrowse = /*#__PURE__*/function (_React$Component) {
|
|
|
304
312
|
_defineProperty(_assertThisInitialized(_this), "generatorFormItem", function (dataItem, is_ext_field) {
|
|
305
313
|
if (is_ext_field) {
|
|
306
314
|
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
307
|
-
|
|
308
|
-
|
|
315
|
+
xs: _this.xs,
|
|
316
|
+
sm: _this.sm,
|
|
317
|
+
md: _this.md,
|
|
318
|
+
lg: _this.lg,
|
|
319
|
+
xl: _this.xl,
|
|
320
|
+
xxl: _this.xxl,
|
|
309
321
|
key: "ext_col_" + dataItem.code
|
|
310
322
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
311
323
|
className: "ant-form-item-group-" + _this.props.label_col + (dataItem.className ? " " + dataItem.className : ""),
|
|
@@ -400,8 +412,12 @@ var FormForBrowse = /*#__PURE__*/function (_React$Component) {
|
|
|
400
412
|
}
|
|
401
413
|
|
|
402
414
|
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
403
|
-
|
|
404
|
-
|
|
415
|
+
xs: _this.xs,
|
|
416
|
+
sm: _this.sm,
|
|
417
|
+
md: _this.md,
|
|
418
|
+
lg: _this.lg,
|
|
419
|
+
xl: _this.xl,
|
|
420
|
+
xxl: _this.xxl,
|
|
405
421
|
key: "col_" + code
|
|
406
422
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
407
423
|
className: "ant-form-item-group-" + _this.props.label_col,
|
|
@@ -451,6 +467,12 @@ var FormForBrowse = /*#__PURE__*/function (_React$Component) {
|
|
|
451
467
|
});
|
|
452
468
|
|
|
453
469
|
_this.ref = _this.props.formref || /*#__PURE__*/_react["default"].createRef();
|
|
470
|
+
_this.xs = _this.props.xs || 24;
|
|
471
|
+
_this.sm = _this.props.sm || 24;
|
|
472
|
+
_this.md = _this.props.md || 24;
|
|
473
|
+
_this.lg = _this.props.lg || 12;
|
|
474
|
+
_this.xl = _this.props.xl || 12;
|
|
475
|
+
_this.xxl = _this.props.xxl || 12;
|
|
454
476
|
return _this;
|
|
455
477
|
}
|
|
456
478
|
|
|
@@ -110,8 +110,12 @@ var FormForModify = /*#__PURE__*/function (_React$Component) {
|
|
|
110
110
|
return item.belong_form_group === groupName && !item.b_show_infoset_field_group;
|
|
111
111
|
}).map(function (item, index) {
|
|
112
112
|
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
xs: _this2.xs,
|
|
114
|
+
sm: _this2.sm,
|
|
115
|
+
md: _this2.md,
|
|
116
|
+
lg: _this2.lg,
|
|
117
|
+
xl: _this2.xl,
|
|
118
|
+
xxl: _this2.xxl,
|
|
115
119
|
key: "ext_col_" + index
|
|
116
120
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
117
121
|
className: "ant-form-item-group-" + _this2.props.label_col + (item.className ? " " + item.className : ""),
|
|
@@ -133,8 +137,12 @@ var FormForModify = /*#__PURE__*/function (_React$Component) {
|
|
|
133
137
|
return !item.b_show_infoset_field_group;
|
|
134
138
|
}).map(function (item, index) {
|
|
135
139
|
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
136
|
-
|
|
137
|
-
|
|
140
|
+
xs: _this2.xs,
|
|
141
|
+
sm: _this2.sm,
|
|
142
|
+
md: _this2.md,
|
|
143
|
+
lg: _this2.lg,
|
|
144
|
+
xl: _this2.xl,
|
|
145
|
+
xxl: _this2.xxl,
|
|
138
146
|
key: "ext_col_" + index
|
|
139
147
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
140
148
|
className: "ant-form-item-group-" + _this2.props.label_col + (item.className ? " " + item.className : ""),
|
|
@@ -327,8 +335,12 @@ var FormForModify = /*#__PURE__*/function (_React$Component) {
|
|
|
327
335
|
|
|
328
336
|
if (is_ext_field) {
|
|
329
337
|
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
330
|
-
|
|
331
|
-
|
|
338
|
+
xs: _this2.xs,
|
|
339
|
+
sm: _this2.sm,
|
|
340
|
+
md: _this2.md,
|
|
341
|
+
lg: _this2.lg,
|
|
342
|
+
xl: _this2.xl,
|
|
343
|
+
xxl: _this2.xxl,
|
|
332
344
|
key: "ext_col_" + dataItem.code
|
|
333
345
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
334
346
|
className: "ant-form-item-group-" + _this2.props.label_col + (dataItem.className ? " " + dataItem.className : ""),
|
|
@@ -602,8 +614,12 @@ var FormForModify = /*#__PURE__*/function (_React$Component) {
|
|
|
602
614
|
}
|
|
603
615
|
|
|
604
616
|
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
605
|
-
|
|
606
|
-
|
|
617
|
+
xs: _this2.xs,
|
|
618
|
+
sm: _this2.sm,
|
|
619
|
+
md: _this2.md,
|
|
620
|
+
lg: _this2.lg,
|
|
621
|
+
xl: _this2.xl,
|
|
622
|
+
xxl: _this2.xxl,
|
|
607
623
|
id: "ant_form_item_".concat(code),
|
|
608
624
|
key: "col_" + code
|
|
609
625
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
@@ -879,6 +895,12 @@ var FormForModify = /*#__PURE__*/function (_React$Component) {
|
|
|
879
895
|
});
|
|
880
896
|
|
|
881
897
|
_this2.ref = _this2.props.formref || /*#__PURE__*/_react["default"].createRef();
|
|
898
|
+
_this2.xs = _this2.props.xs || 24;
|
|
899
|
+
_this2.sm = _this2.props.sm || 24;
|
|
900
|
+
_this2.md = _this2.props.md || 24;
|
|
901
|
+
_this2.lg = _this2.props.lg || 12;
|
|
902
|
+
_this2.xl = _this2.props.xl || 12;
|
|
903
|
+
_this2.xxl = _this2.props.xxl || 12;
|
|
882
904
|
_this2.state = {
|
|
883
905
|
fieldCodeKeyMap: {}
|
|
884
906
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import moment from "moment";
|
|
2
2
|
|
|
3
|
+
const workPlace = {
|
|
4
|
+
"TangGu": "1119001",
|
|
5
|
+
"YanJiao": "1119002",
|
|
6
|
+
"XinJiang": "1119003",
|
|
7
|
+
"ShangHai": "1119004",
|
|
8
|
+
"ZhanJiang": "1119005",
|
|
9
|
+
"ShenZhen": "1119006",
|
|
10
|
+
"HaiNan": "1119007",
|
|
11
|
+
"HaiWai": "1119008",
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
window.AppFormulaFunctions = {
|
|
4
15
|
getCurrentMonthFirstDay : function () {
|
|
5
|
-
return
|
|
16
|
+
return moment().date(1).format("YYYY-MM-DD");
|
|
6
17
|
},
|
|
7
18
|
|
|
8
19
|
getCurrentDateNextMonthFirstDay : function () {
|
|
@@ -12,7 +23,7 @@ window.AppFormulaFunctions = {
|
|
|
12
23
|
currentMonthStartDay : function (dateStr) {
|
|
13
24
|
if (dateStr) {
|
|
14
25
|
let baseDate = moment(dateStr, "YYYY-MM-DD");
|
|
15
|
-
return
|
|
26
|
+
return baseDate.date(1).format("YYYY-MM-DD");
|
|
16
27
|
}
|
|
17
28
|
|
|
18
29
|
return null;
|
|
@@ -21,7 +32,7 @@ window.AppFormulaFunctions = {
|
|
|
21
32
|
nextMonthStartDay : function (dateStr) {
|
|
22
33
|
if (dateStr) {
|
|
23
34
|
let baseDate = moment(dateStr, "YYYY-MM-DD");
|
|
24
|
-
return
|
|
35
|
+
return baseDate.add(1,'months').date(1).format("YYYY-MM-DD");
|
|
25
36
|
}
|
|
26
37
|
|
|
27
38
|
return null;
|
|
@@ -39,7 +50,7 @@ window.AppFormulaFunctions = {
|
|
|
39
50
|
datePlusMonths : function (dateStr, during_months) {
|
|
40
51
|
if (dateStr && during_months) {
|
|
41
52
|
let baseDate = moment(dateStr, "YYYY-MM-DD");
|
|
42
|
-
return baseDate.add(during_months, 'months').format("YYYY-MM-DD")
|
|
53
|
+
return baseDate.add(during_months, 'months').subtract(1, 'days').format("YYYY-MM-DD")
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
return null;
|
|
@@ -54,45 +65,52 @@ window.AppFormulaFunctions = {
|
|
|
54
65
|
return null;
|
|
55
66
|
},
|
|
56
67
|
|
|
57
|
-
|
|
58
|
-
lifeBTLevel : function (
|
|
59
|
-
if (!
|
|
60
|
-
console.log("lifeBTLevel param post_wa_rank_pk: " +
|
|
68
|
+
//生活补贴标准级别
|
|
69
|
+
lifeBTLevel : function (execute_wa_grade_pk, work_place_pk) {
|
|
70
|
+
if (!execute_wa_grade_pk || !work_place_pk) {
|
|
71
|
+
console.log("lifeBTLevel param post_wa_rank_pk: " + execute_wa_grade_pk + ",work_place_pk" + work_place_pk);
|
|
61
72
|
return null;
|
|
62
73
|
}
|
|
63
74
|
|
|
64
|
-
|
|
65
|
-
work_place_pk
|
|
75
|
+
execute_wa_grade_pk = execute_wa_grade_pk + "";
|
|
76
|
+
work_place_pk = work_place_pk + "";
|
|
66
77
|
|
|
67
|
-
if (
|
|
78
|
+
if (execute_wa_grade_pk == "0" || work_place_pk == "0")
|
|
68
79
|
{
|
|
69
80
|
return null;
|
|
70
81
|
}
|
|
71
82
|
|
|
72
|
-
// M8
|
|
83
|
+
// M8/T6/B2/W2及以上
|
|
73
84
|
let postWaRankOfDeptLevelAndUp = [
|
|
74
|
-
"
|
|
75
|
-
"
|
|
85
|
+
"6018001003", "6018001004", "6018001005", // M8~M10
|
|
86
|
+
"6018001011", "6018001012", "6018001013", // T6~T8
|
|
87
|
+
"6018001015", "6018001016", "6018001017", "6018001018", "6018001019", "6018001020", "6018001021", "6018001022", "6018001023", // B2~B10
|
|
88
|
+
"6018001025", "6018001026", "6018001027", "6018001028", "6018001029", "6018001030", "6018001031", "6018001032", "6018001033", "6018001034", "6018001035", "6018001036", // W2~W13
|
|
89
|
+
|
|
90
|
+
"6018002003", "6018002004", "6018002005", "6018002006", "6018002007", "6018002008", "6018002009", "6018002010", "6018002011", // M8~M16
|
|
91
|
+
"6018002014", "6018002015", "6018002016", "6018002017", "6018002018", "6018002019", "6018002020", "6018002021", "6018002022", // T6~T8
|
|
92
|
+
"6018002024", "6018002025", "6018002026", "6018002027", "6018002028", "6018002029", "6018002030", "6018002031", "6018002032", "6018002033", "6018002034", "6018002035", "6018002036" // W2~W14
|
|
76
93
|
];
|
|
77
94
|
|
|
78
|
-
|
|
79
|
-
|
|
95
|
+
|
|
96
|
+
if (work_place_pk == workPlace.ShangHai || work_place_pk == workPlace.ShenZhen) {
|
|
97
|
+
if (postWaRankOfDeptLevelAndUp.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
80
98
|
// 400
|
|
81
99
|
return "6043006";
|
|
82
100
|
} else {
|
|
83
101
|
// 320
|
|
84
102
|
return "6043008";
|
|
85
103
|
}
|
|
86
|
-
} else if (work_place_pk ==
|
|
87
|
-
if (postWaRankOfDeptLevelAndUp.findIndex(item => item ==
|
|
104
|
+
} else if (work_place_pk == workPlace.TangGu || work_place_pk == workPlace.YanJiao || work_place_pk == workPlace.XinJiang || work_place_pk == workPlace.HaiWai) {
|
|
105
|
+
if (postWaRankOfDeptLevelAndUp.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
88
106
|
// 355
|
|
89
107
|
return "6043007";
|
|
90
108
|
} else {
|
|
91
109
|
// 284
|
|
92
110
|
return "6043010";
|
|
93
111
|
}
|
|
94
|
-
} else if (work_place_pk ==
|
|
95
|
-
if (postWaRankOfDeptLevelAndUp.findIndex(item => item ==
|
|
112
|
+
} else if (work_place_pk == workPlace.ZhanJiang || work_place_pk == workPlace.HaiNan) {
|
|
113
|
+
if (postWaRankOfDeptLevelAndUp.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
96
114
|
//250
|
|
97
115
|
return "6043011";
|
|
98
116
|
} else {
|
|
@@ -104,24 +122,24 @@ window.AppFormulaFunctions = {
|
|
|
104
122
|
return null;
|
|
105
123
|
},
|
|
106
124
|
|
|
107
|
-
//
|
|
108
|
-
houseBTLevel : function (
|
|
109
|
-
if (!
|
|
110
|
-
console.log("houseBTLevel param
|
|
125
|
+
// 房补级别
|
|
126
|
+
houseBTLevel : function (execute_wa_grade_pk, work_place_pk, person_class_pk) {
|
|
127
|
+
if (!execute_wa_grade_pk || !work_place_pk || !person_class_pk) {
|
|
128
|
+
console.log("houseBTLevel param execute_wa_grade_pk: " + execute_wa_grade_pk + ",work_place_pk" + work_place_pk + ", person_class_pk=" + person_class_pk);
|
|
111
129
|
return null
|
|
112
130
|
}
|
|
113
131
|
|
|
114
|
-
|
|
115
|
-
work_place_pk
|
|
116
|
-
person_class_pk
|
|
132
|
+
execute_wa_grade_pk = execute_wa_grade_pk + "";
|
|
133
|
+
work_place_pk = work_place_pk + "";
|
|
134
|
+
person_class_pk = person_class_pk + "";
|
|
117
135
|
|
|
118
|
-
if (
|
|
136
|
+
if (execute_wa_grade_pk == "0" || execute_wa_grade_pk == "0")
|
|
119
137
|
{
|
|
120
138
|
return null;
|
|
121
139
|
}
|
|
122
140
|
|
|
123
|
-
//
|
|
124
|
-
let houseBTPersonClassPKs = ["
|
|
141
|
+
// 在岗员工-岗位合同制、在岗员工-新劳动合同制、在岗员工-社聘制-直接聘用
|
|
142
|
+
let houseBTPersonClassPKs = ["100016", "100011", "100006", ];
|
|
125
143
|
if (houseBTPersonClassPKs.findIndex(item => item == person_class_pk) === -1) {
|
|
126
144
|
return null;
|
|
127
145
|
}
|
|
@@ -129,45 +147,68 @@ window.AppFormulaFunctions = {
|
|
|
129
147
|
// 塘沽 燕郊 新疆 上海 湛江 深圳 海南 海外 其他
|
|
130
148
|
// 1119001 1119002 1119003 1119004 1119005 1119006 1119007 1119008 1119999
|
|
131
149
|
|
|
132
|
-
// M6
|
|
150
|
+
// M6/T4级及以上/W1
|
|
133
151
|
let postWaRankOfM6AndT4Up = [
|
|
134
|
-
|
|
135
|
-
"
|
|
152
|
+
// 2021
|
|
153
|
+
"6018001001",
|
|
154
|
+
"6018001009", "6018001008", "6018001007", "6018001006",
|
|
155
|
+
"6018001024",
|
|
156
|
+
// 2019
|
|
157
|
+
"6018002001",
|
|
158
|
+
"6018002012",
|
|
159
|
+
"6018002023",
|
|
160
|
+
// 企劳制
|
|
161
|
+
"6018003012", "6018003013", "6018003014", "6018003015",
|
|
136
162
|
];
|
|
137
163
|
|
|
138
|
-
//
|
|
164
|
+
// M8-M7/T6-T5级/W2/B1/B2
|
|
139
165
|
let postWaRankOfM7_8AndT5_6 = [
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
"
|
|
166
|
+
// 2021
|
|
167
|
+
"6018001002", "6018001003",
|
|
168
|
+
"6018001010", "6018001011",
|
|
169
|
+
"6018001025",
|
|
170
|
+
"6018001014", "6018001014",
|
|
171
|
+
// 2019
|
|
172
|
+
"6018002002", "6018002003",
|
|
173
|
+
"6018002013", "6018002014",
|
|
174
|
+
"6018002024",
|
|
175
|
+
// 企劳制
|
|
176
|
+
"6018003016", "6018003017",
|
|
143
177
|
];
|
|
144
178
|
|
|
145
|
-
// M9/T7级及以下
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
179
|
+
// M9/T7/W3/B3级及以下
|
|
180
|
+
let postWaRankOfM9AndT7Down = [
|
|
181
|
+
// 2021
|
|
182
|
+
"6018001004", "6018001005",
|
|
183
|
+
"6018001012", "6018001013",
|
|
184
|
+
"6018001026", "6018001027", "6018001028", "6018001029", "6018001030", "6018001031", "6018001032", "6018001033", "6018001034", "6018001035", "6018001036",
|
|
185
|
+
"6018001016", "6018001017", "6018001018", "6018001019", "6018001020", "6018001021", "6018001022", "6018001023",
|
|
186
|
+
// 2019
|
|
187
|
+
"6018002004", "6018002005", "6018002006", "6018002007", "6018002008", "6018002009", "6018002010", "6018002011",
|
|
188
|
+
"6018002015", "6018002016", "6018002017", "6018002018", "6018002019", "6018002020", "6018002021", "6018002022",
|
|
189
|
+
"6018002025", "6018002026", "6018002027", "6018002028", "6018002029", "6018002030", "6018002031", "6018002032", "6018002033", "6018002034", "6018002035", "6018002036",
|
|
190
|
+
];
|
|
150
191
|
|
|
151
|
-
if (work_place_pk ==
|
|
152
|
-
if (postWaRankOfM6AndT4Up.findIndex(item => item ==
|
|
192
|
+
if (work_place_pk == workPlace.ShangHai || work_place_pk == workPlace.ShenZhen) {
|
|
193
|
+
if (postWaRankOfM6AndT4Up.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
153
194
|
// 1800元/月
|
|
154
195
|
return "6046007";
|
|
155
|
-
} else if (postWaRankOfM7_8AndT5_6.findIndex(item => item ==
|
|
196
|
+
} else if (postWaRankOfM7_8AndT5_6.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
156
197
|
// 1500元/月
|
|
157
|
-
|
|
198
|
+
return "6046005";
|
|
158
199
|
} else {
|
|
159
200
|
// 1200元/月
|
|
160
201
|
return "6046003";
|
|
161
202
|
}
|
|
162
|
-
} else if (work_place_pk ==
|
|
163
|
-
if (person_class_pk == "100006"
|
|
203
|
+
} else if (work_place_pk == workPlace.XinJiang) {
|
|
204
|
+
if (person_class_pk == "100006") {
|
|
164
205
|
// 800元/月
|
|
165
206
|
return "6046001"
|
|
166
|
-
} else if (person_class_pk == "
|
|
167
|
-
if (postWaRankOfM6AndT4Up.findIndex(item => item ==
|
|
207
|
+
} else if (person_class_pk == "100006") {
|
|
208
|
+
if (postWaRankOfM6AndT4Up.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
168
209
|
// 1650元/月
|
|
169
210
|
return "6046006";
|
|
170
|
-
} else if (postWaRankOfM7_8AndT5_6.findIndex(item => item ==
|
|
211
|
+
} else if (postWaRankOfM7_8AndT5_6.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
171
212
|
// 1350元/月
|
|
172
213
|
return "6046004";
|
|
173
214
|
} else {
|
|
@@ -176,10 +217,10 @@ window.AppFormulaFunctions = {
|
|
|
176
217
|
}
|
|
177
218
|
}
|
|
178
219
|
} else {
|
|
179
|
-
if (postWaRankOfM6AndT4Up.findIndex(item => item ==
|
|
220
|
+
if (postWaRankOfM6AndT4Up.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
180
221
|
// 1650元/月
|
|
181
222
|
return "6046006";
|
|
182
|
-
} else if (postWaRankOfM7_8AndT5_6.findIndex(item => item ==
|
|
223
|
+
} else if (postWaRankOfM7_8AndT5_6.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
183
224
|
// 1350元/月
|
|
184
225
|
return "6046004";
|
|
185
226
|
} else {
|
|
@@ -191,7 +232,7 @@ window.AppFormulaFunctions = {
|
|
|
191
232
|
return null;
|
|
192
233
|
},
|
|
193
234
|
|
|
194
|
-
//
|
|
235
|
+
// 意外险级别
|
|
195
236
|
accidentInsLevel : function (execute_wa_grade_pk) {
|
|
196
237
|
if (!execute_wa_grade_pk) {
|
|
197
238
|
console.log("accidentInsLevel param execute_wa_grade_pk: " + execute_wa_grade_pk)
|
|
@@ -205,18 +246,30 @@ window.AppFormulaFunctions = {
|
|
|
205
246
|
}
|
|
206
247
|
|
|
207
248
|
// M1
|
|
208
|
-
let executeWaGradeLevel1 = [
|
|
249
|
+
let executeWaGradeLevel1 = [];
|
|
209
250
|
// M2、M3、T1
|
|
210
|
-
let executeWaGradeLevel2 = ["
|
|
211
|
-
// M4
|
|
212
|
-
let executeWaGradeLevel3 = [
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
251
|
+
let executeWaGradeLevel2 = ["6018001006"];
|
|
252
|
+
// M4~M6、T2~T4、W1
|
|
253
|
+
let executeWaGradeLevel3 = [
|
|
254
|
+
"6018001001", "6018001007", "6018001008", "6018001009", "6018001024",
|
|
255
|
+
"6018002001", "6018002012", "6018002023",
|
|
256
|
+
];
|
|
257
|
+
// M7~M8、T5~T6、B1、B2、W2
|
|
258
|
+
let executeWaGradeLevel4 = [
|
|
259
|
+
"6018001002", "6018001003", "6018001010", "6018001011", "6018001014", "6018001015", "6018001025",
|
|
260
|
+
"6018002002", "6018002003", "6018002013", "6018002014", "6018002024",
|
|
261
|
+
"6018003016", "6018003017",
|
|
262
|
+
];
|
|
263
|
+
// M9~M13、T7~T11、W3~W6、B3~B7
|
|
216
264
|
let executeWaGradeLevel5 = [
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
265
|
+
"6018001004", "6018001005", "6018001012", "6018001013", "6018001026", "6018001027", "6018001028", "6018001029", "6018001016", "6018001017", "6018001018", "6018001019", "6018001020",
|
|
266
|
+
"6018002004", "6018002005", "6018002006", "6018002007", "6018002008", "6018002015", "6018002016", "6018002017", "6018002018", "6018002019", "6018002025", "6018002026",
|
|
267
|
+
"6018002027", "6018002028",
|
|
268
|
+
"6018003018", "6018003019", "6018003020", "6018003021",
|
|
269
|
+
];
|
|
270
|
+
// M14、T12、W7、B8及以下、G
|
|
271
|
+
let executeWaGradeLastLevel = [
|
|
272
|
+
|
|
220
273
|
];
|
|
221
274
|
|
|
222
275
|
if (executeWaGradeLevel1.findIndex(item => item == execute_wa_grade_pk) !== -1) {
|
|
@@ -11,6 +11,12 @@ class FormForBrowse extends React.Component{
|
|
|
11
11
|
super(props);
|
|
12
12
|
|
|
13
13
|
this.ref = this.props.formref || React.createRef();
|
|
14
|
+
this.xs = this.props.xs || 24;
|
|
15
|
+
this.sm = this.props.sm || 24;
|
|
16
|
+
this.md = this.props.md || 24;
|
|
17
|
+
this.lg = this.props.lg || 12;
|
|
18
|
+
this.xl = this.props.xl || 12;
|
|
19
|
+
this.xxl = this.props.xxl || 12;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
componentDidMount() {
|
|
@@ -45,7 +51,7 @@ class FormForBrowse extends React.Component{
|
|
|
45
51
|
{
|
|
46
52
|
ext_form_items.filter(item => item.belong_form_group === groupName && !item.b_show_infoset_field_group).map((item, index) => {
|
|
47
53
|
return (
|
|
48
|
-
<Col
|
|
54
|
+
<Col xs={this.xs} sm={this.sm} md={this.md} lg={this.lg} xl={this.xl} xxl={this.xxl} key={"ext_col_" + index}>
|
|
49
55
|
{
|
|
50
56
|
<Form.Item
|
|
51
57
|
className={("ant-form-item-group-" + this.props.label_col) + (item.className ? " " + item.className : "")}
|
|
@@ -73,7 +79,7 @@ class FormForBrowse extends React.Component{
|
|
|
73
79
|
{
|
|
74
80
|
ext_form_items.filter(item => !item.b_show_infoset_field_group).map((item, index) => {
|
|
75
81
|
return (
|
|
76
|
-
<Col
|
|
82
|
+
<Col xs={this.xs} sm={this.sm} md={this.md} lg={this.lg} xl={this.xl} xxl={this.xxl} key={"ext_col_" + index}>
|
|
77
83
|
{
|
|
78
84
|
<Form.Item
|
|
79
85
|
className={("ant-form-item-group-" + this.props.label_col) + (item.className ? " " + item.className : "")}
|
|
@@ -276,7 +282,7 @@ class FormForBrowse extends React.Component{
|
|
|
276
282
|
if (is_ext_field) {
|
|
277
283
|
|
|
278
284
|
return (
|
|
279
|
-
<Col
|
|
285
|
+
<Col xs={this.xs} sm={this.sm} md={this.md} lg={this.lg} xl={this.xl} xxl={this.xxl} key={"ext_col_" + dataItem.code}>
|
|
280
286
|
{
|
|
281
287
|
<Form.Item
|
|
282
288
|
className={("ant-form-item-group-" + this.props.label_col) + (dataItem.className ? " " + dataItem.className : "")}
|
|
@@ -371,7 +377,7 @@ class FormForBrowse extends React.Component{
|
|
|
371
377
|
}
|
|
372
378
|
|
|
373
379
|
return (
|
|
374
|
-
<Col
|
|
380
|
+
<Col xs={this.xs} sm={this.sm} md={this.md} lg={this.lg} xl={this.xl} xxl={this.xxl} key={"col_" + code}>
|
|
375
381
|
<Form.Item
|
|
376
382
|
className={"ant-form-item-group-" + this.props.label_col}
|
|
377
383
|
key={dataItem.code}
|
|
@@ -38,6 +38,13 @@ class FormForModify extends React.Component{
|
|
|
38
38
|
|
|
39
39
|
this.ref = this.props.formref || React.createRef();
|
|
40
40
|
|
|
41
|
+
this.xs = this.props.xs || 24;
|
|
42
|
+
this.sm = this.props.sm || 24;
|
|
43
|
+
this.md = this.props.md || 24;
|
|
44
|
+
this.lg = this.props.lg || 12;
|
|
45
|
+
this.xl = this.props.xl || 12;
|
|
46
|
+
this.xxl = this.props.xxl || 12;
|
|
47
|
+
|
|
41
48
|
this.state = {
|
|
42
49
|
fieldCodeKeyMap: {},
|
|
43
50
|
}
|
|
@@ -114,7 +121,7 @@ class FormForModify extends React.Component{
|
|
|
114
121
|
{
|
|
115
122
|
ext_form_items.filter(item => item.belong_form_group === groupName && !item.b_show_infoset_field_group).map((item, index) => {
|
|
116
123
|
return (
|
|
117
|
-
<Col
|
|
124
|
+
<Col xs={this.xs} sm={this.sm} md={this.md} lg={this.lg} xl={this.xl} xxl={this.xxl} key={"ext_col_" + index}>
|
|
118
125
|
{
|
|
119
126
|
<Form.Item
|
|
120
127
|
className={("ant-form-item-group-" + this.props.label_col) + (item.className ? " " + item.className : "")}
|
|
@@ -143,7 +150,7 @@ class FormForModify extends React.Component{
|
|
|
143
150
|
{
|
|
144
151
|
ext_form_items.filter(item => !item.b_show_infoset_field_group).map((item, index) => {
|
|
145
152
|
return (
|
|
146
|
-
<Col
|
|
153
|
+
<Col xs={this.xs} sm={this.sm} md={this.md} lg={this.lg} xl={this.xl} xxl={this.xxl} key={"ext_col_" + index}>
|
|
147
154
|
{
|
|
148
155
|
<Form.Item
|
|
149
156
|
className={("ant-form-item-group-" + this.props.label_col) + (item.className ? " " + item.className : "")}
|
|
@@ -319,7 +326,7 @@ class FormForModify extends React.Component{
|
|
|
319
326
|
|
|
320
327
|
if (is_ext_field) {
|
|
321
328
|
return (
|
|
322
|
-
<Col
|
|
329
|
+
<Col xs={this.xs} sm={this.sm} md={this.md} lg={this.lg} xl={this.xl} xxl={this.xxl} key={"ext_col_" + dataItem.code}>
|
|
323
330
|
{
|
|
324
331
|
<Form.Item
|
|
325
332
|
className={("ant-form-item-group-" + this.props.label_col) + (dataItem.className ? " " + dataItem.className : "")}
|
|
@@ -702,7 +709,7 @@ class FormForModify extends React.Component{
|
|
|
702
709
|
}
|
|
703
710
|
|
|
704
711
|
return (
|
|
705
|
-
<Col
|
|
712
|
+
<Col xs={this.xs} sm={this.sm} md={this.md} lg={this.lg} xl={this.xl} xxl={this.xxl} id={`ant_form_item_${code}`} key={"col_" + code}>
|
|
706
713
|
<Form.Item
|
|
707
714
|
className={(b_readonly ? "readonly-form-ant-col " : " ") + " ant-form-item-group-" + this.props.label_col}
|
|
708
715
|
key={code}
|