jitaoMessage.jsx 119 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869
  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 '../../../NewDicProvinceList';
  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,designatedObjectes,socialAttributeS,industry,socialAttribute,industryS,designatedObjectse,auditStatusL,featuredContent} from '../../../dataDic.js';
  9. import {getPattern,getProvince,getprovince,getFeatured,getDesignated,getGameState,getCategoryState,getCondition,getcustomerTyp,getSocialAttribute,getCertification,getAuditStatus, getContactType, getfllowSituation,getWhether,getLvl,getCurrentMember,getStatuslist,getboutique,getAchievementCategory,gethot,getDemandType} from '../../../tools.js';
  10. const TabPane = Tabs.TabPane;
  11. const TreeNodet = Tree.TreeNode;
  12. const CheckboxGroup = Checkbox.Group;
  13. const JitaoMessage=Form.create()(React.createClass({
  14. loadData(pageNo,sendType) {
  15. this.state.data = [];
  16. this.setState({
  17. loading: true
  18. });
  19. $.ajax({
  20. method: "get",
  21. dataType: "json",
  22. crossDomain: false,
  23. url: globalConfig.context + '/api/admin/message/listSystemMessage',
  24. data: {
  25. pageNo: pageNo || 1,
  26. pageSize: this.state.pagination.pageSize,
  27. isDraft:sendType,//是否发送
  28. subject:'2',//列表消息类型
  29. },
  30. success: function (data) {
  31. let theArr = [];
  32. if (!data.data || !data.data.list) {
  33. if (data.error && data.error.length) {
  34. message.warning(data.error[0].message);
  35. };
  36. } else {
  37. for (let i = 0; i < data.data.list.length; i++) {
  38. let thisdata = data.data.list[i];
  39. theArr.push({
  40. key: thisdata.id,
  41. id: thisdata.messageId,//每一条消息的ID
  42. createTime:thisdata.createTime,//创建时间
  43. title:thisdata.title,//消息标题
  44. body:thisdata.body,//消息内容
  45. resourceType:thisdata.resourceType,//推送类型
  46. consumerType:thisdata.consumerType,//发送目标类型
  47. });
  48. };
  49. this.state.pagination.current = data.data.pageNo;
  50. this.state.pagination.total = data.data.totalCount;
  51. };
  52. this.setState({
  53. dataSource: theArr,
  54. pagination: this.state.pagination
  55. });
  56. }.bind(this),
  57. }).always(function () {
  58. this.setState({
  59. loading: false
  60. });
  61. }.bind(this));
  62. },
  63. zhengceLoadData(pageNo) {
  64. this.state.data = [];
  65. this.setState({
  66. loading: true
  67. });
  68. $.ajax({
  69. method: "get",
  70. dataType: "json",
  71. crossDomain: false,
  72. url: globalConfig.context + '/portal/news/list',
  73. data: {
  74. pageNo: pageNo || 1,
  75. pageSize: this.state.pagination.pageSize,
  76. keyword:this.state.name,
  77. },
  78. success: function (data) {
  79. let theArr = [];
  80. if (!data.data || !data.data.list) {
  81. if (data.error && data.error.length) {
  82. message.warning(data.error[0].message);
  83. };
  84. } else {
  85. for (let i = 0; i < data.data.list.length; i++) {
  86. let thisdata = data.data.list[i];
  87. theArr.push({
  88. key: thisdata.id,
  89. id: thisdata.id,//每一条记录的ID
  90. time:thisdata.createTimeFormattedDate,//政策时间
  91. title:(thisdata.title)?thisdata.title.substring(0,14):'',//政策名称
  92. summary:(thisdata.summary)?thisdata.summary.substring(0,28):'',//政策内容
  93. });
  94. };
  95. this.state.pagination8.current = data.data.pageNo;
  96. this.state.pagination8.total = data.data.totalCount;
  97. };
  98. this.setState({
  99. zhengceDataSource: theArr,
  100. pagination8: this.state.pagination8
  101. });
  102. }.bind(this),
  103. }).always(function () {
  104. this.setState({
  105. loading: false
  106. });
  107. }.bind(this));
  108. },
  109. zhuanjiaLoadData(pageNo) {
  110. this.setState({
  111. loading: true
  112. });
  113. $.ajax({
  114. method: "post",
  115. dataType: "json",
  116. crossDomain: false,
  117. url: globalConfig.context + '/api/admin/customer/listAllPersonalCustomer',
  118. data: {
  119. pageNo: pageNo || 1,
  120. pageSize: this.state.pagination.pageSize,
  121. type: this.state.typeSearch, //名称1
  122. name: this.state.nameSearch,
  123. status: this.state.statusSearch,
  124. industry: this.state.industrySearch,
  125. businessAudit: this.state.serviceCertificationSearch,
  126. auditStatus: this.state.userCertificationSearch,
  127. currentMemberStatus: this.state.currentMemberStatusSearch,
  128. lvl: this.state.lvlSearch,
  129. listed: this.state.listedSearch, //是否上市
  130. highTechZone: this.state.highTechZoneSearch, //是否高新
  131. isMember: this.state.isMemberSearch,
  132. international: this.state.internationalSearch,
  133. celebrity: this.state.celebritySearch,
  134. expert: 1,
  135. industry: this.state.industrySearch
  136. },
  137. success: function(data) {
  138. let theArr = [];
  139. if(data.error.length || data.data.list == "") {
  140. if(data.error && data.error.length) {
  141. message.warning(data.error[0].message);
  142. };
  143. } else {
  144. for(let i = 0; i < data.data.list.length; i++) {
  145. let thisdata = data.data.list[i];
  146. theArr.push({
  147. key: thisdata.uid,
  148. id: thisdata.uid,
  149. type: thisdata.type,
  150. name: thisdata.name,
  151. status: thisdata.status,
  152. contacts: thisdata.contacts,
  153. contactMobile: thisdata.contactMobile,
  154. industry: thisdata.industry,
  155. createTime: thisdata.createTime,
  156. businessAudit: thisdata.businessAudit,
  157. auditStatus: thisdata.auditStatus,
  158. lvl: thisdata.lvl,
  159. isMember: thisdata.isMember,
  160. societyTag: thisdata.societyTag,
  161. currentMemberStatus: thisdata.currentMemberStatus,
  162. international: thisdata.international,
  163. listed: thisdata.listed,
  164. international: thisdata.international,
  165. expert: thisdata.expert,
  166. celebrity: thisdata.celebrity,
  167. highTechZone: thisdata.highTechZone,
  168. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  169. });
  170. };
  171. this.state.pagination7.current = data.data.pageNo;
  172. this.state.pagination7.total = data.data.totalCount;
  173. };
  174. this.setState({
  175. zhuanjiaDataSource: theArr,
  176. pagination7: this.state.pagination7
  177. });
  178. }.bind(this),
  179. }).always(function() {
  180. this.setState({
  181. loading: false
  182. });
  183. }.bind(this));
  184. },
  185. xuqiuLoadData1(pageNo, apiUrl) {
  186. this.state.data = [];
  187. this.setState({
  188. loading: true
  189. });
  190. $.ajax({
  191. method: "get",
  192. dataType: "json",
  193. crossDomain: false,
  194. url: globalConfig.context +'/api/admin/demand/orgList',
  195. data: {
  196. pageNo: pageNo || 1,
  197. pageSize: this.state.pagination.pageSize,
  198. serialNumber: this.state.serialNumber,
  199. name: this.state.name,
  200. keyword: this.state.keyword,
  201. infoSources: this.state.infoSources ? Number(this.state.infoSources) : undefined,
  202. demandType: this.state.demandType ? Number(this.state.demandType) : undefined,
  203. status: this.state.status ? Number(this.state.status) : undefined,
  204. releaseStatus: this.state.releaseStatus ? Number(this.state.releaseStatus) : undefined,
  205. auditStatus: 3,
  206. boutique:this.state.boutique,
  207. hot:this.state.hot,
  208. employerName: this.state.searchType == 1 ? this.state.searchName : undefined,
  209. username: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('org') == -1 ? this.state.searchName : undefined,
  210. unitName: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('user') == -1 ? this.state.searchName : undefined,
  211. },
  212. success: function (data) {
  213. let theArr = [];
  214. if (!data.data || !data.data.list) {
  215. if (data.error && data.error.length) {
  216. message.warning(data.error[0].message);
  217. };
  218. } else {
  219. for (let i = 0; i < data.data.list.length; i++) {
  220. let thisdata = data.data.list[i];
  221. theArr.push({
  222. key: thisdata.id,
  223. id: thisdata.id,
  224. serialNumber: thisdata.serialNumber,
  225. dataCategory: thisdata.dataCategory,
  226. name: thisdata.name,
  227. keyword: thisdata.keyword,
  228. infoSources: thisdata.infoSources,
  229. username: thisdata.username,
  230. theName: thisdata.username || thisdata.employerName,
  231. demandType: thisdata.demandType,
  232. validityPeriod: thisdata.validityPeriod,
  233. employerName: thisdata.employerName,
  234. employerId: thisdata.employerId,
  235. province: thisdata.province,
  236. status: thisdata.status,
  237. releaseStatus: thisdata.releaseStatus,
  238. releaseDate: thisdata.releaseDate,
  239. principalId: thisdata.principalId,
  240. validityPeriodFormattedDate: thisdata.validityPeriodFormattedDate,
  241. releaseDateFormattedDate: thisdata.releaseDateFormattedDate,
  242. auditStatus: thisdata.auditStatus,
  243. boutique: thisdata.boutique,
  244. hot: thisdata.hot
  245. });
  246. };
  247. this.state.pagination6.current = data.data.pageNo;
  248. this.state.pagination6.total = data.data.totalCount;
  249. };
  250. this.setState({
  251. xuqiuDataSource1: theArr,
  252. pagination6: this.state.pagination6
  253. });
  254. }.bind(this),
  255. }).always(function () {
  256. this.setState({
  257. loading: false
  258. });
  259. }.bind(this));
  260. },
  261. xuqiuLoadData2(pageNo, apiUrl) {
  262. this.state.data = [];
  263. this.setState({
  264. loading: true
  265. });
  266. $.ajax({
  267. method: "get",
  268. dataType: "json",
  269. crossDomain: false,
  270. url: globalConfig.context + '/api/admin/demand/userList',
  271. data: {
  272. pageNo: pageNo || 1,
  273. pageSize: this.state.pagination.pageSize,
  274. serialNumber: this.state.serialNumber,
  275. name: this.state.name,
  276. keyword: this.state.keyword,
  277. infoSources: this.state.infoSources ? Number(this.state.infoSources) : undefined,
  278. demandType: this.state.demandType ? Number(this.state.demandType) : undefined,
  279. status: this.state.status ? Number(this.state.status) : undefined,
  280. releaseStatus: this.state.releaseStatus ? Number(this.state.releaseStatus) : undefined,
  281. auditStatus:3,
  282. boutique:this.state.boutique,
  283. hot:this.state.hot,
  284. employerName: this.state.searchType == 1 ? this.state.searchName : undefined,
  285. username: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('org') == -1 ? this.state.searchName : undefined,
  286. unitName: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('user') == -1 ? this.state.searchName : undefined,
  287. },
  288. success: function (data) {
  289. let theArr = [];
  290. if (!data.data || !data.data.list) {
  291. if (data.error && data.error.length) {
  292. message.warning(data.error[0].message);
  293. };
  294. } else {
  295. for (let i = 0; i < data.data.list.length; i++) {
  296. let thisdata = data.data.list[i];
  297. theArr.push({
  298. key: thisdata.id,
  299. id: thisdata.id,
  300. serialNumber: thisdata.serialNumber,
  301. dataCategory: thisdata.dataCategory,
  302. name: thisdata.name,
  303. keyword: thisdata.keyword,
  304. infoSources: thisdata.infoSources,
  305. username: thisdata.username,
  306. theName: thisdata.username || thisdata.employerName,
  307. demandType: thisdata.demandType,
  308. validityPeriod: thisdata.validityPeriod,
  309. employerName: thisdata.employerName,
  310. employerId: thisdata.employerId,
  311. province: thisdata.province,
  312. status: thisdata.status,
  313. releaseStatus: thisdata.releaseStatus,
  314. releaseDate: thisdata.releaseDate,
  315. principalId: thisdata.principalId,
  316. validityPeriodFormattedDate: thisdata.validityPeriodFormattedDate,
  317. releaseDateFormattedDate: thisdata.releaseDateFormattedDate,
  318. auditStatus: thisdata.auditStatus,
  319. boutique: thisdata.boutique,
  320. hot: thisdata.hot
  321. });
  322. };
  323. this.state.pagination5.current = data.data.pageNo;
  324. this.state.pagination5.total = data.data.totalCount;
  325. };
  326. this.setState({
  327. xuqiuDataSource2: theArr,
  328. pagination5: this.state.pagination5
  329. });
  330. }.bind(this),
  331. }).always(function () {
  332. this.setState({
  333. loading: false
  334. });
  335. }.bind(this));
  336. },
  337. chengguoLoadData1(pageNo, apiUrl) {
  338. this.state.data = [];
  339. this.setState({
  340. loading: true
  341. });
  342. $.ajax({
  343. method: "get",
  344. dataType: "json",
  345. crossDomain: false,
  346. url: globalConfig.context +'/api/admin/achievement/orgList',
  347. data: {
  348. pageNo: pageNo || 1,
  349. pageSize: this.state.pagination.pageSize,
  350. serialNumber: this.state.serialNumber, //编号
  351. name: this.state.name, //名称
  352. ownerName: this.state.searchType == 1 ? this.state.searchName : undefined,
  353. username: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('org') == -1 ? this.state.searchName : undefined,
  354. unitName: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('user') == -1 ? this.state.searchName : undefined,
  355. keyword: this.state.keyword, // 关键词
  356. category: this.state.category, //类型(0--专利, 2--软著, 3--项目, 4--版权, 5--工业设计, 6--配方, 7--非标)
  357. //releaseDateStartDate: this.state.releaseDate[0],
  358. //releaseDateEndDate: this.state.releaseDate[1],
  359. releaseStatus: this.state.releaseStatus ? Number(this.state.releaseStatus) : undefined, //是否发布(0--未发布,1--已发布)
  360. auditStatus: 3,
  361. boutique:this.state.boutique,
  362. hot:this.state.hot
  363. },
  364. success: function (data) {
  365. let theArr = [];
  366. if (!data.data || !data.data.list) {
  367. if (data.error && data.error.length) {
  368. message.warning(data.error[0].message);
  369. };
  370. } else {
  371. for (let i = 0; i < data.data.list.length; i++) {
  372. let thisdata = data.data.list[i];
  373. theArr.push({
  374. key: thisdata.id,
  375. id: thisdata.id,
  376. serialNumber: thisdata.serialNumber,
  377. dataCategory: thisdata.dataCategory,
  378. name: thisdata.name,
  379. keyword: thisdata.keyword,
  380. theName: thisdata.username || thisdata.ownerName,
  381. category: thisdata.category,
  382. ownerName: thisdata.username ? thisdata.username : thisdata.ownerName,
  383. ownerType: thisdata.ownerType,
  384. ownerMobile: thisdata.ownerMobile,
  385. status: thisdata.status,
  386. releaseDate: thisdata.releaseDate,
  387. releaseDateFormattedDate: thisdata.releaseDateFormattedDate,
  388. auditStatus: thisdata.auditStatus,
  389. boutique: thisdata.boutique,
  390. hot: thisdata.hot
  391. });
  392. };
  393. this.state.pagination4.current = data.data.pageNo;
  394. this.state.pagination4.total = data.data.totalCount;
  395. };
  396. this.setState({
  397. chengguoDataSource1: theArr,
  398. pagination4: this.state.pagination4
  399. });
  400. }.bind(this),
  401. }).always(function () {
  402. this.setState({
  403. loading: false
  404. });
  405. }.bind(this));
  406. },
  407. chengguoLoadData2(pageNo, apiUrl) {
  408. this.state.data = [];
  409. this.setState({
  410. loading: true
  411. });
  412. $.ajax({
  413. method: "get",
  414. dataType: "json",
  415. crossDomain: false,
  416. url: globalConfig.context +'/api/admin/achievement/userList',
  417. data: {
  418. pageNo: pageNo || 1,
  419. pageSize: this.state.pagination.pageSize,
  420. serialNumber: this.state.serialNumber, //编号
  421. name: this.state.name, //名称
  422. ownerName: this.state.searchType == 1 ? this.state.searchName : undefined,
  423. username: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('org') == -1 ? this.state.searchName : undefined,
  424. unitName: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('user') == -1 ? this.state.searchName : undefined,
  425. keyword: this.state.keyword, // 关键词
  426. category: this.state.category, //类型(0--专利, 2--软著, 3--项目, 4--版权, 5--工业设计, 6--配方, 7--非标)
  427. //releaseDateStartDate: this.state.releaseDate[0],
  428. //releaseDateEndDate: this.state.releaseDate[1],
  429. releaseStatus: this.state.releaseStatus ? Number(this.state.releaseStatus) : undefined, //是否发布(0--未发布,1--已发布)
  430. auditStatus: 3,
  431. boutique:this.state.boutique,
  432. hot:this.state.hot
  433. },
  434. success: function (data) {
  435. let theArr = [];
  436. if (!data.data || !data.data.list) {
  437. if (data.error && data.error.length) {
  438. message.warning(data.error[0].message);
  439. };
  440. } else {
  441. for (let i = 0; i < data.data.list.length; i++) {
  442. let thisdata = data.data.list[i];
  443. theArr.push({
  444. key: thisdata.id,
  445. id: thisdata.id,
  446. serialNumber: thisdata.serialNumber,
  447. dataCategory: thisdata.dataCategory,
  448. name: thisdata.name,
  449. keyword: thisdata.keyword,
  450. theName: thisdata.username || thisdata.ownerName,
  451. category: thisdata.category,
  452. ownerName: thisdata.username ? thisdata.username : thisdata.ownerName,
  453. ownerType: thisdata.ownerType,
  454. ownerMobile: thisdata.ownerMobile,
  455. status: thisdata.status,
  456. releaseDate: thisdata.releaseDate,
  457. releaseDateFormattedDate: thisdata.releaseDateFormattedDate,
  458. auditStatus: thisdata.auditStatus,
  459. boutique: thisdata.boutique,
  460. hot: thisdata.hot
  461. });
  462. };
  463. this.state.pagination3.current = data.data.pageNo;
  464. this.state.pagination3.total = data.data.totalCount;
  465. };
  466. this.setState({
  467. chengguoDataSource2: theArr,
  468. pagination3: this.state.pagination3
  469. });
  470. }.bind(this),
  471. }).always(function () {
  472. this.setState({
  473. loading: false
  474. });
  475. }.bind(this));
  476. },
  477. xiangmuLoadData(pageNo, apiUrl) {
  478. this.state.data = [];
  479. this.setState({
  480. loading: true,
  481. ispage:pageNo,
  482. });
  483. let isCountry='';
  484. let pro='';
  485. let city='';
  486. let dis='';
  487. if(this.state.ressSearch==undefined){
  488. }else{
  489. switch(parseInt(this.state.ressSearch.length)){
  490. case 1:pro=this.state.ressSearch[0];break;
  491. case 2:pro=this.state.ressSearch[0];city=this.state.ressSearch[1];break;
  492. case 3:pro=this.state.ressSearch[0];city=this.state.ressSearch[1];dis=this.state.ressSearch[2];break;
  493. }
  494. }
  495. if(pro===0){
  496. isCountry=1;
  497. pro='';
  498. }
  499. $.ajax({
  500. method: "post",
  501. dataType: "json",
  502. crossDomain: false,
  503. url: globalConfig.context + '/api/admin/ProjectSize/listProject',
  504. data: {
  505. pageNo: pageNo || 1,
  506. pageSize: this.state.pagination.pageSize,
  507. bname:this.state.bname, //项目名称
  508. country:isCountry, //是否全国
  509. province:pro, //省
  510. city:city, //市
  511. district:dis, //区
  512. activityFlag:this.state.activityFlag, //活动生效标识
  513. status:this.state.status, //项目状态
  514. },
  515. success: function (data) {
  516. let theArr = [];
  517. if (!data.data || !data.data.list) {
  518. if (data.error && data.error.length) {
  519. message.warning(data.error[0].message);
  520. };
  521. } else {
  522. for (let i = 0; i < data.data.list.length; i++) {
  523. let thisdata = data.data.list[i];
  524. let ProvinceCity=[];
  525. let isCountry='';
  526. if(thisdata.country==1){
  527. isCountry="全国";
  528. }else{
  529. if(thisdata.city==null||thisdata.city==''){
  530. isCountry+=getprovince(parseInt(thisdata.province));
  531. }else if(thisdata.district==null||thisdata.district==''){
  532. isCountry+=getprovince(parseInt(thisdata.province))+'-';
  533. isCountry+=getprovince(parseInt(thisdata.city));
  534. }else{
  535. isCountry+=getprovince(parseInt(thisdata.province))+'-';
  536. isCountry+=getprovince(parseInt(thisdata.city))+'-';
  537. isCountry+=getprovince(parseInt(thisdata.district));
  538. }
  539. }
  540. theArr.push({
  541. key:thisdata.id,
  542. id:thisdata.id,//业务名称
  543. bname: thisdata.bname,//业务名称
  544. cname: thisdata.cname,//业务品类
  545. area:isCountry?isCountry:ProvinceCity,
  546. price: thisdata.price,//市场价
  547. offset:thisdata.offset,//最低折扣
  548. memberPrice:thisdata.memberPrice,//会员价
  549. activityPrice:thisdata.activityPrice,//活动价
  550. activityFlag:thisdata.activityFlag,//活动生效标识
  551. status: thisdata.status,//项目状态
  552. arrProvinceCity:ProvinceCity,
  553. });
  554. };
  555. this.state.pagination2.current = data.data.pageNo;
  556. this.state.pagination2.total = data.data.totalCount;
  557. };
  558. this.setState({
  559. xiangmuDataSource: theArr,
  560. pagination2: this.state.pagination2
  561. });
  562. }.bind(this),
  563. }).always(function () {
  564. this.setState({
  565. loading: false
  566. });
  567. }.bind(this));
  568. },
  569. sanhuLoadData(pageNo, apiUrl) {
  570. this.setState({
  571. loading: true
  572. });
  573. $.ajax({
  574. method: "post",
  575. dataType: "json",
  576. crossDomain: false,
  577. url: globalConfig.context + '/api/admin/customer/listAllPersonalCustomer',
  578. data: {
  579. pageNo: pageNo || 1,
  580. pageSize: this.state.pagination.pageSize,
  581. type: this.state.typeSearch, //名称1
  582. name: this.state.nameSearch,
  583. //province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  584. //city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  585. status: this.state.statusSearch,
  586. industry: this.state.industrySearch,
  587. businessAudit: this.state.serviceCertificationSearch,
  588. auditStatus: this.state.userCertificationSearch,
  589. international: this.state.internationalSearch,
  590. currentMemberStatus: this.state.currentMemberStatusSearch,
  591. lvl: this.state.lvlSearch,
  592. isMember: this.state.isMemberSearch,
  593. societyTag: this.state.societyTagSearch,
  594. listed: this.state.listedSearch, //是否上市
  595. highTechZone: this.state.highTechZoneSearch, //是否高新
  596. },
  597. success: function(data) {
  598. let theArr = [];
  599. if(data.error.length || data.data.list == "") {
  600. if(data.error && data.error.length) {
  601. message.warning(data.error[0].message);
  602. };
  603. } else {
  604. for(let i = 0; i < data.data.list.length; i++) {
  605. let thisdata = data.data.list[i];
  606. theArr.push({
  607. key: thisdata.uid,
  608. id: thisdata.uid,
  609. type: thisdata.type,
  610. name: thisdata.name,
  611. status: thisdata.status,
  612. contacts: thisdata.contacts,
  613. contactMobile: thisdata.contactMobile,
  614. industry: thisdata.industry,
  615. createTime: thisdata.createTime,
  616. businessAudit: thisdata.businessAudit,
  617. auditStatus: thisdata.auditStatus,
  618. lvl: thisdata.lvl,
  619. isMember: thisdata.isMember,
  620. status: thisdata.status,
  621. societyTag: thisdata.societyTag,
  622. currentMemberStatus: thisdata.currentMemberStatus,
  623. international: thisdata.international,
  624. listed: thisdata.listed,
  625. highTechZone: thisdata.highTechZone,
  626. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  627. });
  628. };
  629. };
  630. this.state.pagination1.current = data.data.pageNo ? data.data.pageNo : '0';
  631. this.state.pagination1.total = data.data.totalCount ? data.data.totalCount : '0';
  632. this.setState({
  633. sanhuDataSource: theArr,
  634. pagination1: this.state.pagination1
  635. });
  636. }.bind(this),
  637. }).always(function() {
  638. this.setState({
  639. loading: false
  640. });
  641. }.bind(this));
  642. },
  643. sanhuLoadData21(pageNo, apiUrl) {
  644. this.setState({
  645. loading: true
  646. });
  647. $.ajax({
  648. method: "post",
  649. dataType: "json",
  650. crossDomain: false,
  651. url: globalConfig.context + '/api/admin/customer/listAllOrganizationCustomer',
  652. data: {
  653. pageNo: pageNo || 1,
  654. pageSize: this.state.pagination.pageSize,
  655. type: this.state.typeSearch, //名称1
  656. name: this.state.nameSearch,
  657. //province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  658. //city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  659. status: this.state.statusSearch,
  660. industry: this.state.industrySearch,
  661. businessAudit: this.state.serviceCertificationSearch,
  662. auditStatus: this.state.userCertificationSearch,
  663. international: this.state.internationalSearch,
  664. currentMemberStatus: this.state.currentMemberStatusSearch,
  665. lvl: this.state.lvlSearch,
  666. isMember: this.state.isMemberSearch,
  667. societyTag: this.state.societyTagSearch,
  668. listed: this.state.listedSearch, //是否上市
  669. highTechZone: this.state.highTechZoneSearch, //是否高新
  670. },
  671. success: function(data) {
  672. let theArr = [];
  673. if(data.error.length || data.data.list == "") {
  674. if(data.error && data.error.length) {
  675. message.warning(data.error[0].message);
  676. };
  677. } else {
  678. for(let i = 0; i < data.data.list.length; i++) {
  679. let thisdata = data.data.list[i];
  680. theArr.push({
  681. key: thisdata.uid,
  682. id: thisdata.uid,
  683. type: thisdata.type,
  684. name: thisdata.name,
  685. status: thisdata.status,
  686. contacts: thisdata.contacts,
  687. contactMobile: thisdata.contactMobile,
  688. industry: thisdata.industry,
  689. createTime: thisdata.createTime,
  690. businessAudit: thisdata.businessAudit,
  691. auditStatus: thisdata.auditStatus,
  692. lvl: thisdata.lvl,
  693. isMember: thisdata.isMember,
  694. status: thisdata.status,
  695. societyTag: thisdata.societyTag,
  696. currentMemberStatus: thisdata.currentMemberStatus,
  697. international: thisdata.international,
  698. listed: thisdata.listed,
  699. highTechZone: thisdata.highTechZone,
  700. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  701. });
  702. };
  703. };
  704. this.state.pagination21.current = data.data.pageNo ? data.data.pageNo : '0';
  705. this.state.pagination21.total = data.data.totalCount ? data.data.totalCount : '0';
  706. this.setState({
  707. sanhuDataSource21: theArr,
  708. pagination21: this.state.pagination21
  709. });
  710. }.bind(this),
  711. }).always(function() {
  712. this.setState({
  713. loading: false
  714. });
  715. }.bind(this));
  716. },
  717. getInitialState() {
  718. return {
  719. visible: false,
  720. data: [],
  721. callnub:'0',
  722. sendType:'0',
  723. showAdd: false,
  724. showDesc: false,
  725. expandedKeys: [],
  726. autoExpandParent: true,
  727. selectedKeys: [],
  728. searchMore: true,
  729. selectedRowKeys: [],
  730. selectedRows: [],
  731. loading: false,
  732. pagination: {
  733. defaultCurrent: 1,
  734. defaultPageSize: 10,
  735. showQuickJumper: true,
  736. pageSize: 10,
  737. onChange: function (page) {
  738. this.loadData(page,this.state.sendType);
  739. }.bind(this),
  740. showTotal: function (total) {
  741. return '共' + total + '条数据';
  742. }
  743. },
  744. pagination1: {
  745. defaultCurrent: 1,
  746. defaultPageSize: 10,
  747. showQuickJumper: true,
  748. pageSize: 10,
  749. onChange: function (page) {
  750. this.sanhuLoadData(page);
  751. }.bind(this),
  752. showTotal: function (total) {
  753. return '共' + total + '条数据';
  754. }
  755. },
  756. pagination21: {
  757. defaultCurrent: 1,
  758. defaultPageSize: 10,
  759. showQuickJumper: true,
  760. pageSize: 10,
  761. onChange: function (page) {
  762. this.sanhuLoadData21(page);
  763. }.bind(this),
  764. showTotal: function (total) {
  765. return '共' + total + '条数据';
  766. }
  767. },
  768. pagination2: {
  769. defaultCurrent: 1,
  770. defaultPageSize: 10,
  771. showQuickJumper: true,
  772. pageSize: 10,
  773. onChange: function (page) {
  774. this.xiangmuLoadData(page);
  775. }.bind(this),
  776. showTotal: function (total) {
  777. return '共' + total + '条数据';
  778. }
  779. },
  780. pagination3: {
  781. defaultCurrent: 1,
  782. defaultPageSize: 10,
  783. showQuickJumper: true,
  784. pageSize: 10,
  785. onChange: function (page) {
  786. this.chengguoLoadData2(page);
  787. }.bind(this),
  788. showTotal: function (total) {
  789. return '共' + total + '条数据';
  790. }
  791. },
  792. pagination4: {
  793. defaultCurrent: 1,
  794. defaultPageSize: 10,
  795. showQuickJumper: true,
  796. pageSize: 10,
  797. onChange: function (page) {
  798. this.chengguoLoadData1(page);
  799. }.bind(this),
  800. showTotal: function (total) {
  801. return '共' + total + '条数据';
  802. }
  803. },
  804. pagination5: {
  805. defaultCurrent: 1,
  806. defaultPageSize: 10,
  807. showQuickJumper: true,
  808. pageSize: 10,
  809. onChange: function (page) {
  810. this.xuqiuLoadData2(page);
  811. }.bind(this),
  812. showTotal: function (total) {
  813. return '共' + total + '条数据';
  814. }
  815. },
  816. pagination6: {
  817. defaultCurrent: 1,
  818. defaultPageSize: 10,
  819. showQuickJumper: true,
  820. pageSize: 10,
  821. onChange: function (page) {
  822. this.xuqiuLoadData1(page);
  823. }.bind(this),
  824. showTotal: function (total) {
  825. return '共' + total + '条数据';
  826. }
  827. },
  828. pagination7: {
  829. defaultCurrent: 1,
  830. defaultPageSize: 10,
  831. showQuickJumper: true,
  832. pageSize: 10,
  833. onChange: function (page) {
  834. this.zhuanjiaLoadData(page);
  835. }.bind(this),
  836. showTotal: function (total) {
  837. return '共' + total + '条数据';
  838. }
  839. },
  840. pagination8: {
  841. defaultCurrent: 1,
  842. defaultPageSize: 10,
  843. showQuickJumper: true,
  844. pageSize: 10,
  845. onChange: function (page) {
  846. this.zhengceLoadData(page);
  847. }.bind(this),
  848. showTotal: function (total) {
  849. return '共' + total + '条数据';
  850. }
  851. },
  852. columns: [
  853. {
  854. title: '消息时间',
  855. dataIndex: 'createTime',
  856. key: 'createTime',
  857. width:'150px',
  858. }, {
  859. title: '消息标题',
  860. dataIndex: 'title',
  861. key: 'title',
  862. width:'200px',
  863. },{
  864. title: '消息内容',
  865. dataIndex: 'body',
  866. key: 'body',
  867. },{
  868. title: '推送类型',
  869. dataIndex: 'resourceType',
  870. key: 'resourceType',
  871. width:'100px',
  872. render: text => { return getFeatured(text) }
  873. },{
  874. title: '发送目标',
  875. dataIndex: 'consumerType',
  876. key: 'consumerType',
  877. width:'100px',
  878. render: text => { return getDesignated(text) }
  879. }
  880. ],
  881. dataSource: [],
  882. sanhuColumns1: [
  883. {
  884. title: '编号',
  885. dataIndex: 'number',
  886. key: 'number'
  887. }, {
  888. title: '登录账号',
  889. dataIndex: 'mobile',
  890. key: 'mobile'
  891. }, {
  892. title: '名字',
  893. dataIndex: 'name',
  894. key: 'name'
  895. }, {
  896. title: '职位',
  897. dataIndex: 'position',
  898. key: 'position'
  899. },{
  900. title: '部门',
  901. dataIndex: 'departmentName',
  902. key: 'departmentName'
  903. }, {
  904. title: '上级管理员',
  905. dataIndex: 'superior',
  906. key: 'superior'
  907. }, {
  908. title: '邮箱',
  909. dataIndex: 'email',
  910. key: 'email'
  911. }, {
  912. title: '创建时间',
  913. dataIndex: 'createTimeFormattedDate',
  914. key: 'createTimeFormattedDate'
  915. }
  916. ],
  917. sanhuDataSource1: [],
  918. sanhuColumns: [{
  919. title: '客户名称',
  920. dataIndex: 'name',
  921. key: 'name',
  922. }, {
  923. title: '客户类型',
  924. dataIndex: 'type',
  925. key: 'type',
  926. render: text => { return getcustomerTyp(text) }
  927. }, {
  928. title: '地区',
  929. dataIndex: 'locationProvince',
  930. key: 'locationProvince',
  931. }, {
  932. title: '联系人',
  933. dataIndex: 'contacts',
  934. key: 'contacts',
  935. },
  936. {
  937. title: '联系电话',
  938. dataIndex: 'contactMobile',
  939. key: 'contactMobile',
  940. },
  941. {
  942. title: '行业',
  943. dataIndex: 'industry',
  944. key: 'industry',
  945. },
  946. {
  947. title: '社会性质',
  948. dataIndex: 'societyTag',
  949. key: 'societyTag',
  950. render: text => { return getSocialAttribute(text) }
  951. },
  952. {
  953. title: '创建时间',
  954. dataIndex: 'createTime',
  955. key: 'createTime',
  956. },
  957. {
  958. title: '业务认证',
  959. dataIndex: 'businessAudit',
  960. key: 'businessAudit',
  961. render: text => { return getCertification(text) }
  962. },
  963. {
  964. title: '实名认证',
  965. dataIndex: 'auditStatus',
  966. key: 'auditStatus',
  967. render: text => { return getAuditStatus(text) }
  968. },
  969. {
  970. title: '是否高新',
  971. dataIndex: 'highTechZone',
  972. key: 'highTechZone',
  973. render: text => { return getWhether(text) }
  974. }, {
  975. title: '是否上市',
  976. dataIndex: 'listed',
  977. key: 'listed',
  978. render: text => { return getWhether(text) }
  979. },
  980. {
  981. title: '是否国际',
  982. dataIndex: 'international',
  983. key: 'international',
  984. render: text => { return getWhether(text) }
  985. },
  986. {
  987. title: '会员等级',
  988. dataIndex: 'lvl',
  989. key: 'lvl',
  990. render: text => { return getLvl(text) }
  991. },
  992. {
  993. title: '会员状态',
  994. dataIndex: 'currentMemberStatus',
  995. key: 'currentMemberStatus',
  996. render: text => { return getCurrentMember(text) }
  997. },
  998. {
  999. title: '账户状态',
  1000. dataIndex: 'status',
  1001. key: 'status',
  1002. render: text => { return getStatuslist(text) }
  1003. }
  1004. ],
  1005. sanhuDataSource: [],
  1006. sanhuColumns21: [{
  1007. title: '客户名称',
  1008. dataIndex: 'name',
  1009. key: 'name',
  1010. }, {
  1011. title: '客户类型',
  1012. dataIndex: 'type',
  1013. key: 'type',
  1014. render: text => { return getcustomerTyp(text) }
  1015. }, {
  1016. title: '地区',
  1017. dataIndex: 'locationProvince',
  1018. key: 'locationProvince',
  1019. }, {
  1020. title: '联系人',
  1021. dataIndex: 'contacts',
  1022. key: 'contacts',
  1023. },
  1024. {
  1025. title: '联系电话',
  1026. dataIndex: 'contactMobile',
  1027. key: 'contactMobile',
  1028. },
  1029. {
  1030. title: '行业',
  1031. dataIndex: 'industry',
  1032. key: 'industry',
  1033. },
  1034. {
  1035. title: '社会性质',
  1036. dataIndex: 'societyTag',
  1037. key: 'societyTag',
  1038. render: text => { return getSocialAttribute(text) }
  1039. },
  1040. {
  1041. title: '创建时间',
  1042. dataIndex: 'createTime',
  1043. key: 'createTime',
  1044. },
  1045. {
  1046. title: '业务认证',
  1047. dataIndex: 'businessAudit',
  1048. key: 'businessAudit',
  1049. render: text => { return getCertification(text) }
  1050. },
  1051. {
  1052. title: '实名认证',
  1053. dataIndex: 'auditStatus',
  1054. key: 'auditStatus',
  1055. render: text => { return getAuditStatus(text) }
  1056. },
  1057. {
  1058. title: '是否高新',
  1059. dataIndex: 'highTechZone',
  1060. key: 'highTechZone',
  1061. render: text => { return getWhether(text) }
  1062. }, {
  1063. title: '是否上市',
  1064. dataIndex: 'listed',
  1065. key: 'listed',
  1066. render: text => { return getWhether(text) }
  1067. },
  1068. {
  1069. title: '是否国际',
  1070. dataIndex: 'international',
  1071. key: 'international',
  1072. render: text => { return getWhether(text) }
  1073. },
  1074. {
  1075. title: '会员等级',
  1076. dataIndex: 'lvl',
  1077. key: 'lvl',
  1078. render: text => { return getLvl(text) }
  1079. },
  1080. {
  1081. title: '会员状态',
  1082. dataIndex: 'currentMemberStatus',
  1083. key: 'currentMemberStatus',
  1084. render: text => { return getCurrentMember(text) }
  1085. },
  1086. {
  1087. title: '账户状态',
  1088. dataIndex: 'status',
  1089. key: 'status',
  1090. render: text => { return getStatuslist(text) }
  1091. }
  1092. ],
  1093. sanhuDataSource21: [],
  1094. fengongsiColumns: [
  1095. {
  1096. title: '组织编号',
  1097. dataIndex: 'depNo',
  1098. key: 'depNo',
  1099. }, {
  1100. title: '组织名称',
  1101. dataIndex: 'name',
  1102. key: 'name',
  1103. }, {
  1104. title: '负责人',
  1105. dataIndex: 'managerId',
  1106. key: 'managerId',
  1107. },{
  1108. title: '组织类型',
  1109. dataIndex: 'type',
  1110. key: 'type',
  1111. render: text => { return getPattern(text) }
  1112. }, {
  1113. title: '上级组织',
  1114. dataIndex: 'superId',
  1115. key: 'superId',
  1116. },{
  1117. title: '组织状态',
  1118. dataIndex: 'status',
  1119. key: 'status',
  1120. render: text => { return getCondition(text) }
  1121. }
  1122. ],
  1123. fengongsiDataSource: [],
  1124. xiangmuColumns: [
  1125. {
  1126. title: '项目名称',
  1127. dataIndex: 'bname',
  1128. key: 'bname',
  1129. }, {
  1130. title: '业务地区',
  1131. dataIndex: 'area',
  1132. key: 'area',
  1133. }, {
  1134. title: '市场价',
  1135. dataIndex: 'price',
  1136. key: 'price',
  1137. }, {
  1138. title: '最低折扣',
  1139. dataIndex: 'offset',
  1140. key: 'offset',
  1141. }, {
  1142. title: '会员价',
  1143. dataIndex: 'memberPrice',
  1144. key: 'memberPrice',
  1145. }, {
  1146. title: '活动价',
  1147. dataIndex: 'activityPrice',
  1148. key: 'activityPrice',
  1149. }, {
  1150. title: '活动生效标识',
  1151. dataIndex: 'activityFlag',
  1152. key: 'activityFlag',
  1153. render: text => { return getGameState(text) }
  1154. },{
  1155. title: '业务状态',
  1156. dataIndex: 'status',
  1157. key: 'status',
  1158. render: text => { return getCategoryState(text) }
  1159. }
  1160. ],
  1161. xiangmuDataSource: [],
  1162. chengguoColumns1: [
  1163. {
  1164. title: '名称',
  1165. dataIndex: 'name',
  1166. key: 'name',
  1167. }, {
  1168. title: '关键字',
  1169. dataIndex: 'keyword',
  1170. key: 'keyword',
  1171. }, {
  1172. title: '类型',
  1173. dataIndex: 'category',
  1174. key: 'category',
  1175. render: text => { return getAchievementCategory(text); }
  1176. }, {
  1177. title: '所有人名称',
  1178. dataIndex: 'theName',
  1179. key: 'theName',
  1180. },
  1181. {
  1182. title: '是否精品',
  1183. dataIndex: 'boutique',
  1184. key: 'boutique',
  1185. render: text => { return getboutique(text) }
  1186. },
  1187. {
  1188. title: '发布时间',
  1189. dataIndex: 'releaseDateFormattedDate',
  1190. key: 'releaseDateFormattedDate',
  1191. }
  1192. ],
  1193. chengguoDataSource1: [],
  1194. chengguoColumns2: [
  1195. {
  1196. title: '名称',
  1197. dataIndex: 'name',
  1198. key: 'name',
  1199. }, {
  1200. title: '关键字',
  1201. dataIndex: 'keyword',
  1202. key: 'keyword',
  1203. }, {
  1204. title: '类型',
  1205. dataIndex: 'category',
  1206. key: 'category',
  1207. render: text => { return getAchievementCategory(text); }
  1208. }, {
  1209. title: '所有人名称',
  1210. dataIndex: 'theName',
  1211. key: 'theName',
  1212. },
  1213. {
  1214. title: '是否精品',
  1215. dataIndex: 'boutique',
  1216. key: 'boutique',
  1217. render: text => { return getboutique(text) }
  1218. },
  1219. {
  1220. title: '发布时间',
  1221. dataIndex: 'releaseDateFormattedDate',
  1222. key: 'releaseDateFormattedDate',
  1223. }
  1224. ],
  1225. chengguoDataSource2: [],
  1226. xuqiuColumns1: [
  1227. {
  1228. title: '需求名称',
  1229. dataIndex: 'name',
  1230. key: 'name',
  1231. },
  1232. {
  1233. title: '关键字',
  1234. dataIndex: 'keyword',
  1235. key: 'keyword',
  1236. }, {
  1237. title: '需求类型',
  1238. dataIndex: 'demandType',
  1239. key: 'demandType',
  1240. render: text => { return getDemandType(text); }
  1241. }, {
  1242. title: '雇主名称',
  1243. dataIndex: 'theName',
  1244. key: 'theName',
  1245. },
  1246. {
  1247. title: '是否精品',
  1248. dataIndex: 'boutique',
  1249. key: 'boutique',
  1250. render: text => { return getboutique(text) }
  1251. }, {
  1252. title: '发布时间',
  1253. dataIndex: 'releaseDateFormattedDate',
  1254. key: 'releaseDateFormattedDate',
  1255. }
  1256. ],
  1257. xuqiuDataSource1: [],
  1258. xuqiuColumns2: [
  1259. {
  1260. title: '需求名称',
  1261. dataIndex: 'name',
  1262. key: 'name',
  1263. },
  1264. {
  1265. title: '关键字',
  1266. dataIndex: 'keyword',
  1267. key: 'keyword',
  1268. }, {
  1269. title: '需求类型',
  1270. dataIndex: 'demandType',
  1271. key: 'demandType',
  1272. render: text => { return getDemandType(text); }
  1273. }, {
  1274. title: '雇主名称',
  1275. dataIndex: 'theName',
  1276. key: 'theName',
  1277. },
  1278. {
  1279. title: '是否精品',
  1280. dataIndex: 'boutique',
  1281. key: 'boutique',
  1282. render: text => { return getboutique(text) }
  1283. }, {
  1284. title: '发布时间',
  1285. dataIndex: 'releaseDateFormattedDate',
  1286. key: 'releaseDateFormattedDate',
  1287. }
  1288. ],
  1289. xuqiuDataSource2: [],
  1290. zhuanjiaColumns: [{
  1291. title: '客户姓名',
  1292. dataIndex: 'name',
  1293. key: 'name',
  1294. },
  1295. {
  1296. title: '联系电话',
  1297. dataIndex: 'contactMobile',
  1298. key: 'contactMobile',
  1299. },
  1300. {
  1301. title: '行业',
  1302. dataIndex: 'industry',
  1303. key: 'industry',
  1304. },
  1305. {
  1306. title: '社会性质',
  1307. dataIndex: 'societyTag',
  1308. key: 'societyTag',
  1309. render: text => { return getSocialAttribute(text) }
  1310. },
  1311. {
  1312. title: '创建时间',
  1313. dataIndex: 'createTime',
  1314. key: 'createTime',
  1315. },
  1316. {
  1317. title: '实名认证',
  1318. dataIndex: 'auditStatus',
  1319. key: 'auditStatus',
  1320. render: text => { return getAuditStatus(text) }
  1321. },
  1322. {
  1323. title: '是否国际',
  1324. dataIndex: 'international',
  1325. key: 'international',
  1326. render: text => { return getWhether(text) }
  1327. },
  1328. {
  1329. title: '会员等级',
  1330. dataIndex: 'lvl',
  1331. key: 'lvl',
  1332. render: text => { return getLvl(text) }
  1333. }
  1334. ],
  1335. zhuanjiaDataSource: [],
  1336. zhengceColumns: [{
  1337. title: '政策标题',
  1338. dataIndex: 'title',
  1339. key: 'title',
  1340. },
  1341. {
  1342. title: '政策内容',
  1343. dataIndex: 'summary',
  1344. key: 'summary',
  1345. width:'400',
  1346. },
  1347. {
  1348. title: '时间',
  1349. dataIndex: 'time',
  1350. key: 'time',
  1351. width:'100px'
  1352. }
  1353. ],
  1354. zhengceDataSource: [],
  1355. };
  1356. },
  1357. componentWillMount() {
  1358. this.loadData(1,0);
  1359. },
  1360. //获取上级组织
  1361. selectSuperId() {
  1362. this.state.data = []
  1363. $.ajax({
  1364. method: "get",
  1365. dataType: "json",
  1366. crossDomain: false,
  1367. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1368. data:{
  1369. },
  1370. success: function (data) {
  1371. let theArr = [];
  1372. let thedata=data.data;
  1373. if (!thedata) {
  1374. if (data.error && data.error.length) {
  1375. message.warning(data.error[0].message);
  1376. };
  1377. thedata = {};
  1378. };
  1379. var contactIds=[];
  1380. //for (let item in data.data) {
  1381. for(var i=0;i<data.data.length;i++){
  1382. let theData = data.data[i];
  1383. theArr.push(
  1384. <Select.Option value={i.toString()} key={theData.name}>{theData.name}</Select.Option>
  1385. );
  1386. };
  1387. this.setState({
  1388. SuperArr:thedata,
  1389. contactsOption: theArr,
  1390. orderStatusOptions:data.data,
  1391. });
  1392. }.bind(this),
  1393. }).always(function () {
  1394. this.setState({
  1395. loading: false
  1396. });
  1397. }.bind(this));
  1398. },
  1399. //整行点击
  1400. bianji(record, index) {
  1401. this.state.RowData = record;
  1402. this.setState({
  1403. editvisible: true,
  1404. selectedRowKeys:[],
  1405. rowId:record.businessId,
  1406. })
  1407. let deletedIds ='';
  1408. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  1409. let rowItem = this.state.selectedRows[idx];
  1410. if (rowItem.id) {
  1411. deletedIds=rowItem.id;
  1412. };
  1413. };
  1414. $.ajax({
  1415. method: "post",
  1416. dataType: "json",
  1417. crossDomain: false,
  1418. url: globalConfig.context +"/api/admin/organization/selectAllById" ,
  1419. data: {
  1420. id:deletedIds
  1421. },
  1422. success: function (data) {
  1423. let theArr = [];
  1424. let thisdata = data.data;
  1425. if(data.error.length === 0){
  1426. theArr.push({
  1427. editId: thisdata.id,//每一条记录的ID
  1428. editName:thisdata.name,//组织名称
  1429. editManagerId:thisdata.managerId,//负责人
  1430. editType:thisdata.type,//组织类型
  1431. editStatus:thisdata.status,//组织状态
  1432. editSuperId:thisdata.superId,//上级组织
  1433. editDepNo: thisdata.depNo,//组织编号
  1434. editCreateId:thisdata.createId,//创建人
  1435. editTime:thisdata.createTime,//创建时间
  1436. editRemarks:thisdata.remarks,//组织职能说明
  1437. });
  1438. this.setState({
  1439. editId: thisdata.id,//每一条记录的ID
  1440. editName:thisdata.name,//组织名称
  1441. editManagerId:thisdata.managerId,//负责人
  1442. editType:thisdata.type,//组织类型
  1443. editStatus:thisdata.status,//组织状态
  1444. editSuperId:thisdata.superId,//上级组织
  1445. editDepNo: thisdata.depNo,//组织编号
  1446. editCreateId:thisdata.createId,//创建人
  1447. editTime:thisdata.createTime,//创建时间
  1448. editRemarks: thisdata.remarks,//组织职能说明
  1449. editDataSource: theArr,
  1450. });
  1451. }else{
  1452. message.warning(data.error[0].message);
  1453. }
  1454. }.bind(this),
  1455. }).always(function () {
  1456. this.setState({
  1457. loading: false
  1458. });
  1459. }.bind(this));
  1460. },
  1461. //整行删除
  1462. delectRow() {
  1463. let deletedIds ='';
  1464. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  1465. let rowItem = this.state.selectedRows[idx];
  1466. if (rowItem.id) {
  1467. deletedIds=rowItem.id;
  1468. };
  1469. };
  1470. this.setState({
  1471. selectedRowKeys: [],
  1472. loading: deletedIds.length > 0
  1473. });
  1474. $.ajax({
  1475. method: "get",
  1476. dataType: "json",
  1477. crossDomain: false,
  1478. url: globalConfig.context + "/api/admin/message/deleteSystemMessage",
  1479. data: {
  1480. messageId: deletedIds
  1481. }
  1482. }).done(function (data) {
  1483. if (!data.error.length) {
  1484. message.success('删除成功!');
  1485. this.loadData(1,1);
  1486. this.setState({
  1487. loading: false,
  1488. });
  1489. } else {
  1490. message.warning(data.error[0].message);
  1491. };
  1492. }.bind(this));
  1493. },
  1494. //新增一条消息,保存
  1495. addhandleSubmit(e,addType){
  1496. e.preventDefault();
  1497. 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);
  1498. let xiaoxi=JSON.stringify(this.state.xiaoxi);
  1499. if(!xiaoxi){
  1500. message.warning('请输入消息内容');
  1501. return false;
  1502. }
  1503. if(!duixiang){
  1504. message.warning('请指定发送对象');
  1505. return false;
  1506. }
  1507. let diquText=this.state.diqu;
  1508. let pro=[];
  1509. let city=[];
  1510. let dis=[];
  1511. if(this.state.diqu){
  1512. for(var i=0;i<diquText.length;i++){
  1513. if(diquText[i]<=34){
  1514. pro.push(diquText[i])
  1515. }else if(diquText[i]>34&&diquText[i]<380){
  1516. city.push(diquText[i])
  1517. }else{
  1518. dis.push(diquText[i])
  1519. }
  1520. }
  1521. }else{
  1522. pro=undefined;
  1523. city=undefined;
  1524. dis=undefined;
  1525. }
  1526. let projectIds;
  1527. let organizationAchievementIds;
  1528. let personalAchievementIds;
  1529. let organizationDemandIds;
  1530. let personalDemandIds;
  1531. let expertIds;
  1532. let newsIds;
  1533. switch(this.state.addContent){
  1534. case '0':projectIds=this.state.xiaoxi.join(",");break;
  1535. case '12':organizationAchievementIds=this.state.xiaoxi.join(",");break;
  1536. case '11':personalAchievementIds=this.state.xiaoxi.join(",");break;
  1537. case '22':organizationDemandIds=this.state.xiaoxi.join(",");break;
  1538. case '21':personalDemandIds=this.state.xiaoxi.join(",");break;
  1539. case '3':expertIds=this.state.xiaoxi.join(",");break;
  1540. case '4':newsIds=this.state.xiaoxi.join(",");break;
  1541. }
  1542. this.props.form.validateFields((err, values) => {
  1543. if (!err) {
  1544. this.setState({
  1545. loading: true
  1546. });
  1547. $.ajax({
  1548. method: "post",
  1549. dataType: "json",
  1550. crossDomain: false,
  1551. url:globalConfig.context + '/api/admin/message/createRecommendMessage',
  1552. data:{
  1553. subject:'2',//表示是智推的消息
  1554. isDraft:addType,//点保存或者存为草稿
  1555. projectIds:projectIds,//服务项目
  1556. organizationAchievementIds:organizationAchievementIds,//组织成果
  1557. personalAchievementIds:personalAchievementIds,//个人成果
  1558. organizationDemandIds:organizationDemandIds,//组织需求
  1559. personalDemandIds:personalDemandIds,//个人需求
  1560. expertIds:expertIds,//专家
  1561. newsIds:newsIds,//政策
  1562. personalUserIds:this.state.sanhu?this.state.sanhu.join(","):undefined,//散户
  1563. organizationUserIds:this.state.sanhu21?this.state.sanhu21.join(","):undefined,//散户
  1564. societyTags:this.state.shehui?this.state.shehui.join(","):undefined,//社会属性
  1565. provinceIds:pro?pro.join(","):undefined,//省
  1566. cityIds:city?city.join(","):undefined,//市
  1567. areaIds:dis?dis.join(","):undefined,//区
  1568. industryIds:this.state.hangye?this.state.hangye.join(","):undefined,//行业
  1569. sourceType:this.state.addContent, //推荐资源类型
  1570. targetType:this.state.addObject, //推送目标类型
  1571. }
  1572. }).done(function (data) {
  1573. this.setState({
  1574. loading: false
  1575. });
  1576. if (!data.error.length) {
  1577. message.success('保存成功!');
  1578. this.handleCancel();
  1579. this.loadData(1,0);
  1580. } else {
  1581. message.warning(data.error[0].message);
  1582. }
  1583. }.bind(this));
  1584. }
  1585. });
  1586. },
  1587. add(e){
  1588. e.preventDefault();
  1589. this.addhandleSubmit(e,0);
  1590. },
  1591. adds(e){
  1592. e.preventDefault();
  1593. this.addhandleSubmit(e,1);
  1594. },
  1595. //详情tab切换数据处理
  1596. callback(e) {
  1597. this.setState({
  1598. callnub: e,
  1599. })
  1600. if(e == 0) {
  1601. this.setState({
  1602. bianjiMore: false,
  1603. selectedRowKeys:[],
  1604. sendType:'0',
  1605. })
  1606. this.loadData(1,0);
  1607. }
  1608. if(e == 1) {
  1609. this.setState({
  1610. bianjiMore: true,
  1611. selectedRowKeys:[],
  1612. sendType:'1',
  1613. })
  1614. this.loadData(1,1);
  1615. }
  1616. },
  1617. //切换创建系统消息中的发送内容
  1618. selectContent(e) {
  1619. this.setState({
  1620. addContent:e
  1621. })
  1622. if(e == 0) {
  1623. this.xiangmuLoadData();
  1624. this.setState({ visible6: true })
  1625. }
  1626. if(e == 12) {
  1627. this.chengguoLoadData1();
  1628. this.setState({ visible7: true })
  1629. }
  1630. if(e == 11) {
  1631. this.chengguoLoadData2();
  1632. this.setState({ visible8: true })
  1633. }
  1634. if(e == 22) {
  1635. this.xuqiuLoadData1();
  1636. this.setState({ visible9: true })
  1637. }
  1638. if(e == 21) {
  1639. this.xuqiuLoadData2();
  1640. this.setState({ visible10: true })
  1641. }
  1642. if(e == 3) {
  1643. this.zhuanjiaLoadData();
  1644. this.setState({ visible11: true })
  1645. }
  1646. if(e == 4) {
  1647. this.zhengceLoadData();
  1648. this.setState({ visible12: true })
  1649. }
  1650. },
  1651. changeContent(e){
  1652. this.xiaoxiReset();
  1653. },
  1654. //切换创建系统消息中的指定发送对象
  1655. selectObjects(e) {
  1656. this.setState({
  1657. addObject:e
  1658. })
  1659. if(e == 61) {
  1660. this.sanhuLoadData();
  1661. this.setState({ visible1: true })
  1662. }
  1663. if(e == 62) {
  1664. this.sanhuLoadData21();
  1665. this.setState({ visible21: true })
  1666. }
  1667. if(e == 1) {
  1668. this.setState({ visible2: true })
  1669. }
  1670. if(e == 2) {
  1671. this.setState({ visible4: true })
  1672. }
  1673. if(e == 0) {
  1674. this.setState({ visible5: true })
  1675. }
  1676. },
  1677. changeObjects(){
  1678. this.objectReset();
  1679. },
  1680. //值改变时请求客户名称
  1681. httpChange(e){
  1682. if(e.length>=2){
  1683. this.supervisor(e);
  1684. }
  1685. this.setState({
  1686. managerIdOrganization:e
  1687. })
  1688. },
  1689. addClick() {
  1690. this.state.addContent= undefined; //推荐资源类型
  1691. this.state.addObject= undefined; //推送目标类型
  1692. this.setState({
  1693. visible: true
  1694. });
  1695. },
  1696. editClick() {
  1697. this.state.RowData = {};
  1698. this.setState({
  1699. editvisible: true
  1700. });
  1701. },
  1702. handleCancel() {
  1703. this.setState({ visible: false })
  1704. },
  1705. handleCancel1() {
  1706. this.setState({ visible1: false })
  1707. },
  1708. handleCancel21() {
  1709. this.setState({ visible21: false })
  1710. },
  1711. handleCancel11() {
  1712. this.setState({ visible11: false })
  1713. },
  1714. handleCancel2() {
  1715. this.setState({ visible2: false })
  1716. },
  1717. handleCancel3() {
  1718. this.setState({ visible3: false })
  1719. },
  1720. handleCancel4() {
  1721. this.setState({ visible4: false })
  1722. },
  1723. handleCancel5() {
  1724. this.setState({ visible5: false })
  1725. },
  1726. handleCancel6() {
  1727. this.setState({ visible6: false })
  1728. },
  1729. handleCancel7() {
  1730. this.setState({ visible7: false })
  1731. },
  1732. handleCancel8() {
  1733. this.setState({ visible8: false })
  1734. },
  1735. handleCancel9() {
  1736. this.setState({ visible9: false })
  1737. },
  1738. handleCancel10() {
  1739. this.setState({ visible10: false })
  1740. },
  1741. handleCancel11() {
  1742. this.setState({ visible11: false })
  1743. },
  1744. handleCancel12() {
  1745. this.setState({ visible12: false })
  1746. },
  1747. edithandleCancel() {
  1748. this.setState({ editvisible: false })
  1749. },
  1750. //地区多选
  1751. onExpand(expandedKeys){
  1752. this.setState({
  1753. expandedKeys,
  1754. autoExpandParent: false,
  1755. });
  1756. },
  1757. onCheck(checkedKeys){
  1758. this.setState({checkedKeys:checkedKeys });
  1759. },
  1760. onSelect(selectedKeys, info){
  1761. this.setState({ selectedKeys });
  1762. },
  1763. renderTreeNodes(data){
  1764. return provinceList.map((item) => {
  1765. return(
  1766. <TreeNodet title={item.name} key={item.id} dataRef={item}>
  1767. {item.cityList.map((item) => {
  1768. return(
  1769. <TreeNodet title={item.name} key={item.id} dataRef={item}>
  1770. {item.areaList.map((item) => {
  1771. return(
  1772. <TreeNodet title={item.name} key={item.id} dataRef={item}>
  1773. </TreeNodet>
  1774. );
  1775. })
  1776. }
  1777. </TreeNodet>
  1778. );
  1779. })
  1780. }
  1781. </TreeNodet>
  1782. );
  1783. return <TreeNodet {...item} />;
  1784. });
  1785. },
  1786. search() {
  1787. this.loadData();
  1788. },
  1789. //散户搜索
  1790. sanhusearch(){
  1791. this.sanhuLoadData();
  1792. },
  1793. //散户搜索
  1794. sanhusearch21(){
  1795. this.sanhuLoadData21();
  1796. },
  1797. //用户搜索
  1798. sanhusearch1(){
  1799. this.sanhuLoadData1();
  1800. },
  1801. //用户搜索
  1802. juesesearch(){
  1803. this.jueseLoadData();
  1804. },
  1805. xiangmusearch(){
  1806. this.xiangmuLoadData();
  1807. },
  1808. chengguoSearch1(){
  1809. this.chengguoLoadData1();
  1810. },
  1811. chengguoSearch2(){
  1812. this.chengguoLoadData2();
  1813. },
  1814. xuqiuSearch1(){
  1815. this.xuqiuLoadData1();
  1816. },
  1817. xuqiuSearch2(){
  1818. this.xuqiuLoadData2();
  1819. },
  1820. zhuanjiaSearch(){
  1821. this.zhuanjiaLoadData();
  1822. },
  1823. zhengceSearch(){
  1824. this.zhengceLoadData();
  1825. },
  1826. //散户重置
  1827. sanhuReset() {
  1828. this.state.isMemberSearch = undefined;
  1829. this.state.internationalSearch = undefined;
  1830. this.state.typeSearch = undefined; //名称1
  1831. this.state.nameSearch = '';
  1832. this.state.addressSearch = [];
  1833. this.state.provinceSearch = undefined;
  1834. this.state.citySearch = undefined;
  1835. this.state.statusSearch = undefined;
  1836. this.state.contactsSearch = undefined;
  1837. this.state.contactMobileSearch = undefined;
  1838. this.state.industrySearch = undefined;
  1839. this.state.serviceCertificationSearch = undefined;
  1840. this.state.userCertificationSearch = undefined;
  1841. this.state.currentMemberStatusSearch = undefined;
  1842. this.state.lvlSearch = undefined;
  1843. this.state.listedSearch = undefined;
  1844. this.state.highTechZoneSearch = undefined;
  1845. this.state.releaseDate[0] = undefined;
  1846. this.state.releaseDate[1] = undefined;
  1847. this.state.societyTagSearch = undefined;
  1848. this.sanhuLoadData();
  1849. },
  1850. //散户重置
  1851. sanhuReset21() {
  1852. this.state.isMemberSearch = undefined;
  1853. this.state.internationalSearch = undefined;
  1854. this.state.typeSearch = undefined; //名称1
  1855. this.state.nameSearch = '';
  1856. this.state.addressSearch = [];
  1857. this.state.provinceSearch = undefined;
  1858. this.state.citySearch = undefined;
  1859. this.state.statusSearch = undefined;
  1860. this.state.contactsSearch = undefined;
  1861. this.state.contactMobileSearch = undefined;
  1862. this.state.industrySearch = undefined;
  1863. this.state.serviceCertificationSearch = undefined;
  1864. this.state.userCertificationSearch = undefined;
  1865. this.state.currentMemberStatusSearch = undefined;
  1866. this.state.lvlSearch = undefined;
  1867. this.state.listedSearch = undefined;
  1868. this.state.highTechZoneSearch = undefined;
  1869. this.state.releaseDate[0] = undefined;
  1870. this.state.releaseDate[1] = undefined;
  1871. this.state.societyTagSearch = undefined;
  1872. this.sanhuLoadData21();
  1873. },
  1874. //把搜索的部分置零
  1875. reset() {
  1876. this.state.sendType = undefined;//组织类型清零
  1877. this.loadData();
  1878. },
  1879. //服务项目搜索列表清零
  1880. xiangmuReset() {
  1881. this.state.bname = '';//项目名称清零
  1882. this.state.cid = undefined;//品类名称清零
  1883. this.state.ressSearch= undefined;//省市区清零
  1884. this.state.activityFlag = undefined;//活动生效清零
  1885. this.state.status = undefined;//项目状态清零
  1886. this.xiangmuLoadData();
  1887. },
  1888. chengguoReset1(){
  1889. this.state.serialNumber = undefined;
  1890. this.state.name = undefined;
  1891. this.state.keyword = undefined;
  1892. this.state.category = undefined;
  1893. this.state.ownerType = undefined;
  1894. this.state.releaseStatus = undefined;
  1895. this.state.auditStatus = undefined;
  1896. this.state.searchName = undefined;
  1897. this.state.releaseDate = [];
  1898. this.state.boutique = '';
  1899. this.state.hot='' ;
  1900. this.chengguoLoadData1();
  1901. },
  1902. chengguoReset2(){
  1903. this.state.serialNumber = undefined;
  1904. this.state.name = undefined;
  1905. this.state.keyword = undefined;
  1906. this.state.category = undefined;
  1907. this.state.ownerType = undefined;
  1908. this.state.releaseStatus = undefined;
  1909. this.state.auditStatus = undefined;
  1910. this.state.searchName = undefined;
  1911. this.state.releaseDate = [];
  1912. this.state.boutique = '';
  1913. this.state.hot='' ;
  1914. this.chengguoLoadData2();
  1915. },
  1916. xuqiuReset1(){
  1917. this.state.serialNumber = undefined;
  1918. this.state.name = undefined;
  1919. this.state.keyword = undefined;
  1920. this.state.infoSources = undefined;
  1921. this.state.demandType = undefined;
  1922. this.state.searchName = undefined;
  1923. this.state.searchType = 0;
  1924. this.state.boutique = '';
  1925. this.state.hot='' ;
  1926. this.state.status = undefined;
  1927. this.state.releaseStatus = undefined;
  1928. this.state.auditStatus = undefined;
  1929. this.state.validityPeriodDate = [];
  1930. this.state.releaseDate = [];
  1931. this.xuqiuLoadData1();
  1932. },
  1933. xuqiuReset2(){
  1934. this.state.serialNumber = undefined;
  1935. this.state.name = undefined;
  1936. this.state.keyword = undefined;
  1937. this.state.infoSources = undefined;
  1938. this.state.demandType = undefined;
  1939. this.state.searchName = undefined;
  1940. this.state.searchType = 0;
  1941. this.state.boutique = '';
  1942. this.state.hot='' ;
  1943. this.state.status = undefined;
  1944. this.state.releaseStatus = undefined;
  1945. this.state.auditStatus = undefined;
  1946. this.state.validityPeriodDate = [];
  1947. this.state.releaseDate = [];
  1948. this.xuqiuLoadData2();
  1949. },
  1950. zhuanjiaReset(){
  1951. this.state.nameSearch = '';
  1952. this.state.internationalSearch = undefined;
  1953. this.zhuanjiaLoadData();
  1954. },
  1955. zhengceReset(){
  1956. this.state.name= '';
  1957. this.zhengceLoadData();
  1958. },
  1959. searchSwitch() {
  1960. this.setState({
  1961. searchMore: !this.state.searchMore
  1962. });
  1963. },
  1964. //选择发送对象时的数据处理
  1965. //指定对象清零
  1966. objectReset(){
  1967. this.state.sanhu=undefined;
  1968. this.state.sanhu21=undefined;
  1969. this.state.yonghu=undefined;
  1970. this.state.juese=undefined;
  1971. this.state.shehui=undefined;
  1972. this.state.diqu=undefined;
  1973. this.state.fengongsi=undefined;
  1974. this.state.hangye=undefined;
  1975. },
  1976. rowReset(){
  1977. this.state.selectedRowKeys=[];
  1978. },
  1979. rowReset1(){
  1980. this.state.selectedRowKeys=[];
  1981. },
  1982. //散户
  1983. sanhuSubmit(e){
  1984. e.preventDefault();
  1985. this.objectReset();
  1986. this.setState({
  1987. sanhu:this.state.selectedRowKeys
  1988. });
  1989. this.rowReset();
  1990. this.handleCancel1();
  1991. },
  1992. sanhuSubmit21(e){
  1993. e.preventDefault();
  1994. this.objectReset();
  1995. this.setState({
  1996. sanhu21:this.state.selectedRowKeys
  1997. });
  1998. this.rowReset();
  1999. this.handleCancel21();
  2000. },
  2001. //社会属性
  2002. shehuiSubmit(e){
  2003. e.preventDefault();
  2004. this.setState({
  2005. shehui:this.state.shehui
  2006. });
  2007. this.handleCancel2();
  2008. },
  2009. //分公司
  2010. fengongsiSubmit(e){
  2011. e.preventDefault();
  2012. this.objectReset();
  2013. this.setState({
  2014. fengongsi:this.state.selectedRowKeys
  2015. });
  2016. this.rowReset();
  2017. this.handleCancel3();
  2018. },
  2019. //地区
  2020. diquSubmit(e){
  2021. e.preventDefault();
  2022. this.objectReset();
  2023. this.setState({
  2024. diqu:this.state.checkedKeys
  2025. });
  2026. this.handleCancel4();
  2027. },
  2028. //行业
  2029. hangyeSubmit(e){
  2030. e.preventDefault();
  2031. this.setState({
  2032. hangye:this.state.hangye
  2033. });
  2034. this.handleCancel5();
  2035. },
  2036. //消息重置
  2037. xiaoxiReset(){
  2038. this.state.xiaoxi=undefined;
  2039. },
  2040. //消息
  2041. xiaoxiSubmit(e){
  2042. e.preventDefault();
  2043. this.xiaoxiReset();
  2044. this.setState({
  2045. xiaoxi:this.state.selectedRowKeys
  2046. });
  2047. this.rowReset1();
  2048. this.handleCancel6();
  2049. this.handleCancel7();
  2050. this.handleCancel8();
  2051. this.handleCancel9();
  2052. this.handleCancel10();
  2053. this.handleCancel11();
  2054. this.handleCancel12();
  2055. },
  2056. render() {
  2057. const FormItem = Form.Item
  2058. const rowSelection = {
  2059. selectedRowKeys: this.state.selectedRowKeys,
  2060. onChange: (selectedRowKeys, selectedRows) => {
  2061. this.setState({
  2062. selectedRows: selectedRows.slice(-1),
  2063. selectedRowKeys: selectedRowKeys.slice(-1)
  2064. });
  2065. },
  2066. onSelect: (recordt, selected, selectedRows) => {
  2067. this.setState({
  2068. recordt:recordt.id
  2069. })
  2070. },
  2071. };
  2072. const rowSelections = {
  2073. selectedRowKeys: this.state.selectedRowKeys,
  2074. onChange: (selectedRowKeys, selectedRows) => {
  2075. this.setState({
  2076. selectedRows: selectedRows,
  2077. selectedRowKeys: selectedRowKeys
  2078. });
  2079. },
  2080. onSelect: (recordt, selected, selectedRows) => {
  2081. this.setState({
  2082. recordt:recordt.id
  2083. })
  2084. },
  2085. };
  2086. const rowSelectiones = {
  2087. selectedRowKeys: this.state.selectedRowKeys,
  2088. onChange: (selectedRowKeys, selectedRows) => {
  2089. this.setState({
  2090. selectedRows: selectedRows,
  2091. selectedRowKeys: selectedRowKeys
  2092. });
  2093. },
  2094. onSelect: (recordt, selected, selectedRows) => {
  2095. this.setState({
  2096. recordt:recordt.id
  2097. })
  2098. },
  2099. };
  2100. const formItemLayout = {
  2101. labelCol: { span: 8 },
  2102. wrapperCol: { span: 14 },
  2103. };
  2104. const { getFieldDecorator } = this.props.form;
  2105. const hasSelected = this.state.selectedRowKeys.length > 0;
  2106. const { RangePicker } = DatePicker;
  2107. const dataSources=this.state.customerArr || [];
  2108. const options = dataSources.map((group,index) =>
  2109. <Option key={index} value={group.name}>{group.name}</Option>
  2110. )
  2111. return (
  2112. <div className="user-content" >
  2113. <div className="content-title">
  2114. <div className="user-search">
  2115. <Button type="primary" className="addButton" onClick={this.addClick}>创建技淘智推<Icon type="plus" /></Button>
  2116. <div style={!this.state.bianjiMore ? { display: 'none',float:'right',marginRight:'10px'} : {display: 'inline-block',float:'right',marginRight:'10px',marginTop:'10px'}}>
  2117. <Popconfirm title="是否删除?" onConfirm={this.delectRow} okText="是" cancelText="否">
  2118. <Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px',float:'right'}}
  2119. disabled={!hasSelected}
  2120. >删除<Icon type="minus" />
  2121. </Button>
  2122. </Popconfirm>
  2123. </div>
  2124. </div>
  2125. <div className="clearfix" style={{marginTop:'-30px',marginLeft:'20px'}}>
  2126. <Tabs onChange={this.callback} type="card" activeKey={this.state.callnub} style={{paddingLeft:'15px',paddingRight:'15px',marginRight:'20px'}}>
  2127. <TabPane tab="已发送" key="0" ></TabPane>
  2128. <TabPane tab="未发送" key="1"></TabPane>
  2129. </Tabs>
  2130. </div>
  2131. <div className="patent-table">
  2132. <Spin spinning={this.state.loading}>
  2133. <Table columns={this.state.columns}
  2134. dataSource={this.state.dataSource}
  2135. rowSelection={rowSelection}
  2136. pagination={this.state.pagination}
  2137. onRowClick={this.tableRowClick} />
  2138. </Spin>
  2139. </div>
  2140. <div className="patent-desc">
  2141. <Modal maskClosable={false} visible={this.state.visible}
  2142. onOk={this.checkPatentProcess} onCancel={this.handleCancel}
  2143. width='600px'
  2144. title='新建技淘智推'
  2145. footer=''
  2146. className="admin-desc-content">
  2147. <Form horizontal onSubmit={this.add} id="add-form">
  2148. <Spin spinning={this.state.loading}>
  2149. <div className="clearfix">
  2150. <FormItem
  2151. labelCol={{ span: 4 }}
  2152. wrapperCol={{ span: 18 }}
  2153. label="推荐内容"
  2154. >
  2155. <Select placeholder="推荐内容" value={this.state.addContent}
  2156. onSelect={this.selectContent} onChange={this.changeContent} style={{width:'95%'}} required="required">
  2157. {
  2158. featuredContent.map(function(item) {
  2159. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2160. })
  2161. }
  2162. </Select>
  2163. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  2164. </FormItem>
  2165. </div>
  2166. <div className="clearfix">
  2167. <FormItem
  2168. labelCol={{ span: 4 }}
  2169. wrapperCol={{ span: 18 }}
  2170. label="指定发送对象"
  2171. >
  2172. <Select placeholder="指定发送对象" value={this.state.addObject}
  2173. onSelect={this.selectObjects} onChange={this.changeObjects} style={{width:'95%'}} required="required">
  2174. {
  2175. designatedObjectes.map(function(item) {
  2176. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2177. })
  2178. }
  2179. </Select>
  2180. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  2181. </FormItem>
  2182. </div>
  2183. <FormItem wrapperCol={{ span: 18, offset: 5 }}>
  2184. <Button className="set-submit" type="primary" htmlType="submit">发送</Button>
  2185. <Button className="set-submit" type="ghost" onClick={this.adds} style={{marginLeft:'10px'}}>存为草稿</Button>
  2186. <Button className="set-submit" type="ghost" onClick={this.handleCancel} style={{marginLeft:'10px'}}>取消</Button>
  2187. </FormItem>
  2188. </Spin>
  2189. </Form >
  2190. </Modal>
  2191. </div>
  2192. <div className="patent-desc">
  2193. <Modal maskClosable={false} visible={this.state.visible6}
  2194. onOk={this.checkPatentProcess} onCancel={this.handleCancel6}
  2195. width='1200px'
  2196. title='服务项目列表'
  2197. footer=''
  2198. className="admin-desc-content">
  2199. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2200. <Spin spinning={this.state.loading}>
  2201. <div className="user-search">
  2202. <Input placeholder="业务项目名称" style={{width:'130px',marginRight:'10px',marginBottom:'10px'}}
  2203. value={this.state.bname}
  2204. onChange={(e) => { this.setState({ bname: e.target.value }); }} />
  2205. <Cascader options={provinceSelect()} value={this.state.ressSearch} placeholder="选择省份" style={{width:'130px',marginRight:'10px'}}
  2206. onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
  2207. <Cascader options={citySelect()} value={this.state.ressSearch} placeholder="选择城市" style={{width:'130px',marginRight:'10px'}}
  2208. onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
  2209. <Cascader options={areaSelect()} value={this.state.ressSearch} placeholder="选择地区" style={{width:'130px',marginRight:'10px'}}
  2210. onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
  2211. <Select placeholder="活动生效标识"
  2212. style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2213. value={this.state.activityFlag}
  2214. onChange={(e) => { this.setState({ activityFlag: e }) }}>
  2215. <Select.Option value="0" >有效</Select.Option>
  2216. <Select.Option value="1" >无效</Select.Option>
  2217. </Select>
  2218. <Select placeholder="项目状态"
  2219. style={{width:'100px',marginRight:'10px'}}
  2220. value={this.state.status}
  2221. onChange={(e) => { this.setState({ status: e }) }}>
  2222. <Select.Option value="0" >正常</Select.Option>
  2223. <Select.Option value="1" >停用</Select.Option>
  2224. </Select>
  2225. <Button type="primary" onClick={this.xiangmusearch} style={{marginRight:'10px'}}>搜索</Button>
  2226. <Button onClick={this.xiangmuReset} style={{marginRight:'10px'}}>重置</Button>
  2227. </div>
  2228. <div className="foster-table">
  2229. <Spin spinning={this.state.loading}>
  2230. <Table columns={this.state.xiangmuColumns}
  2231. dataSource={this.state.xiangmuDataSource}
  2232. rowSelection={rowSelectiones}
  2233. pagination={this.state.pagination2}
  2234. onRowClick={this.tableRowClick} />
  2235. </Spin>
  2236. </div>
  2237. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2238. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2239. <Button className="set-submit" type="ghost" onClick={this.handleCancel6} style={{marginLeft:'100px'}}>取消</Button>
  2240. </FormItem>
  2241. </Spin>
  2242. </Form >
  2243. </Modal>
  2244. </div>
  2245. <div className="patent-desc">
  2246. <Modal maskClosable={false} visible={this.state.visible7}
  2247. onOk={this.checkPatentProcess} onCancel={this.handleCancel7}
  2248. width='800px'
  2249. title='科技成果(组织)列表'
  2250. footer=''
  2251. className="admin-desc-content">
  2252. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2253. <Spin spinning={this.state.loading}>
  2254. <div className="user-search">
  2255. <Input placeholder="名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2256. value={this.state.name}
  2257. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2258. <Input placeholder="关键字" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2259. value={this.state.keyword}
  2260. onChange={(e) => { this.setState({ keyword: e.target.value }); }} />
  2261. <Input placeholder="所有人名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2262. value={this.state.searchName}
  2263. onChange={(e) => { this.setState({ searchName: e.target.value }); }} />
  2264. <Radio.Group value={this.state.boutique} onChange={(e) => {
  2265. this.setState({ boutique: e.target.value })
  2266. }}>
  2267. <Radio value={1}>精品</Radio>
  2268. <Radio value={0}>非精品</Radio>
  2269. </Radio.Group>
  2270. <Button type="primary" onClick={this.chengguoSearch1} style={{marginRight:'10px'}}>搜索</Button>
  2271. <Button onClick={this.chengguoReset1} style={{marginRight:'10px'}}>重置</Button>
  2272. </div>
  2273. <div className="foster-table">
  2274. <Spin spinning={this.state.loading}>
  2275. <Table columns={this.state.chengguoColumns1}
  2276. dataSource={this.state.chengguoDataSource1}
  2277. rowSelection={rowSelectiones}
  2278. pagination={this.state.pagination4}
  2279. onRowClick={this.tableRowClick} />
  2280. </Spin>
  2281. </div>
  2282. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2283. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2284. <Button className="set-submit" type="ghost" onClick={this.handleCancel7} style={{marginLeft:'100px'}}>取消</Button>
  2285. </FormItem>
  2286. </Spin>
  2287. </Form >
  2288. </Modal>
  2289. </div>
  2290. <div className="patent-desc">
  2291. <Modal maskClosable={false} visible={this.state.visible8}
  2292. onOk={this.checkPatentProcess} onCancel={this.handleCancel8}
  2293. width='800px'
  2294. title='科技成果(个人)列表'
  2295. footer=''
  2296. className="admin-desc-content">
  2297. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2298. <Spin spinning={this.state.loading}>
  2299. <div className="user-search">
  2300. <Input placeholder="名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2301. value={this.state.name}
  2302. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2303. <Input placeholder="关键字" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2304. value={this.state.keyword}
  2305. onChange={(e) => { this.setState({ keyword: e.target.value }); }} />
  2306. <Input placeholder="所有人名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2307. value={this.state.searchName}
  2308. onChange={(e) => { this.setState({ searchName: e.target.value }); }} />
  2309. <Radio.Group value={this.state.boutique} onChange={(e) => {
  2310. this.setState({ boutique: e.target.value })
  2311. }}>
  2312. <Radio value={1}>精品</Radio>
  2313. <Radio value={0}>非精品</Radio>
  2314. </Radio.Group>
  2315. <Button type="primary" onClick={this.chengguoSearch2} style={{marginRight:'10px'}}>搜索</Button>
  2316. <Button onClick={this.chengguoReset2} style={{marginRight:'10px'}}>重置</Button>
  2317. </div>
  2318. <div className="foster-table">
  2319. <Spin spinning={this.state.loading}>
  2320. <Table columns={this.state.chengguoColumns2}
  2321. dataSource={this.state.chengguoDataSource2}
  2322. rowSelection={rowSelectiones}
  2323. pagination={this.state.pagination3}
  2324. onRowClick={this.tableRowClick} />
  2325. </Spin>
  2326. </div>
  2327. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2328. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2329. <Button className="set-submit" type="ghost" onClick={this.handleCancel8} style={{marginLeft:'100px'}}>取消</Button>
  2330. </FormItem>
  2331. </Spin>
  2332. </Form >
  2333. </Modal>
  2334. </div>
  2335. <div className="patent-desc">
  2336. <Modal maskClosable={false} visible={this.state.visible9}
  2337. onOk={this.checkPatentProcess} onCancel={this.handleCancel9}
  2338. width='1200px'
  2339. title='科技需求(组织)列表'
  2340. footer=''
  2341. className="admin-desc-content">
  2342. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2343. <Spin spinning={this.state.loading}>
  2344. <div className="user-search">
  2345. <Input placeholder="需求名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2346. value={this.state.name}
  2347. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2348. <Input placeholder="关键字" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2349. value={this.state.keyword}
  2350. onChange={(e) => { this.setState({ keyword: e.target.value }); }} />
  2351. <Select placeholder="选择需求类型" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2352. value={this.state.demandType}
  2353. onChange={(e) => { this.setState({ demandType: e }) }}>
  2354. {this.state.demandTypeOption}
  2355. </Select>
  2356. <Radio.Group value={this.state.boutique} onChange={(e) => {
  2357. this.setState({ boutique: e.target.value })
  2358. }}>
  2359. <Radio value={1}>精品</Radio>
  2360. <Radio value={0}>非精品</Radio>
  2361. </Radio.Group>
  2362. <Button type="primary" onClick={this.xuqiuSearch1} style={{marginRight:'10px'}}>搜索</Button>
  2363. <Button onClick={this.xuqiuReset1} style={{marginRight:'10px'}}>重置</Button>
  2364. </div>
  2365. <div className="foster-table">
  2366. <Spin spinning={this.state.loading}>
  2367. <Table columns={this.state.xuqiuColumns1}
  2368. dataSource={this.state.xuqiuDataSource1}
  2369. rowSelection={rowSelectiones}
  2370. pagination={this.state.pagination6}
  2371. onRowClick={this.tableRowClick} />
  2372. </Spin>
  2373. </div>
  2374. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2375. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2376. <Button className="set-submit" type="ghost" onClick={this.handleCancel9} style={{marginLeft:'100px'}}>取消</Button>
  2377. </FormItem>
  2378. </Spin>
  2379. </Form >
  2380. </Modal>
  2381. </div>
  2382. <div className="patent-desc">
  2383. <Modal maskClosable={false} visible={this.state.visible10}
  2384. onOk={this.checkPatentProcess} onCancel={this.handleCancel10}
  2385. width='800px'
  2386. title='科技需求(个人)列表'
  2387. footer=''
  2388. className="admin-desc-content">
  2389. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2390. <Spin spinning={this.state.loading}>
  2391. <div className="user-search">
  2392. <Input placeholder="需求名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2393. value={this.state.name}
  2394. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2395. <Input placeholder="关键字" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2396. value={this.state.keyword}
  2397. onChange={(e) => { this.setState({ keyword: e.target.value }); }} />
  2398. <Select placeholder="选择需求类型" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2399. value={this.state.demandType}
  2400. onChange={(e) => { this.setState({ demandType: e }) }}>
  2401. {this.state.demandTypeOption}
  2402. </Select>
  2403. <Radio.Group value={this.state.boutique} onChange={(e) => {
  2404. this.setState({ boutique: e.target.value })
  2405. }}>
  2406. <Radio value={1}>精品</Radio>
  2407. <Radio value={0}>非精品</Radio>
  2408. </Radio.Group>
  2409. <Button type="primary" onClick={this.xuqiuSearch2} style={{marginRight:'10px'}}>搜索</Button>
  2410. <Button onClick={this.xuqiuReset2} style={{marginRight:'10px'}}>重置</Button>
  2411. </div>
  2412. <div className="foster-table">
  2413. <Spin spinning={this.state.loading}>
  2414. <Table columns={this.state.xuqiuColumns2}
  2415. dataSource={this.state.xuqiuDataSource2}
  2416. rowSelection={rowSelectiones}
  2417. pagination={this.state.pagination5}
  2418. onRowClick={this.tableRowClick} />
  2419. </Spin>
  2420. </div>
  2421. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2422. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2423. <Button className="set-submit" type="ghost" onClick={this.handleCancel10} style={{marginLeft:'100px'}}>取消</Button>
  2424. </FormItem>
  2425. </Spin>
  2426. </Form >
  2427. </Modal>
  2428. </div>
  2429. <div className="patent-desc">
  2430. <Modal maskClosable={false} visible={this.state.visible11}
  2431. onOk={this.checkPatentProcess} onCancel={this.handleCancel11}
  2432. width='1200px'
  2433. title='专家列表'
  2434. footer=''
  2435. className="admin-desc-content">
  2436. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2437. <Spin spinning={this.state.loading}>
  2438. <div className="user-search">
  2439. <Input placeholder="名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2440. value={this.state.nameSearch}
  2441. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  2442. <Select placeholder="国际" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2443. value={this.state.internationalSearch}
  2444. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2445. <Select.Option value="0" >否</Select.Option>
  2446. <Select.Option value="1" >是</Select.Option>
  2447. </Select>
  2448. <Button type="primary" onClick={this.zhuanjiaSearch} style={{marginRight:'10px'}}>搜索</Button>
  2449. <Button onClick={this.zhuanjiaReset} style={{marginRight:'10px'}}>重置</Button>
  2450. </div>
  2451. <div className="foster-table">
  2452. <Spin spinning={this.state.loading}>
  2453. <Table columns={this.state.zhuanjiaColumns}
  2454. dataSource={this.state.zhuanjiaDataSource}
  2455. rowSelection={rowSelectiones}
  2456. pagination={this.state.pagination7}
  2457. onRowClick={this.tableRowClick} />
  2458. </Spin>
  2459. </div>
  2460. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2461. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2462. <Button className="set-submit" type="ghost" onClick={this.handleCancel11} style={{marginLeft:'100px'}}>取消</Button>
  2463. </FormItem>
  2464. </Spin>
  2465. </Form >
  2466. </Modal>
  2467. </div>
  2468. <div className="patent-desc">
  2469. <Modal maskClosable={false} visible={this.state.visible12}
  2470. onOk={this.checkPatentProcess} onCancel={this.handleCancel12}
  2471. width='800px'
  2472. title='政策列表'
  2473. footer=''
  2474. className="admin-desc-content">
  2475. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2476. <Spin spinning={this.state.loading}>
  2477. <div className="user-search">
  2478. <Input placeholder="政策标题" style={{width:'150px',marginRight:'10px',marginBottom:'10px'}}
  2479. value={this.state.name}
  2480. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2481. <Button type="primary" onClick={this.zhengceSearch} style={{marginRight:'10px'}}>搜索</Button>
  2482. <Button onClick={this.zhengceReset} style={{marginRight:'10px'}}>重置</Button>
  2483. </div>
  2484. <div className="foster-table">
  2485. <Spin spinning={this.state.loading}>
  2486. <Table columns={this.state.zhengceColumns}
  2487. dataSource={this.state.zhengceDataSource}
  2488. rowSelection={rowSelectiones}
  2489. pagination={this.state.pagination8}
  2490. onRowClick={this.tableRowClick} />
  2491. </Spin>
  2492. </div>
  2493. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2494. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2495. <Button className="set-submit" type="ghost" onClick={this.handleCancel12} style={{marginLeft:'100px'}}>取消</Button>
  2496. </FormItem>
  2497. </Spin>
  2498. </Form >
  2499. </Modal>
  2500. </div>
  2501. <div className="patent-desc">
  2502. <Modal maskClosable={false} visible={this.state.visible1}
  2503. onOk={this.checkPatentProcess} onCancel={this.handleCancel1}
  2504. width='1500px'
  2505. title='个人客户'
  2506. footer=''
  2507. className="admin-desc-content">
  2508. <Form horizontal onSubmit={this.sanhuSubmit} id="add-form">
  2509. <Spin spinning={this.state.loading}>
  2510. <div className="user-search">
  2511. <Input placeholder="客户名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2512. value={this.state.nameSearch}
  2513. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  2514. <Select placeholder="账户状态"
  2515. style={{width:'100px',marginRight:'10px'}}
  2516. value={this.state.statusSearch}
  2517. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  2518. <Select.Option value="0" >正常</Select.Option>
  2519. <Select.Option value="2" >锁定</Select.Option>
  2520. </Select>
  2521. <Select placeholder="行业"
  2522. style={{width:'100px',marginRight:'10px'}}
  2523. value={this.state.industrySearch}
  2524. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  2525. {this.state.intentionalOption}
  2526. </Select>
  2527. <Select placeholder="业务认证"
  2528. style={{width:'100px',marginRight:'10px'}}
  2529. value={this.state.serviceCertificationSearch}
  2530. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  2531. <Select.Option value="0" >未认证</Select.Option>
  2532. <Select.Option value="1" >已认证</Select.Option>
  2533. </Select>
  2534. <Select placeholder="实名认证"
  2535. style={{width:'100px',marginRight:'10px'}}
  2536. value={this.state.userCertificationSearch}
  2537. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  2538. {
  2539. auditStatusL.map(function (item) {
  2540. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2541. })
  2542. }
  2543. </Select>
  2544. <Select placeholder="是否国际"
  2545. style={{width:'100px',marginRight:'10px'}}
  2546. value={this.state.internationalSearch}
  2547. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2548. <Select.Option value="0" >否</Select.Option>
  2549. <Select.Option value="1" >是</Select.Option>
  2550. </Select>
  2551. <Select placeholder="是否高新"
  2552. style={{width:'100px',marginRight:'10px'}}
  2553. value={this.state.highTechZoneSearch}
  2554. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  2555. <Select.Option value="0" >否</Select.Option>
  2556. <Select.Option value="1" >是</Select.Option>
  2557. </Select>
  2558. <Select placeholder="是否上市"
  2559. style={{width:'100px',marginRight:'10px'}}
  2560. value={this.state.listedSearch}
  2561. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  2562. <Select.Option value="0" >否</Select.Option>
  2563. <Select.Option value="1" >是</Select.Option>
  2564. </Select>
  2565. <Select placeholder="是否会员"
  2566. style={{width:'100px',marginRight:'10px'}}
  2567. value={this.state.isMemberSearch}
  2568. onChange={(e) => { this.setState({ isMemberSearch: e }) }}>
  2569. <Select.Option value="0" >否</Select.Option>
  2570. <Select.Option value="1" >是</Select.Option>
  2571. </Select>
  2572. <Select placeholder="会员等级"
  2573. style={{width:'100px',marginRight:'10px'}}
  2574. value={this.state.lvlSearch}
  2575. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2576. {this.state.lvlArrOption}
  2577. </Select>
  2578. <Select placeholder="会员状态"
  2579. style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2580. value={this.state.currentMemberStatusSearch}
  2581. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2582. {this.state.currentMemberArrOption}
  2583. </Select>
  2584. <Select placeholder="社会性质"
  2585. style={{width:'100px',marginRight:'10px'}}
  2586. value={this.state.societyTagSearch}
  2587. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  2588. {
  2589. socialAttribute.map(function (item) {
  2590. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2591. })
  2592. }
  2593. </Select>
  2594. <Button type="primary" onClick={this.sanhusearch} style={{marginRight:'10px'}}>搜索</Button>
  2595. <Button onClick={this.sanhuReset} style={{marginRight:'10px'}}>重置</Button>
  2596. </div>
  2597. <div className="foster-table">
  2598. <Spin spinning={this.state.loading}>
  2599. <Table columns={this.state.sanhuColumns}
  2600. dataSource={this.state.sanhuDataSource}
  2601. rowSelection={rowSelections}
  2602. pagination={this.state.pagination1}
  2603. onRowClick={this.tableRowClick} />
  2604. </Spin>
  2605. </div>
  2606. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2607. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2608. <Button className="set-submit" type="ghost" onClick={this.handleCancel1} style={{marginLeft:'100px'}}>取消</Button>
  2609. </FormItem>
  2610. </Spin>
  2611. </Form >
  2612. </Modal>
  2613. </div>
  2614. <div className="patent-desc">
  2615. <Modal maskClosable={false} visible={this.state.visible21}
  2616. onOk={this.checkPatentProcess} onCancel={this.handleCance21}
  2617. width='1500px'
  2618. title='单位客户'
  2619. footer=''
  2620. className="admin-desc-content">
  2621. <Form horizontal onSubmit={this.sanhuSubmit21} id="add-form">
  2622. <Spin spinning={this.state.loading}>
  2623. <div className="user-search">
  2624. <Input placeholder="客户名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2625. value={this.state.nameSearch}
  2626. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  2627. <Select placeholder="账户状态"
  2628. style={{width:'100px',marginRight:'10px'}}
  2629. value={this.state.statusSearch}
  2630. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  2631. <Select.Option value="0" >正常</Select.Option>
  2632. <Select.Option value="2" >锁定</Select.Option>
  2633. </Select>
  2634. <Select placeholder="行业"
  2635. style={{width:'100px',marginRight:'10px'}}
  2636. value={this.state.industrySearch}
  2637. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  2638. {this.state.intentionalOption}
  2639. </Select>
  2640. <Select placeholder="业务认证"
  2641. style={{width:'100px',marginRight:'10px'}}
  2642. value={this.state.serviceCertificationSearch}
  2643. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  2644. <Select.Option value="0" >未认证</Select.Option>
  2645. <Select.Option value="1" >已认证</Select.Option>
  2646. </Select>
  2647. <Select placeholder="实名认证"
  2648. style={{width:'100px',marginRight:'10px'}}
  2649. value={this.state.userCertificationSearch}
  2650. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  2651. {
  2652. auditStatusL.map(function (item) {
  2653. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2654. })
  2655. }
  2656. </Select>
  2657. <Select placeholder="是否国际"
  2658. style={{width:'100px',marginRight:'10px'}}
  2659. value={this.state.internationalSearch}
  2660. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2661. <Select.Option value="0" >否</Select.Option>
  2662. <Select.Option value="1" >是</Select.Option>
  2663. </Select>
  2664. <Select placeholder="是否高新"
  2665. style={{width:'100px',marginRight:'10px'}}
  2666. value={this.state.highTechZoneSearch}
  2667. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  2668. <Select.Option value="0" >否</Select.Option>
  2669. <Select.Option value="1" >是</Select.Option>
  2670. </Select>
  2671. <Select placeholder="是否上市"
  2672. style={{width:'100px',marginRight:'10px'}}
  2673. value={this.state.listedSearch}
  2674. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  2675. <Select.Option value="0" >否</Select.Option>
  2676. <Select.Option value="1" >是</Select.Option>
  2677. </Select>
  2678. <Select placeholder="是否会员"
  2679. style={{width:'100px',marginRight:'10px'}}
  2680. value={this.state.isMemberSearch}
  2681. onChange={(e) => { this.setState({ isMemberSearch: e }) }}>
  2682. <Select.Option value="0" >否</Select.Option>
  2683. <Select.Option value="1" >是</Select.Option>
  2684. </Select>
  2685. <Select placeholder="会员等级"
  2686. style={{width:'100px',marginRight:'10px'}}
  2687. value={this.state.lvlSearch}
  2688. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2689. {this.state.lvlArrOption}
  2690. </Select>
  2691. <Select placeholder="会员状态"
  2692. style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2693. value={this.state.currentMemberStatusSearch}
  2694. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2695. {this.state.currentMemberArrOption}
  2696. </Select>
  2697. <Select placeholder="社会性质"
  2698. style={{width:'100px',marginRight:'10px'}}
  2699. value={this.state.societyTagSearch}
  2700. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  2701. {
  2702. socialAttribute.map(function (item) {
  2703. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2704. })
  2705. }
  2706. </Select>
  2707. <Button type="primary" onClick={this.sanhusearch21} style={{marginRight:'10px'}}>搜索</Button>
  2708. <Button onClick={this.sanhuReset21} style={{marginRight:'10px'}}>重置</Button>
  2709. </div>
  2710. <div className="foster-table">
  2711. <Spin spinning={this.state.loading}>
  2712. <Table columns={this.state.sanhuColumns21}
  2713. dataSource={this.state.sanhuDataSource21}
  2714. rowSelection={rowSelections}
  2715. pagination={this.state.pagination21}
  2716. onRowClick={this.tableRowClick} />
  2717. </Spin>
  2718. </div>
  2719. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2720. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2721. <Button className="set-submit" type="ghost" onClick={this.handleCancel21} style={{marginLeft:'100px'}}>取消</Button>
  2722. </FormItem>
  2723. </Spin>
  2724. </Form >
  2725. </Modal>
  2726. </div>
  2727. <div className="patent-desc">
  2728. <Modal maskClosable={false} visible={this.state.visible2}
  2729. onOk={this.checkPatentProcess} onCancel={this.handleCancel2}
  2730. width='600px'
  2731. title='社会属性'
  2732. footer=''
  2733. className="admin-desc-content">
  2734. <Form horizontal onSubmit={this.shehuiSubmit} id="add-form">
  2735. <Spin spinning={this.state.loading}>
  2736. <FormItem
  2737. labelCol={{ span: 7 }}
  2738. wrapperCol={{ span: 12 }}
  2739. label="请选择社会属性"
  2740. >
  2741. <CheckboxGroup options={socialAttributeS} value={this.state.shehui} onChange={(e)=>{this.setState({shehui:e})}} />
  2742. </FormItem>
  2743. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2744. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2745. <Button className="set-submit" type="ghost" onClick={this.handleCancel2} style={{marginLeft:'100px'}}>取消</Button>
  2746. </FormItem>
  2747. </Spin>
  2748. </Form >
  2749. </Modal>
  2750. </div>
  2751. <div className="patent-desc">
  2752. <Modal maskClosable={false} visible={this.state.visible3}
  2753. onOk={this.checkPatentProcess} onCancel={this.handleCancel3}
  2754. width='1200px'
  2755. title='分公司列表'
  2756. footer=''
  2757. className="admin-desc-content">
  2758. <Form horizontal onSubmit={this.fengongsiSubmit} id="add-form">
  2759. <Spin spinning={this.state.loading}>
  2760. <div className="foster-table">
  2761. <Spin spinning={this.state.loading}>
  2762. <Table columns={this.state.fengongsiColumns}
  2763. dataSource={this.state.fengongsiDataSource}
  2764. rowSelection={rowSelections}
  2765. pagination={this.state.pagination1}
  2766. onRowClick={this.tableRowClick} />
  2767. </Spin>
  2768. </div>
  2769. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2770. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2771. <Button className="set-submit" type="ghost" onClick={this.handleCancel3} style={{marginLeft:'100px'}}>取消</Button>
  2772. </FormItem>
  2773. </Spin>
  2774. </Form >
  2775. </Modal>
  2776. </div>
  2777. <div className="patent-desc">
  2778. <Modal maskClosable={false} visible={this.state.visible4}
  2779. onOk={this.checkPatentProcess} onCancel={this.handleCancel4}
  2780. width='600px'
  2781. title='地区'
  2782. footer=''
  2783. className="admin-desc-content">
  2784. <Form horizontal onSubmit={this.diquSubmit} id="add-form">
  2785. <Spin spinning={this.state.loading}>
  2786. <div className="clearfix" style={{marginLeft:'90px'}}>
  2787. <Tree
  2788. checkable
  2789. onExpand={this.onExpand}
  2790. expandedKeys={this.state.expandedKeys}
  2791. autoExpandParent={this.state.autoExpandParent}
  2792. onCheck={this.onCheck}
  2793. checkedKeys={this.state.checkedKeys}
  2794. onSelect={this.onSelectDi}
  2795. selectedKeys={this.state.selectedKeys}
  2796. >
  2797. {this.renderTreeNodes(this.state.Interface)}
  2798. </Tree>
  2799. </div>
  2800. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2801. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2802. <Button className="set-submit" type="ghost" onClick={this.handleCancel4} style={{marginLeft:'100px'}}>取消</Button>
  2803. </FormItem>
  2804. </Spin>
  2805. </Form >
  2806. </Modal>
  2807. </div>
  2808. <div className="patent-desc">
  2809. <Modal maskClosable={false} visible={this.state.visible5}
  2810. onOk={this.checkPatentProcess} onCancel={this.handleCancel5}
  2811. width='600px'
  2812. title='行业'
  2813. footer=''
  2814. className="admin-desc-content">
  2815. <Form horizontal onSubmit={this.hangyeSubmit} id="add-form">
  2816. <Spin spinning={this.state.loading}>
  2817. <FormItem
  2818. labelCol={{ span: 7 }}
  2819. wrapperCol={{ span: 12 }}
  2820. label="请选择行业"
  2821. >
  2822. <CheckboxGroup options={industryS} value={this.state.hangye} onChange={(e)=>{this.setState({hangye:e})}} />
  2823. </FormItem>
  2824. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2825. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2826. <Button className="set-submit" type="ghost" onClick={this.handleCancel5} style={{marginLeft:'100px'}}>取消</Button>
  2827. </FormItem>
  2828. </Spin>
  2829. </Form >
  2830. </Modal>
  2831. </div>
  2832. </div>
  2833. </div>
  2834. );
  2835. }
  2836. }));
  2837. export default JitaoMessage;