personnelAll.jsx 76 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import moment from "moment";
  4. import "@/manageCenter/financialManage/distribute/public.less";
  5. import { ChooseList } from "../../order/orderNew/chooseList";
  6. import { citySelect, provinceList, areaSelect, Birthplace } from "@/areaList";
  7. import "./personnelList.less"
  8. import {
  9. Button,
  10. Form,
  11. Input,
  12. Select,
  13. Spin,
  14. Table,
  15. message,
  16. Modal,
  17. Tabs,
  18. Tag,
  19. RangePicker,
  20. DatePicker,
  21. Radio,
  22. Cascader,
  23. Upload,
  24. Tooltip,
  25. } from "antd";
  26. import { splitUrl } from "@/tools";
  27. import { getProvinceList } from "@/addressList";
  28. import PicModal from "./picModal"
  29. const FormItem = Form.Item;
  30. const { TabPane } = Tabs;
  31. const { TextArea } = Input;
  32. const PersonnelAll = React.createClass({
  33. loadData(pageNo) {
  34. this.state.data = [];
  35. this.setState({
  36. loading: true,
  37. });
  38. $.ajax({
  39. method: "get",
  40. dataType: "json",
  41. crossDomain: false,
  42. url: globalConfig.context + "/api/admin/personnel/selectList",
  43. data: {
  44. pageNo: pageNo || 1,
  45. pageSize: this.state.pagination.pageSize,
  46. name: this.state.nameSearch,
  47. status: this.state.nameSearch,
  48. company: this.state.nameSearch,
  49. sex: this.state.nameSearch,
  50. marriage: this.state.nameSearch,
  51. politicalOutlook: this.state.nameSearch,
  52. birthdayMonth: this.state.nameSearch,
  53. promotionStart: this.state.promotionTime[0],
  54. promotionEnd: this.state.promotionTime[1],
  55. entryStart: this.state.entryTime[0],
  56. entryStart: this.state.entryTime[1],
  57. quitStart: this.state.quitTime[0],
  58. quitEnd: this.state.quitTime[1],
  59. system: this.state.systemSearch,
  60. workingYears: this.state.workingYearsSearch,
  61. education: this.state.educationSearch,
  62. contractStart: this.state.contractTime[0],
  63. contractEnd: this.state.contractTime[1],
  64. },
  65. success: function (data) {
  66. let theArr = [];
  67. if (!data.data || !data.data.list) {
  68. if (data.error && data.error.length) {
  69. message.warning(data.error[0].message);
  70. }
  71. } else {
  72. for (let i = 0; i < data.data.list.length; i++) {
  73. let thisdata = data.data.list[i];
  74. thisdata.key = thisdata.id
  75. theArr.push(thisdata)
  76. }
  77. }
  78. this.state.pagination.current = data.data.pageNo;
  79. this.state.pagination.total = data.data.totalCount;
  80. if (data.data && data.data.list && !data.data.list.length) {
  81. this.state.pagination.current = 0;
  82. this.state.pagination.total = 0;
  83. }
  84. this.setState({
  85. dataSource: theArr,
  86. pagination: this.state.pagination,
  87. });
  88. }.bind(this),
  89. }).always(
  90. function () {
  91. this.setState({
  92. loading: false,
  93. });
  94. }.bind(this)
  95. );
  96. },
  97. getInitialState() {
  98. return {
  99. ModalData: [],
  100. contractTime: [],
  101. quitTime: [],
  102. promotionTime: [],
  103. entryTime: [],
  104. pic: [],
  105. previewImage: "",
  106. peoVisible: false,
  107. phoneVisible: false,
  108. isAddPeo: false,
  109. searchMore: true,
  110. stayVisible: false,
  111. assignVisible: false,
  112. releaseDate: [],
  113. residence: [],
  114. nativePlace: [],
  115. now: [],
  116. roleName: "",
  117. shouKuanDate: [],
  118. boHuivisible: false,
  119. departmentArr: [],
  120. selectedRowKeys: [],
  121. selectedRows: [],
  122. paginations: false,
  123. loading: false,
  124. pagination: {
  125. defaultCurrent: 1,
  126. defaultPageSize: 10,
  127. showQuickJumper: true,
  128. pageSize: 10,
  129. onChange: function (page) {
  130. this.loadData(page);
  131. }.bind(this),
  132. showTotal: function (total) {
  133. return "共" + total + "条数据";
  134. },
  135. },
  136. columns: [
  137. {
  138. title: "人事编号",
  139. dataIndex: "id",
  140. key: "id",
  141. },
  142. {
  143. title: "门禁编号",
  144. dataIndex: "doorId",
  145. key: "doorId",
  146. },
  147. {
  148. title: "名称",
  149. dataIndex: "name",
  150. key: "name",
  151. },
  152. {
  153. title: "员工状态",
  154. dataIndex: "status",
  155. key: "status",
  156. render: (text) => {
  157. if (text == 0) {
  158. return "在职(试用期)";
  159. } else if (text == 1) {
  160. return "在职(正式工)";
  161. } else if (text == 2) {
  162. return "离职";
  163. }
  164. },
  165. },
  166. {
  167. title: "所属系统",
  168. dataIndex: "system",
  169. key: "system",
  170. render: (text) => {
  171. if (text == 0) {
  172. return "管理系统";
  173. } else if (text == 1) {
  174. return "营销系统";
  175. } else if (text == 2) {
  176. return "技术系统";
  177. }
  178. },
  179. },
  180. {
  181. title: "公司名称",
  182. dataIndex: "depName",
  183. key: "depName",
  184. },
  185. {
  186. title: "职位名称",
  187. dataIndex: "jobsName",
  188. key: "jobsName",
  189. },
  190. {
  191. title: "等级名称",
  192. dataIndex: "starName",
  193. key: "starName",
  194. },
  195. {
  196. title: "入职时间",
  197. dataIndex: "entryTimes",
  198. key: "entryTimes",
  199. },
  200. {
  201. title: "转正时间",
  202. dataIndex: "promotionTimes",
  203. key: "promotionTimes",
  204. },
  205. {
  206. title: "生日日期",
  207. dataIndex: "birthdays",
  208. key: "birthdays",
  209. },
  210. {
  211. title: "性别",
  212. dataIndex: "sex",
  213. key: "sex",
  214. render: (text) => {
  215. if (text == 0) {
  216. return "男";
  217. } else if (text == 1) {
  218. return "女";
  219. }
  220. },
  221. },
  222. {
  223. title: "子/女",
  224. dataIndex: "son",
  225. key: "son",
  226. render: (text, record) => {
  227. return <span>{text + "/" + record.girl}</span>;
  228. },
  229. },
  230. {
  231. title: "政治面貌",
  232. dataIndex: "politicalOutlook",
  233. key: "politicalOutlook",
  234. render: (text) => {
  235. if (text == 0) {
  236. return "群众";
  237. } else if (text == 1) {
  238. return "中共预备党员";
  239. } else if (text == 2) {
  240. return "中共党员";
  241. } else if (text == 3) {
  242. return "致公党员";
  243. }
  244. },
  245. },
  246. {
  247. title: "教育经历",
  248. dataIndex: "education",
  249. key: "education",
  250. render: (text) => {
  251. if (text == 0) {
  252. return "高中/中专";
  253. } else if (text == 1) {
  254. return "专科/高职";
  255. } else if (text == 2) {
  256. return "本科";
  257. } else if (text == 3) {
  258. return "研究生";
  259. } else if (text == 5) {
  260. return "博士";
  261. }
  262. },
  263. },
  264. {
  265. title: "毕业学校",
  266. dataIndex: "school",
  267. key: "school",
  268. },
  269. {
  270. title: "专业",
  271. dataIndex: "major",
  272. key: "major",
  273. },
  274. {
  275. title: "职称",
  276. dataIndex: "title",
  277. key: "title",
  278. },
  279. {
  280. title: "晋升备注",
  281. dataIndex: "promotionRemarks",
  282. key: "promotionRemarks",
  283. },
  284. {
  285. title: "晋升时间",
  286. dataIndex: "promotionTime",
  287. key: "promotionTime",
  288. },
  289. {
  290. title: "合同时间",
  291. dataIndex: "contractStart",
  292. key: "contractStart",
  293. render: (text, record) => {
  294. if (text) {
  295. return text + "~" + record.contractEnd;
  296. }
  297. },
  298. },
  299. {
  300. title: "手机号码",
  301. dataIndex: "mobile",
  302. key: "mobile",
  303. },
  304. {
  305. title: "电话",
  306. dataIndex: "fixedTel",
  307. key: "fixedTel",
  308. },
  309. {
  310. title: "身份证",
  311. dataIndex: "idCard",
  312. key: "idCard",
  313. },
  314. {
  315. title: "发证机构",
  316. dataIndex: "certificationAuthority",
  317. key: "certificationAuthority",
  318. },
  319. {
  320. title: "户籍地址",
  321. dataIndex: "residenceName",
  322. key: "residenceName",
  323. },
  324. {
  325. title: "籍贯",
  326. dataIndex: "nativePlaceName",
  327. key: "nativePlaceName",
  328. },
  329. {
  330. title: "现住地址",
  331. dataIndex: "nowName",
  332. key: "nowName",
  333. },
  334. {
  335. title: "离职时间",
  336. dataIndex: "quitTime",
  337. key: "quitTime",
  338. },
  339. {
  340. title: "工作年限",
  341. dataIndex: "workingYear",
  342. key: "workingYear",
  343. },
  344. {
  345. title: "年龄",
  346. dataIndex: "age",
  347. key: "age",
  348. },
  349. {
  350. title: "出生月份",
  351. dataIndex: "month",
  352. key: "month",
  353. },
  354. ],
  355. dataSource: [],
  356. resVisible: false,
  357. table: [
  358. {
  359. key: "员工编号",
  360. value: "id",
  361. },
  362. {
  363. key: "姓名",
  364. value: "name",
  365. },
  366. {
  367. key: "出生日期",
  368. value: "birthdays",
  369. },
  370. {
  371. key: "出生月份",
  372. value: "month",
  373. },
  374. {
  375. key: "门禁编号",
  376. value: "doorId",
  377. },
  378. {
  379. key: "性别",
  380. value: "sex",
  381. render: (e) => {
  382. if (e == 0) {
  383. return "男";
  384. } else if (e == 1) {
  385. return "女";
  386. }
  387. },
  388. },
  389. {
  390. key: "年龄",
  391. value: "age",
  392. },
  393. {
  394. key: "民族",
  395. value: "nation",
  396. },
  397. {
  398. key: "户籍地址",
  399. value: "residenceName",
  400. },
  401. {
  402. key: "籍贯",
  403. value: "nativePlaceName",
  404. },
  405. {
  406. key: "身份证",
  407. value: "idCard",
  408. },
  409. {
  410. key: "领证机关",
  411. value: "certificationAuthority",
  412. },
  413. {
  414. key: "现住地址",
  415. value: "nowName",
  416. },
  417. {
  418. key: "婚姻状态",
  419. value: "marriageName",
  420. },
  421. {
  422. key: "子/女",
  423. value: "son",
  424. render: (e, i) => {
  425. return e + "/" + i
  426. }
  427. },
  428. {
  429. key: "政治面貌",
  430. value: "politicalOutlookName",
  431. },
  432. ],
  433. };
  434. },
  435. /* 分派 */
  436. evaluate(record, nub) {
  437. this.state.assignData = record;
  438. this.setState(
  439. {
  440. nub,
  441. },
  442. () => {
  443. this.setState({
  444. assignVisible: true,
  445. });
  446. }
  447. );
  448. },
  449. componentWillMount() {
  450. let areaArr = getProvinceList();
  451. let Area = areaSelect(areaArr);
  452. let Birthplaces = Birthplace(areaArr);
  453. this.setState({
  454. Area,
  455. Birthplaces: Birthplaces,
  456. });
  457. //城市
  458. let Province = [];
  459. areaArr.map(function (item) {
  460. var id = String(item.id);
  461. Province.push(
  462. <Select.Option value={id} key={item.name}>
  463. {item.name}
  464. </Select.Option>
  465. );
  466. });
  467. this.state.Provinces = Province;
  468. this.loadData();
  469. this.departmentList()
  470. },
  471. departmentList() {
  472. $.ajax({
  473. method: "get",
  474. dataType: "json",
  475. crossDomain: false,
  476. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  477. data: {},
  478. success: function (data) {
  479. let thedata = data.data;
  480. let theArr = [];
  481. if (!thedata) {
  482. if (data.error && data.error.length) {
  483. message.warning(data.error[0].message);
  484. }
  485. } else {
  486. thedata.map(function (item, index) {
  487. theArr.push({
  488. key: index,
  489. name: item.name,
  490. id: item.id
  491. });
  492. });
  493. }
  494. this.setState({
  495. departmentArr: theArr
  496. });
  497. }.bind(this)
  498. });
  499. },
  500. changeList(arr) {
  501. const newArr = [];
  502. this.state.columns.forEach((item) => {
  503. arr.forEach((val) => {
  504. if (val === item.title) {
  505. newArr.push(item);
  506. }
  507. });
  508. });
  509. this.setState({
  510. changeList: newArr,
  511. });
  512. },
  513. addPeo() {
  514. this.setState({
  515. peoVisible: true,
  516. isAddPeo: true
  517. })
  518. },
  519. addPeoCancel() {
  520. this.setState({
  521. peoVisible: false,
  522. isAddPeo: false,
  523. name: undefined,
  524. doorId: undefined,
  525. sex: undefined,
  526. nation: undefined,
  527. residence: [],
  528. residenceAddress: undefined,
  529. nativePlace: [],
  530. now: [],
  531. nowAddress: undefined,
  532. idCard: undefined,
  533. certificationAuthority: undefined,
  534. marriage: undefined,
  535. politicalOutlook: undefined,
  536. son: undefined,
  537. girl: undefined,
  538. birthdays: undefined,
  539. marriage: undefined,
  540. });
  541. },
  542. addOk() {
  543. this.setState({
  544. loading: true,
  545. });
  546. $.ajax({
  547. method: "post",
  548. dataType: "json",
  549. crossDomain: false,
  550. url: globalConfig.context + "/api/admin/personnel/add",
  551. data: {
  552. name: this.state.name,
  553. doorId: this.state.doorId,
  554. sex: this.state.sex,
  555. nation: this.state.nation,
  556. residenceProvince: this.state.residence[0],
  557. residenceCity: this.state.residence[1],
  558. residenceArea: this.state.residence[2],
  559. residenceAddress: this.state.residenceAddress,
  560. nativePlaceProvince: this.state.nativePlace[0],
  561. nativePlaceCity: this.state.nativePlace[1],
  562. nowProvince: this.state.now[0],
  563. nowCity: this.state.now[1],
  564. nowArea: this.state.now[2],
  565. nowAddress: this.state.nowAddress,
  566. idCard: this.state.idCard,
  567. certificationAuthority: this.state.certificationAuthority,
  568. marriage: this.state.marriage,
  569. politicalOutlook: this.state.politicalOutlook,
  570. son: this.state.son,
  571. girl: this.state.girl,
  572. birthdays: this.state.birthdays,
  573. marriage: this.state.marriage,
  574. },
  575. success: function (data) {
  576. let theArr = [];
  577. if (data.error && data.error.length) {
  578. message.warning(data.error[0].message);
  579. } else {
  580. message.success("添加成功!");
  581. this.loadData();
  582. this.addPeoCancel();
  583. }
  584. }.bind(this),
  585. }).always(
  586. function () {
  587. this.setState({
  588. loading: false,
  589. });
  590. }.bind(this)
  591. );
  592. },
  593. editPeo() {
  594. },
  595. stayModal() {
  596. this.setState({
  597. stayVisible: true
  598. })
  599. },
  600. stayCancel() {
  601. this.setState({
  602. stayVisible: false
  603. })
  604. },
  605. editStay() {
  606. },
  607. phoneModal() {
  608. this.setState({
  609. phoneVisible: true
  610. });
  611. },
  612. phoneCancel() {
  613. this.setState({
  614. phoneVisible: false
  615. });
  616. },
  617. editPhone() {
  618. },
  619. entryModal() {
  620. this.setState({
  621. entryVisible: true
  622. });
  623. },
  624. entryCancel() {
  625. this.setState({
  626. entryVisible: false
  627. })
  628. },
  629. cancel() {
  630. this.setState({
  631. visible: false
  632. })
  633. },
  634. tableRowClick(record) {
  635. this.setState({
  636. visible: true,
  637. })
  638. this.setState({
  639. loading: true,
  640. });
  641. $.ajax({
  642. method: "get",
  643. dataType: "json",
  644. crossDomain: false,
  645. url: globalConfig.context + "/api/admin/personnel/selectBypdId",
  646. data: {
  647. id: record.id
  648. },
  649. success: function (data) {
  650. let theArr = [];
  651. if (data.error && data.error.length) {
  652. message.warning(data.error[0].message);
  653. } else {
  654. this.setState({
  655. ModalData: data.data
  656. })
  657. }
  658. }.bind(this),
  659. }).always(
  660. function () {
  661. this.setState({
  662. loading: false,
  663. });
  664. }.bind(this)
  665. );
  666. },
  667. search() {
  668. this.loadData()
  669. },
  670. reset() {
  671. this.state.nameSearch = undefined
  672. this.state.statusSearch = undefined;
  673. this.state.departmenttList = undefined;
  674. this.state.sexSearch = undefined;
  675. this.state.marriageSearch = undefined;
  676. this.state.politicalOutlookSearch = undefined;
  677. this.state.birthdayMonthSearch = undefined;
  678. this.state.systemSearch = undefined;
  679. this.state.workingYearsSearch = undefined;
  680. this.state.educationSearch = undefined;
  681. this.state.promotionTime = [];
  682. this.state.entryTime = [];
  683. this.state.quitTime = [];
  684. this.state.contractTime = [];
  685. this.loadData()
  686. },
  687. peoStatus(e) {
  688. if(e == 0) {
  689. return "在职(试用期)"
  690. }else if(e == 1) {
  691. return "在职(正式工)"
  692. }else if(e == 2) {
  693. return "离职"
  694. }
  695. },
  696. jobStatus(e, i) {
  697. if(e == 0) {
  698. return "全职"
  699. }else if(e == 1) {
  700. return "兼职"
  701. }else if(e == 2) {
  702. return i
  703. }
  704. },
  705. educationStatus(e) {
  706. if(e == 0) {
  707. return "高中/中专"
  708. }else if(e == 1) {
  709. return "专科/高职"
  710. }else if(e == 2) {
  711. return "本科"
  712. }else if(e == 3) {
  713. return "研究生"
  714. }else if(e == 5) {
  715. return "博士"
  716. }
  717. },
  718. picToArr(e) {
  719. let arr = e.split(",")
  720. console.log(arr);
  721. return arr
  722. },
  723. render() {
  724. const rowSelection = {
  725. selectedRowKeys: this.state.selectedRowKeys,
  726. onChange: (selectedRowKeys, selectedRows) => {
  727. this.setState({
  728. selectedRows: selectedRows.slice(-1),
  729. selectedRowKeys: selectedRowKeys.slice(-1),
  730. });
  731. },
  732. };
  733. const { RangePicker } = DatePicker;
  734. const formItemLayout = {
  735. labelCol: { span: 6 },
  736. wrapperCol: { span: 16 },
  737. };
  738. let departmentArr = this.state.departmentArr || [];
  739. return (
  740. <div className="user-content">
  741. <div className="content-title" style={{ marginBottom: 10 }}>
  742. <span style={{ fontWeight: 900, fontSize: 16 }}>人事档案统计</span>
  743. </div>
  744. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  745. <TabPane tab="更改表格显示数据" key="1">
  746. <div style={{ marginLeft: 10 }}>
  747. <ChooseList
  748. columns={this.state.columns}
  749. changeFn={this.changeList}
  750. changeList={this.state.changeList}
  751. top={55}
  752. margin={11}
  753. />
  754. </div>
  755. </TabPane>
  756. <TabPane tab="搜索" key="2">
  757. <div className="user-search" style={{ marginLeft: 10 }}>
  758. <Input
  759. placeholder="姓名"
  760. style={{ width: 120 }}
  761. value={this.state.nameSearch}
  762. onChange={(e) => {
  763. this.setState({ nameSearch: e.target.value });
  764. }}
  765. />
  766. <Select
  767. placeholder="员工状态"
  768. onChange={(e) => {
  769. this.setState({ statusSearch: e });
  770. }}
  771. style={{ width: 120, marginRight: 10 }}
  772. value={this.state.statusSearch}
  773. >
  774. <Option value="0">在职(试用期)</Option>
  775. <Option value="1">在职(合同期)</Option>
  776. <Option value="2">离职</Option>
  777. </Select>
  778. <Select
  779. placeholder="所属公司"
  780. style={{ width: 120, marginRight: 10 }}
  781. value={this.state.departmenttList}
  782. onChange={(e) => {
  783. this.setState({ departmenttList: e });
  784. }}
  785. >
  786. {departmentArr.map(function (item) {
  787. return (
  788. <Select.Option key={item.id}>{item.name}</Select.Option>
  789. );
  790. })}
  791. </Select>
  792. <Select
  793. placeholder="性别"
  794. onChange={(e) => {
  795. this.setState({ sexSearch: e });
  796. }}
  797. style={{ width: 120, marginRight: 10 }}
  798. value={this.state.sexSearch}
  799. >
  800. <Option value="0">男</Option>
  801. <Option value="1">女</Option>
  802. </Select>
  803. <Select
  804. placeholder="婚姻状态"
  805. onChange={(e) => {
  806. this.setState({ marriageSearch: e });
  807. }}
  808. style={{ width: 120, marginRight: 10 }}
  809. value={this.state.marriageSearch}
  810. >
  811. <Option value="0">未婚</Option>
  812. <Option value="1">已婚</Option>
  813. <Option value="2">离异</Option>
  814. </Select>
  815. <Select
  816. placeholder="政治面貌"
  817. onChange={(e) => {
  818. this.setState({ politicalOutlookSearch: e });
  819. }}
  820. style={{ width: 120, marginRight: 10 }}
  821. value={this.state.politicalOutlookSearch}
  822. >
  823. <Option value="0">群众</Option>
  824. <Option value="1">中共预备党员</Option>
  825. <Option value="2">中共党员</Option>
  826. <Option value="3">致公党员</Option>
  827. </Select>
  828. <Select
  829. placeholder="生日月份"
  830. onChange={(e) => {
  831. this.setState({ birthdayMonthSearch: e });
  832. }}
  833. style={{ width: 120, marginRight: 10 }}
  834. value={this.state.birthdayMonthSearch}
  835. >
  836. <Option value="">全部</Option>
  837. <Option value="1">一月</Option>
  838. <Option value="2">二月</Option>
  839. <Option value="3">三月</Option>
  840. <Option value="4">四月</Option>
  841. <Option value="5">五月</Option>
  842. <Option value="6">六月</Option>
  843. <Option value="7">七月</Option>
  844. <Option value="8">八月</Option>
  845. <Option value="9">九月</Option>
  846. <Option value="10">十月</Option>
  847. <Option value="11">十一月</Option>
  848. <Option value="12">十二月</Option>
  849. </Select>
  850. <Select
  851. placeholder="所属系统"
  852. onChange={(e) => {
  853. this.setState({ systemSearch: e });
  854. }}
  855. style={{ width: 120, marginRight: 10 }}
  856. value={this.state.systemSearch}
  857. >
  858. <Option value="0">管理系统</Option>
  859. <Option value="1">营销系统</Option>
  860. <Option value="2">技术系统</Option>
  861. </Select>
  862. <Select
  863. placeholder="工作年限"
  864. onChange={(e) => {
  865. this.setState({ workingYearsSearch: e });
  866. }}
  867. style={{ width: 120, marginRight: 10 }}
  868. value={this.state.workingYearsSearch}
  869. >
  870. <Option value="0">0-1年</Option>
  871. <Option value="1">1-3年</Option>
  872. <Option value="2">3-10年</Option>
  873. <Option value="3">10年以上</Option>
  874. </Select>
  875. <Select
  876. placeholder="学历"
  877. onChange={(e) => {
  878. this.setState({ educationSearch: e });
  879. }}
  880. style={{ width: 120, marginRight: 370 }}
  881. value={this.state.educationSearch}
  882. >
  883. <Option value="0">高中/中专</Option>
  884. <Option value="1">专科/高职</Option>
  885. <Option value="2">本科</Option>
  886. <Option value="3">研究生</Option>
  887. <Option value="5">博士</Option>
  888. </Select>
  889. <span style={{}}>转正日期:</span>
  890. <RangePicker
  891. style={{ marginRight: 10 }}
  892. value={[
  893. this.state.promotionTime[0]
  894. ? moment(this.state.promotionTime[0])
  895. : null,
  896. this.state.promotionTime[1]
  897. ? moment(this.state.promotionTime[1])
  898. : null,
  899. ]}
  900. onChange={(data, dataString) => {
  901. this.setState({ promotionTime: dataString });
  902. }}
  903. />
  904. <span style={{}}>入职时间:</span>
  905. <RangePicker
  906. style={{ marginRight: 10 }}
  907. value={[
  908. this.state.entryTime[0]
  909. ? moment(this.state.entryTime[0])
  910. : null,
  911. this.state.entryTime[1]
  912. ? moment(this.state.entryTime[1])
  913. : null,
  914. ]}
  915. onChange={(data, dataString) => {
  916. this.setState({ entryTime: dataString });
  917. }}
  918. />
  919. <span style={{}}>离职时间:</span>
  920. <RangePicker
  921. style={{ marginRight: 21 }}
  922. value={[
  923. this.state.quitTime[0]
  924. ? moment(this.state.quitTime[0])
  925. : null,
  926. this.state.quitTime[1]
  927. ? moment(this.state.quitTime[1])
  928. : null,
  929. ]}
  930. onChange={(data, dataString) => {
  931. this.setState({ quitTime: dataString });
  932. }}
  933. />
  934. <span style={{}}>合同时间:</span>
  935. <RangePicker
  936. style={{ marginRight: 10 }}
  937. value={[
  938. this.state.contractTime[0]
  939. ? moment(this.state.contractTime[0])
  940. : null,
  941. this.state.contractTime[1]
  942. ? moment(this.state.contractTime[1])
  943. : null,
  944. ]}
  945. onChange={(data, dataString) => {
  946. this.setState({ contractTime: dataString });
  947. }}
  948. />
  949. <Button
  950. type="primary"
  951. onClick={this.search}
  952. style={{ marginLeft: 10 }}
  953. >
  954. 搜索
  955. </Button>
  956. <Button onClick={this.reset}>重置</Button>
  957. </div>
  958. </TabPane>
  959. <TabPane tab="新增员工档案" key="3">
  960. <Button
  961. type="primary"
  962. onClick={this.addPeo}
  963. style={{ margin: "11px 0px 10px 10px" }}
  964. >
  965. 新增员工档案
  966. </Button>
  967. <Button
  968. type="primary"
  969. onClick={this.phoneModal}
  970. style={{ margin: "11px 0px 10px 10px" }}
  971. >
  972. 修改联系信息
  973. </Button>
  974. <Button
  975. type="primary"
  976. onClick={this.entryModal}
  977. style={{ margin: "11px 0px 10px 10px" }}
  978. >
  979. 修改入职信息
  980. </Button>
  981. </TabPane>
  982. <TabPane tab="导出Excel" key="4">
  983. <Button type="primary" style={{ margin: "11px 0px 10px 10px" }}>
  984. 导出当前列表
  985. </Button>
  986. </TabPane>
  987. <TabPane tab="查看" key="5">
  988. <Button
  989. type="primary"
  990. style={{ margin: "11px 0px 10px 10px" }}
  991. onClick={() => {}}
  992. >
  993. 详情收款流水
  994. </Button>
  995. </TabPane>
  996. </Tabs>
  997. <div className="patent-table">
  998. <Spin spinning={this.state.loading}>
  999. <Table
  1000. bordered
  1001. columns={
  1002. this.state.changeList == undefined
  1003. ? this.state.columns
  1004. : this.state.changeList
  1005. }
  1006. onRowClick={this.tableRowClick}
  1007. dataSource={this.state.dataSource}
  1008. scroll={{ x: "max-content", y: 0 }}
  1009. pagination={this.state.pagination}
  1010. size="small"
  1011. />
  1012. </Spin>
  1013. </div>
  1014. <Modal
  1015. visible={this.state.peoVisible}
  1016. onOk={this.checkOk}
  1017. footer={null}
  1018. width={800}
  1019. onCancel={() => {
  1020. this.loadData();
  1021. this.addPeoCancel();
  1022. }}
  1023. >
  1024. <Spin spinning={this.state.loading}>
  1025. <h2
  1026. style={{
  1027. textAlign: "center",
  1028. paddingBottom: 10,
  1029. marginBottom: 10,
  1030. }}
  1031. >
  1032. {this.state.isAddPeo ? "新增人事档案" : "修改人事档案"}
  1033. </h2>
  1034. <div className="clearfix">
  1035. <FormItem
  1036. className="half-item"
  1037. {...formItemLayout}
  1038. label="员工编号"
  1039. >
  1040. <Input
  1041. placeholder=""
  1042. style={{ width: 200 }}
  1043. disabled
  1044. value={this.state.contractNoSearch}
  1045. onChange={(e) => {
  1046. this.setState({
  1047. contractNoSearch: e.target.value,
  1048. });
  1049. }}
  1050. />
  1051. </FormItem>
  1052. <FormItem
  1053. className="half-item"
  1054. {...formItemLayout}
  1055. label="门禁编号"
  1056. >
  1057. <Input
  1058. style={{ width: 200 }}
  1059. placeholder="请输入门禁编号"
  1060. value={this.state.doorId}
  1061. onChange={(e) => {
  1062. this.setState({
  1063. doorId: e.target.value,
  1064. });
  1065. }}
  1066. />
  1067. </FormItem>
  1068. </div>
  1069. <div className="clearfix">
  1070. <FormItem className="half-item" {...formItemLayout} label="姓名">
  1071. <Input
  1072. placeholder="请输入姓名"
  1073. style={{ width: 200 }}
  1074. value={this.state.name}
  1075. onChange={(e) => {
  1076. this.setState({
  1077. name: e.target.value,
  1078. });
  1079. }}
  1080. />
  1081. </FormItem>
  1082. <FormItem
  1083. className="half-item"
  1084. {...formItemLayout}
  1085. label="出生日期"
  1086. >
  1087. <DatePicker
  1088. value={
  1089. this.state.birthdays ? moment(this.state.birthdays) : null
  1090. }
  1091. onChange={(e, t) => {
  1092. this.setState({
  1093. birthdays: t,
  1094. });
  1095. }}
  1096. />
  1097. </FormItem>
  1098. </div>
  1099. <div className="clearfix">
  1100. <FormItem className="half-item" {...formItemLayout} label="性别">
  1101. <Radio.Group
  1102. onChange={(e) => {
  1103. this.setState({ sex: e.target.value });
  1104. }}
  1105. value={this.state.sex}
  1106. >
  1107. <Radio value={0}>男</Radio>
  1108. <Radio value={1}>女</Radio>
  1109. </Radio.Group>
  1110. </FormItem>
  1111. <FormItem className="half-item" {...formItemLayout} label="民族">
  1112. <Input
  1113. placeholder="输入民族(例:汉族)"
  1114. style={{ width: 200 }}
  1115. value={this.state.nation}
  1116. onChange={(e) => {
  1117. this.setState({
  1118. nation: e.target.value,
  1119. });
  1120. }}
  1121. />
  1122. </FormItem>
  1123. </div>
  1124. <div className="clearfix">
  1125. <FormItem
  1126. className="half-item"
  1127. {...formItemLayout}
  1128. label="户籍地址"
  1129. >
  1130. <Cascader
  1131. options={this.state.Area}
  1132. value={this.state.residence}
  1133. placeholder="选择城市"
  1134. style={{ width: "200px" }}
  1135. onChange={(e, pre) => {
  1136. this.setState({ residence: e });
  1137. console.log(e, pre);
  1138. }}
  1139. />
  1140. {/* <span style={{ color: "red", marginLeft: "15px" }}>*</span> */}
  1141. </FormItem>
  1142. <FormItem
  1143. className="half-item"
  1144. {...formItemLayout}
  1145. label="户籍街道地址"
  1146. >
  1147. <Input
  1148. placeholder="输入街道地址"
  1149. style={{ width: 200 }}
  1150. value={this.state.residenceAddress}
  1151. onChange={(e) => {
  1152. this.setState({
  1153. residenceAddress: e.target.value,
  1154. });
  1155. }}
  1156. />
  1157. </FormItem>
  1158. </div>
  1159. <div className="clearfix">
  1160. <FormItem
  1161. className="half-item"
  1162. {...formItemLayout}
  1163. label="现住地址"
  1164. >
  1165. <Cascader
  1166. options={this.state.Area}
  1167. value={this.state.now}
  1168. placeholder="选择城市"
  1169. style={{ width: "200px" }}
  1170. onChange={(e, pre) => {
  1171. this.setState({ now: e });
  1172. console.log(e, pre);
  1173. }}
  1174. />
  1175. {/* <span style={{ color: "red", marginLeft: "15px" }}>*</span> */}
  1176. </FormItem>
  1177. <FormItem
  1178. className="half-item"
  1179. {...formItemLayout}
  1180. label="现住街道地址"
  1181. >
  1182. <Input
  1183. placeholder="输入街道地址"
  1184. style={{ width: 200 }}
  1185. value={this.state.nowAddress}
  1186. onChange={(e) => {
  1187. this.setState({
  1188. nowAddress: e.target.value,
  1189. });
  1190. }}
  1191. />
  1192. </FormItem>
  1193. </div>
  1194. <div className="clearfix">
  1195. <FormItem className="half-item" {...formItemLayout} label="籍贯">
  1196. <Cascader
  1197. options={this.state.Birthplaces}
  1198. value={this.state.nativePlace}
  1199. placeholder="选择城市"
  1200. style={{ width: "200px" }}
  1201. onChange={(e, pre) => {
  1202. this.setState({ nativePlace: e });
  1203. console.log(e, pre);
  1204. }}
  1205. />
  1206. {/* <span style={{ color: "red", marginLeft: "15px" }}>*</span> */}
  1207. </FormItem>
  1208. <FormItem
  1209. className="half-item"
  1210. {...formItemLayout}
  1211. label="身份证"
  1212. >
  1213. <Input
  1214. placeholder="输入身份证信息"
  1215. style={{ width: 200 }}
  1216. value={this.state.idCard}
  1217. onChange={(e) => {
  1218. // let reg = /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
  1219. this.setState({
  1220. idCard: e.target.value,
  1221. });
  1222. }}
  1223. />
  1224. </FormItem>
  1225. </div>
  1226. <div className="clearfix">
  1227. <FormItem
  1228. className="half-item"
  1229. {...formItemLayout}
  1230. label="身份证领证机关"
  1231. >
  1232. <Input
  1233. placeholder="输入机关名称"
  1234. style={{ width: 200 }}
  1235. value={this.state.certificationAuthority}
  1236. onChange={(e) => {
  1237. // let reg = /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
  1238. this.setState({
  1239. certificationAuthority: e.target.value,
  1240. });
  1241. }}
  1242. />
  1243. {/* <span style={{ color: "red", marginLeft: "15px" }}>*</span> */}
  1244. </FormItem>
  1245. <FormItem
  1246. className="half-item"
  1247. {...formItemLayout}
  1248. label="婚姻状态"
  1249. >
  1250. <Radio.Group
  1251. onChange={(e) => {
  1252. this.setState({ marriage: e.target.value });
  1253. }}
  1254. value={this.state.marriage}
  1255. >
  1256. <Radio value={0}>未婚</Radio>
  1257. <Radio value={1}>已婚</Radio>
  1258. <Radio value={2}>离异</Radio>
  1259. </Radio.Group>
  1260. </FormItem>
  1261. </div>
  1262. <div className="clearfix">
  1263. <FormItem
  1264. className="half-item"
  1265. labelCol={{ span: 6 }}
  1266. wrapperCol={{ span: 30 }}
  1267. label="子女数量"
  1268. >
  1269. <span>儿子:</span>
  1270. <Input
  1271. placeholder="输入数量"
  1272. style={{ width: 80 }}
  1273. type={"number"}
  1274. value={this.state.son}
  1275. onChange={(e) => {
  1276. this.setState({
  1277. son: e.target.value,
  1278. });
  1279. }}
  1280. />
  1281. <span style={{ marginLeft: 10 }}>女儿:</span>
  1282. <Input
  1283. placeholder="输入数量"
  1284. style={{ width: 80 }}
  1285. type={"number"}
  1286. value={this.state.girl}
  1287. onChange={(e) => {
  1288. this.setState({
  1289. girl: e.target.value,
  1290. });
  1291. }}
  1292. />
  1293. </FormItem>
  1294. <FormItem
  1295. className="half-item"
  1296. {...formItemLayout}
  1297. label="政治面貌"
  1298. >
  1299. <Select
  1300. placeholder="请选择政治面貌"
  1301. style={{ width: 200 }}
  1302. onChange={(e) => {
  1303. this.setState({ politicalOutlook: e });
  1304. }}
  1305. value={this.state.politicalOutlook}
  1306. >
  1307. <Option value="0">群众</Option>
  1308. <Option value="1">中共预备党员</Option>
  1309. <Option value="2">中共党员</Option>
  1310. <Option value="3">致公党党员</Option>
  1311. </Select>
  1312. </FormItem>
  1313. </div>
  1314. <Button
  1315. type="primary"
  1316. shape="round"
  1317. size="large"
  1318. style={{
  1319. position: "relative",
  1320. left: "50%",
  1321. transform: "translateX(-50%)",
  1322. }}
  1323. onClick={this.state.isAddPeo ? this.addOk : this.editPeo}
  1324. >
  1325. 保存
  1326. </Button>
  1327. </Spin>
  1328. </Modal>
  1329. <Modal
  1330. visible={this.state.stayVisible}
  1331. footer={null}
  1332. width={800}
  1333. onCancel={() => {
  1334. this.loadData();
  1335. this.stayCancel();
  1336. }}
  1337. >
  1338. <Spin spinning={this.state.loading}>
  1339. <h2
  1340. style={{
  1341. textAlign: "center",
  1342. paddingBottom: 10,
  1343. marginBottom: 10,
  1344. }}
  1345. >
  1346. 修改任职信息
  1347. </h2>
  1348. <div className="clearfix">
  1349. <FormItem
  1350. className="half-item"
  1351. labelCol={{ span: 6 }}
  1352. wrapperCol={{ span: 30 }}
  1353. label="员工状态"
  1354. >
  1355. <Select
  1356. placeholder="请选择状态"
  1357. style={{ width: 200 }}
  1358. onChange={(e) => {
  1359. this.setState({ status: e });
  1360. }}
  1361. value={this.state.status}
  1362. >
  1363. <Option value="0">实习生</Option>
  1364. <Option value="1">在职(试用期)</Option>
  1365. <Option value="2">在职(合同期)</Option>
  1366. <Option value="3">兼职</Option>
  1367. <Option value="4">已离职</Option>
  1368. </Select>
  1369. </FormItem>
  1370. <FormItem
  1371. className="half-item"
  1372. {...formItemLayout}
  1373. label="所属系统"
  1374. >
  1375. <Select
  1376. placeholder="请选择所属系统"
  1377. style={{ width: 200 }}
  1378. onChange={(e) => {
  1379. this.setState({ system: e });
  1380. }}
  1381. value={this.state.system}
  1382. >
  1383. <Option value="0">管理系统</Option>
  1384. <Option value="1">营销系统</Option>
  1385. <Option value="2">技术系统</Option>
  1386. </Select>
  1387. </FormItem>
  1388. </div>
  1389. <div className="clearfix">
  1390. <FormItem
  1391. className="half-item"
  1392. labelCol={{ span: 6 }}
  1393. wrapperCol={{ span: 30 }}
  1394. label="工作性质"
  1395. >
  1396. <Radio.Group
  1397. onChange={(e) => {
  1398. this.setState({ jobNature: e.target.value });
  1399. }}
  1400. value={this.state.jobNature}
  1401. >
  1402. <Radio value="0">全职</Radio>
  1403. <Radio value="1">兼职</Radio>
  1404. <Radio value="2">其他</Radio>
  1405. </Radio.Group>
  1406. <Input
  1407. placeholder="输入性质"
  1408. style={{ width: 80 }}
  1409. disabled={this.state.jobNatureRemarks == 2 ? false : true}
  1410. value={this.state.jobNatureRemarks}
  1411. onChange={(e) => {
  1412. this.setState({
  1413. jobNatureRemarks: e.target.value,
  1414. });
  1415. }}
  1416. />
  1417. </FormItem>
  1418. <FormItem className="half-item" {...formItemLayout} label="工龄">
  1419. <span>2</span>
  1420. </FormItem>
  1421. </div>
  1422. <div className="clearfix">
  1423. <FormItem
  1424. className="half-item"
  1425. {...formItemLayout}
  1426. label="入职时间"
  1427. >
  1428. <DatePicker
  1429. value={
  1430. this.state.entryTimes ? moment(this.state.entryTimes) : null
  1431. }
  1432. style={{ width: 200 }}
  1433. onChange={(e, t) => {
  1434. this.setState({
  1435. entryTimes: t,
  1436. });
  1437. }}
  1438. />
  1439. </FormItem>
  1440. <FormItem
  1441. className="half-item"
  1442. {...formItemLayout}
  1443. label="转正时间"
  1444. >
  1445. <DatePicker
  1446. value={
  1447. this.state.promotionTimes
  1448. ? moment(this.state.promotionTimes)
  1449. : null
  1450. }
  1451. style={{ width: 200 }}
  1452. onChange={(e, t) => {
  1453. this.setState({
  1454. promotionTimes: t,
  1455. });
  1456. }}
  1457. />
  1458. </FormItem>
  1459. </div>
  1460. <div className="clearfix">
  1461. <FormItem
  1462. className="half-item"
  1463. {...formItemLayout}
  1464. label="所属公司"
  1465. >
  1466. <Select
  1467. placeholder="选择公司"
  1468. style={{ width: 200, marginRight: 10 }}
  1469. value={this.state.company}
  1470. onChange={(e) => {
  1471. this.setState({ company: e });
  1472. }}
  1473. >
  1474. {departmentArr.map(function (item) {
  1475. return (
  1476. <Select.Option key={item.id}>{item.name}</Select.Option>
  1477. );
  1478. })}
  1479. </Select>
  1480. </FormItem>
  1481. <FormItem className="half-item" {...formItemLayout} label="级别">
  1482. <Select
  1483. placeholder="请选择所属级别"
  1484. style={{ width: 200 }}
  1485. onChange={(e) => {
  1486. this.setState({ lvl: e });
  1487. }}
  1488. value={this.state.lvl}
  1489. >
  1490. <Option value="0">员工</Option>
  1491. <Option value="1">主管</Option>
  1492. <Option value="2">经理</Option>
  1493. <Option value="3">总经理</Option>
  1494. <Option value="4">副总裁</Option>
  1495. <Option value="5">副总</Option>
  1496. <Option value="6">总监</Option>
  1497. <Option value="7">董事长</Option>
  1498. </Select>
  1499. </FormItem>
  1500. </div>
  1501. <div className="clearfix">
  1502. <FormItem className="half-item" {...formItemLayout} label="职位">
  1503. <Select
  1504. placeholder="选择职位"
  1505. style={{ width: 200, marginRight: 10 }}
  1506. value={this.state.jobs}
  1507. onChange={(e) => {
  1508. this.setState({ jobs: e });
  1509. }}
  1510. >
  1511. <Option value="0">员工</Option>
  1512. <Option value="1">主管</Option>
  1513. <Option value="2">经理</Option>
  1514. <Option value="3">总经理</Option>
  1515. <Option value="4">副总裁</Option>
  1516. <Option value="5">副总</Option>
  1517. <Option value="6">总监</Option>
  1518. <Option value="7">董事长</Option>
  1519. </Select>
  1520. </FormItem>
  1521. <FormItem className="half-item" {...formItemLayout} label="星级">
  1522. <Select
  1523. placeholder="请选择所属星级"
  1524. style={{ width: 200 }}
  1525. onChange={(e) => {
  1526. this.setState({ star: e });
  1527. }}
  1528. value={this.state.star}
  1529. >
  1530. <Option value="0">一级</Option>
  1531. <Option value="1">二级</Option>
  1532. <Option value="2">三级</Option>
  1533. <Option value="3">四级</Option>
  1534. <Option value="4">五级</Option>
  1535. <Option value="5">六级</Option>
  1536. <Option value="6">七级</Option>
  1537. <Option value="7">八级</Option>
  1538. </Select>
  1539. </FormItem>
  1540. </div>
  1541. <div className="clearfix">
  1542. <FormItem
  1543. className="half-item"
  1544. labelCol={{ span: 6 }}
  1545. wrapperCol={{ span: 30 }}
  1546. label="岗位津贴"
  1547. >
  1548. <Input
  1549. placeholder="输入金额"
  1550. style={{ width: 200 }}
  1551. value={this.state.allowance}
  1552. onChange={(e) => {
  1553. this.setState({
  1554. allowance: e.target.value,
  1555. });
  1556. }}
  1557. />
  1558. </FormItem>
  1559. </div>
  1560. <Button
  1561. type="primary"
  1562. shape="round"
  1563. size="large"
  1564. style={{
  1565. position: "relative",
  1566. left: "50%",
  1567. transform: "translateX(-50%)",
  1568. }}
  1569. onClick={this.editStay}
  1570. >
  1571. 保存
  1572. </Button>
  1573. </Spin>
  1574. </Modal>
  1575. <Modal
  1576. visible={this.state.phoneVisible}
  1577. footer={null}
  1578. width={800}
  1579. onCancel={() => {
  1580. this.loadData();
  1581. this.phoneCancel();
  1582. }}
  1583. >
  1584. <Spin spinning={this.state.loading}>
  1585. <h2
  1586. style={{
  1587. textAlign: "center",
  1588. paddingBottom: 10,
  1589. marginBottom: 10,
  1590. }}
  1591. >
  1592. 修改联系信息
  1593. </h2>
  1594. <div className="clearfix">
  1595. <FormItem
  1596. className="half-item"
  1597. labelCol={{ span: 6 }}
  1598. wrapperCol={{ span: 30 }}
  1599. label="手机号码"
  1600. >
  1601. <Input
  1602. placeholder="输入号码"
  1603. style={{ width: 200 }}
  1604. value={this.state.phone}
  1605. onChange={(e) => {
  1606. this.setState({
  1607. phone: e.target.value,
  1608. });
  1609. }}
  1610. />
  1611. </FormItem>
  1612. <FormItem
  1613. className="half-item"
  1614. labelCol={{ span: 6 }}
  1615. wrapperCol={{ span: 30 }}
  1616. label="办公室电话"
  1617. >
  1618. <Input
  1619. placeholder="输入金额"
  1620. style={{ width: 200 }}
  1621. value={this.state.bgs}
  1622. onChange={(e) => {
  1623. this.setState({
  1624. bgs: e.target.value,
  1625. });
  1626. }}
  1627. />
  1628. </FormItem>
  1629. </div>
  1630. <div className="clearfix">
  1631. <FormItem
  1632. className="half-item"
  1633. labelCol={{ span: 6 }}
  1634. wrapperCol={{ span: 30 }}
  1635. label="紧急联系人1"
  1636. >
  1637. <Input
  1638. placeholder="请输入名字"
  1639. style={{ width: 200 }}
  1640. value={this.state.lianxiren}
  1641. onChange={(e) => {
  1642. this.setState({
  1643. lianxiren: e.target.value,
  1644. });
  1645. }}
  1646. />
  1647. </FormItem>
  1648. <FormItem
  1649. className="half-item"
  1650. labelCol={{ span: 6 }}
  1651. wrapperCol={{ span: 30 }}
  1652. label="紧急联系人电话"
  1653. >
  1654. <Input
  1655. placeholder="请输入电话"
  1656. style={{ width: 200 }}
  1657. value={this.state.jjphone}
  1658. onChange={(e) => {
  1659. this.setState({
  1660. jjphone: e.target.value,
  1661. });
  1662. }}
  1663. />
  1664. </FormItem>
  1665. </div>
  1666. <div className="clearfix">
  1667. <FormItem
  1668. className="half-item"
  1669. labelCol={{ span: 6 }}
  1670. wrapperCol={{ span: 30 }}
  1671. label="紧急联系人2"
  1672. >
  1673. <Input
  1674. placeholder="请输入名字"
  1675. style={{ width: 200 }}
  1676. value={this.state.lianxiren}
  1677. onChange={(e) => {
  1678. this.setState({
  1679. lianxiren: e.target.value,
  1680. });
  1681. }}
  1682. />
  1683. </FormItem>
  1684. <FormItem
  1685. className="half-item"
  1686. labelCol={{ span: 6 }}
  1687. wrapperCol={{ span: 30 }}
  1688. label="紧急联系人电话"
  1689. >
  1690. <Input
  1691. placeholder="请输入电话"
  1692. style={{ width: 200 }}
  1693. value={this.state.jjphone}
  1694. onChange={(e) => {
  1695. this.setState({
  1696. jjphone: e.target.value,
  1697. });
  1698. }}
  1699. />
  1700. </FormItem>
  1701. </div>
  1702. <div className="clearfix">
  1703. <FormItem
  1704. className="half-item"
  1705. labelCol={{ span: 6 }}
  1706. wrapperCol={{ span: 30 }}
  1707. label="紧急联系人3"
  1708. >
  1709. <Input
  1710. placeholder="请输入名字"
  1711. style={{ width: 200 }}
  1712. value={this.state.lianxiren}
  1713. onChange={(e) => {
  1714. this.setState({
  1715. lianxiren: e.target.value,
  1716. });
  1717. }}
  1718. />
  1719. </FormItem>
  1720. <FormItem
  1721. className="half-item"
  1722. labelCol={{ span: 6 }}
  1723. wrapperCol={{ span: 30 }}
  1724. label="紧急联系人电话"
  1725. >
  1726. <Input
  1727. placeholder="请输入电话"
  1728. style={{ width: 200 }}
  1729. value={this.state.jjphone}
  1730. onChange={(e) => {
  1731. this.setState({
  1732. jjphone: e.target.value,
  1733. });
  1734. }}
  1735. />
  1736. </FormItem>
  1737. </div>
  1738. <Button
  1739. type="primary"
  1740. shape="round"
  1741. size="large"
  1742. style={{
  1743. position: "relative",
  1744. left: "50%",
  1745. transform: "translateX(-50%)",
  1746. }}
  1747. onClick={this.editPhone}
  1748. >
  1749. 保存
  1750. </Button>
  1751. </Spin>
  1752. </Modal>
  1753. <Modal
  1754. visible={this.state.entryVisible}
  1755. footer={null}
  1756. width={800}
  1757. onCancel={() => {
  1758. this.loadData();
  1759. this.entryCancel();
  1760. }}
  1761. >
  1762. <Spin spinning={this.state.loading}>
  1763. <h2
  1764. style={{
  1765. textAlign: "center",
  1766. paddingBottom: 10,
  1767. marginBottom: 10,
  1768. }}
  1769. >
  1770. 修改入职信息
  1771. </h2>
  1772. <div className="clearfix">
  1773. <FormItem
  1774. className="half-item"
  1775. labelCol={{ span: 6 }}
  1776. wrapperCol={{ span: 30 }}
  1777. label="毕业学校"
  1778. >
  1779. <Input
  1780. placeholder="输入学校名称"
  1781. style={{ width: 200 }}
  1782. value={this.state.school}
  1783. onChange={(e) => {
  1784. this.setState({
  1785. school: e.target.value,
  1786. });
  1787. }}
  1788. />
  1789. </FormItem>
  1790. <FormItem
  1791. className="half-item"
  1792. labelCol={{ span: 6 }}
  1793. wrapperCol={{ span: 30 }}
  1794. label="学历"
  1795. >
  1796. <Select
  1797. placeholder="请选择学历"
  1798. style={{ width: 200 }}
  1799. onChange={(e) => {
  1800. this.setState({ politicalOutlook: e });
  1801. }}
  1802. value={this.state.politicalOutlook}
  1803. >
  1804. <Option value="0">高中/中专</Option>
  1805. <Option value="1">专科/高职</Option>
  1806. <Option value="2">本科</Option>
  1807. <Option value="3">研究生</Option>
  1808. <Option value="4">博士</Option>
  1809. </Select>
  1810. </FormItem>
  1811. </div>
  1812. <div className="clearfix">
  1813. <FormItem
  1814. className="half-item"
  1815. labelCol={{ span: 6 }}
  1816. wrapperCol={{ span: 30 }}
  1817. label="所学专业"
  1818. >
  1819. <Input
  1820. placeholder="请输入专业名称"
  1821. style={{ width: 200 }}
  1822. value={this.state.zhuanye}
  1823. onChange={(e) => {
  1824. this.setState({
  1825. zhuanye: e.target.value,
  1826. });
  1827. }}
  1828. />
  1829. </FormItem>
  1830. <FormItem
  1831. className="half-item"
  1832. labelCol={{ span: 6 }}
  1833. wrapperCol={{ span: 30 }}
  1834. label="职称"
  1835. >
  1836. <Input
  1837. placeholder="请输入职称"
  1838. style={{ width: 200 }}
  1839. value={this.state.zhicheng}
  1840. onChange={(e) => {
  1841. this.setState({
  1842. zhicheng: e.target.value,
  1843. });
  1844. }}
  1845. />
  1846. </FormItem>
  1847. </div>
  1848. <div className="clearfix">
  1849. <FormItem
  1850. className="half-item"
  1851. labelCol={{ span: 6 }}
  1852. wrapperCol={{ span: 30 }}
  1853. label="备注"
  1854. >
  1855. <Input
  1856. placeholder="请输入备注"
  1857. style={{ width: 200 }}
  1858. value={this.state.beizhu}
  1859. onChange={(e) => {
  1860. this.setState({
  1861. beizhu: e.target.value,
  1862. });
  1863. }}
  1864. />
  1865. </FormItem>
  1866. </div>
  1867. <div className="clearfix">
  1868. <FormItem
  1869. className="half-item"
  1870. labelCol={{ span: 6 }}
  1871. wrapperCol={{ span: 30 }}
  1872. label="附件"
  1873. >
  1874. <Upload
  1875. className="demandDetailShow-upload"
  1876. listType="picture-card"
  1877. fileList={
  1878. this.state.pic
  1879. ? splitUrl(
  1880. this.state.pic,
  1881. ",",
  1882. globalConfig.avatarHost + "/upload"
  1883. )
  1884. : []
  1885. }
  1886. onPreview={(file) => {
  1887. this.setState({
  1888. previewImage: file.url || file.thumbUrl,
  1889. previewVisible: true,
  1890. });
  1891. }}
  1892. />
  1893. <Button>添加附件</Button>
  1894. </FormItem>
  1895. </div>
  1896. <Button
  1897. type="primary"
  1898. shape="round"
  1899. size="large"
  1900. style={{
  1901. position: "relative",
  1902. left: "50%",
  1903. transform: "translateX(-50%)",
  1904. }}
  1905. onClick={this.editPhone}
  1906. >
  1907. 保存
  1908. </Button>
  1909. </Spin>
  1910. </Modal>
  1911. <Modal
  1912. visible={this.state.visible}
  1913. footer={null}
  1914. width={1000}
  1915. onCancel={() => {
  1916. this.loadData();
  1917. this.cancel();
  1918. }}
  1919. >
  1920. <Spin spinning={this.state.loading}>
  1921. <h2
  1922. style={{
  1923. textAlign: "center",
  1924. paddingBottom: 10,
  1925. marginBottom: 10,
  1926. }}
  1927. >
  1928. {this.state.ModalData.name + "人事档案"}
  1929. </h2>
  1930. <ul className="peo-table">
  1931. {this.state.table.map((item) => {
  1932. let value = item.value;
  1933. if (item.render) {
  1934. let fn = item.render;
  1935. return (
  1936. <li>
  1937. <div className="peo-left">{item.key}</div>
  1938. <Tooltip
  1939. placement="top"
  1940. title={fn(
  1941. this.state.ModalData[value],
  1942. value == "son" ? this.state.ModalData.girl : 0
  1943. )}
  1944. >
  1945. <div className="peo-right">
  1946. {fn(
  1947. this.state.ModalData[value],
  1948. value == "son" ? this.state.ModalData.girl : 0
  1949. )}
  1950. </div>
  1951. </Tooltip>
  1952. </li>
  1953. );
  1954. }
  1955. return (
  1956. <li>
  1957. <div className="peo-left">{item.key}</div>
  1958. <Tooltip
  1959. placement="top"
  1960. title={this.state.ModalData[item.value]}
  1961. >
  1962. <div className="peo-right">
  1963. {this.state.ModalData[value] &&
  1964. this.state.ModalData[value].length > 10
  1965. ? this.state.ModalData[value].substring(0, 10) + "..."
  1966. : this.state.ModalData[value]}
  1967. </div>
  1968. </Tooltip>
  1969. </li>
  1970. );
  1971. })}
  1972. </ul>
  1973. <div className="title-peo">
  1974. <span>任职信息</span>
  1975. <Button
  1976. type="primary"
  1977. onClick={e => {
  1978. this.stayModal(this.state.ModalData.id)
  1979. }}
  1980. style={{ position: "absolute", right: 0, height: 30 }}
  1981. >
  1982. 修改任职信息
  1983. </Button>
  1984. </div>
  1985. <div className="clearfix">
  1986. <FormItem
  1987. className="half-item"
  1988. labelCol={{ span: 6 }}
  1989. wrapperCol={{ span: 30 }}
  1990. label="员工状态"
  1991. >
  1992. {this.state.ModalData.statusName}
  1993. </FormItem>
  1994. <FormItem
  1995. className="half-item"
  1996. labelCol={{ span: 6 }}
  1997. wrapperCol={{ span: 30 }}
  1998. label="所属系统"
  1999. >
  2000. {this.state.ModalData.systemName}
  2001. </FormItem>
  2002. </div>
  2003. <div className="clearfix">
  2004. <FormItem
  2005. className="half-item"
  2006. labelCol={{ span: 6 }}
  2007. wrapperCol={{ span: 30 }}
  2008. label="工作性质"
  2009. >
  2010. {this.jobStatus(
  2011. this.state.ModalData.jobNature,
  2012. this.state.ModalData.jobNatureRemarks
  2013. )}
  2014. </FormItem>
  2015. <FormItem
  2016. className="half-item"
  2017. labelCol={{ span: 6 }}
  2018. wrapperCol={{ span: 30 }}
  2019. label="工龄"
  2020. >
  2021. {this.state.ModalData.workingYear}
  2022. </FormItem>
  2023. </div>
  2024. <div className="clearfix">
  2025. <FormItem
  2026. className="half-item"
  2027. labelCol={{ span: 6 }}
  2028. wrapperCol={{ span: 30 }}
  2029. label="入职时间"
  2030. >
  2031. {this.state.ModalData.entryTimes}
  2032. </FormItem>
  2033. <FormItem
  2034. className="half-item"
  2035. labelCol={{ span: 6 }}
  2036. wrapperCol={{ span: 30 }}
  2037. label="转正时间"
  2038. >
  2039. {this.state.ModalData.promotionTimes}
  2040. </FormItem>
  2041. </div>
  2042. <div className="clearfix">
  2043. <FormItem
  2044. className="half-item"
  2045. labelCol={{ span: 6 }}
  2046. wrapperCol={{ span: 30 }}
  2047. label="所属公司"
  2048. >
  2049. {this.state.ModalData.entryTimes}
  2050. </FormItem>
  2051. <FormItem
  2052. className="half-item"
  2053. labelCol={{ span: 6 }}
  2054. wrapperCol={{ span: 30 }}
  2055. label="级别"
  2056. >
  2057. {this.state.ModalData.lvlName}
  2058. </FormItem>
  2059. </div>
  2060. <div className="clearfix">
  2061. <FormItem
  2062. className="half-item"
  2063. labelCol={{ span: 6 }}
  2064. wrapperCol={{ span: 30 }}
  2065. label="职位"
  2066. >
  2067. {this.state.ModalData.jobsName}
  2068. </FormItem>
  2069. <FormItem
  2070. className="half-item"
  2071. labelCol={{ span: 6 }}
  2072. wrapperCol={{ span: 30 }}
  2073. label="岗位津贴"
  2074. >
  2075. {this.state.ModalData.allowance}
  2076. </FormItem>
  2077. </div>
  2078. <div className="clearfix">
  2079. <FormItem
  2080. className="half-item"
  2081. labelCol={{ span: 6 }}
  2082. wrapperCol={{ span: 30 }}
  2083. label="星级"
  2084. >
  2085. {this.state.ModalData.starName}
  2086. </FormItem>
  2087. </div>
  2088. <div className="title-peo">
  2089. <span>联系信息</span>
  2090. </div>
  2091. <div className="clearfix">
  2092. <FormItem
  2093. className="half-item"
  2094. labelCol={{ span: 6 }}
  2095. wrapperCol={{ span: 30 }}
  2096. label="手机号码"
  2097. >
  2098. {this.state.ModalData.mobile}
  2099. </FormItem>
  2100. <FormItem
  2101. className="half-item"
  2102. labelCol={{ span: 6 }}
  2103. wrapperCol={{ span: 30 }}
  2104. label="电话"
  2105. >
  2106. {this.state.ModalData.fixedTel}
  2107. </FormItem>
  2108. </div>
  2109. {this.state.ModalData.contactList &&
  2110. this.state.ModalData.contactList.length > 0 ? (
  2111. this.state.ModalData.contactList.map((item, index) => {
  2112. return (
  2113. <div className="clearfix">
  2114. <FormItem
  2115. className="half-item"
  2116. labelCol={{ span: 6 }}
  2117. wrapperCol={{ span: 30 }}
  2118. label={"紧急联系人" + index}
  2119. >
  2120. {item.emergencyContact}
  2121. </FormItem>
  2122. <FormItem
  2123. className="half-item"
  2124. labelCol={{ span: 6 }}
  2125. wrapperCol={{ span: 30 }}
  2126. label={"紧急联系人" + index + "电话"}
  2127. >
  2128. {item.emergencyMobile}
  2129. </FormItem>
  2130. </div>
  2131. );
  2132. })
  2133. ) : (
  2134. <div
  2135. style={{ textAlign: "center", height: 60, lineHeight: "60px" }}
  2136. >
  2137. 暂无紧急联系人信息
  2138. </div>
  2139. )}
  2140. <div className="title-peo">
  2141. <span>入职资料</span>
  2142. </div>
  2143. <div className="clearfix">
  2144. <FormItem
  2145. className="half-item"
  2146. labelCol={{ span: 6 }}
  2147. wrapperCol={{ span: 30 }}
  2148. label="毕业学校"
  2149. >
  2150. {this.state.ModalData.personnelEntry
  2151. ? this.state.ModalData.personnelEntry.school
  2152. : ""}
  2153. </FormItem>
  2154. <FormItem
  2155. className="half-item"
  2156. labelCol={{ span: 6 }}
  2157. wrapperCol={{ span: 30 }}
  2158. label="学历"
  2159. >
  2160. {this.state.ModalData.personnelEntry
  2161. ? this.educationStatus(
  2162. this.state.ModalData.personnelEntry.education
  2163. )
  2164. : ""}
  2165. </FormItem>
  2166. </div>
  2167. <div className="clearfix">
  2168. <FormItem
  2169. className="half-item"
  2170. labelCol={{ span: 6 }}
  2171. wrapperCol={{ span: 30 }}
  2172. label="所学专业"
  2173. >
  2174. {this.state.ModalData.personnelEntry
  2175. ? this.state.ModalData.personnelEntry.major
  2176. : ""}
  2177. </FormItem>
  2178. <FormItem
  2179. className="half-item"
  2180. labelCol={{ span: 6 }}
  2181. wrapperCol={{ span: 30 }}
  2182. label="职称"
  2183. >
  2184. {this.state.ModalData.personnelEntry
  2185. ? this.state.ModalData.personnelEntry.title
  2186. : ""}
  2187. </FormItem>
  2188. </div>
  2189. <div className="clearfix" style={{ paddingLeft: 70 }}>
  2190. <div style={{ marginBottom: 10 }}>附件:</div>
  2191. <PicModal
  2192. remarks={
  2193. this.state.ModalData.personnelEntry
  2194. ? this.picToArr(
  2195. this.state.ModalData.personnelEntry.annexName
  2196. )
  2197. : []
  2198. }
  2199. picUrl={
  2200. this.state.ModalData.personnelEntry
  2201. ? this.picToArr(
  2202. this.state.ModalData.personnelEntry.annexUrl
  2203. )
  2204. : []
  2205. }
  2206. />
  2207. </div>
  2208. <div className="title-peo">
  2209. <span>晋升情况</span>
  2210. </div>
  2211. {this.state.ModalData.promotionList &&
  2212. this.state.ModalData.promotionList.length > 0 ? (
  2213. this.state.ModalData.promotionList.map((item, index) => {
  2214. return (
  2215. <div
  2216. style={{ width: "100%", borderBottom: "1px dashed #ccc" }}
  2217. >
  2218. <div className="clearfix">
  2219. <FormItem
  2220. className="half-item"
  2221. labelCol={{ span: 6 }}
  2222. wrapperCol={{ span: 30 }}
  2223. label="晋升职位"
  2224. >
  2225. {item.oldJobsName + "--->" + item.newJobsName}
  2226. </FormItem>
  2227. <FormItem
  2228. className="half-item"
  2229. labelCol={{ span: 6 }}
  2230. wrapperCol={{ span: 30 }}
  2231. label="晋升等级"
  2232. >
  2233. {item.oldLvlName + "--->" + item.newLvlName}
  2234. </FormItem>
  2235. </div>
  2236. <div className="clearfix">
  2237. <FormItem
  2238. className="half-item"
  2239. labelCol={{ span: 6 }}
  2240. wrapperCol={{ span: 30 }}
  2241. label="晋升时间"
  2242. >
  2243. {item.promotionTimes}
  2244. </FormItem>
  2245. <FormItem
  2246. className="half-item"
  2247. labelCol={{ span: 6 }}
  2248. wrapperCol={{ span: 30 }}
  2249. label="晋升备注"
  2250. >
  2251. {item.promotionRemarks}
  2252. </FormItem>
  2253. </div>
  2254. <div
  2255. className="clearfix"
  2256. style={{ paddingLeft: 70, marginBottom: 10 }}
  2257. >
  2258. <div style={{ marginBottom: 10 }}>附件:</div>
  2259. <PicModal
  2260. remarks={this.picToArr(item.annexName)}
  2261. picUrl={this.picToArr(item.annexUrl)}
  2262. />
  2263. </div>
  2264. </div>
  2265. );
  2266. })
  2267. ) : (
  2268. <div
  2269. style={{ textAlign: "center", height: 60, lineHeight: "60px" }}
  2270. >
  2271. 暂无晋升情况
  2272. </div>
  2273. )}
  2274. <div className="title-peo">
  2275. <span>合同情况</span>
  2276. </div>
  2277. {this.state.ModalData.contractList &&
  2278. this.state.ModalData.contractList.length > 0 ? (
  2279. this.state.ModalData.contractList.map((item, index) => {
  2280. return (
  2281. <div
  2282. style={{ width: "100%", borderBottom: "1px dashed #ccc" }}
  2283. >
  2284. <div className="clearfix">
  2285. <FormItem
  2286. className="half-item"
  2287. labelCol={{ span: 6 }}
  2288. wrapperCol={{ span: 30 }}
  2289. label="签订时间"
  2290. >
  2291. {item.startTimes}
  2292. </FormItem>
  2293. <FormItem
  2294. className="half-item"
  2295. labelCol={{ span: 6 }}
  2296. wrapperCol={{ span: 30 }}
  2297. label="到期时间"
  2298. >
  2299. {item.endTimes}
  2300. </FormItem>
  2301. </div>
  2302. <div className="clearfix">
  2303. <FormItem
  2304. className="half-item"
  2305. labelCol={{ span: 6 }}
  2306. wrapperCol={{ span: 30 }}
  2307. label="备注"
  2308. >
  2309. {item.contractRemarks}
  2310. </FormItem>
  2311. </div>
  2312. <div
  2313. className="clearfix"
  2314. style={{ paddingLeft: 70, marginBottom: 10 }}
  2315. >
  2316. <div style={{ marginBottom: 10 }}>附件:</div>
  2317. <PicModal
  2318. remarks={this.picToArr(item.annexName)}
  2319. picUrl={this.picToArr(item.annexUrl)}
  2320. />
  2321. </div>
  2322. </div>
  2323. );
  2324. })
  2325. ) : (
  2326. <div
  2327. style={{ textAlign: "center", height: 60, lineHeight: "60px" }}
  2328. >
  2329. 暂无合同情况
  2330. </div>
  2331. )}
  2332. <div className="title-peo">
  2333. <span>奖惩情况</span>
  2334. </div>
  2335. {this.state.ModalData.chooseList &&
  2336. this.state.ModalData.chooseList.length > 0 ? (
  2337. this.state.ModalData.chooseList.map((item, index) => {
  2338. return (
  2339. <div
  2340. style={{ width: "100%", borderBottom: "1px dashed #ccc" }}
  2341. >
  2342. <div className="clearfix">
  2343. <FormItem
  2344. className="half-item"
  2345. labelCol={{ span: 6 }}
  2346. wrapperCol={{ span: 30 }}
  2347. label={item.chooseStatus == 0 ? "奖励" : "惩罚"}
  2348. >
  2349. {item.chooseRemarks}
  2350. </FormItem>
  2351. <FormItem
  2352. className="half-item"
  2353. labelCol={{ span: 6 }}
  2354. wrapperCol={{ span: 30 }}
  2355. label="时间"
  2356. >
  2357. {item.effectTimes}
  2358. </FormItem>
  2359. </div>
  2360. <div
  2361. className="clearfix"
  2362. style={{ paddingLeft: 70, marginBottom: 10 }}
  2363. >
  2364. <div style={{ marginBottom: 10 }}>附件:</div>
  2365. <PicModal
  2366. remarks={this.picToArr(item.annexName)}
  2367. picUrl={this.picToArr(item.annexUrl)}
  2368. />
  2369. </div>
  2370. </div>
  2371. );
  2372. })
  2373. ) : (
  2374. <div
  2375. style={{ textAlign: "center", height: 60, lineHeight: "60px" }}
  2376. >
  2377. 暂无奖惩情况
  2378. </div>
  2379. )}
  2380. <div className="title-peo">
  2381. <span>离职情况</span>
  2382. </div>
  2383. {this.state.ModalData.quitList &&
  2384. this.state.ModalData.quitList.length > 0 ? (
  2385. this.state.ModalData.quitList.map((item, index) => {
  2386. return (
  2387. <div
  2388. style={{ width: "100%", borderBottom: "1px dashed #ccc" }}
  2389. >
  2390. <div className="clearfix">
  2391. <FormItem
  2392. className="half-item"
  2393. labelCol={{ span: 6 }}
  2394. wrapperCol={{ span: 30 }}
  2395. label="离职时间"
  2396. >
  2397. {item.effectTimes}
  2398. </FormItem>
  2399. <FormItem
  2400. className="half-item"
  2401. labelCol={{ span: 6 }}
  2402. wrapperCol={{ span: 30 }}
  2403. label="离职备注"
  2404. >
  2405. {item.quitRemarks}
  2406. </FormItem>
  2407. </div>
  2408. <div
  2409. className="clearfix"
  2410. style={{ paddingLeft: 70, marginBottom: 10 }}
  2411. >
  2412. <div style={{ marginBottom: 10 }}>附件:</div>
  2413. <PicModal
  2414. remarks={this.picToArr(item.annexName)}
  2415. picUrl={this.picToArr(item.annexUrl)}
  2416. />
  2417. </div>
  2418. </div>
  2419. );
  2420. })
  2421. ) : (
  2422. <div
  2423. style={{ textAlign: "center", height: 60, lineHeight: "60px" }}
  2424. >
  2425. 暂无奖惩情况
  2426. </div>
  2427. )}
  2428. </Spin>
  2429. </Modal>
  2430. </div>
  2431. );
  2432. },
  2433. });
  2434. export default PersonnelAll;