systemMessage.jsx 83 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068
  1. import React from 'react';
  2. import ReactDom from 'react-dom';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import '../content.less';
  6. import { citySelect,provinceList,areaSelect,provinceSelect,addressList} from '../../../NewDicProvinceListAll';
  7. import { Form,Radio, Icon, Button, Input, Select, Spin, Table, Switch, message, DatePicker, Modal, Upload,Popconfirm,AutoComplete,Tabs,Checkbox,Tree,Cascader} from 'antd';
  8. import {patternOrganization,conditionOrganization,intentionalService,messageType,designatedObjects,socialAttributeS,industry,socialAttribute,industryS,designatedObjectse,auditStatusL} from '../../../dataDic.js';
  9. import {getPattern,getProvince,getCondition,getcustomerTyp,getSocialAttribute,getDesignated,getCertification,getAuditStatus, getContactType, getfllowSituation,getWhether,getLvl,getCurrentMember,getStatuslist,getMessageType} from '../../../tools.js';
  10. const TabPane = Tabs.TabPane;
  11. const TreeNodet = Tree.TreeNode;
  12. const CheckboxGroup = Checkbox.Group;
  13. const SystemMessage=Form.create()(React.createClass({
  14. //列表的展示和搜索
  15. loadData(pageNo,sendType) {
  16. this.state.data = [];
  17. this.setState({
  18. loading: true
  19. });
  20. $.ajax({
  21. method: "get",
  22. dataType: "json",
  23. crossDomain: false,
  24. url: globalConfig.context + '/api/admin/message/listSystemMessage',
  25. data: {
  26. pageNo: pageNo || 1,
  27. pageSize: this.state.pagination.pageSize,
  28. isDraft:sendType,//是否发送
  29. subject:'01',//列表消息类型
  30. },
  31. success: function (data) {
  32. let theArr = [];
  33. if (!data.data || !data.data.list) {
  34. if (data.error && data.error.length) {
  35. message.warning(data.error[0].message);
  36. };
  37. } else {
  38. for (let i = 0; i < data.data.list.length; i++) {
  39. let thisdata = data.data.list[i];
  40. console.log(thisdata.consumerType);
  41. theArr.push({
  42. key: i,
  43. id: thisdata.messageId,//每一条消息的ID
  44. createTime:thisdata.createTime,//创建时间
  45. title:thisdata.title,//消息标题
  46. body:thisdata.body,//消息内容
  47. subject:thisdata.subject,//消息类型
  48. consumerType:thisdata.consumerType,//发送目标类型
  49. });
  50. };
  51. this.state.pagination.current = data.data.pageNo;
  52. this.state.pagination.total = data.data.totalCount;
  53. };
  54. this.setState({
  55. dataSource: theArr,
  56. pagination: this.state.pagination
  57. });
  58. }.bind(this),
  59. }).always(function () {
  60. this.setState({
  61. loading: false
  62. });
  63. }.bind(this));
  64. },
  65. sanhuLoadData(pageNo, apiUrl) {
  66. this.setState({
  67. loading: true
  68. });
  69. $.ajax({
  70. method: "post",
  71. dataType: "json",
  72. crossDomain: false,
  73. url: globalConfig.context + '/api/admin/customer/listAllPersonalCustomer',
  74. data: {
  75. pageNo: pageNo || 1,
  76. pageSize: this.state.pagination.pageSize,
  77. type: this.state.typeSearch, //名称1
  78. name: this.state.nameSearch,
  79. //province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  80. //city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  81. status: this.state.statusSearch,
  82. industry: this.state.industrySearch,
  83. businessAudit: this.state.serviceCertificationSearch,
  84. auditStatus: this.state.userCertificationSearch,
  85. international: this.state.internationalSearch,
  86. currentMemberStatus: this.state.currentMemberStatusSearch,
  87. lvl: this.state.lvlSearch,
  88. isMember: this.state.isMemberSearch,
  89. societyTag: this.state.societyTagSearch,
  90. listed: this.state.listedSearch, //是否上市
  91. highTechZone: this.state.highTechZoneSearch, //是否高新
  92. },
  93. success: function(data) {
  94. let theArr = [];
  95. if(data.error.length || data.data.list == "") {
  96. if(data.error && data.error.length) {
  97. message.warning(data.error[0].message);
  98. };
  99. } else {
  100. for(let i = 0; i < data.data.list.length; i++) {
  101. let thisdata = data.data.list[i];
  102. theArr.push({
  103. key: thisdata.uid,
  104. id: thisdata.uid,
  105. type: thisdata.type,
  106. name: thisdata.name,
  107. status: thisdata.status,
  108. contacts: thisdata.contacts,
  109. contactMobile: thisdata.contactMobile,
  110. industry: thisdata.industry,
  111. createTime: thisdata.createTime,
  112. businessAudit: thisdata.businessAudit,
  113. auditStatus: thisdata.auditStatus,
  114. lvl: thisdata.lvl,
  115. isMember: thisdata.isMember,
  116. status: thisdata.status,
  117. societyTag: thisdata.societyTag,
  118. currentMemberStatus: thisdata.currentMemberStatus,
  119. international: thisdata.international,
  120. listed: thisdata.listed,
  121. highTechZone: thisdata.highTechZone,
  122. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  123. });
  124. };
  125. };
  126. this.state.pagination1.current = data.data.pageNo ? data.data.pageNo : '0';
  127. this.state.pagination1.total = data.data.totalCount ? data.data.totalCount : '0';
  128. this.setState({
  129. sanhuDataSource: theArr,
  130. pagination1: this.state.pagination1
  131. });
  132. }.bind(this),
  133. }).always(function() {
  134. this.setState({
  135. loading: false
  136. });
  137. }.bind(this));
  138. },
  139. sanhuLoadData21(pageNo, apiUrl) {
  140. this.setState({
  141. loading: true
  142. });
  143. $.ajax({
  144. method: "post",
  145. dataType: "json",
  146. crossDomain: false,
  147. url: globalConfig.context + '/api/admin/customer/listAllOrganizationCustomer',
  148. data: {
  149. pageNo: pageNo || 1,
  150. pageSize: this.state.pagination.pageSize,
  151. type: this.state.typeSearch, //名称1
  152. name: this.state.nameSearch,
  153. //province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  154. //city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  155. status: this.state.statusSearch,
  156. industry: this.state.industrySearch,
  157. businessAudit: this.state.serviceCertificationSearch,
  158. auditStatus: this.state.userCertificationSearch,
  159. international: this.state.internationalSearch,
  160. currentMemberStatus: this.state.currentMemberStatusSearch,
  161. lvl: this.state.lvlSearch,
  162. isMember: this.state.isMemberSearch,
  163. societyTag: this.state.societyTagSearch,
  164. listed: this.state.listedSearch, //是否上市
  165. highTechZone: this.state.highTechZoneSearch, //是否高新
  166. },
  167. success: function(data) {
  168. let theArr = [];
  169. if(data.error.length || data.data.list == "") {
  170. if(data.error && data.error.length) {
  171. message.warning(data.error[0].message);
  172. };
  173. } else {
  174. for(let i = 0; i < data.data.list.length; i++) {
  175. let thisdata = data.data.list[i];
  176. theArr.push({
  177. key: thisdata.uid,
  178. id: thisdata.uid,
  179. type: thisdata.type,
  180. name: thisdata.name,
  181. status: thisdata.status,
  182. contacts: thisdata.contacts,
  183. contactMobile: thisdata.contactMobile,
  184. industry: thisdata.industry,
  185. createTime: thisdata.createTime,
  186. businessAudit: thisdata.businessAudit,
  187. auditStatus: thisdata.auditStatus,
  188. lvl: thisdata.lvl,
  189. isMember: thisdata.isMember,
  190. status: thisdata.status,
  191. societyTag: thisdata.societyTag,
  192. currentMemberStatus: thisdata.currentMemberStatus,
  193. international: thisdata.international,
  194. listed: thisdata.listed,
  195. highTechZone: thisdata.highTechZone,
  196. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  197. });
  198. };
  199. };
  200. this.state.pagination21.current = data.data.pageNo ? data.data.pageNo : '0';
  201. this.state.pagination21.total = data.data.totalCount ? data.data.totalCount : '0';
  202. this.setState({
  203. sanhuDataSource21: theArr,
  204. pagination21: this.state.pagination21
  205. });
  206. }.bind(this),
  207. }).always(function() {
  208. this.setState({
  209. loading: false
  210. });
  211. }.bind(this));
  212. },
  213. sanhuLoadData1(pageNo) {
  214. this.setState({
  215. loading: true
  216. });
  217. $.ajax({
  218. type: 'get',
  219. cache: false,
  220. url: globalConfig.context + "/api/admin/supervise/adminList",
  221. dataType: "json",
  222. data: {
  223. pageNo: pageNo || 1,
  224. pageSize: this.state.pagination.pageSize,
  225. province: this.state.searchProvince,
  226. mobile: this.state.searchMobile,
  227. name: this.state.searchName,
  228. department:this.state.departmentt
  229. },
  230. success: function (data) {
  231. let theArr = [];
  232. if (!data.data) {
  233. if (data.error && data.error.length) {
  234. message.warning(data.error[0].message);
  235. };
  236. } else {
  237. for (let i = 0; i < data.data.list.length; i++) {
  238. let thisdata = data.data.list[i];
  239. this.state.onlyProvince = thisdata.province;
  240. theArr.push({
  241. key: thisdata.id,
  242. id: thisdata.id,
  243. mobile: thisdata.mobile,
  244. name: thisdata.name,
  245. email: thisdata.email,
  246. createTime: thisdata.createTime,
  247. number: thisdata.number,
  248. province: thisdata.province,
  249. city:thisdata.city,
  250. position: thisdata.position,
  251. departmentName:thisdata.departmentName,
  252. departmentId:thisdata.departmentId,
  253. superior: thisdata.superior,
  254. superiorId: thisdata.superiorId,
  255. createTimeFormattedDate: thisdata.createTimeFormattedDate
  256. });
  257. };
  258. this.state.pagination2.current = data.data.pageNo;
  259. this.state.pagination2.total = data.data.totalCount;
  260. };
  261. this.setState({
  262. sanhuDataSource1: theArr,
  263. pagination2: this.state.pagination2
  264. });
  265. }.bind(this),
  266. }).always(function () {
  267. this.setState({
  268. loading: false
  269. });
  270. }.bind(this));
  271. },
  272. //分公司列表和搜索
  273. fengongsiLoadData(pageNo) {
  274. this.state.data = [];
  275. this.setState({
  276. loading: true
  277. });
  278. let nameText=this.state.departmentArr;
  279. let superText=(this.state.superId)?nameText[parseInt(this.state.superId)].name:"";
  280. $.ajax({
  281. method: "post",
  282. dataType: "json",
  283. crossDomain: false,
  284. url: globalConfig.context + '/api/admin/organization/listOrganizationManagement',
  285. data: {
  286. pageNo: pageNo || 1,
  287. pageSize: this.state.pagination.pageSize,
  288. name: this.state.name, //组织名称
  289. superId:superText,//上级组织
  290. type:this.state.type,//组织类型
  291. depNo:this.state.depNo,//组织编号
  292. },
  293. success: function (data) {
  294. let theArr = [];
  295. if (!data.data || !data.data.list) {
  296. if (data.error && data.error.length) {
  297. message.warning(data.error[0].message);
  298. };
  299. } else {
  300. for (let i = 0; i < data.data.list.length; i++) {
  301. let thisdata = data.data.list[i];
  302. theArr.push({
  303. key: thisdata.id,
  304. id: thisdata.id,//每一条记录的ID
  305. depNo:thisdata.depNo,//组织编号
  306. name:thisdata.name,//组织名称
  307. type:thisdata.type,//组织类型
  308. managerId:thisdata.managerId,//负责人
  309. superId:thisdata.superId,//上级组织
  310. status:thisdata.status,//组织状态
  311. });
  312. };
  313. this.state.pagination3.current = data.data.pageNo;
  314. this.state.pagination3.total = data.data.totalCount;
  315. };
  316. this.setState({
  317. fengongsiDataSource: theArr,
  318. pagination3: this.state.pagination3
  319. });
  320. }.bind(this),
  321. }).always(function () {
  322. this.setState({
  323. loading: false
  324. });
  325. }.bind(this));
  326. },
  327. jueseLoadData(pageNo) {
  328. this.state.data = [];
  329. this.setState({
  330. loading: true
  331. });
  332. $.ajax({
  333. method: "post",
  334. dataType: "json",
  335. crossDomain: false,
  336. url: globalConfig.context + '/api/admin/roles',
  337. data: {
  338. pageNo: pageNo || 1,
  339. pageSize: this.state.pagination.pageSize,
  340. roleName:this.state.roleNameSearch,
  341. },
  342. success: function (data) {
  343. let theArr = [];
  344. if (!data.data) {
  345. if (data.error && data.error.length) {
  346. message.warning(data.error[0].message);
  347. };
  348. } else {
  349. for (let i = 0; i < data.data.list.length; i++) {
  350. let thisdata = data.data.list[i];
  351. theArr.push({
  352. key: thisdata.id,
  353. id: thisdata.id,
  354. roleName: thisdata.roleName,
  355. creater:thisdata.creater,
  356. createTime:thisdata.createTimez,
  357. });
  358. };
  359. this.state.pagination4.current = data.data.pageNo;
  360. this.state.pagination4.total = data.data.totalCount;
  361. };
  362. this.setState({
  363. jueseDataSource: theArr,
  364. pagination4: this.state.pagination4
  365. });
  366. }.bind(this),
  367. }).always(function () {
  368. this.setState({
  369. loading: false
  370. });
  371. }.bind(this));
  372. },
  373. getInitialState() {
  374. return {
  375. data: [],
  376. sanhu:[],
  377. objText:[],
  378. callnub:'0',
  379. showAdd: false,
  380. showDesc: false,
  381. expandedKeys: [],
  382. autoExpandParent: true,
  383. selectedKeys: [],
  384. searchMore: true,
  385. selectedRowKeys: [],
  386. selectedRows: [],
  387. loading: false,
  388. pagination: {
  389. defaultCurrent: 1,
  390. defaultPageSize: 10,
  391. showQuickJumper: true,
  392. pageSize: 10,
  393. onChange: function (page) {
  394. this.loadData(page);
  395. }.bind(this),
  396. showTotal: function (total) {
  397. return '共' + total + '条数据';
  398. }
  399. },
  400. pagination1: {
  401. defaultCurrent: 1,
  402. defaultPageSize: 10,
  403. showQuickJumper: true,
  404. pageSize: 10,
  405. onChange: function (page) {
  406. this.sanhuLoadData(page);
  407. }.bind(this),
  408. showTotal: function (total) {
  409. return '共' + total + '条数据';
  410. }
  411. },
  412. pagination21: {
  413. defaultCurrent: 1,
  414. defaultPageSize: 10,
  415. showQuickJumper: true,
  416. pageSize: 10,
  417. onChange: function (page) {
  418. this.sanhuLoadData21(page);
  419. }.bind(this),
  420. showTotal: function (total) {
  421. return '共' + total + '条数据';
  422. }
  423. },
  424. pagination2: {
  425. defaultCurrent: 1,
  426. defaultPageSize: 10,
  427. showQuickJumper: true,
  428. pageSize: 10,
  429. onChange: function (page) {
  430. this.sanhuLoadData1(page);
  431. }.bind(this),
  432. showTotal: function (total) {
  433. return '共' + total + '条数据';
  434. }
  435. },
  436. pagination3: {
  437. defaultCurrent: 1,
  438. defaultPageSize: 10,
  439. showQuickJumper: true,
  440. pageSize: 10,
  441. onChange: function (page) {
  442. this.fengongsiLoadData(page);
  443. }.bind(this),
  444. showTotal: function (total) {
  445. return '共' + total + '条数据';
  446. }
  447. },
  448. pagination4: {
  449. defaultCurrent: 1,
  450. defaultPageSize: 10,
  451. showQuickJumper: true,
  452. pageSize: 10,
  453. onChange: function (page) {
  454. this.jueseLoadData(page);
  455. }.bind(this),
  456. showTotal: function (total) {
  457. return '共' + total + '条数据';
  458. }
  459. },
  460. columns: [
  461. {
  462. title: '消息时间',
  463. dataIndex: 'createTime',
  464. key: 'createTime',
  465. }, {
  466. title: '消息标题',
  467. dataIndex: 'title',
  468. key: 'title',
  469. },{
  470. title: '消息内容',
  471. dataIndex: 'body',
  472. key: 'body',
  473. },{
  474. title: '消息类型',
  475. dataIndex: 'subject',
  476. key: 'subject',
  477. render: text => { return getMessageType(text) }
  478. },{
  479. title: '发送目标',
  480. dataIndex: 'consumerType',
  481. key: 'consumerType',
  482. render: text => { return getDesignated(text) }
  483. }
  484. ],
  485. dataSource: [],
  486. sanhuColumns1: [
  487. {
  488. title: '编号',
  489. dataIndex: 'number',
  490. key: 'number'
  491. }, {
  492. title: '登录账号',
  493. dataIndex: 'mobile',
  494. key: 'mobile'
  495. }, {
  496. title: '名字',
  497. dataIndex: 'name',
  498. key: 'name'
  499. }, {
  500. title: '职位',
  501. dataIndex: 'position',
  502. key: 'position'
  503. },{
  504. title: '部门',
  505. dataIndex: 'departmentName',
  506. key: 'departmentName'
  507. }, {
  508. title: '上级管理员',
  509. dataIndex: 'superior',
  510. key: 'superior'
  511. }, {
  512. title: '邮箱',
  513. dataIndex: 'email',
  514. key: 'email'
  515. }, {
  516. title: '创建时间',
  517. dataIndex: 'createTimeFormattedDate',
  518. key: 'createTimeFormattedDate'
  519. }
  520. ],
  521. sanhuDataSource1: [],
  522. sanhuColumns: [{
  523. title: '客户名称',
  524. dataIndex: 'name',
  525. key: 'name',
  526. }, {
  527. title: '客户类型',
  528. dataIndex: 'type',
  529. key: 'type',
  530. render: text => { return getcustomerTyp(text) }
  531. }, {
  532. title: '地区',
  533. dataIndex: 'locationProvince',
  534. key: 'locationProvince',
  535. }, {
  536. title: '联系人',
  537. dataIndex: 'contacts',
  538. key: 'contacts',
  539. },
  540. {
  541. title: '联系电话',
  542. dataIndex: 'contactMobile',
  543. key: 'contactMobile',
  544. },
  545. {
  546. title: '行业',
  547. dataIndex: 'industry',
  548. key: 'industry',
  549. },
  550. {
  551. title: '社会性质',
  552. dataIndex: 'societyTag',
  553. key: 'societyTag',
  554. render: text => { return getSocialAttribute(text) }
  555. },
  556. {
  557. title: '创建时间',
  558. dataIndex: 'createTime',
  559. key: 'createTime',
  560. },
  561. {
  562. title: '业务认证',
  563. dataIndex: 'businessAudit',
  564. key: 'businessAudit',
  565. render: text => { return getCertification(text) }
  566. },
  567. {
  568. title: '实名认证',
  569. dataIndex: 'auditStatus',
  570. key: 'auditStatus',
  571. render: text => { return getAuditStatus(text) }
  572. },
  573. {
  574. title: '是否高新',
  575. dataIndex: 'highTechZone',
  576. key: 'highTechZone',
  577. render: text => { return getWhether(text) }
  578. }, {
  579. title: '是否上市',
  580. dataIndex: 'listed',
  581. key: 'listed',
  582. render: text => { return getWhether(text) }
  583. },
  584. {
  585. title: '是否国际',
  586. dataIndex: 'international',
  587. key: 'international',
  588. render: text => { return getWhether(text) }
  589. },
  590. {
  591. title: '会员等级',
  592. dataIndex: 'lvl',
  593. key: 'lvl',
  594. render: text => { return getLvl(text) }
  595. },
  596. {
  597. title: '会员状态',
  598. dataIndex: 'currentMemberStatus',
  599. key: 'currentMemberStatus',
  600. render: text => { return getCurrentMember(text) }
  601. },
  602. {
  603. title: '账户状态',
  604. dataIndex: 'status',
  605. key: 'status',
  606. render: text => { return getStatuslist(text) }
  607. }
  608. ],
  609. sanhuDataSource: [],
  610. sanhuColumns21: [{
  611. title: '客户名称',
  612. dataIndex: 'name',
  613. key: 'name',
  614. }, {
  615. title: '客户类型',
  616. dataIndex: 'type',
  617. key: 'type',
  618. render: text => { return getcustomerTyp(text) }
  619. }, {
  620. title: '地区',
  621. dataIndex: 'locationProvince',
  622. key: 'locationProvince',
  623. }, {
  624. title: '联系人',
  625. dataIndex: 'contacts',
  626. key: 'contacts',
  627. },
  628. {
  629. title: '联系电话',
  630. dataIndex: 'contactMobile',
  631. key: 'contactMobile',
  632. },
  633. {
  634. title: '行业',
  635. dataIndex: 'industry',
  636. key: 'industry',
  637. },
  638. {
  639. title: '社会性质',
  640. dataIndex: 'societyTag',
  641. key: 'societyTag',
  642. render: text => { return getSocialAttribute(text) }
  643. },
  644. {
  645. title: '创建时间',
  646. dataIndex: 'createTime',
  647. key: 'createTime',
  648. },
  649. {
  650. title: '业务认证',
  651. dataIndex: 'businessAudit',
  652. key: 'businessAudit',
  653. render: text => { return getCertification(text) }
  654. },
  655. {
  656. title: '实名认证',
  657. dataIndex: 'auditStatus',
  658. key: 'auditStatus',
  659. render: text => { return getAuditStatus(text) }
  660. },
  661. {
  662. title: '是否高新',
  663. dataIndex: 'highTechZone',
  664. key: 'highTechZone',
  665. render: text => { return getWhether(text) }
  666. }, {
  667. title: '是否上市',
  668. dataIndex: 'listed',
  669. key: 'listed',
  670. render: text => { return getWhether(text) }
  671. },
  672. {
  673. title: '是否国际',
  674. dataIndex: 'international',
  675. key: 'international',
  676. render: text => { return getWhether(text) }
  677. },
  678. {
  679. title: '会员等级',
  680. dataIndex: 'lvl',
  681. key: 'lvl',
  682. render: text => { return getLvl(text) }
  683. },
  684. {
  685. title: '会员状态',
  686. dataIndex: 'currentMemberStatus',
  687. key: 'currentMemberStatus',
  688. render: text => { return getCurrentMember(text) }
  689. },
  690. {
  691. title: '账户状态',
  692. dataIndex: 'status',
  693. key: 'status',
  694. render: text => { return getStatuslist(text) }
  695. }
  696. ],
  697. sanhuDataSource21: [],
  698. fengongsiColumns: [
  699. {
  700. title: '组织编号',
  701. dataIndex: 'depNo',
  702. key: 'depNo',
  703. }, {
  704. title: '组织名称',
  705. dataIndex: 'name',
  706. key: 'name',
  707. }, {
  708. title: '负责人',
  709. dataIndex: 'managerId',
  710. key: 'managerId',
  711. },{
  712. title: '组织类型',
  713. dataIndex: 'type',
  714. key: 'type',
  715. render: text => { return getPattern(text) }
  716. }, {
  717. title: '上级组织',
  718. dataIndex: 'superId',
  719. key: 'superId',
  720. },{
  721. title: '组织状态',
  722. dataIndex: 'status',
  723. key: 'status',
  724. render: text => { return getCondition(text) }
  725. }
  726. ],
  727. fengongsiDataSource: [],
  728. jueseColumns: [
  729. {
  730. title: '角色名称',
  731. dataIndex: 'roleName',
  732. key: 'roleName',
  733. width:'300px'
  734. }, {
  735. title: '创建人',
  736. dataIndex: 'creater',
  737. key: 'creater',
  738. width:'300px'
  739. }, {
  740. title: '创建时间',
  741. dataIndex: 'createTime',
  742. key: 'createTime',
  743. }
  744. ],
  745. jueseDataSource: [],
  746. };
  747. },
  748. componentWillMount() {
  749. this.loadData(1,0);
  750. },
  751. //部门
  752. departmentList() {
  753. this.setState({
  754. loading: true
  755. });
  756. $.ajax({
  757. method: "post",
  758. dataType: "json",
  759. crossDomain: false,
  760. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  761. data: {
  762. },
  763. success: function(data) {
  764. let thedata = data.data;
  765. let theArr=[];
  766. if(!thedata) {
  767. if(data.error && data.error.length) {
  768. message.warning(data.error[0].message);
  769. };
  770. thedata = {};
  771. }else{
  772. thedata.map(function(item,index){
  773. theArr.push({
  774. key:index,
  775. name:item.name,
  776. id:item.id,
  777. depNo:item.depNo
  778. })
  779. })
  780. }
  781. this.setState({
  782. departmentArr:theArr,
  783. })
  784. }.bind(this),
  785. }).always(function() {
  786. this.setState({
  787. loading: false
  788. });
  789. }.bind(this));
  790. },
  791. //整行点击
  792. bianji(record, index) {
  793. this.state.RowData = record;
  794. this.setState({
  795. editvisible: true,
  796. selectedRowKeys:[],
  797. rowId:record.businessId,
  798. })
  799. let deletedIds ='';
  800. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  801. let rowItem = this.state.selectedRows[idx];
  802. if (rowItem.id) {
  803. deletedIds=rowItem.id;
  804. };
  805. };
  806. $.ajax({
  807. method: "get",
  808. dataType: "json",
  809. crossDomain: false,
  810. url: globalConfig.context +"/api/admin/message/getSystemMessageDetail" ,
  811. data: {
  812. messageId: deletedIds
  813. },
  814. success: function (data) {
  815. let theArr = [];
  816. let thisdata = data.data;
  817. if (!data) {
  818. if (data.error && data.error.length) {
  819. message.warning(data.error[0].message);
  820. };
  821. } else {
  822. theArr.push({
  823. editId: thisdata.messageId,//每一条消息的ID
  824. editTitle:thisdata.title,//消息标题
  825. editBody:thisdata.body,//消息内容
  826. editCreateTime:thisdata.createTime,//消息时间
  827. editSubject:thisdata.subject,//消息类型
  828. editConsumerType:thisdata.consumerType,//消息发送对象
  829. });
  830. };
  831. this.setState({
  832. editId: thisdata.messageId,//每一条消息的ID
  833. editTitle:thisdata.title,//消息标题
  834. editBody:thisdata.body,//消息内容
  835. editCreateTime:thisdata.createTime,//消息时间
  836. editSubject:thisdata.subject,//消息类型
  837. editConsumerType:thisdata.consumerType,//上级组织
  838. editDataSource: theArr,
  839. });
  840. }.bind(this),
  841. }).always(function () {
  842. this.setState({
  843. loading: false
  844. });
  845. }.bind(this));
  846. },
  847. //草稿删除
  848. delectRow() {
  849. let deletedIds ='';
  850. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  851. let rowItem = this.state.selectedRows[idx];
  852. if (rowItem.id) {
  853. deletedIds=rowItem.id;
  854. };
  855. };
  856. this.setState({
  857. selectedRowKeys: [],
  858. loading: deletedIds.length > 0
  859. });
  860. $.ajax({
  861. method: "get",
  862. dataType: "json",
  863. crossDomain: false,
  864. url: globalConfig.context + "/api/admin/message/deleteSystemMessage",
  865. data: {
  866. messageId: deletedIds
  867. }
  868. }).done(function (data) {
  869. if (!data.error.length) {
  870. message.success('删除成功!');
  871. this.loadData(1,1);
  872. this.setState({
  873. loading: false,
  874. });
  875. } else {
  876. message.warning(data.error[0].message);
  877. };
  878. }.bind(this));
  879. },
  880. //新增一个部门,保存
  881. addhandleSubmit(e,isDraft){
  882. e.preventDefault();
  883. let duixiang=JSON.stringify(this.state.sanhu)||JSON.stringify(this.state.sanhu21)||JSON.stringify(this.state.shehui)||JSON.stringify(this.state.hangye)||JSON.stringify(this.state.fengongsi)||JSON.stringify(this.state.diqu)||JSON.stringify(this.state.yonghu)||JSON.stringify(this.state.juese);
  884. if(!this.state.addContent){
  885. message.warning('请输入消息内容');
  886. return false;
  887. }
  888. if(!this.state.addType){
  889. message.warning('请选择消息类型');
  890. return false;
  891. }
  892. if(!duixiang){
  893. message.warning('请指定发送对象');
  894. return false;
  895. }
  896. let diquText=this.state.diqu;
  897. let pro=[];
  898. let city=[];
  899. let dis=[];
  900. if(this.state.diqu){
  901. for(var i=0;i<diquText.length;i++){
  902. if(diquText[i]<=34){
  903. pro.push(diquText[i])
  904. }else if(diquText[i]>34&&diquText[i]<380){
  905. city.push(diquText[i])
  906. }else{
  907. dis.push(diquText[i])
  908. }
  909. }
  910. }else{
  911. pro=undefined;
  912. city=undefined;
  913. dis=undefined;
  914. }
  915. this.props.form.validateFields((err, values) => {
  916. if (!err) {
  917. this.setState({
  918. loading: true
  919. });
  920. $.ajax({
  921. method: "post",
  922. dataType: "json",
  923. crossDomain: false,
  924. url:globalConfig.context + '/api/admin/message/createSystemMessage',
  925. data:{
  926. title:this.state.addTitle,//消息标题
  927. body:this.state.addContent,//消息内容
  928. subject:this.state.addType,//消息类型
  929. targetType:this.state.addObject, //指定对象
  930. createTime:this.state.addCreateTime, //创建时间
  931. isDraft:isDraft,//是否存为草稿
  932. personalUserIds:this.state.sanhu?this.state.sanhu.join(","):undefined,//散户
  933. organizationUserIds:this.state.sanhu21?this.state.sanhu21.join(","):undefined,//散户
  934. societyTags:this.state.shehui?this.state.shehui.join(","):undefined,//社会属性
  935. provinceIds:pro?pro.join(","):undefined,//省
  936. cityIds:city?city.join(","):undefined,//市
  937. areaIds:dis?dis.join(","):undefined,//区
  938. industryIds:this.state.hangye?this.state.hangye.join(","):undefined,//行业
  939. companyIds:this.state.fengongsi?this.state.fengongsi.join(","):undefined,//分公司
  940. adminIds:this.state.yonghu?this.state.yonghu.join(","):undefined,//用户
  941. roles:this.state.juese?this.state.juese.join(","):undefined,//角色
  942. }
  943. }).done(function (data) {
  944. this.setState({
  945. loading: false
  946. });
  947. if (!data.error.length) {
  948. message.success('保存成功!');
  949. this.handleCancel();
  950. } else {
  951. message.warning(data.error[0].message);
  952. }
  953. }.bind(this));
  954. }
  955. });
  956. },
  957. add(e){
  958. e.preventDefault();
  959. this.addhandleSubmit(e,0);
  960. },
  961. adds(e){
  962. e.preventDefault();
  963. this.addhandleSubmit(e,1);
  964. },
  965. edit(e){
  966. e.preventDefault();
  967. this.editDraft(e,0);
  968. },
  969. edits(e){
  970. e.preventDefault();
  971. this.editDraft(e,1);
  972. },
  973. //编辑一个部门,保存或者存为草稿
  974. editDraft(e,isDraft){
  975. e.preventDefault();
  976. if(!this.state.editTitle){
  977. message.warning('请输入消息标题');
  978. return false;
  979. }
  980. if(!this.state.editBody){
  981. message.warning('请选择消息内容');
  982. return false;
  983. }
  984. this.props.form.validateFields((err, values) => {
  985. if (!err) {
  986. this.setState({
  987. loading: true
  988. });
  989. $.ajax({
  990. method: "post",
  991. dataType: "json",
  992. crossDomain: false,
  993. url:globalConfig.context + '/api/admin/message/updateSystemMessage',
  994. data:{
  995. messageId:this.state.editId,//消息ID
  996. body:this.state.editBody,//消息内容
  997. title:this.state.editTitle,//消息标题
  998. isDraft:isDraft,//是否存为草稿
  999. }
  1000. }).done(function (data) {
  1001. this.setState({
  1002. loading: false
  1003. });
  1004. if (!data.error.length) {
  1005. message.success('保存成功!');
  1006. this.edithandleCancel();
  1007. } else {
  1008. message.warning(data.error[0].message);
  1009. }
  1010. }.bind(this));
  1011. }
  1012. });
  1013. },
  1014. //主管初始加载(自动补全)
  1015. supervisor(e){
  1016. $.ajax({
  1017. method: "post",
  1018. dataType: "json",
  1019. crossDomain: false,
  1020. url: globalConfig.context + "/api/admin/organization/selectName",
  1021. data:{
  1022. name:e
  1023. },
  1024. success: function (data) {
  1025. let thedata=data.data;
  1026. if (!thedata) {
  1027. if (data.error && data.error.length) {
  1028. message.warning(data.error[0].message);
  1029. };
  1030. thedata = {};
  1031. };
  1032. this.setState({
  1033. customerArr:thedata,
  1034. });
  1035. }.bind(this),
  1036. }).always(function () {
  1037. this.setState({
  1038. loading: false
  1039. });
  1040. }.bind(this));
  1041. },
  1042. //上级主管输入框失去焦点是判断客户是否存在
  1043. selectAuto(value,options){
  1044. this.setState({
  1045. managerIdOrganization:value
  1046. })
  1047. },
  1048. //失去焦点时
  1049. blurChange(e){
  1050. this.setState({
  1051. theTypes:e
  1052. })
  1053. },
  1054. //消息发送列表切换数据处理
  1055. callback(e) {
  1056. this.setState({
  1057. callnub: e,
  1058. })
  1059. if(e == 0) {
  1060. this.setState({
  1061. bianjiMore: false,
  1062. })
  1063. this.loadData(1,0);
  1064. }
  1065. if(e == 1) {
  1066. this.setState({
  1067. bianjiMore: true,
  1068. })
  1069. this.loadData(1,1);
  1070. }
  1071. },
  1072. //切换系统消息类型
  1073. changeNews(e){
  1074. if(e == 1) {
  1075. this.setState({
  1076. newsChange: false,
  1077. addObject:undefined,
  1078. })
  1079. }
  1080. if(e == 0) {
  1081. this.setState({
  1082. newsChange: true ,
  1083. addObject:undefined,
  1084. })
  1085. }
  1086. },
  1087. //切换创建系统消息中的指定发送对象
  1088. selectObjects(e) {
  1089. this.setState({
  1090. addObject:e
  1091. })
  1092. if(e == 61) {
  1093. this.sanhuLoadData();
  1094. this.setState({ visible1: true })
  1095. }
  1096. if(e == 62) {
  1097. this.sanhuLoadData21();
  1098. this.setState({ visible21: true })
  1099. }
  1100. if(e == 1) {
  1101. this.setState({ visible2: true })
  1102. }
  1103. if(e == 2) {
  1104. this.setState({ visible4: true })
  1105. }
  1106. if(e == 0) {
  1107. this.setState({ visible5: true })
  1108. }
  1109. },
  1110. changeObjects(){
  1111. this.objectReset();
  1112. },
  1113. changeObjects1(e){
  1114. this.setState({
  1115. addObject:e
  1116. })
  1117. if(e == 5) {
  1118. this.sanhuLoadData1();
  1119. this.setState({ visible6: true })
  1120. }
  1121. if(e == 4) {
  1122. this.jueseLoadData();
  1123. this.setState({ visible7: true })
  1124. }
  1125. if(e == 3) {
  1126. this.fengongsiLoadData();
  1127. this.setState({ visible3: true })
  1128. }
  1129. },
  1130. //值改变时请求客户名称
  1131. httpChange(e){
  1132. if(e.length>=2){
  1133. this.supervisor(e);
  1134. }
  1135. this.setState({
  1136. managerIdOrganization:e
  1137. })
  1138. },
  1139. addClick() {
  1140. this.state.nameOrganization='';//组织名称清零
  1141. this.state.managerIdOrganization= '';//负责人ID清零
  1142. this.state.typeOrganization= undefined; //组织类型清零
  1143. this.state.upOrganization= undefined;//上级组织清零
  1144. this.state.remarksOrganization= '';//组织职能说明清零
  1145. this.state.RowData = {};
  1146. this.setState({
  1147. visible: true
  1148. });
  1149. $.ajax({
  1150. method: "get",
  1151. dataType: "json",
  1152. crossDomain: false,
  1153. url: globalConfig.context +"/api/admin/message/toCreateSystemMessage" ,
  1154. data: {
  1155. },
  1156. success: function (data) {
  1157. let thisdata = data.data;
  1158. this.setState({
  1159. addCreateTime: thisdata.createTime,//每一条消息的时间
  1160. });
  1161. }.bind(this),
  1162. }).always(function () {
  1163. this.setState({
  1164. loading: false
  1165. });
  1166. }.bind(this));
  1167. },
  1168. editClick() {
  1169. this.state.RowData = {};
  1170. this.setState({
  1171. editvisible: true
  1172. });
  1173. },
  1174. handleCancel() {
  1175. this.setState({ visible: false })
  1176. this.reset();
  1177. },
  1178. handleCancel1() {
  1179. this.setState({ visible1: false })
  1180. },
  1181. handleCancel21() {
  1182. this.setState({ visible21: false })
  1183. },
  1184. handleCancel2() {
  1185. this.setState({ visible2: false })
  1186. },
  1187. handleCancel3() {
  1188. this.setState({ visible3: false })
  1189. },
  1190. handleCancel4() {
  1191. this.setState({ visible4: false })
  1192. },
  1193. handleCancel5() {
  1194. this.setState({ visible5: false })
  1195. },
  1196. handleCancel6() {
  1197. this.setState({ visible6: false })
  1198. },
  1199. handleCancel7() {
  1200. this.setState({ visible7: false })
  1201. },
  1202. edithandleCancel() {
  1203. this.setState({ editvisible: false })
  1204. },
  1205. //地区多选
  1206. onExpand(expandedKeys){
  1207. this.setState({
  1208. expandedKeys,
  1209. autoExpandParent: false,
  1210. });
  1211. },
  1212. onCheck(checkedKeys){
  1213. this.setState({
  1214. checkedKeys:checkedKeys
  1215. });
  1216. },
  1217. onSelectDi(selectedKeys, info){
  1218. this.setState({ selectedKeys });
  1219. },
  1220. renderTreeNodes(data){
  1221. return provinceList.map((item) => {
  1222. return(
  1223. <TreeNodet title={item.name} key={item.id} dataRef={item}>
  1224. {item.cityList.map((item) => {
  1225. return(
  1226. <TreeNodet title={item.name} key={item.id} dataRef={item}>
  1227. {item.areaList.map((item) => {
  1228. return(
  1229. <TreeNodet title={item.name} key={item.id} dataRef={item}>
  1230. </TreeNodet>
  1231. );
  1232. })
  1233. }
  1234. </TreeNodet>
  1235. );
  1236. })
  1237. }
  1238. </TreeNodet>
  1239. );
  1240. return <TreeNodet {...item} />;
  1241. });
  1242. },
  1243. search() {
  1244. this.loadData();
  1245. },
  1246. //散户搜索
  1247. sanhusearch(){
  1248. this.sanhuLoadData();
  1249. },
  1250. //用户搜索
  1251. sanhusearch1(){
  1252. this.sanhuLoadData1();
  1253. },
  1254. //用户搜索
  1255. juesesearch(){
  1256. this.jueseLoadData();
  1257. },
  1258. //散户重置
  1259. sanhuReset() {
  1260. this.state.isMemberSearch = undefined;
  1261. this.state.internationalSearch = undefined;
  1262. this.state.typeSearch = undefined; //名称1
  1263. this.state.nameSearch = '';
  1264. this.state.addressSearch = [];
  1265. this.state.provinceSearch = undefined;
  1266. this.state.citySearch = undefined;
  1267. this.state.statusSearch = undefined;
  1268. this.state.contactsSearch = undefined;
  1269. this.state.contactMobileSearch = undefined;
  1270. this.state.industrySearch = undefined;
  1271. this.state.serviceCertificationSearch = undefined;
  1272. this.state.userCertificationSearch = undefined;
  1273. this.state.currentMemberStatusSearch = undefined;
  1274. this.state.lvlSearch = undefined;
  1275. this.state.listedSearch = undefined;
  1276. this.state.highTechZoneSearch = undefined;
  1277. this.state.releaseDate[0] = undefined;
  1278. this.state.releaseDate[1] = undefined;
  1279. this.state.societyTagSearch = undefined;
  1280. this.sanhuLoadData();
  1281. },
  1282. //用户重置
  1283. sanhuReset1() {
  1284. this.state.departmentt=undefined;
  1285. this.state.searchMobile = undefined;
  1286. this.state.searchName = undefined;
  1287. this.state.searchProvince = undefined;
  1288. this.sanhuLoadData1();
  1289. },
  1290. //角色重置
  1291. jueseReset() {
  1292. this.state.roleNameSearch='';
  1293. this.jueseLoadData();
  1294. },
  1295. //把搜索的部分置零
  1296. reset() {
  1297. this.state.addTitle= undefined;//消息标题
  1298. this.state.addContent= undefined;//消息内容
  1299. this.state.addType= undefined;//消息类型
  1300. this.state.addObject= undefined; //指定对象
  1301. this.loadData(1,0);
  1302. },
  1303. searchSwitch() {
  1304. this.setState({
  1305. searchMore: !this.state.searchMore
  1306. });
  1307. },
  1308. //选择发送对象时的数据处理
  1309. //指定对象清零
  1310. objectReset(){
  1311. this.state.sanhu=undefined;
  1312. this.state.sanhu21=undefined;
  1313. this.state.yonghu=undefined;
  1314. this.state.juese=undefined;
  1315. this.state.shehui=undefined;
  1316. this.state.diqu=undefined;
  1317. this.state.fengongsi=undefined;
  1318. this.state.hangye=undefined;
  1319. },
  1320. rowReset(){
  1321. this.state.selectedRowKeys=[];
  1322. },
  1323. //散户
  1324. sanhuSubmit(){
  1325. this.objectReset();
  1326. this.setState({
  1327. sanhu:this.state.selectedRowKeys
  1328. });
  1329. this.rowReset();
  1330. this.handleCancel1();
  1331. },//散户
  1332. sanhuSubmit21(){
  1333. this.objectReset();
  1334. this.setState({
  1335. sanhu21:this.state.selectedRowKeys
  1336. });
  1337. this.rowReset();
  1338. this.handleCancel21();
  1339. },
  1340. //用户
  1341. yonghuSubmit(){
  1342. this.objectReset();
  1343. this.setState({
  1344. yonghu:this.state.selectedRowKeys
  1345. });
  1346. this.rowReset();
  1347. this.handleCancel6();
  1348. },
  1349. //角色
  1350. jueseSubmit(){
  1351. this.objectReset();
  1352. this.setState({
  1353. juese:this.state.selectedRowKeys
  1354. });
  1355. this.rowReset();
  1356. this.handleCancel7();
  1357. },
  1358. //社会属性
  1359. shehuiSubmit(){
  1360. this.setState({
  1361. shehui:this.state.shehui
  1362. });
  1363. this.handleCancel2();
  1364. },
  1365. //分公司
  1366. fengongsiSubmit(){
  1367. this.objectReset();
  1368. this.setState({
  1369. fengongsi:this.state.selectedRowKeys
  1370. });
  1371. this.rowReset();
  1372. this.handleCancel3();
  1373. },
  1374. //地区
  1375. diquSubmit(){
  1376. this.objectReset();
  1377. this.setState({
  1378. diqu:this.state.checkedKeys
  1379. });
  1380. this.handleCancel4();
  1381. },
  1382. //行业
  1383. hangyeSubmit(){
  1384. this.setState({
  1385. hangye:this.state.hangye
  1386. });
  1387. this.handleCancel5();
  1388. },
  1389. render() {
  1390. let departmentArr = this.state.departmentArr || [];
  1391. const FormItem = Form.Item
  1392. const rowSelection = {
  1393. selectedRowKeys: this.state.selectedRowKeys,
  1394. onChange: (selectedRowKeys, selectedRows) => {
  1395. this.setState({
  1396. selectedRows: selectedRows.slice(-1),
  1397. selectedRowKeys: selectedRowKeys.slice(-1)
  1398. });
  1399. },
  1400. onSelect: (recordt, selected, selectedRows) => {
  1401. this.setState({
  1402. recordt:recordt.id
  1403. })
  1404. },
  1405. };
  1406. const rowSelections = {
  1407. selectedRowKeys: this.state.selectedRowKeys,
  1408. onChange: (selectedRowKeys, selectedRows) => {
  1409. this.setState({
  1410. selectedRows: selectedRows,
  1411. selectedRowKeys: selectedRowKeys
  1412. });
  1413. },
  1414. onSelect: (recordt, selected, selectedRows) => {
  1415. this.setState({
  1416. recordt:recordt.id
  1417. })
  1418. },
  1419. };
  1420. const formItemLayout = {
  1421. labelCol: { span: 8 },
  1422. wrapperCol: { span: 14 },
  1423. };
  1424. const { getFieldDecorator } = this.props.form;
  1425. const hasSelected = this.state.selectedRowKeys.length > 0;
  1426. const { RangePicker } = DatePicker;
  1427. const dataSources=this.state.customerArr || [];
  1428. const options = dataSources.map((group,index) =>
  1429. <Option key={index} value={group.name}>{group.name}</Option>
  1430. )
  1431. return (
  1432. <div className="user-content" >
  1433. <div className="content-title">
  1434. <div className="user-search">
  1435. <Button type="primary" className="addButton" onClick={this.addClick}>创建系统消息<Icon type="plus" /></Button>
  1436. <Button type="primary" onClick={this.bianji} style={!this.state.bianjiMore ? { display: 'none',float:'right',marginRight:'10px'} : {display: 'inline-block',float:'right',marginRight:'10px'}} disabled={!hasSelected}>编辑</Button>
  1437. <div style={!this.state.bianjiMore ? { display: 'none',float:'right',marginRight:'10px'} : {display: 'inline-block',float:'right',marginRight:'10px',marginTop:'10px'}}>
  1438. <Popconfirm title="是否删除?" onConfirm={this.delectRow} okText="是" cancelText="否">
  1439. <Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px'}}
  1440. disabled={!hasSelected}
  1441. >删除<Icon type="minus" />
  1442. </Button>
  1443. </Popconfirm>
  1444. </div>
  1445. </div>
  1446. <div className="clearfix" style={{marginTop:'-30px',marginLeft:'20px'}}>
  1447. <Tabs onChange={this.callback} type="card" activeKey={this.state.callnub} style={{paddingLeft:'15px',paddingRight:'15px',marginRight:'20px'}}>
  1448. <TabPane tab="已发送" key="0" ></TabPane>
  1449. <TabPane tab="未发送" key="1"></TabPane>
  1450. </Tabs>
  1451. </div>
  1452. <div className="patent-table">
  1453. <Spin spinning={this.state.loading}>
  1454. <Table columns={this.state.columns}
  1455. dataSource={this.state.dataSource}
  1456. rowSelection={rowSelection}
  1457. pagination={this.state.pagination}
  1458. onRowClick={this.tableRowClick} />
  1459. </Spin>
  1460. </div>
  1461. <div className="patent-desc">
  1462. <Modal maskClosable={false} visible={this.state.visible}
  1463. onOk={this.checkPatentProcess} onCancel={this.handleCancel}
  1464. width='600px'
  1465. title='新建系统消息'
  1466. footer=''
  1467. className="admin-desc-content">
  1468. <Form horizontal onSubmit={this.add} id="add-form">
  1469. <Spin spinning={this.state.loading}>
  1470. <div className="clearfix">
  1471. <FormItem
  1472. labelCol={{ span: 4 }}
  1473. wrapperCol={{ span: 18 }}
  1474. label="消息标题" >
  1475. <Input placeholder="消息标题" value={this.state.addTitle} style={{width:'95%'}}
  1476. onChange={(e)=>{this.setState({addTitle:e.target.value})}} required="required"/>
  1477. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  1478. </FormItem>
  1479. </div>
  1480. <div className="clearfix">
  1481. <FormItem
  1482. labelCol={{ span: 4 }}
  1483. wrapperCol={{ span: 18 }}
  1484. label="创建时间"
  1485. >
  1486. <span>{this.state.addCreateTime}</span>
  1487. </FormItem>
  1488. </div>
  1489. <div className="clearfix">
  1490. <FormItem
  1491. labelCol={{ span: 4 }}
  1492. wrapperCol={{ span: 18 }}
  1493. label="消息内容" >
  1494. <Input type="textarea" rows={4} placeholder="消息内容" value={this.state.addContent}
  1495. onChange={(e) => { this.setState({ addContent: e.target.value }) }} style={{width:'95%'}}/>
  1496. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  1497. </FormItem>
  1498. </div>
  1499. <div className="clearfix">
  1500. <FormItem
  1501. labelCol={{ span: 4 }}
  1502. wrapperCol={{ span: 18 }}
  1503. label="消息类型"
  1504. >
  1505. <Select placeholder="消息类型" value={this.state.addType}
  1506. onChange={(e)=>{this.setState({addType:e})}} style={{width:'95%'}} required="required"
  1507. onSelect={this.changeNews}>
  1508. {
  1509. messageType.map(function(item) {
  1510. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1511. })
  1512. }
  1513. </Select>
  1514. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  1515. </FormItem>
  1516. </div>
  1517. <div className="clearfix" >
  1518. <FormItem
  1519. labelCol={{ span: 4 }}
  1520. wrapperCol={{ span: 18 }}
  1521. label="指定发送对象"
  1522. style={this.state.newsChange ? { display: 'none' } : {display: 'inline-block',width:'100%'}}
  1523. >
  1524. <Select placeholder="指定发送对象" value={this.state.addObject}
  1525. onSelect={this.selectObjects} onChange={this.changeObjects} required="required" style={{width:'95%'}}>
  1526. {
  1527. designatedObjects.map(function(item) {
  1528. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1529. })
  1530. }
  1531. </Select>
  1532. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  1533. </FormItem>
  1534. </div>
  1535. <div className="clearfix" >
  1536. <FormItem
  1537. labelCol={{ span: 4 }}
  1538. wrapperCol={{ span: 18 }}
  1539. label="指定发送对象"
  1540. style={!this.state.newsChange ? { display: 'none' } : {display: 'inline-block',width:'100%'}}
  1541. >
  1542. <Select placeholder="指定发送对象" value={this.state.addObject}
  1543. onSelect={this.changeObjects1} required="required" style={{width:'95%'}}>
  1544. {
  1545. designatedObjectse.map(function(item) {
  1546. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1547. })
  1548. }
  1549. </Select>
  1550. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  1551. </FormItem>
  1552. </div>
  1553. <FormItem wrapperCol={{ span: 18, offset: 5 }}>
  1554. <Button className="set-submit" type="primary" htmlType="submit">发送</Button>
  1555. <Button className="set-submit" type="ghost" onClick={this.adds} style={{marginLeft:'10px'}}>存为草稿</Button>
  1556. <Button className="set-submit" type="ghost" onClick={this.handleCancel} style={{marginLeft:'10px'}}>取消</Button>
  1557. </FormItem>
  1558. </Spin>
  1559. </Form >
  1560. </Modal>
  1561. </div>
  1562. <div className="patent-desc">
  1563. <Modal maskClosable={false} visible={this.state.editvisible}
  1564. onOk={this.checkPatentProcess} onCancel={this.edithandleCancel}
  1565. width='600px'
  1566. title='编辑系统消息'
  1567. footer=''
  1568. className="admin-desc-content">
  1569. <Form horizontal onSubmit={this.edit} id="add-form">
  1570. <Spin spinning={this.state.loading}>
  1571. <div className="clearfix">
  1572. <FormItem
  1573. labelCol={{ span: 4 }}
  1574. wrapperCol={{ span: 18 }}
  1575. label="消息标题" >
  1576. <Input placeholder="消息标题" value={this.state.editTitle} style={{width:'95%'}}
  1577. onChange={(e)=>{this.setState({editTitle:e.target.value})}} required="required"/>
  1578. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  1579. </FormItem>
  1580. </div>
  1581. <div className="clearfix">
  1582. <FormItem
  1583. labelCol={{ span: 4 }}
  1584. wrapperCol={{ span: 18 }}
  1585. label="消息内容" >
  1586. <Input type="textarea" rows={4} placeholder="消息内容" value={this.state.editBody}
  1587. onChange={(e) => { this.setState({ editBody: e.target.value }) }} style={{width:'95%'}}/>
  1588. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  1589. </FormItem>
  1590. </div>
  1591. <div className="clearfix">
  1592. <FormItem
  1593. labelCol={{ span: 4 }}
  1594. wrapperCol={{ span: 18 }}
  1595. label="消息时间"
  1596. >
  1597. <span>{this.state.editCreateTime}</span>
  1598. </FormItem>
  1599. </div>
  1600. <div className="clearfix">
  1601. <FormItem
  1602. labelCol={{ span: 4 }}
  1603. wrapperCol={{ span: 18 }}
  1604. label="消息类型"
  1605. >
  1606. <span>{getMessageType(this.state.editSubject)}</span>
  1607. </FormItem>
  1608. </div>
  1609. <div className="clearfix">
  1610. <FormItem
  1611. labelCol={{ span: 4 }}
  1612. wrapperCol={{ span: 18 }}
  1613. label="指定发送对象"
  1614. >
  1615. <span>{getDesignated(this.state.editConsumerType)}</span>
  1616. </FormItem>
  1617. </div>
  1618. <FormItem wrapperCol={{ span: 18, offset: 5 }}>
  1619. <Button className="set-submit" type="primary" htmlType="submit">发送</Button>
  1620. <Button className="set-submit" type="ghost" onClick={this.edits} style={{marginLeft:'10px'}}>存为草稿</Button>
  1621. <Button className="set-submit" type="ghost" onClick={this.edithandleCancel} style={{marginLeft:'10px'}}>取消</Button>
  1622. </FormItem>
  1623. </Spin>
  1624. </Form >
  1625. </Modal>
  1626. </div>
  1627. <div className="patent-desc">
  1628. <Modal maskClosable={false} visible={this.state.visible6}
  1629. onOk={this.checkPatentProcess} onCancel={this.handleCancel6}
  1630. width='1500px'
  1631. title='用户列表'
  1632. footer=''
  1633. className="admin-desc-content">
  1634. <Form horizontal onSubmit={this.yonghuSubmit} id="add-form">
  1635. <Spin spinning={this.state.loading}>
  1636. <div className="user-search">
  1637. <Input placeholder="登录号" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  1638. value={this.state.searchMobile}
  1639. onChange={(e) => { this.setState({ searchMobile: e.target.value }); }} />
  1640. <Input placeholder="管理员名字" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  1641. value={this.state.searchName}
  1642. onChange={(e) => { this.setState({ searchName: e.target.value }); }} />
  1643. <Select placeholder="选择部门" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  1644. value={this.state.departmentt}
  1645. onChange={(e) => { this.setState({ departmentt: e }) }}>
  1646. {
  1647. departmentArr.map(function (item) {
  1648. return <Select.Option key={item.id} >{item.name}</Select.Option>
  1649. })
  1650. }
  1651. </Select>
  1652. <Button type="primary" onClick={this.sanhusearch1} style={{marginRight:'10px'}}>搜索</Button>
  1653. <Button onClick={this.sanhuReset1} style={{marginRight:'10px'}}>重置</Button>
  1654. </div>
  1655. <div className="foster-table">
  1656. <Spin spinning={this.state.loading}>
  1657. <Table columns={this.state.sanhuColumns1}
  1658. dataSource={this.state.sanhuDataSource1}
  1659. rowSelection={rowSelections}
  1660. pagination={this.state.pagination2}
  1661. onRowClick={this.tableRowClick} />
  1662. </Spin>
  1663. </div>
  1664. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  1665. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  1666. <Button className="set-submit" type="ghost" onClick={this.handleCancel6} style={{marginLeft:'100px'}}>取消</Button>
  1667. </FormItem>
  1668. </Spin>
  1669. </Form >
  1670. </Modal>
  1671. </div>
  1672. <div className="patent-desc">
  1673. <Modal maskClosable={false} visible={this.state.visible7}
  1674. onOk={this.checkPatentProcess} onCancel={this.handleCancel7}
  1675. width='1000px'
  1676. title='角色列表'
  1677. footer=''
  1678. className="admin-desc-content">
  1679. <Form horizontal onSubmit={this.jueseSubmit} id="add-form">
  1680. <Spin spinning={this.state.loading}>
  1681. <div className="user-search">
  1682. <Input placeholder="角色名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  1683. value={this.state.roleNameSearch}
  1684. onChange={(e) => { this.setState({ roleNameSearch: e.target.value }); }} />
  1685. <Button type="primary" onClick={this.juesesearch} style={{marginRight:'10px'}}>搜索</Button>
  1686. <Button onClick={this.jueseReset}>重置</Button>
  1687. </div>
  1688. <div className="foster-table">
  1689. <Spin spinning={this.state.loading}>
  1690. <Table columns={this.state.jueseColumns}
  1691. dataSource={this.state.jueseDataSource}
  1692. rowSelection={rowSelections}
  1693. pagination={this.state.pagination4}
  1694. onRowClick={this.tableRowClick} />
  1695. </Spin>
  1696. </div>
  1697. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  1698. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  1699. <Button className="set-submit" type="ghost" onClick={this.handleCancel7} style={{marginLeft:'100px'}}>取消</Button>
  1700. </FormItem>
  1701. </Spin>
  1702. </Form >
  1703. </Modal>
  1704. </div>
  1705. <div className="patent-desc">
  1706. <Modal maskClosable={false} visible={this.state.visible1}
  1707. onOk={this.checkPatentProcess} onCancel={this.handleCancel1}
  1708. width='1500px'
  1709. title='个人客户'
  1710. footer=''
  1711. className="admin-desc-content">
  1712. <Form horizontal onSubmit={this.sanhuSubmit} id="add-form">
  1713. <Spin spinning={this.state.loading}>
  1714. <div className="user-search">
  1715. <Input placeholder="客户名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  1716. value={this.state.nameSearch}
  1717. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1718. <Select placeholder="账户状态"
  1719. style={{width:'100px',marginRight:'10px'}}
  1720. value={this.state.statusSearch}
  1721. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  1722. <Select.Option value="0" >正常</Select.Option>
  1723. <Select.Option value="2" >锁定</Select.Option>
  1724. </Select>
  1725. <Select placeholder="行业"
  1726. style={{width:'100px',marginRight:'10px'}}
  1727. value={this.state.industrySearch}
  1728. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  1729. {this.state.intentionalOption}
  1730. </Select>
  1731. <Select placeholder="业务认证"
  1732. style={{width:'100px',marginRight:'10px'}}
  1733. value={this.state.serviceCertificationSearch}
  1734. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  1735. <Select.Option value="0" >未认证</Select.Option>
  1736. <Select.Option value="1" >已认证</Select.Option>
  1737. </Select>
  1738. <Select placeholder="实名认证"
  1739. style={{width:'100px',marginRight:'10px'}}
  1740. value={this.state.userCertificationSearch}
  1741. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  1742. {
  1743. auditStatusL.map(function (item) {
  1744. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1745. })
  1746. }
  1747. </Select>
  1748. <Select placeholder="是否国际"
  1749. style={{width:'100px',marginRight:'10px'}}
  1750. value={this.state.internationalSearch}
  1751. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  1752. <Select.Option value="0" >否</Select.Option>
  1753. <Select.Option value="1" >是</Select.Option>
  1754. </Select>
  1755. <Select placeholder="是否高新"
  1756. style={{width:'100px',marginRight:'10px'}}
  1757. value={this.state.highTechZoneSearch}
  1758. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  1759. <Select.Option value="0" >否</Select.Option>
  1760. <Select.Option value="1" >是</Select.Option>
  1761. </Select>
  1762. <Select placeholder="是否上市"
  1763. style={{width:'100px',marginRight:'10px'}}
  1764. value={this.state.listedSearch}
  1765. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  1766. <Select.Option value="0" >否</Select.Option>
  1767. <Select.Option value="1" >是</Select.Option>
  1768. </Select>
  1769. <Select placeholder="是否会员"
  1770. style={{width:'100px',marginRight:'10px'}}
  1771. value={this.state.isMemberSearch}
  1772. onChange={(e) => { this.setState({ isMemberSearch: e }) }}>
  1773. <Select.Option value="0" >否</Select.Option>
  1774. <Select.Option value="1" >是</Select.Option>
  1775. </Select>
  1776. <Select placeholder="会员等级"
  1777. style={{width:'100px',marginRight:'10px'}}
  1778. value={this.state.lvlSearch}
  1779. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  1780. {this.state.lvlArrOption}
  1781. </Select>
  1782. <Select placeholder="会员状态"
  1783. style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  1784. value={this.state.currentMemberStatusSearch}
  1785. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  1786. {this.state.currentMemberArrOption}
  1787. </Select>
  1788. <Select placeholder="社会性质"
  1789. style={{width:'100px',marginRight:'10px'}}
  1790. value={this.state.societyTagSearch}
  1791. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  1792. {
  1793. socialAttribute.map(function (item) {
  1794. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1795. })
  1796. }
  1797. </Select>
  1798. <Button type="primary" onClick={this.sanhusearch} style={{marginRight:'10px'}}>搜索</Button>
  1799. <Button onClick={this.sanhuReset} style={{marginRight:'10px'}}>重置</Button>
  1800. </div>
  1801. <div className="foster-table">
  1802. <Spin spinning={this.state.loading}>
  1803. <Table columns={this.state.sanhuColumns}
  1804. dataSource={this.state.sanhuDataSource}
  1805. rowSelection={rowSelections}
  1806. pagination={this.state.pagination1}
  1807. onRowClick={this.tableRowClick} />
  1808. </Spin>
  1809. </div>
  1810. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  1811. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  1812. <Button className="set-submit" type="ghost" onClick={this.handleCancel1} style={{marginLeft:'100px'}}>取消</Button>
  1813. </FormItem>
  1814. </Spin>
  1815. </Form >
  1816. </Modal>
  1817. </div>
  1818. <div className="patent-desc">
  1819. <Modal maskClosable={false} visible={this.state.visible21}
  1820. onOk={this.checkPatentProcess} onCancel={this.handleCancel21}
  1821. width='1500px'
  1822. title='单位客户'
  1823. footer=''
  1824. className="admin-desc-content">
  1825. <Form horizontal onSubmit={this.sanhuSubmit21} id="add-form">
  1826. <Spin spinning={this.state.loading}>
  1827. <div className="user-search">
  1828. <Input placeholder="客户名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  1829. value={this.state.nameSearch}
  1830. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1831. <Select placeholder="账户状态"
  1832. style={{width:'100px',marginRight:'10px'}}
  1833. value={this.state.statusSearch}
  1834. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  1835. <Select.Option value="0" >正常</Select.Option>
  1836. <Select.Option value="2" >锁定</Select.Option>
  1837. </Select>
  1838. <Select placeholder="行业"
  1839. style={{width:'100px',marginRight:'10px'}}
  1840. value={this.state.industrySearch}
  1841. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  1842. {this.state.intentionalOption}
  1843. </Select>
  1844. <Select placeholder="业务认证"
  1845. style={{width:'100px',marginRight:'10px'}}
  1846. value={this.state.serviceCertificationSearch}
  1847. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  1848. <Select.Option value="0" >未认证</Select.Option>
  1849. <Select.Option value="1" >已认证</Select.Option>
  1850. </Select>
  1851. <Select placeholder="实名认证"
  1852. style={{width:'100px',marginRight:'10px'}}
  1853. value={this.state.userCertificationSearch}
  1854. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  1855. {
  1856. auditStatusL.map(function (item) {
  1857. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1858. })
  1859. }
  1860. </Select>
  1861. <Select placeholder="是否国际"
  1862. style={{width:'100px',marginRight:'10px'}}
  1863. value={this.state.internationalSearch}
  1864. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  1865. <Select.Option value="0" >否</Select.Option>
  1866. <Select.Option value="1" >是</Select.Option>
  1867. </Select>
  1868. <Select placeholder="是否高新"
  1869. style={{width:'100px',marginRight:'10px'}}
  1870. value={this.state.highTechZoneSearch}
  1871. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  1872. <Select.Option value="0" >否</Select.Option>
  1873. <Select.Option value="1" >是</Select.Option>
  1874. </Select>
  1875. <Select placeholder="是否上市"
  1876. style={{width:'100px',marginRight:'10px'}}
  1877. value={this.state.listedSearch}
  1878. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  1879. <Select.Option value="0" >否</Select.Option>
  1880. <Select.Option value="1" >是</Select.Option>
  1881. </Select>
  1882. <Select placeholder="是否会员"
  1883. style={{width:'100px',marginRight:'10px'}}
  1884. value={this.state.isMemberSearch}
  1885. onChange={(e) => { this.setState({ isMemberSearch: e }) }}>
  1886. <Select.Option value="0" >否</Select.Option>
  1887. <Select.Option value="1" >是</Select.Option>
  1888. </Select>
  1889. <Select placeholder="会员等级"
  1890. style={{width:'100px',marginRight:'10px'}}
  1891. value={this.state.lvlSearch}
  1892. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  1893. {this.state.lvlArrOption}
  1894. </Select>
  1895. <Select placeholder="会员状态"
  1896. style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  1897. value={this.state.currentMemberStatusSearch}
  1898. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  1899. {this.state.currentMemberArrOption}
  1900. </Select>
  1901. <Select placeholder="社会性质"
  1902. style={{width:'100px',marginRight:'10px'}}
  1903. value={this.state.societyTagSearch}
  1904. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  1905. {
  1906. socialAttribute.map(function (item) {
  1907. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1908. })
  1909. }
  1910. </Select>
  1911. <Button type="primary" onClick={this.sanhusearch} style={{marginRight:'10px'}}>搜索</Button>
  1912. <Button onClick={this.sanhuReset} style={{marginRight:'10px'}}>重置</Button>
  1913. </div>
  1914. <div className="foster-table">
  1915. <Spin spinning={this.state.loading}>
  1916. <Table columns={this.state.sanhuColumns21}
  1917. dataSource={this.state.sanhuDataSource21}
  1918. rowSelection={rowSelections}
  1919. pagination={this.state.pagination21}
  1920. onRowClick={this.tableRowClick} />
  1921. </Spin>
  1922. </div>
  1923. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  1924. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  1925. <Button className="set-submit" type="ghost" onClick={this.handleCancel21} style={{marginLeft:'100px'}}>取消</Button>
  1926. </FormItem>
  1927. </Spin>
  1928. </Form >
  1929. </Modal>
  1930. </div>
  1931. <div className="patent-desc">
  1932. <Modal maskClosable={false} visible={this.state.visible2}
  1933. onOk={this.checkPatentProcess} onCancel={this.handleCancel2}
  1934. width='600px'
  1935. title='社会属性'
  1936. footer=''
  1937. className="admin-desc-content">
  1938. <Form horizontal onSubmit={this.shehuiSubmit} id="add-form">
  1939. <Spin spinning={this.state.loading}>
  1940. <FormItem
  1941. labelCol={{ span: 7 }}
  1942. wrapperCol={{ span: 12 }}
  1943. label="请选择社会属性"
  1944. >
  1945. <CheckboxGroup options={socialAttributeS} value={this.state.shehui} onChange={(e)=>{this.setState({shehui:e})}} />
  1946. </FormItem>
  1947. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  1948. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  1949. <Button className="set-submit" type="ghost" onClick={this.handleCancel2} style={{marginLeft:'100px'}}>取消</Button>
  1950. </FormItem>
  1951. </Spin>
  1952. </Form >
  1953. </Modal>
  1954. </div>
  1955. <div className="patent-desc">
  1956. <Modal maskClosable={false} visible={this.state.visible3}
  1957. onOk={this.checkPatentProcess} onCancel={this.handleCancel3}
  1958. width='1200px'
  1959. title='分公司列表'
  1960. footer=''
  1961. className="admin-desc-content">
  1962. <Form horizontal onSubmit={this.fengongsiSubmit} id="add-form">
  1963. <Spin spinning={this.state.loading}>
  1964. <div className="foster-table">
  1965. <Spin spinning={this.state.loading}>
  1966. <Table columns={this.state.fengongsiColumns}
  1967. dataSource={this.state.fengongsiDataSource}
  1968. rowSelection={rowSelections}
  1969. pagination={this.state.pagination3}
  1970. onRowClick={this.tableRowClick} />
  1971. </Spin>
  1972. </div>
  1973. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  1974. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  1975. <Button className="set-submit" type="ghost" onClick={this.handleCancel3} style={{marginLeft:'100px'}}>取消</Button>
  1976. </FormItem>
  1977. </Spin>
  1978. </Form >
  1979. </Modal>
  1980. </div>
  1981. <div className="patent-desc">
  1982. <Modal maskClosable={false} visible={this.state.visible4}
  1983. onOk={this.checkPatentProcess} onCancel={this.handleCancel4}
  1984. width='600px'
  1985. title='地区'
  1986. footer=''
  1987. className="admin-desc-content">
  1988. <Form horizontal onSubmit={this.diquSubmit} id="add-form">
  1989. <Spin spinning={this.state.loading}>
  1990. <div className="clearfix" style={{marginLeft:'90px'}}>
  1991. <Tree
  1992. checkable
  1993. onExpand={this.onExpand}
  1994. expandedKeys={this.state.expandedKeys}
  1995. autoExpandParent={this.state.autoExpandParent}
  1996. onCheck={this.onCheck}
  1997. checkedKeys={this.state.checkedKeys}
  1998. onSelect={this.onSelectDi}
  1999. selectedKeys={this.state.selectedKeys}
  2000. >
  2001. {this.renderTreeNodes(this.state.Interface)}
  2002. </Tree>
  2003. </div>
  2004. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2005. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2006. <Button className="set-submit" type="ghost" onClick={this.handleCancel4} style={{marginLeft:'100px'}}>取消</Button>
  2007. </FormItem>
  2008. </Spin>
  2009. </Form >
  2010. </Modal>
  2011. </div>
  2012. <div className="patent-desc">
  2013. <Modal maskClosable={false} visible={this.state.visible5}
  2014. onOk={this.checkPatentProcess} onCancel={this.handleCancel5}
  2015. width='600px'
  2016. title='行业'
  2017. footer=''
  2018. className="admin-desc-content">
  2019. <Form horizontal onSubmit={this.hangyeSubmit} id="add-form">
  2020. <Spin spinning={this.state.loading}>
  2021. <FormItem
  2022. labelCol={{ span: 7 }}
  2023. wrapperCol={{ span: 12 }}
  2024. label="请选择行业"
  2025. >
  2026. <CheckboxGroup options={industryS} value={this.state.hangye} onChange={(e)=>{this.setState({hangye:e})}} />
  2027. </FormItem>
  2028. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2029. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2030. <Button className="set-submit" type="ghost" onClick={this.handleCancel5} style={{marginLeft:'100px'}}>取消</Button>
  2031. </FormItem>
  2032. </Spin>
  2033. </Form >
  2034. </Modal>
  2035. </div>
  2036. </div>
  2037. </div>
  2038. );
  2039. }
  2040. }));
  2041. export default SystemMessage;