jitaoMessage.jsx 120 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867
  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/listPrivatePersonalCustomer',
  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. showAdd: false,
  723. showDesc: false,
  724. expandedKeys: [],
  725. autoExpandParent: true,
  726. selectedKeys: [],
  727. searchMore: true,
  728. selectedRowKeys: [],
  729. selectedRows: [],
  730. loading: false,
  731. pagination: {
  732. defaultCurrent: 1,
  733. defaultPageSize: 10,
  734. showQuickJumper: true,
  735. pageSize: 10,
  736. onChange: function (page) {
  737. this.loadData(page,0);
  738. }.bind(this),
  739. showTotal: function (total) {
  740. return '共' + total + '条数据';
  741. }
  742. },
  743. pagination1: {
  744. defaultCurrent: 1,
  745. defaultPageSize: 10,
  746. showQuickJumper: true,
  747. pageSize: 10,
  748. onChange: function (page) {
  749. this.sanhuLoadData(page);
  750. }.bind(this),
  751. showTotal: function (total) {
  752. return '共' + total + '条数据';
  753. }
  754. },
  755. pagination21: {
  756. defaultCurrent: 1,
  757. defaultPageSize: 10,
  758. showQuickJumper: true,
  759. pageSize: 10,
  760. onChange: function (page) {
  761. this.sanhuLoadData21(page);
  762. }.bind(this),
  763. showTotal: function (total) {
  764. return '共' + total + '条数据';
  765. }
  766. },
  767. pagination2: {
  768. defaultCurrent: 1,
  769. defaultPageSize: 10,
  770. showQuickJumper: true,
  771. pageSize: 10,
  772. onChange: function (page) {
  773. this.xiangmuLoadData(page);
  774. }.bind(this),
  775. showTotal: function (total) {
  776. return '共' + total + '条数据';
  777. }
  778. },
  779. pagination3: {
  780. defaultCurrent: 1,
  781. defaultPageSize: 10,
  782. showQuickJumper: true,
  783. pageSize: 10,
  784. onChange: function (page) {
  785. this.chengguoLoadData2(page);
  786. }.bind(this),
  787. showTotal: function (total) {
  788. return '共' + total + '条数据';
  789. }
  790. },
  791. pagination4: {
  792. defaultCurrent: 1,
  793. defaultPageSize: 10,
  794. showQuickJumper: true,
  795. pageSize: 10,
  796. onChange: function (page) {
  797. this.chengguoLoadData1(page);
  798. }.bind(this),
  799. showTotal: function (total) {
  800. return '共' + total + '条数据';
  801. }
  802. },
  803. pagination5: {
  804. defaultCurrent: 1,
  805. defaultPageSize: 10,
  806. showQuickJumper: true,
  807. pageSize: 10,
  808. onChange: function (page) {
  809. this.xuqiuLoadData2(page);
  810. }.bind(this),
  811. showTotal: function (total) {
  812. return '共' + total + '条数据';
  813. }
  814. },
  815. pagination6: {
  816. defaultCurrent: 1,
  817. defaultPageSize: 10,
  818. showQuickJumper: true,
  819. pageSize: 10,
  820. onChange: function (page) {
  821. this.xuqiuLoadData1(page);
  822. }.bind(this),
  823. showTotal: function (total) {
  824. return '共' + total + '条数据';
  825. }
  826. },
  827. pagination7: {
  828. defaultCurrent: 1,
  829. defaultPageSize: 10,
  830. showQuickJumper: true,
  831. pageSize: 10,
  832. onChange: function (page) {
  833. this.zhuanjiaLoadData(page);
  834. }.bind(this),
  835. showTotal: function (total) {
  836. return '共' + total + '条数据';
  837. }
  838. },
  839. pagination8: {
  840. defaultCurrent: 1,
  841. defaultPageSize: 10,
  842. showQuickJumper: true,
  843. pageSize: 10,
  844. onChange: function (page) {
  845. this.zhengceLoadData(page);
  846. }.bind(this),
  847. showTotal: function (total) {
  848. return '共' + total + '条数据';
  849. }
  850. },
  851. columns: [
  852. {
  853. title: '消息时间',
  854. dataIndex: 'createTime',
  855. key: 'createTime',
  856. width:'150px',
  857. }, {
  858. title: '消息标题',
  859. dataIndex: 'title',
  860. key: 'title',
  861. width:'200px',
  862. },{
  863. title: '消息内容',
  864. dataIndex: 'body',
  865. key: 'body',
  866. },{
  867. title: '推送类型',
  868. dataIndex: 'resourceType',
  869. key: 'resourceType',
  870. width:'100px',
  871. render: text => { return getFeatured(text) }
  872. },{
  873. title: '发送目标',
  874. dataIndex: 'consumerType',
  875. key: 'consumerType',
  876. width:'100px',
  877. render: text => { return getDesignated(text) }
  878. }
  879. ],
  880. dataSource: [],
  881. sanhuColumns1: [
  882. {
  883. title: '编号',
  884. dataIndex: 'number',
  885. key: 'number'
  886. }, {
  887. title: '登录账号',
  888. dataIndex: 'mobile',
  889. key: 'mobile'
  890. }, {
  891. title: '名字',
  892. dataIndex: 'name',
  893. key: 'name'
  894. }, {
  895. title: '职位',
  896. dataIndex: 'position',
  897. key: 'position'
  898. },{
  899. title: '部门',
  900. dataIndex: 'departmentName',
  901. key: 'departmentName'
  902. }, {
  903. title: '上级管理员',
  904. dataIndex: 'superior',
  905. key: 'superior'
  906. }, {
  907. title: '邮箱',
  908. dataIndex: 'email',
  909. key: 'email'
  910. }, {
  911. title: '创建时间',
  912. dataIndex: 'createTimeFormattedDate',
  913. key: 'createTimeFormattedDate'
  914. }
  915. ],
  916. sanhuDataSource1: [],
  917. sanhuColumns: [{
  918. title: '客户名称',
  919. dataIndex: 'name',
  920. key: 'name',
  921. }, {
  922. title: '客户类型',
  923. dataIndex: 'type',
  924. key: 'type',
  925. render: text => { return getcustomerTyp(text) }
  926. }, {
  927. title: '地区',
  928. dataIndex: 'locationProvince',
  929. key: 'locationProvince',
  930. }, {
  931. title: '联系人',
  932. dataIndex: 'contacts',
  933. key: 'contacts',
  934. },
  935. {
  936. title: '联系电话',
  937. dataIndex: 'contactMobile',
  938. key: 'contactMobile',
  939. },
  940. {
  941. title: '行业',
  942. dataIndex: 'industry',
  943. key: 'industry',
  944. },
  945. {
  946. title: '社会性质',
  947. dataIndex: 'societyTag',
  948. key: 'societyTag',
  949. render: text => { return getSocialAttribute(text) }
  950. },
  951. {
  952. title: '创建时间',
  953. dataIndex: 'createTime',
  954. key: 'createTime',
  955. },
  956. {
  957. title: '业务认证',
  958. dataIndex: 'businessAudit',
  959. key: 'businessAudit',
  960. render: text => { return getCertification(text) }
  961. },
  962. {
  963. title: '实名认证',
  964. dataIndex: 'auditStatus',
  965. key: 'auditStatus',
  966. render: text => { return getAuditStatus(text) }
  967. },
  968. {
  969. title: '是否高新',
  970. dataIndex: 'highTechZone',
  971. key: 'highTechZone',
  972. render: text => { return getWhether(text) }
  973. }, {
  974. title: '是否上市',
  975. dataIndex: 'listed',
  976. key: 'listed',
  977. render: text => { return getWhether(text) }
  978. },
  979. {
  980. title: '是否国际',
  981. dataIndex: 'international',
  982. key: 'international',
  983. render: text => { return getWhether(text) }
  984. },
  985. {
  986. title: '会员等级',
  987. dataIndex: 'lvl',
  988. key: 'lvl',
  989. render: text => { return getLvl(text) }
  990. },
  991. {
  992. title: '会员状态',
  993. dataIndex: 'currentMemberStatus',
  994. key: 'currentMemberStatus',
  995. render: text => { return getCurrentMember(text) }
  996. },
  997. {
  998. title: '账户状态',
  999. dataIndex: 'status',
  1000. key: 'status',
  1001. render: text => { return getStatuslist(text) }
  1002. }
  1003. ],
  1004. sanhuDataSource: [],
  1005. sanhuColumns21: [{
  1006. title: '客户名称',
  1007. dataIndex: 'name',
  1008. key: 'name',
  1009. }, {
  1010. title: '客户类型',
  1011. dataIndex: 'type',
  1012. key: 'type',
  1013. render: text => { return getcustomerTyp(text) }
  1014. }, {
  1015. title: '地区',
  1016. dataIndex: 'locationProvince',
  1017. key: 'locationProvince',
  1018. }, {
  1019. title: '联系人',
  1020. dataIndex: 'contacts',
  1021. key: 'contacts',
  1022. },
  1023. {
  1024. title: '联系电话',
  1025. dataIndex: 'contactMobile',
  1026. key: 'contactMobile',
  1027. },
  1028. {
  1029. title: '行业',
  1030. dataIndex: 'industry',
  1031. key: 'industry',
  1032. },
  1033. {
  1034. title: '社会性质',
  1035. dataIndex: 'societyTag',
  1036. key: 'societyTag',
  1037. render: text => { return getSocialAttribute(text) }
  1038. },
  1039. {
  1040. title: '创建时间',
  1041. dataIndex: 'createTime',
  1042. key: 'createTime',
  1043. },
  1044. {
  1045. title: '业务认证',
  1046. dataIndex: 'businessAudit',
  1047. key: 'businessAudit',
  1048. render: text => { return getCertification(text) }
  1049. },
  1050. {
  1051. title: '实名认证',
  1052. dataIndex: 'auditStatus',
  1053. key: 'auditStatus',
  1054. render: text => { return getAuditStatus(text) }
  1055. },
  1056. {
  1057. title: '是否高新',
  1058. dataIndex: 'highTechZone',
  1059. key: 'highTechZone',
  1060. render: text => { return getWhether(text) }
  1061. }, {
  1062. title: '是否上市',
  1063. dataIndex: 'listed',
  1064. key: 'listed',
  1065. render: text => { return getWhether(text) }
  1066. },
  1067. {
  1068. title: '是否国际',
  1069. dataIndex: 'international',
  1070. key: 'international',
  1071. render: text => { return getWhether(text) }
  1072. },
  1073. {
  1074. title: '会员等级',
  1075. dataIndex: 'lvl',
  1076. key: 'lvl',
  1077. render: text => { return getLvl(text) }
  1078. },
  1079. {
  1080. title: '会员状态',
  1081. dataIndex: 'currentMemberStatus',
  1082. key: 'currentMemberStatus',
  1083. render: text => { return getCurrentMember(text) }
  1084. },
  1085. {
  1086. title: '账户状态',
  1087. dataIndex: 'status',
  1088. key: 'status',
  1089. render: text => { return getStatuslist(text) }
  1090. }
  1091. ],
  1092. sanhuDataSource21: [],
  1093. fengongsiColumns: [
  1094. {
  1095. title: '组织编号',
  1096. dataIndex: 'depNo',
  1097. key: 'depNo',
  1098. }, {
  1099. title: '组织名称',
  1100. dataIndex: 'name',
  1101. key: 'name',
  1102. }, {
  1103. title: '负责人',
  1104. dataIndex: 'managerId',
  1105. key: 'managerId',
  1106. },{
  1107. title: '组织类型',
  1108. dataIndex: 'type',
  1109. key: 'type',
  1110. render: text => { return getPattern(text) }
  1111. }, {
  1112. title: '上级组织',
  1113. dataIndex: 'superId',
  1114. key: 'superId',
  1115. },{
  1116. title: '组织状态',
  1117. dataIndex: 'status',
  1118. key: 'status',
  1119. render: text => { return getCondition(text) }
  1120. }
  1121. ],
  1122. fengongsiDataSource: [],
  1123. xiangmuColumns: [
  1124. {
  1125. title: '项目名称',
  1126. dataIndex: 'bname',
  1127. key: 'bname',
  1128. }, {
  1129. title: '业务地区',
  1130. dataIndex: 'area',
  1131. key: 'area',
  1132. }, {
  1133. title: '市场价',
  1134. dataIndex: 'price',
  1135. key: 'price',
  1136. }, {
  1137. title: '最低折扣',
  1138. dataIndex: 'offset',
  1139. key: 'offset',
  1140. }, {
  1141. title: '会员价',
  1142. dataIndex: 'memberPrice',
  1143. key: 'memberPrice',
  1144. }, {
  1145. title: '活动价',
  1146. dataIndex: 'activityPrice',
  1147. key: 'activityPrice',
  1148. }, {
  1149. title: '活动生效标识',
  1150. dataIndex: 'activityFlag',
  1151. key: 'activityFlag',
  1152. render: text => { return getGameState(text) }
  1153. },{
  1154. title: '业务状态',
  1155. dataIndex: 'status',
  1156. key: 'status',
  1157. render: text => { return getCategoryState(text) }
  1158. }
  1159. ],
  1160. xiangmuDataSource: [],
  1161. chengguoColumns1: [
  1162. {
  1163. title: '名称',
  1164. dataIndex: 'name',
  1165. key: 'name',
  1166. }, {
  1167. title: '关键字',
  1168. dataIndex: 'keyword',
  1169. key: 'keyword',
  1170. }, {
  1171. title: '类型',
  1172. dataIndex: 'category',
  1173. key: 'category',
  1174. render: text => { return getAchievementCategory(text); }
  1175. }, {
  1176. title: '所有人名称',
  1177. dataIndex: 'theName',
  1178. key: 'theName',
  1179. },
  1180. {
  1181. title: '是否精品',
  1182. dataIndex: 'boutique',
  1183. key: 'boutique',
  1184. render: text => { return getboutique(text) }
  1185. },
  1186. {
  1187. title: '发布时间',
  1188. dataIndex: 'releaseDateFormattedDate',
  1189. key: 'releaseDateFormattedDate',
  1190. }
  1191. ],
  1192. chengguoDataSource1: [],
  1193. chengguoColumns2: [
  1194. {
  1195. title: '名称',
  1196. dataIndex: 'name',
  1197. key: 'name',
  1198. }, {
  1199. title: '关键字',
  1200. dataIndex: 'keyword',
  1201. key: 'keyword',
  1202. }, {
  1203. title: '类型',
  1204. dataIndex: 'category',
  1205. key: 'category',
  1206. render: text => { return getAchievementCategory(text); }
  1207. }, {
  1208. title: '所有人名称',
  1209. dataIndex: 'theName',
  1210. key: 'theName',
  1211. },
  1212. {
  1213. title: '是否精品',
  1214. dataIndex: 'boutique',
  1215. key: 'boutique',
  1216. render: text => { return getboutique(text) }
  1217. },
  1218. {
  1219. title: '发布时间',
  1220. dataIndex: 'releaseDateFormattedDate',
  1221. key: 'releaseDateFormattedDate',
  1222. }
  1223. ],
  1224. chengguoDataSource2: [],
  1225. xuqiuColumns1: [
  1226. {
  1227. title: '需求名称',
  1228. dataIndex: 'name',
  1229. key: 'name',
  1230. },
  1231. {
  1232. title: '关键字',
  1233. dataIndex: 'keyword',
  1234. key: 'keyword',
  1235. }, {
  1236. title: '需求类型',
  1237. dataIndex: 'demandType',
  1238. key: 'demandType',
  1239. render: text => { return getDemandType(text); }
  1240. }, {
  1241. title: '雇主名称',
  1242. dataIndex: 'theName',
  1243. key: 'theName',
  1244. },
  1245. {
  1246. title: '是否精品',
  1247. dataIndex: 'boutique',
  1248. key: 'boutique',
  1249. render: text => { return getboutique(text) }
  1250. }, {
  1251. title: '发布时间',
  1252. dataIndex: 'releaseDateFormattedDate',
  1253. key: 'releaseDateFormattedDate',
  1254. }
  1255. ],
  1256. xuqiuDataSource1: [],
  1257. xuqiuColumns2: [
  1258. {
  1259. title: '需求名称',
  1260. dataIndex: 'name',
  1261. key: 'name',
  1262. },
  1263. {
  1264. title: '关键字',
  1265. dataIndex: 'keyword',
  1266. key: 'keyword',
  1267. }, {
  1268. title: '需求类型',
  1269. dataIndex: 'demandType',
  1270. key: 'demandType',
  1271. render: text => { return getDemandType(text); }
  1272. }, {
  1273. title: '雇主名称',
  1274. dataIndex: 'theName',
  1275. key: 'theName',
  1276. },
  1277. {
  1278. title: '是否精品',
  1279. dataIndex: 'boutique',
  1280. key: 'boutique',
  1281. render: text => { return getboutique(text) }
  1282. }, {
  1283. title: '发布时间',
  1284. dataIndex: 'releaseDateFormattedDate',
  1285. key: 'releaseDateFormattedDate',
  1286. }
  1287. ],
  1288. xuqiuDataSource2: [],
  1289. zhuanjiaColumns: [{
  1290. title: '客户姓名',
  1291. dataIndex: 'name',
  1292. key: 'name',
  1293. },
  1294. {
  1295. title: '联系电话',
  1296. dataIndex: 'contactMobile',
  1297. key: 'contactMobile',
  1298. },
  1299. {
  1300. title: '行业',
  1301. dataIndex: 'industry',
  1302. key: 'industry',
  1303. },
  1304. {
  1305. title: '社会性质',
  1306. dataIndex: 'societyTag',
  1307. key: 'societyTag',
  1308. render: text => { return getSocialAttribute(text) }
  1309. },
  1310. {
  1311. title: '创建时间',
  1312. dataIndex: 'createTime',
  1313. key: 'createTime',
  1314. },
  1315. {
  1316. title: '实名认证',
  1317. dataIndex: 'auditStatus',
  1318. key: 'auditStatus',
  1319. render: text => { return getAuditStatus(text) }
  1320. },
  1321. {
  1322. title: '是否国际',
  1323. dataIndex: 'international',
  1324. key: 'international',
  1325. render: text => { return getWhether(text) }
  1326. },
  1327. {
  1328. title: '会员等级',
  1329. dataIndex: 'lvl',
  1330. key: 'lvl',
  1331. render: text => { return getLvl(text) }
  1332. }
  1333. ],
  1334. zhuanjiaDataSource: [],
  1335. zhengceColumns: [{
  1336. title: '政策标题',
  1337. dataIndex: 'title',
  1338. key: 'title',
  1339. },
  1340. {
  1341. title: '政策内容',
  1342. dataIndex: 'summary',
  1343. key: 'summary',
  1344. width:'400',
  1345. },
  1346. {
  1347. title: '时间',
  1348. dataIndex: 'time',
  1349. key: 'time',
  1350. width:'100px'
  1351. }
  1352. ],
  1353. zhengceDataSource: [],
  1354. };
  1355. },
  1356. componentWillMount() {
  1357. this.loadData(1,0);
  1358. },
  1359. //获取上级组织
  1360. selectSuperId() {
  1361. this.state.data = []
  1362. $.ajax({
  1363. method: "post",
  1364. dataType: "json",
  1365. crossDomain: false,
  1366. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1367. data:{
  1368. },
  1369. success: function (data) {
  1370. let theArr = [];
  1371. let thedata=data.data;
  1372. if (!thedata) {
  1373. if (data.error && data.error.length) {
  1374. message.warning(data.error[0].message);
  1375. };
  1376. thedata = {};
  1377. };
  1378. var contactIds=[];
  1379. //for (let item in data.data) {
  1380. for(var i=0;i<data.data.length;i++){
  1381. let theData = data.data[i];
  1382. theArr.push(
  1383. <Select.Option value={i.toString()} key={theData.name}>{theData.name}</Select.Option>
  1384. );
  1385. };
  1386. this.setState({
  1387. SuperArr:thedata,
  1388. contactsOption: theArr,
  1389. orderStatusOptions:data.data,
  1390. });
  1391. }.bind(this),
  1392. }).always(function () {
  1393. this.setState({
  1394. loading: false
  1395. });
  1396. }.bind(this));
  1397. },
  1398. //整行点击
  1399. bianji(record, index) {
  1400. this.state.RowData = record;
  1401. this.setState({
  1402. editvisible: true,
  1403. selectedRowKeys:[],
  1404. rowId:record.businessId,
  1405. })
  1406. let deletedIds ='';
  1407. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  1408. let rowItem = this.state.selectedRows[idx];
  1409. if (rowItem.id) {
  1410. deletedIds=rowItem.id;
  1411. };
  1412. };
  1413. $.ajax({
  1414. method: "post",
  1415. dataType: "json",
  1416. crossDomain: false,
  1417. url: globalConfig.context +"/api/admin/organization/selectAllById" ,
  1418. data: {
  1419. id:deletedIds
  1420. },
  1421. success: function (data) {
  1422. let theArr = [];
  1423. let thisdata = data;
  1424. if (!data) {
  1425. if (data.error && data.error.length) {
  1426. message.warning(data.error[0].message);
  1427. };
  1428. } else {
  1429. theArr.push({
  1430. editId: thisdata.id,//每一条记录的ID
  1431. editName:thisdata.name,//组织名称
  1432. editManagerId:thisdata.managerId,//负责人
  1433. editType:thisdata.type,//组织类型
  1434. editStatus:thisdata.status,//组织状态
  1435. editSuperId:thisdata.superId,//上级组织
  1436. editDepNo: thisdata.depNo,//组织编号
  1437. editCreateId:thisdata.createId,//创建人
  1438. editTime:thisdata.createTime,//创建时间
  1439. editRemarks:thisdata.remarks,//组织职能说明
  1440. });
  1441. };
  1442. this.setState({
  1443. editId: thisdata.id,//每一条记录的ID
  1444. editName:thisdata.name,//组织名称
  1445. editManagerId:thisdata.managerId,//负责人
  1446. editType:thisdata.type,//组织类型
  1447. editStatus:thisdata.status,//组织状态
  1448. editSuperId:thisdata.superId,//上级组织
  1449. editDepNo: thisdata.depNo,//组织编号
  1450. editCreateId:thisdata.createId,//创建人
  1451. editTime:thisdata.createTime,//创建时间
  1452. editRemarks: thisdata.remarks,//组织职能说明
  1453. editDataSource: theArr,
  1454. });
  1455. }.bind(this),
  1456. }).always(function () {
  1457. this.setState({
  1458. loading: false
  1459. });
  1460. }.bind(this));
  1461. },
  1462. //整行删除
  1463. delectRow() {
  1464. let deletedIds ='';
  1465. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  1466. let rowItem = this.state.selectedRows[idx];
  1467. if (rowItem.id) {
  1468. deletedIds=rowItem.id;
  1469. };
  1470. };
  1471. this.setState({
  1472. selectedRowKeys: [],
  1473. loading: deletedIds.length > 0
  1474. });
  1475. $.ajax({
  1476. method: "get",
  1477. dataType: "json",
  1478. crossDomain: false,
  1479. url: globalConfig.context + "/api/admin/message/deleteSystemMessage",
  1480. data: {
  1481. messageId: deletedIds
  1482. }
  1483. }).done(function (data) {
  1484. if (!data.error.length) {
  1485. message.success('删除成功!');
  1486. this.loadData(1,1);
  1487. this.setState({
  1488. loading: false,
  1489. });
  1490. } else {
  1491. message.warning(data.error[0].message);
  1492. };
  1493. }.bind(this));
  1494. },
  1495. //新增一条消息,保存
  1496. addhandleSubmit(e,addType){
  1497. e.preventDefault();
  1498. 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);
  1499. let xiaoxi=JSON.stringify(this.state.xiaoxi);
  1500. if(!xiaoxi){
  1501. message.warning('请输入消息内容');
  1502. return false;
  1503. }
  1504. if(!duixiang){
  1505. message.warning('请指定发送对象');
  1506. return false;
  1507. }
  1508. let diquText=this.state.diqu;
  1509. let pro=[];
  1510. let city=[];
  1511. let dis=[];
  1512. if(this.state.diqu){
  1513. for(var i=0;i<diquText.length;i++){
  1514. if(diquText[i]<=34){
  1515. pro.push(diquText[i])
  1516. }else if(diquText[i]>34&&diquText[i]<380){
  1517. city.push(diquText[i])
  1518. }else{
  1519. dis.push(diquText[i])
  1520. }
  1521. }
  1522. }else{
  1523. pro=undefined;
  1524. city=undefined;
  1525. dis=undefined;
  1526. }
  1527. let projectIds;
  1528. let organizationAchievementIds;
  1529. let personalAchievementIds;
  1530. let organizationDemandIds;
  1531. let personalDemandIds;
  1532. let expertIds;
  1533. let newsIds;
  1534. switch(this.state.addContent){
  1535. case '0':projectIds=this.state.xiaoxi.join(",");break;
  1536. case '12':organizationAchievementIds=this.state.xiaoxi.join(",");break;
  1537. case '11':personalAchievementIds=this.state.xiaoxi.join(",");break;
  1538. case '22':organizationDemandIds=this.state.xiaoxi.join(",");break;
  1539. case '21':personalDemandIds=this.state.xiaoxi.join(",");break;
  1540. case '3':expertIds=this.state.xiaoxi.join(",");break;
  1541. case '4':newsIds=this.state.xiaoxi.join(",");break;
  1542. }
  1543. this.props.form.validateFields((err, values) => {
  1544. if (!err) {
  1545. this.setState({
  1546. loading: true
  1547. });
  1548. $.ajax({
  1549. method: "post",
  1550. dataType: "json",
  1551. crossDomain: false,
  1552. url:globalConfig.context + '/api/admin/message/createRecommendMessage',
  1553. data:{
  1554. subject:'2',//表示是智推的消息
  1555. isDraft:addType,//点保存或者存为草稿
  1556. projectIds:projectIds,//服务项目
  1557. organizationAchievementIds:organizationAchievementIds,//组织成果
  1558. personalAchievementIds:personalAchievementIds,//个人成果
  1559. organizationDemandIds:organizationDemandIds,//组织需求
  1560. personalDemandIds:personalDemandIds,//个人需求
  1561. expertIds:expertIds,//专家
  1562. newsIds:newsIds,//政策
  1563. personalUserIds:this.state.sanhu?this.state.sanhu.join(","):undefined,//散户
  1564. organizationUserIds:this.state.sanhu21?this.state.sanhu21.join(","):undefined,//散户
  1565. societyTags:this.state.shehui?this.state.shehui.join(","):undefined,//社会属性
  1566. provinceIds:pro?pro.join(","):undefined,//省
  1567. cityIds:city?city.join(","):undefined,//市
  1568. areaIds:dis?dis.join(","):undefined,//区
  1569. industryIds:this.state.hangye?this.state.hangye.join(","):undefined,//行业
  1570. sourceType:this.state.addContent, //推荐资源类型
  1571. targetType:this.state.addObject, //推送目标类型
  1572. }
  1573. }).done(function (data) {
  1574. this.setState({
  1575. loading: false
  1576. });
  1577. if (!data.error.length) {
  1578. message.success('保存成功!');
  1579. this.handleCancel();
  1580. this.loadData(1,0);
  1581. } else {
  1582. message.warning(data.error[0].message);
  1583. }
  1584. }.bind(this));
  1585. }
  1586. });
  1587. },
  1588. add(e){
  1589. e.preventDefault();
  1590. this.addhandleSubmit(e,0);
  1591. },
  1592. adds(e){
  1593. e.preventDefault();
  1594. this.addhandleSubmit(e,1);
  1595. },
  1596. //详情tab切换数据处理
  1597. callback(e) {
  1598. this.setState({
  1599. callnub: e,
  1600. })
  1601. if(e == 0) {
  1602. this.setState({
  1603. bianjiMore: false,
  1604. selectedRowKeys:[],
  1605. })
  1606. this.loadData(1,0);
  1607. }
  1608. if(e == 1) {
  1609. this.setState({
  1610. bianjiMore: true,
  1611. selectedRowKeys:[],
  1612. })
  1613. this.loadData(1,1);
  1614. }
  1615. },
  1616. //切换创建系统消息中的发送内容
  1617. selectContent(e) {
  1618. this.setState({
  1619. addContent:e
  1620. })
  1621. if(e == 0) {
  1622. this.xiangmuLoadData();
  1623. this.setState({ visible6: true })
  1624. }
  1625. if(e == 12) {
  1626. this.chengguoLoadData1();
  1627. this.setState({ visible7: true })
  1628. }
  1629. if(e == 11) {
  1630. this.chengguoLoadData2();
  1631. this.setState({ visible8: true })
  1632. }
  1633. if(e == 22) {
  1634. this.xuqiuLoadData1();
  1635. this.setState({ visible9: true })
  1636. }
  1637. if(e == 21) {
  1638. this.xuqiuLoadData2();
  1639. this.setState({ visible10: true })
  1640. }
  1641. if(e == 3) {
  1642. this.zhuanjiaLoadData();
  1643. this.setState({ visible11: true })
  1644. }
  1645. if(e == 4) {
  1646. this.zhengceLoadData();
  1647. this.setState({ visible12: true })
  1648. }
  1649. this.xiaoxiReset();
  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.selectedRowKeys1=[];
  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.selectedRowKeys1
  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. selectedRowKeys1: this.state.selectedRowKeys,
  2088. onChange: (selectedRowKeys, selectedRows) => {
  2089. this.setState({
  2090. selectedRows: selectedRows,
  2091. selectedRowKeys1: 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='1000px'
  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='1000px'
  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='1000px'
  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;