jitaoMessage.jsx 119 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856
  1. import React from 'react';
  2. import ReactDom from 'react-dom';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import '../content.less';
  6. import { citySelect,provinceList,areaSelect,provinceSelect,addressList} from '../../../NewDicProvinceListAll';
  7. import { Form,Radio, Icon, Button, Input, Select, Spin, Table, Switch, message, DatePicker, Modal, Upload,Popconfirm,AutoComplete,Tabs,Checkbox,Tree,Cascader} from 'antd';
  8. import {patternOrganization,conditionOrganization,intentionalService,messageType,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. }, {
  857. title: '消息标题',
  858. dataIndex: 'title',
  859. key: 'title',
  860. },{
  861. title: '消息内容',
  862. dataIndex: 'body',
  863. key: 'body',
  864. },{
  865. title: '推送类型',
  866. dataIndex: 'resourceType',
  867. key: 'resourceType',
  868. render: text => { return getFeatured(text) }
  869. },{
  870. title: '发送目标',
  871. dataIndex: 'consumerType',
  872. key: 'consumerType',
  873. render: text => { return getDesignated(text) }
  874. }
  875. ],
  876. dataSource: [],
  877. sanhuColumns1: [
  878. {
  879. title: '编号',
  880. dataIndex: 'number',
  881. key: 'number'
  882. }, {
  883. title: '登录账号',
  884. dataIndex: 'mobile',
  885. key: 'mobile'
  886. }, {
  887. title: '名字',
  888. dataIndex: 'name',
  889. key: 'name'
  890. }, {
  891. title: '职位',
  892. dataIndex: 'position',
  893. key: 'position'
  894. },{
  895. title: '部门',
  896. dataIndex: 'departmentName',
  897. key: 'departmentName'
  898. }, {
  899. title: '上级管理员',
  900. dataIndex: 'superior',
  901. key: 'superior'
  902. }, {
  903. title: '邮箱',
  904. dataIndex: 'email',
  905. key: 'email'
  906. }, {
  907. title: '创建时间',
  908. dataIndex: 'createTimeFormattedDate',
  909. key: 'createTimeFormattedDate'
  910. }
  911. ],
  912. sanhuDataSource1: [],
  913. sanhuColumns: [{
  914. title: '客户名称',
  915. dataIndex: 'name',
  916. key: 'name',
  917. }, {
  918. title: '客户类型',
  919. dataIndex: 'type',
  920. key: 'type',
  921. render: text => { return getcustomerTyp(text) }
  922. }, {
  923. title: '地区',
  924. dataIndex: 'locationProvince',
  925. key: 'locationProvince',
  926. }, {
  927. title: '联系人',
  928. dataIndex: 'contacts',
  929. key: 'contacts',
  930. },
  931. {
  932. title: '联系电话',
  933. dataIndex: 'contactMobile',
  934. key: 'contactMobile',
  935. },
  936. {
  937. title: '行业',
  938. dataIndex: 'industry',
  939. key: 'industry',
  940. },
  941. {
  942. title: '社会性质',
  943. dataIndex: 'societyTag',
  944. key: 'societyTag',
  945. render: text => { return getSocialAttribute(text) }
  946. },
  947. {
  948. title: '创建时间',
  949. dataIndex: 'createTime',
  950. key: 'createTime',
  951. },
  952. {
  953. title: '业务认证',
  954. dataIndex: 'businessAudit',
  955. key: 'businessAudit',
  956. render: text => { return getCertification(text) }
  957. },
  958. {
  959. title: '实名认证',
  960. dataIndex: 'auditStatus',
  961. key: 'auditStatus',
  962. render: text => { return getAuditStatus(text) }
  963. },
  964. {
  965. title: '是否高新',
  966. dataIndex: 'highTechZone',
  967. key: 'highTechZone',
  968. render: text => { return getWhether(text) }
  969. }, {
  970. title: '是否上市',
  971. dataIndex: 'listed',
  972. key: 'listed',
  973. render: text => { return getWhether(text) }
  974. },
  975. {
  976. title: '是否国际',
  977. dataIndex: 'international',
  978. key: 'international',
  979. render: text => { return getWhether(text) }
  980. },
  981. {
  982. title: '会员等级',
  983. dataIndex: 'lvl',
  984. key: 'lvl',
  985. render: text => { return getLvl(text) }
  986. },
  987. {
  988. title: '会员状态',
  989. dataIndex: 'currentMemberStatus',
  990. key: 'currentMemberStatus',
  991. render: text => { return getCurrentMember(text) }
  992. },
  993. {
  994. title: '账户状态',
  995. dataIndex: 'status',
  996. key: 'status',
  997. render: text => { return getStatuslist(text) }
  998. }
  999. ],
  1000. sanhuDataSource: [],
  1001. sanhuColumns21: [{
  1002. title: '客户名称',
  1003. dataIndex: 'name',
  1004. key: 'name',
  1005. }, {
  1006. title: '客户类型',
  1007. dataIndex: 'type',
  1008. key: 'type',
  1009. render: text => { return getcustomerTyp(text) }
  1010. }, {
  1011. title: '地区',
  1012. dataIndex: 'locationProvince',
  1013. key: 'locationProvince',
  1014. }, {
  1015. title: '联系人',
  1016. dataIndex: 'contacts',
  1017. key: 'contacts',
  1018. },
  1019. {
  1020. title: '联系电话',
  1021. dataIndex: 'contactMobile',
  1022. key: 'contactMobile',
  1023. },
  1024. {
  1025. title: '行业',
  1026. dataIndex: 'industry',
  1027. key: 'industry',
  1028. },
  1029. {
  1030. title: '社会性质',
  1031. dataIndex: 'societyTag',
  1032. key: 'societyTag',
  1033. render: text => { return getSocialAttribute(text) }
  1034. },
  1035. {
  1036. title: '创建时间',
  1037. dataIndex: 'createTime',
  1038. key: 'createTime',
  1039. },
  1040. {
  1041. title: '业务认证',
  1042. dataIndex: 'businessAudit',
  1043. key: 'businessAudit',
  1044. render: text => { return getCertification(text) }
  1045. },
  1046. {
  1047. title: '实名认证',
  1048. dataIndex: 'auditStatus',
  1049. key: 'auditStatus',
  1050. render: text => { return getAuditStatus(text) }
  1051. },
  1052. {
  1053. title: '是否高新',
  1054. dataIndex: 'highTechZone',
  1055. key: 'highTechZone',
  1056. render: text => { return getWhether(text) }
  1057. }, {
  1058. title: '是否上市',
  1059. dataIndex: 'listed',
  1060. key: 'listed',
  1061. render: text => { return getWhether(text) }
  1062. },
  1063. {
  1064. title: '是否国际',
  1065. dataIndex: 'international',
  1066. key: 'international',
  1067. render: text => { return getWhether(text) }
  1068. },
  1069. {
  1070. title: '会员等级',
  1071. dataIndex: 'lvl',
  1072. key: 'lvl',
  1073. render: text => { return getLvl(text) }
  1074. },
  1075. {
  1076. title: '会员状态',
  1077. dataIndex: 'currentMemberStatus',
  1078. key: 'currentMemberStatus',
  1079. render: text => { return getCurrentMember(text) }
  1080. },
  1081. {
  1082. title: '账户状态',
  1083. dataIndex: 'status',
  1084. key: 'status',
  1085. render: text => { return getStatuslist(text) }
  1086. }
  1087. ],
  1088. sanhuDataSource21: [],
  1089. fengongsiColumns: [
  1090. {
  1091. title: '组织编号',
  1092. dataIndex: 'depNo',
  1093. key: 'depNo',
  1094. }, {
  1095. title: '组织名称',
  1096. dataIndex: 'name',
  1097. key: 'name',
  1098. }, {
  1099. title: '负责人',
  1100. dataIndex: 'managerId',
  1101. key: 'managerId',
  1102. },{
  1103. title: '组织类型',
  1104. dataIndex: 'type',
  1105. key: 'type',
  1106. render: text => { return getPattern(text) }
  1107. }, {
  1108. title: '上级组织',
  1109. dataIndex: 'superId',
  1110. key: 'superId',
  1111. },{
  1112. title: '组织状态',
  1113. dataIndex: 'status',
  1114. key: 'status',
  1115. render: text => { return getCondition(text) }
  1116. }
  1117. ],
  1118. fengongsiDataSource: [],
  1119. xiangmuColumns: [
  1120. {
  1121. title: '项目名称',
  1122. dataIndex: 'bname',
  1123. key: 'bname',
  1124. }, {
  1125. title: '业务地区',
  1126. dataIndex: 'area',
  1127. key: 'area',
  1128. }, {
  1129. title: '市场价',
  1130. dataIndex: 'price',
  1131. key: 'price',
  1132. }, {
  1133. title: '最低折扣',
  1134. dataIndex: 'offset',
  1135. key: 'offset',
  1136. }, {
  1137. title: '会员价',
  1138. dataIndex: 'memberPrice',
  1139. key: 'memberPrice',
  1140. }, {
  1141. title: '活动价',
  1142. dataIndex: 'activityPrice',
  1143. key: 'activityPrice',
  1144. }, {
  1145. title: '活动生效标识',
  1146. dataIndex: 'activityFlag',
  1147. key: 'activityFlag',
  1148. render: text => { return getGameState(text) }
  1149. },{
  1150. title: '业务状态',
  1151. dataIndex: 'status',
  1152. key: 'status',
  1153. render: text => { return getCategoryState(text) }
  1154. }
  1155. ],
  1156. xiangmuDataSource: [],
  1157. chengguoColumns1: [
  1158. {
  1159. title: '名称',
  1160. dataIndex: 'name',
  1161. key: 'name',
  1162. }, {
  1163. title: '关键字',
  1164. dataIndex: 'keyword',
  1165. key: 'keyword',
  1166. }, {
  1167. title: '类型',
  1168. dataIndex: 'category',
  1169. key: 'category',
  1170. render: text => { return getAchievementCategory(text); }
  1171. }, {
  1172. title: '所有人名称',
  1173. dataIndex: 'theName',
  1174. key: 'theName',
  1175. },
  1176. {
  1177. title: '是否精品',
  1178. dataIndex: 'boutique',
  1179. key: 'boutique',
  1180. render: text => { return getboutique(text) }
  1181. },
  1182. {
  1183. title: '发布时间',
  1184. dataIndex: 'releaseDateFormattedDate',
  1185. key: 'releaseDateFormattedDate',
  1186. }
  1187. ],
  1188. chengguoDataSource1: [],
  1189. chengguoColumns2: [
  1190. {
  1191. title: '名称',
  1192. dataIndex: 'name',
  1193. key: 'name',
  1194. }, {
  1195. title: '关键字',
  1196. dataIndex: 'keyword',
  1197. key: 'keyword',
  1198. }, {
  1199. title: '类型',
  1200. dataIndex: 'category',
  1201. key: 'category',
  1202. render: text => { return getAchievementCategory(text); }
  1203. }, {
  1204. title: '所有人名称',
  1205. dataIndex: 'theName',
  1206. key: 'theName',
  1207. },
  1208. {
  1209. title: '是否精品',
  1210. dataIndex: 'boutique',
  1211. key: 'boutique',
  1212. render: text => { return getboutique(text) }
  1213. },
  1214. {
  1215. title: '发布时间',
  1216. dataIndex: 'releaseDateFormattedDate',
  1217. key: 'releaseDateFormattedDate',
  1218. }
  1219. ],
  1220. chengguoDataSource2: [],
  1221. xuqiuColumns1: [
  1222. {
  1223. title: '需求名称',
  1224. dataIndex: 'name',
  1225. key: 'name',
  1226. },
  1227. {
  1228. title: '关键字',
  1229. dataIndex: 'keyword',
  1230. key: 'keyword',
  1231. }, {
  1232. title: '需求类型',
  1233. dataIndex: 'demandType',
  1234. key: 'demandType',
  1235. render: text => { return getDemandType(text); }
  1236. }, {
  1237. title: '雇主名称',
  1238. dataIndex: 'theName',
  1239. key: 'theName',
  1240. },
  1241. {
  1242. title: '是否精品',
  1243. dataIndex: 'boutique',
  1244. key: 'boutique',
  1245. render: text => { return getboutique(text) }
  1246. }, {
  1247. title: '发布时间',
  1248. dataIndex: 'releaseDateFormattedDate',
  1249. key: 'releaseDateFormattedDate',
  1250. }
  1251. ],
  1252. xuqiuDataSource1: [],
  1253. xuqiuColumns2: [
  1254. {
  1255. title: '需求名称',
  1256. dataIndex: 'name',
  1257. key: 'name',
  1258. },
  1259. {
  1260. title: '关键字',
  1261. dataIndex: 'keyword',
  1262. key: 'keyword',
  1263. }, {
  1264. title: '需求类型',
  1265. dataIndex: 'demandType',
  1266. key: 'demandType',
  1267. render: text => { return getDemandType(text); }
  1268. }, {
  1269. title: '雇主名称',
  1270. dataIndex: 'theName',
  1271. key: 'theName',
  1272. },
  1273. {
  1274. title: '是否精品',
  1275. dataIndex: 'boutique',
  1276. key: 'boutique',
  1277. render: text => { return getboutique(text) }
  1278. }, {
  1279. title: '发布时间',
  1280. dataIndex: 'releaseDateFormattedDate',
  1281. key: 'releaseDateFormattedDate',
  1282. }
  1283. ],
  1284. xuqiuDataSource2: [],
  1285. zhuanjiaColumns: [{
  1286. title: '客户姓名',
  1287. dataIndex: 'name',
  1288. key: 'name',
  1289. },
  1290. {
  1291. title: '联系电话',
  1292. dataIndex: 'contactMobile',
  1293. key: 'contactMobile',
  1294. },
  1295. {
  1296. title: '行业',
  1297. dataIndex: 'industry',
  1298. key: 'industry',
  1299. },
  1300. {
  1301. title: '社会性质',
  1302. dataIndex: 'societyTag',
  1303. key: 'societyTag',
  1304. render: text => { return getSocialAttribute(text) }
  1305. },
  1306. {
  1307. title: '创建时间',
  1308. dataIndex: 'createTime',
  1309. key: 'createTime',
  1310. },
  1311. {
  1312. title: '实名认证',
  1313. dataIndex: 'auditStatus',
  1314. key: 'auditStatus',
  1315. render: text => { return getAuditStatus(text) }
  1316. },
  1317. {
  1318. title: '是否国际',
  1319. dataIndex: 'international',
  1320. key: 'international',
  1321. render: text => { return getWhether(text) }
  1322. },
  1323. {
  1324. title: '会员等级',
  1325. dataIndex: 'lvl',
  1326. key: 'lvl',
  1327. render: text => { return getLvl(text) }
  1328. }
  1329. ],
  1330. zhuanjiaDataSource: [],
  1331. zhengceColumns: [{
  1332. title: '政策标题',
  1333. dataIndex: 'title',
  1334. key: 'title',
  1335. },
  1336. {
  1337. title: '政策内容',
  1338. dataIndex: 'summary',
  1339. key: 'summary',
  1340. width:'400',
  1341. },
  1342. {
  1343. title: '时间',
  1344. dataIndex: 'time',
  1345. key: 'time',
  1346. width:'100px'
  1347. }
  1348. ],
  1349. zhengceDataSource: [],
  1350. };
  1351. },
  1352. componentWillMount() {
  1353. this.loadData(1,0);
  1354. },
  1355. //获取上级组织
  1356. selectSuperId() {
  1357. this.state.data = []
  1358. $.ajax({
  1359. method: "post",
  1360. dataType: "json",
  1361. crossDomain: false,
  1362. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1363. data:{
  1364. },
  1365. success: function (data) {
  1366. let theArr = [];
  1367. let thedata=data.data;
  1368. if (!thedata) {
  1369. if (data.error && data.error.length) {
  1370. message.warning(data.error[0].message);
  1371. };
  1372. thedata = {};
  1373. };
  1374. var contactIds=[];
  1375. //for (let item in data.data) {
  1376. for(var i=0;i<data.data.length;i++){
  1377. let theData = data.data[i];
  1378. theArr.push(
  1379. <Select.Option value={i.toString()} key={theData.name}>{theData.name}</Select.Option>
  1380. );
  1381. };
  1382. this.setState({
  1383. SuperArr:thedata,
  1384. contactsOption: theArr,
  1385. orderStatusOptions:data.data,
  1386. });
  1387. }.bind(this),
  1388. }).always(function () {
  1389. this.setState({
  1390. loading: false
  1391. });
  1392. }.bind(this));
  1393. },
  1394. //整行点击
  1395. bianji(record, index) {
  1396. this.state.RowData = record;
  1397. this.setState({
  1398. editvisible: true,
  1399. selectedRowKeys:[],
  1400. rowId:record.businessId,
  1401. })
  1402. let deletedIds ='';
  1403. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  1404. let rowItem = this.state.selectedRows[idx];
  1405. if (rowItem.id) {
  1406. deletedIds=rowItem.id;
  1407. };
  1408. };
  1409. $.ajax({
  1410. method: "post",
  1411. dataType: "json",
  1412. crossDomain: false,
  1413. url: globalConfig.context +"/api/admin/organization/selectAllById" ,
  1414. data: {
  1415. id:deletedIds
  1416. },
  1417. success: function (data) {
  1418. let theArr = [];
  1419. let thisdata = data;
  1420. if (!data) {
  1421. if (data.error && data.error.length) {
  1422. message.warning(data.error[0].message);
  1423. };
  1424. } else {
  1425. theArr.push({
  1426. editId: thisdata.id,//每一条记录的ID
  1427. editName:thisdata.name,//组织名称
  1428. editManagerId:thisdata.managerId,//负责人
  1429. editType:thisdata.type,//组织类型
  1430. editStatus:thisdata.status,//组织状态
  1431. editSuperId:thisdata.superId,//上级组织
  1432. editDepNo: thisdata.depNo,//组织编号
  1433. editCreateId:thisdata.createId,//创建人
  1434. editTime:thisdata.createTime,//创建时间
  1435. editRemarks:thisdata.remarks,//组织职能说明
  1436. });
  1437. };
  1438. this.setState({
  1439. editId: thisdata.id,//每一条记录的ID
  1440. editName:thisdata.name,//组织名称
  1441. editManagerId:thisdata.managerId,//负责人
  1442. editType:thisdata.type,//组织类型
  1443. editStatus:thisdata.status,//组织状态
  1444. editSuperId:thisdata.superId,//上级组织
  1445. editDepNo: thisdata.depNo,//组织编号
  1446. editCreateId:thisdata.createId,//创建人
  1447. editTime:thisdata.createTime,//创建时间
  1448. editRemarks: thisdata.remarks,//组织职能说明
  1449. editDataSource: theArr,
  1450. });
  1451. }.bind(this),
  1452. }).always(function () {
  1453. this.setState({
  1454. loading: false
  1455. });
  1456. }.bind(this));
  1457. },
  1458. //整行删除
  1459. delectRow() {
  1460. let deletedIds ='';
  1461. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  1462. let rowItem = this.state.selectedRows[idx];
  1463. if (rowItem.id) {
  1464. deletedIds=rowItem.id;
  1465. };
  1466. };
  1467. this.setState({
  1468. selectedRowKeys: [],
  1469. loading: deletedIds.length > 0
  1470. });
  1471. $.ajax({
  1472. method: "get",
  1473. dataType: "json",
  1474. crossDomain: false,
  1475. url: globalConfig.context + "/api/admin/message/deleteSystemMessage",
  1476. data: {
  1477. messageId: deletedIds
  1478. }
  1479. }).done(function (data) {
  1480. if (!data.error.length) {
  1481. message.success('删除成功!');
  1482. this.loadData(1,1);
  1483. this.setState({
  1484. loading: false,
  1485. });
  1486. } else {
  1487. message.warning(data.error[0].message);
  1488. };
  1489. }.bind(this));
  1490. },
  1491. //新增一条消息,保存
  1492. addhandleSubmit(e,addType){
  1493. e.preventDefault();
  1494. 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);
  1495. let xiaoxi=JSON.stringify(this.state.xiaoxi);
  1496. if(!xiaoxi){
  1497. message.warning('请输入消息内容');
  1498. return false;
  1499. }
  1500. if(!duixiang){
  1501. message.warning('请指定发送对象');
  1502. return false;
  1503. }
  1504. let diquText=this.state.diqu;
  1505. let pro=[];
  1506. let city=[];
  1507. let dis=[];
  1508. if(this.state.diqu){
  1509. for(var i=0;i<diquText.length;i++){
  1510. if(diquText[i]<=34){
  1511. pro.push(diquText[i])
  1512. }else if(diquText[i]>34&&diquText[i]<380){
  1513. city.push(diquText[i])
  1514. }else{
  1515. dis.push(diquText[i])
  1516. }
  1517. }
  1518. }else{
  1519. pro=undefined;
  1520. city=undefined;
  1521. dis=undefined;
  1522. }
  1523. let projectIds;
  1524. let organizationAchievementIds;
  1525. let personalAchievementIds;
  1526. let organizationDemandIds;
  1527. let personalDemandIds;
  1528. let expertIds;
  1529. let newsIds;
  1530. switch(this.state.addContent){
  1531. case '0':projectIds=this.state.xiaoxi.join(",");break;
  1532. case '12':organizationAchievementIds=this.state.xiaoxi.join(",");break;
  1533. case '11':personalAchievementIds=this.state.xiaoxi.join(",");break;
  1534. case '22':organizationDemandIds=this.state.xiaoxi.join(",");break;
  1535. case '21':personalDemandIds=this.state.xiaoxi.join(",");break;
  1536. case '3':expertIds=this.state.xiaoxi.join(",");break;
  1537. case '4':newsIds=this.state.xiaoxi.join(",");break;
  1538. }
  1539. this.props.form.validateFields((err, values) => {
  1540. if (!err) {
  1541. this.setState({
  1542. loading: true
  1543. });
  1544. $.ajax({
  1545. method: "post",
  1546. dataType: "json",
  1547. crossDomain: false,
  1548. url:globalConfig.context + '/api/admin/message/createRecommendMessage',
  1549. data:{
  1550. subject:'2',//表示是智推的消息
  1551. isDraft:addType,//点保存或者存为草稿
  1552. projectIds:projectIds,//服务项目
  1553. organizationAchievementIds:organizationAchievementIds,//组织成果
  1554. personalAchievementIds:personalAchievementIds,//个人成果
  1555. organizationDemandIds:organizationDemandIds,//组织需求
  1556. personalDemandIds:personalDemandIds,//个人需求
  1557. expertIds:expertIds,//专家
  1558. newsIds:newsIds,//政策
  1559. personalUserIds:this.state.sanhu?this.state.sanhu.join(","):undefined,//散户
  1560. organizationUserIds:this.state.sanhu21?this.state.sanhu21.join(","):undefined,//散户
  1561. societyTags:this.state.shehui?this.state.shehui.join(","):undefined,//社会属性
  1562. provinceIds:pro?pro.join(","):undefined,//省
  1563. cityIds:city?city.join(","):undefined,//市
  1564. areaIds:dis?dis.join(","):undefined,//区
  1565. industryIds:this.state.hangye?this.state.hangye.join(","):undefined,//行业
  1566. sourceType:this.state.addContent, //推荐资源类型
  1567. targetType:this.state.addObject, //推送目标类型
  1568. }
  1569. }).done(function (data) {
  1570. this.setState({
  1571. loading: false
  1572. });
  1573. if (!data.error.length) {
  1574. message.success('保存成功!');
  1575. this.handleCancel();
  1576. this.loadData(1,0);
  1577. } else {
  1578. message.warning(data.error[0].message);
  1579. }
  1580. }.bind(this));
  1581. }
  1582. });
  1583. },
  1584. add(e){
  1585. e.preventDefault();
  1586. this.addhandleSubmit(e,0);
  1587. },
  1588. adds(e){
  1589. e.preventDefault();
  1590. this.addhandleSubmit(e,1);
  1591. },
  1592. //详情tab切换数据处理
  1593. callback(e) {
  1594. this.setState({
  1595. callnub: e,
  1596. })
  1597. if(e == 0) {
  1598. this.setState({
  1599. bianjiMore: false,
  1600. })
  1601. this.loadData(1,0);
  1602. }
  1603. if(e == 1) {
  1604. this.setState({
  1605. bianjiMore: true,
  1606. })
  1607. this.loadData(1,1);
  1608. }
  1609. },
  1610. //切换创建系统消息中的发送内容
  1611. selectContent(e) {
  1612. this.setState({
  1613. addContent:e
  1614. })
  1615. if(e == 0) {
  1616. this.xiangmuLoadData();
  1617. this.setState({ visible6: true })
  1618. }
  1619. if(e == 12) {
  1620. this.chengguoLoadData1();
  1621. this.setState({ visible7: true })
  1622. }
  1623. if(e == 11) {
  1624. this.chengguoLoadData2();
  1625. this.setState({ visible8: true })
  1626. }
  1627. if(e == 22) {
  1628. this.xuqiuLoadData1();
  1629. this.setState({ visible9: true })
  1630. }
  1631. if(e == 21) {
  1632. this.xuqiuLoadData2();
  1633. this.setState({ visible10: true })
  1634. }
  1635. if(e == 3) {
  1636. this.zhuanjiaLoadData();
  1637. this.setState({ visible11: true })
  1638. }
  1639. if(e == 4) {
  1640. this.zhengceLoadData();
  1641. this.setState({ visible12: true })
  1642. }
  1643. this.xiaoxiReset();
  1644. },
  1645. changeContent(e){
  1646. this.xiaoxiReset();
  1647. },
  1648. //切换创建系统消息中的指定发送对象
  1649. selectObjects(e) {
  1650. console.log(e);
  1651. this.setState({
  1652. addObject:e
  1653. })
  1654. if(e == 61) {
  1655. this.sanhuLoadData();
  1656. this.setState({ visible1: true })
  1657. }
  1658. if(e == 62) {
  1659. this.sanhuLoadData21();
  1660. this.setState({ visible21: true })
  1661. }
  1662. if(e == 1) {
  1663. this.setState({ visible2: true })
  1664. }
  1665. if(e == 2) {
  1666. this.setState({ visible4: true })
  1667. }
  1668. if(e == 0) {
  1669. this.setState({ visible5: true })
  1670. }
  1671. },
  1672. changeObjects(){
  1673. this.objectReset();
  1674. },
  1675. //值改变时请求客户名称
  1676. httpChange(e){
  1677. if(e.length>=2){
  1678. this.supervisor(e);
  1679. }
  1680. this.setState({
  1681. managerIdOrganization:e
  1682. })
  1683. },
  1684. addClick() {
  1685. this.state.addContent= undefined; //推荐资源类型
  1686. this.state.addObject= undefined; //推送目标类型
  1687. this.setState({
  1688. visible: true
  1689. });
  1690. },
  1691. editClick() {
  1692. this.state.RowData = {};
  1693. this.setState({
  1694. editvisible: true
  1695. });
  1696. },
  1697. handleCancel() {
  1698. this.setState({ visible: false })
  1699. },
  1700. handleCancel1() {
  1701. this.setState({ visible1: false })
  1702. },
  1703. handleCancel21() {
  1704. this.setState({ visible21: false })
  1705. },
  1706. handleCancel11() {
  1707. this.setState({ visible11: false })
  1708. },
  1709. handleCancel2() {
  1710. this.setState({ visible2: false })
  1711. },
  1712. handleCancel3() {
  1713. this.setState({ visible3: false })
  1714. },
  1715. handleCancel4() {
  1716. this.setState({ visible4: false })
  1717. },
  1718. handleCancel5() {
  1719. this.setState({ visible5: false })
  1720. },
  1721. handleCancel6() {
  1722. this.setState({ visible6: false })
  1723. },
  1724. handleCancel7() {
  1725. this.setState({ visible7: false })
  1726. },
  1727. handleCancel8() {
  1728. this.setState({ visible8: false })
  1729. },
  1730. handleCancel9() {
  1731. this.setState({ visible9: false })
  1732. },
  1733. handleCancel10() {
  1734. this.setState({ visible10: false })
  1735. },
  1736. handleCancel11() {
  1737. this.setState({ visible11: false })
  1738. },
  1739. handleCancel12() {
  1740. this.setState({ visible12: false })
  1741. },
  1742. edithandleCancel() {
  1743. this.setState({ editvisible: false })
  1744. },
  1745. //地区多选
  1746. onExpand(expandedKeys){
  1747. this.setState({
  1748. expandedKeys,
  1749. autoExpandParent: false,
  1750. });
  1751. },
  1752. onCheck(checkedKeys){
  1753. this.setState({checkedKeys:checkedKeys });
  1754. },
  1755. onSelect(selectedKeys, info){
  1756. this.setState({ selectedKeys });
  1757. },
  1758. renderTreeNodes(data){
  1759. return provinceList.map((item) => {
  1760. return(
  1761. <TreeNodet title={item.name} key={item.id} dataRef={item}>
  1762. {item.cityList.map((item) => {
  1763. return(
  1764. <TreeNodet title={item.name} key={item.id} dataRef={item}>
  1765. {item.areaList.map((item) => {
  1766. return(
  1767. <TreeNodet title={item.name} key={item.id} dataRef={item}>
  1768. </TreeNodet>
  1769. );
  1770. })
  1771. }
  1772. </TreeNodet>
  1773. );
  1774. })
  1775. }
  1776. </TreeNodet>
  1777. );
  1778. return <TreeNodet {...item} />;
  1779. });
  1780. },
  1781. search() {
  1782. this.loadData();
  1783. },
  1784. //散户搜索
  1785. sanhusearch(){
  1786. this.sanhuLoadData();
  1787. },
  1788. //散户搜索
  1789. sanhusearch21(){
  1790. this.sanhuLoadData21();
  1791. },
  1792. //用户搜索
  1793. sanhusearch1(){
  1794. this.sanhuLoadData1();
  1795. },
  1796. //用户搜索
  1797. juesesearch(){
  1798. this.jueseLoadData();
  1799. },
  1800. xiangmusearch(){
  1801. this.xiangmuLoadData();
  1802. },
  1803. chengguoSearch1(){
  1804. this.chengguoLoadData1();
  1805. },
  1806. chengguoSearch2(){
  1807. this.chengguoLoadData2();
  1808. },
  1809. xuqiuSearch1(){
  1810. this.xuqiuLoadData1();
  1811. },
  1812. xuqiuSearch2(){
  1813. this.xuqiuLoadData2();
  1814. },
  1815. zhuanjiaSearch(){
  1816. this.zhuanjiaLoadData();
  1817. },
  1818. zhengceSearch(){
  1819. this.zhengceLoadData();
  1820. },
  1821. //散户重置
  1822. sanhuReset() {
  1823. this.state.isMemberSearch = undefined;
  1824. this.state.internationalSearch = undefined;
  1825. this.state.typeSearch = undefined; //名称1
  1826. this.state.nameSearch = '';
  1827. this.state.addressSearch = [];
  1828. this.state.provinceSearch = undefined;
  1829. this.state.citySearch = undefined;
  1830. this.state.statusSearch = undefined;
  1831. this.state.contactsSearch = undefined;
  1832. this.state.contactMobileSearch = undefined;
  1833. this.state.industrySearch = undefined;
  1834. this.state.serviceCertificationSearch = undefined;
  1835. this.state.userCertificationSearch = undefined;
  1836. this.state.currentMemberStatusSearch = undefined;
  1837. this.state.lvlSearch = undefined;
  1838. this.state.listedSearch = undefined;
  1839. this.state.highTechZoneSearch = undefined;
  1840. this.state.releaseDate[0] = undefined;
  1841. this.state.releaseDate[1] = undefined;
  1842. this.state.societyTagSearch = undefined;
  1843. this.sanhuLoadData();
  1844. },
  1845. //散户重置
  1846. sanhuReset21() {
  1847. this.state.isMemberSearch = undefined;
  1848. this.state.internationalSearch = undefined;
  1849. this.state.typeSearch = undefined; //名称1
  1850. this.state.nameSearch = '';
  1851. this.state.addressSearch = [];
  1852. this.state.provinceSearch = undefined;
  1853. this.state.citySearch = undefined;
  1854. this.state.statusSearch = undefined;
  1855. this.state.contactsSearch = undefined;
  1856. this.state.contactMobileSearch = undefined;
  1857. this.state.industrySearch = undefined;
  1858. this.state.serviceCertificationSearch = undefined;
  1859. this.state.userCertificationSearch = undefined;
  1860. this.state.currentMemberStatusSearch = undefined;
  1861. this.state.lvlSearch = undefined;
  1862. this.state.listedSearch = undefined;
  1863. this.state.highTechZoneSearch = undefined;
  1864. this.state.releaseDate[0] = undefined;
  1865. this.state.releaseDate[1] = undefined;
  1866. this.state.societyTagSearch = undefined;
  1867. this.sanhuLoadData21();
  1868. },
  1869. //把搜索的部分置零
  1870. reset() {
  1871. this.state.sendType = undefined;//组织类型清零
  1872. this.loadData();
  1873. },
  1874. //服务项目搜索列表清零
  1875. xiangmuReset() {
  1876. this.state.bname = '';//项目名称清零
  1877. this.state.cid = undefined;//品类名称清零
  1878. this.state.ressSearch= undefined;//省市区清零
  1879. this.state.activityFlag = undefined;//活动生效清零
  1880. this.state.status = undefined;//项目状态清零
  1881. this.xiangmuLoadData();
  1882. },
  1883. chengguoReset1(){
  1884. this.state.serialNumber = undefined;
  1885. this.state.name = undefined;
  1886. this.state.keyword = undefined;
  1887. this.state.category = undefined;
  1888. this.state.ownerType = undefined;
  1889. this.state.releaseStatus = undefined;
  1890. this.state.auditStatus = undefined;
  1891. this.state.searchName = undefined;
  1892. this.state.releaseDate = [];
  1893. this.state.boutique = '';
  1894. this.state.hot='' ;
  1895. this.chengguoLoadData1();
  1896. },
  1897. chengguoReset2(){
  1898. this.state.serialNumber = undefined;
  1899. this.state.name = undefined;
  1900. this.state.keyword = undefined;
  1901. this.state.category = undefined;
  1902. this.state.ownerType = undefined;
  1903. this.state.releaseStatus = undefined;
  1904. this.state.auditStatus = undefined;
  1905. this.state.searchName = undefined;
  1906. this.state.releaseDate = [];
  1907. this.state.boutique = '';
  1908. this.state.hot='' ;
  1909. this.chengguoLoadData2();
  1910. },
  1911. xuqiuReset1(){
  1912. this.state.serialNumber = undefined;
  1913. this.state.name = undefined;
  1914. this.state.keyword = undefined;
  1915. this.state.infoSources = undefined;
  1916. this.state.demandType = undefined;
  1917. this.state.searchName = undefined;
  1918. this.state.searchType = 0;
  1919. this.state.boutique = '';
  1920. this.state.hot='' ;
  1921. this.state.status = undefined;
  1922. this.state.releaseStatus = undefined;
  1923. this.state.auditStatus = undefined;
  1924. this.state.validityPeriodDate = [];
  1925. this.state.releaseDate = [];
  1926. this.xuqiuLoadData1();
  1927. },
  1928. xuqiuReset2(){
  1929. this.state.serialNumber = undefined;
  1930. this.state.name = undefined;
  1931. this.state.keyword = undefined;
  1932. this.state.infoSources = undefined;
  1933. this.state.demandType = undefined;
  1934. this.state.searchName = undefined;
  1935. this.state.searchType = 0;
  1936. this.state.boutique = '';
  1937. this.state.hot='' ;
  1938. this.state.status = undefined;
  1939. this.state.releaseStatus = undefined;
  1940. this.state.auditStatus = undefined;
  1941. this.state.validityPeriodDate = [];
  1942. this.state.releaseDate = [];
  1943. this.xuqiuLoadData2();
  1944. },
  1945. zhuanjiaReset(){
  1946. this.state.nameSearch = '';
  1947. this.state.internationalSearch = undefined;
  1948. this.zhuanjiaLoadData();
  1949. },
  1950. zhengceReset(){
  1951. this.state.name= '';
  1952. this.zhengceLoadData();
  1953. },
  1954. searchSwitch() {
  1955. this.setState({
  1956. searchMore: !this.state.searchMore
  1957. });
  1958. },
  1959. //选择发送对象时的数据处理
  1960. //指定对象清零
  1961. objectReset(){
  1962. this.state.sanhu=undefined;
  1963. this.state.sanhu21=undefined;
  1964. this.state.yonghu=undefined;
  1965. this.state.juese=undefined;
  1966. this.state.shehui=undefined;
  1967. this.state.diqu=undefined;
  1968. this.state.fengongsi=undefined;
  1969. this.state.hangye=undefined;
  1970. },
  1971. rowReset(){
  1972. this.state.selectedRowKeys=[];
  1973. },
  1974. rowReset1(){
  1975. this.state.selectedRowKeys1=[];
  1976. },
  1977. //散户
  1978. sanhuSubmit(){
  1979. this.objectReset();
  1980. this.setState({
  1981. sanhu:this.state.selectedRowKeys
  1982. });
  1983. this.rowReset();
  1984. this.handleCancel1();
  1985. },
  1986. sanhuSubmit21(){
  1987. this.objectReset();
  1988. this.setState({
  1989. sanhu21:this.state.selectedRowKeys
  1990. });
  1991. this.rowReset();
  1992. this.handleCancel21();
  1993. },
  1994. //社会属性
  1995. shehuiSubmit(){
  1996. this.setState({
  1997. shehui:this.state.shehui
  1998. });
  1999. this.handleCancel2();
  2000. },
  2001. //分公司
  2002. fengongsiSubmit(){
  2003. this.objectReset();
  2004. this.setState({
  2005. fengongsi:this.state.selectedRowKeys
  2006. });
  2007. this.rowReset();
  2008. this.handleCancel3();
  2009. },
  2010. //地区
  2011. diquSubmit(){
  2012. this.objectReset();
  2013. this.setState({
  2014. diqu:this.state.checkedKeys
  2015. });
  2016. this.handleCancel4();
  2017. },
  2018. //行业
  2019. hangyeSubmit(){
  2020. this.setState({
  2021. hangye:this.state.hangye
  2022. });
  2023. this.handleCancel5();
  2024. },
  2025. //消息重置
  2026. xiaoxiReset(){
  2027. this.state.xiaoxi=undefined;
  2028. },
  2029. //消息
  2030. xiaoxiSubmit(){
  2031. this.xiaoxiReset();
  2032. console.log(this.state.selectedRowKeys1);
  2033. this.setState({
  2034. xiaoxi:this.state.selectedRowKeys1
  2035. });
  2036. this.rowReset1();
  2037. this.handleCancel6();
  2038. this.handleCancel7();
  2039. this.handleCancel8();
  2040. this.handleCancel9();
  2041. this.handleCancel10();
  2042. this.handleCancel11();
  2043. this.handleCancel12();
  2044. },
  2045. render() {
  2046. const FormItem = Form.Item
  2047. const rowSelection = {
  2048. selectedRowKeys: this.state.selectedRowKeys,
  2049. onChange: (selectedRowKeys, selectedRows) => {
  2050. this.setState({
  2051. selectedRows: selectedRows.slice(-1),
  2052. selectedRowKeys: selectedRowKeys.slice(-1)
  2053. });
  2054. },
  2055. onSelect: (recordt, selected, selectedRows) => {
  2056. this.setState({
  2057. recordt:recordt.id
  2058. })
  2059. },
  2060. };
  2061. const rowSelections = {
  2062. selectedRowKeys: this.state.selectedRowKeys,
  2063. onChange: (selectedRowKeys, selectedRows) => {
  2064. this.setState({
  2065. selectedRows: selectedRows,
  2066. selectedRowKeys: selectedRowKeys
  2067. });
  2068. },
  2069. onSelect: (recordt, selected, selectedRows) => {
  2070. this.setState({
  2071. recordt:recordt.id
  2072. })
  2073. },
  2074. };
  2075. const rowSelectiones = {
  2076. selectedRowKeys1: this.state.selectedRowKeys,
  2077. onChange: (selectedRowKeys, selectedRows) => {
  2078. this.setState({
  2079. selectedRows: selectedRows,
  2080. selectedRowKeys1: selectedRowKeys
  2081. });
  2082. },
  2083. onSelect: (recordt, selected, selectedRows) => {
  2084. this.setState({
  2085. recordt:recordt.id
  2086. })
  2087. },
  2088. };
  2089. const formItemLayout = {
  2090. labelCol: { span: 8 },
  2091. wrapperCol: { span: 14 },
  2092. };
  2093. const { getFieldDecorator } = this.props.form;
  2094. const hasSelected = this.state.selectedRowKeys.length > 0;
  2095. const { RangePicker } = DatePicker;
  2096. const dataSources=this.state.customerArr || [];
  2097. const options = dataSources.map((group,index) =>
  2098. <Option key={index} value={group.name}>{group.name}</Option>
  2099. )
  2100. return (
  2101. <div className="user-content" >
  2102. <div className="content-title">
  2103. <div className="user-search">
  2104. <Button type="primary" className="addButton" onClick={this.addClick}>创建技淘智推<Icon type="plus" /></Button>
  2105. <div style={!this.state.bianjiMore ? { display: 'none',float:'right',marginRight:'10px'} : {display: 'inline-block',float:'right',marginRight:'10px',marginTop:'10px'}}>
  2106. <Popconfirm title="是否删除?" onConfirm={this.delectRow} okText="是" cancelText="否">
  2107. <Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px',float:'right'}}
  2108. disabled={!hasSelected}
  2109. >删除<Icon type="minus" />
  2110. </Button>
  2111. </Popconfirm>
  2112. </div>
  2113. </div>
  2114. <div className="clearfix" style={{marginTop:'-30px',marginLeft:'20px'}}>
  2115. <Tabs onChange={this.callback} type="card" activeKey={this.state.callnub} style={{paddingLeft:'15px',paddingRight:'15px',marginRight:'20px'}}>
  2116. <TabPane tab="已发送" key="0" ></TabPane>
  2117. <TabPane tab="未发送" key="1"></TabPane>
  2118. </Tabs>
  2119. </div>
  2120. <div className="patent-table">
  2121. <Spin spinning={this.state.loading}>
  2122. <Table columns={this.state.columns}
  2123. dataSource={this.state.dataSource}
  2124. rowSelection={rowSelection}
  2125. pagination={this.state.pagination}
  2126. onRowClick={this.tableRowClick} />
  2127. </Spin>
  2128. </div>
  2129. <div className="patent-desc">
  2130. <Modal maskClosable={false} visible={this.state.visible}
  2131. onOk={this.checkPatentProcess} onCancel={this.handleCancel}
  2132. width='600px'
  2133. title='新建技淘智推'
  2134. footer=''
  2135. className="admin-desc-content">
  2136. <Form horizontal onSubmit={this.add} id="add-form">
  2137. <Spin spinning={this.state.loading}>
  2138. <div className="clearfix">
  2139. <FormItem
  2140. labelCol={{ span: 4 }}
  2141. wrapperCol={{ span: 18 }}
  2142. label="推荐内容"
  2143. >
  2144. <Select placeholder="推荐内容" value={this.state.addContent}
  2145. onSelect={this.selectContent} onChange={this.changeContent} style={{width:'95%'}} required="required">
  2146. {
  2147. featuredContent.map(function(item) {
  2148. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2149. })
  2150. }
  2151. </Select>
  2152. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  2153. </FormItem>
  2154. </div>
  2155. <div className="clearfix">
  2156. <FormItem
  2157. labelCol={{ span: 4 }}
  2158. wrapperCol={{ span: 18 }}
  2159. label="指定发送对象"
  2160. >
  2161. <Select placeholder="指定发送对象" value={this.state.addObject}
  2162. onSelect={this.selectObjects} onChange={this.changeObjects} style={{width:'95%'}} required="required">
  2163. {
  2164. designatedObjectes.map(function(item) {
  2165. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2166. })
  2167. }
  2168. </Select>
  2169. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  2170. </FormItem>
  2171. </div>
  2172. <FormItem wrapperCol={{ span: 18, offset: 5 }}>
  2173. <Button className="set-submit" type="primary" htmlType="submit">发送</Button>
  2174. <Button className="set-submit" type="ghost" onClick={this.adds} style={{marginLeft:'10px'}}>存为草稿</Button>
  2175. <Button className="set-submit" type="ghost" onClick={this.handleCancel} style={{marginLeft:'10px'}}>取消</Button>
  2176. </FormItem>
  2177. </Spin>
  2178. </Form >
  2179. </Modal>
  2180. </div>
  2181. <div className="patent-desc">
  2182. <Modal maskClosable={false} visible={this.state.visible6}
  2183. onOk={this.checkPatentProcess} onCancel={this.handleCancel6}
  2184. width='1000px'
  2185. title='服务项目列表'
  2186. footer=''
  2187. className="admin-desc-content">
  2188. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2189. <Spin spinning={this.state.loading}>
  2190. <div className="user-search">
  2191. <Input placeholder="业务项目名称" style={{width:'130px',marginRight:'10px',marginBottom:'10px'}}
  2192. value={this.state.bname}
  2193. onChange={(e) => { this.setState({ bname: e.target.value }); }} />
  2194. <Cascader options={provinceSelect()} value={this.state.ressSearch} placeholder="选择省份" style={{width:'130px',marginRight:'10px'}}
  2195. onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
  2196. <Cascader options={citySelect()} value={this.state.ressSearch} placeholder="选择城市" style={{width:'130px',marginRight:'10px'}}
  2197. onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
  2198. <Cascader options={areaSelect()} value={this.state.ressSearch} placeholder="选择地区" style={{width:'130px',marginRight:'10px'}}
  2199. onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
  2200. <Select placeholder="活动生效标识"
  2201. style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2202. value={this.state.activityFlag}
  2203. onChange={(e) => { this.setState({ activityFlag: e }) }}>
  2204. <Select.Option value="0" >有效</Select.Option>
  2205. <Select.Option value="1" >无效</Select.Option>
  2206. </Select>
  2207. <Select placeholder="项目状态"
  2208. style={{width:'100px',marginRight:'10px'}}
  2209. value={this.state.status}
  2210. onChange={(e) => { this.setState({ status: e }) }}>
  2211. <Select.Option value="0" >正常</Select.Option>
  2212. <Select.Option value="1" >停用</Select.Option>
  2213. </Select>
  2214. <Button type="primary" onClick={this.xiangmusearch} style={{marginRight:'10px'}}>搜索</Button>
  2215. <Button onClick={this.xiangmuReset} style={{marginRight:'10px'}}>重置</Button>
  2216. </div>
  2217. <div className="foster-table">
  2218. <Spin spinning={this.state.loading}>
  2219. <Table columns={this.state.xiangmuColumns}
  2220. dataSource={this.state.xiangmuDataSource}
  2221. rowSelection={rowSelectiones}
  2222. pagination={this.state.pagination2}
  2223. onRowClick={this.tableRowClick} />
  2224. </Spin>
  2225. </div>
  2226. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2227. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2228. <Button className="set-submit" type="ghost" onClick={this.handleCancel6} style={{marginLeft:'100px'}}>取消</Button>
  2229. </FormItem>
  2230. </Spin>
  2231. </Form >
  2232. </Modal>
  2233. </div>
  2234. <div className="patent-desc">
  2235. <Modal maskClosable={false} visible={this.state.visible7}
  2236. onOk={this.checkPatentProcess} onCancel={this.handleCancel7}
  2237. width='800px'
  2238. title='科技成果(组织)列表'
  2239. footer=''
  2240. className="admin-desc-content">
  2241. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2242. <Spin spinning={this.state.loading}>
  2243. <div className="user-search">
  2244. <Input placeholder="名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2245. value={this.state.name}
  2246. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2247. <Input placeholder="关键字" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2248. value={this.state.keyword}
  2249. onChange={(e) => { this.setState({ keyword: e.target.value }); }} />
  2250. <Input placeholder="所有人名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2251. value={this.state.searchName}
  2252. onChange={(e) => { this.setState({ searchName: e.target.value }); }} />
  2253. <Radio.Group value={this.state.boutique} onChange={(e) => {
  2254. this.setState({ boutique: e.target.value })
  2255. }}>
  2256. <Radio value={1}>精品</Radio>
  2257. <Radio value={0}>非精品</Radio>
  2258. </Radio.Group>
  2259. <Button type="primary" onClick={this.chengguoSearch1} style={{marginRight:'10px'}}>搜索</Button>
  2260. <Button onClick={this.chengguoReset1} style={{marginRight:'10px'}}>重置</Button>
  2261. </div>
  2262. <div className="foster-table">
  2263. <Spin spinning={this.state.loading}>
  2264. <Table columns={this.state.chengguoColumns1}
  2265. dataSource={this.state.chengguoDataSource1}
  2266. rowSelection={rowSelectiones}
  2267. pagination={this.state.pagination4}
  2268. onRowClick={this.tableRowClick} />
  2269. </Spin>
  2270. </div>
  2271. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2272. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2273. <Button className="set-submit" type="ghost" onClick={this.handleCancel7} style={{marginLeft:'100px'}}>取消</Button>
  2274. </FormItem>
  2275. </Spin>
  2276. </Form >
  2277. </Modal>
  2278. </div>
  2279. <div className="patent-desc">
  2280. <Modal maskClosable={false} visible={this.state.visible8}
  2281. onOk={this.checkPatentProcess} onCancel={this.handleCancel8}
  2282. width='800px'
  2283. title='科技成果(个人)列表'
  2284. footer=''
  2285. className="admin-desc-content">
  2286. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2287. <Spin spinning={this.state.loading}>
  2288. <div className="user-search">
  2289. <Input placeholder="名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2290. value={this.state.name}
  2291. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2292. <Input placeholder="关键字" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2293. value={this.state.keyword}
  2294. onChange={(e) => { this.setState({ keyword: e.target.value }); }} />
  2295. <Input placeholder="所有人名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2296. value={this.state.searchName}
  2297. onChange={(e) => { this.setState({ searchName: e.target.value }); }} />
  2298. <Radio.Group value={this.state.boutique} onChange={(e) => {
  2299. this.setState({ boutique: e.target.value })
  2300. }}>
  2301. <Radio value={1}>精品</Radio>
  2302. <Radio value={0}>非精品</Radio>
  2303. </Radio.Group>
  2304. <Button type="primary" onClick={this.chengguoSearch2} style={{marginRight:'10px'}}>搜索</Button>
  2305. <Button onClick={this.chengguoReset2} style={{marginRight:'10px'}}>重置</Button>
  2306. </div>
  2307. <div className="foster-table">
  2308. <Spin spinning={this.state.loading}>
  2309. <Table columns={this.state.chengguoColumns2}
  2310. dataSource={this.state.chengguoDataSource2}
  2311. rowSelection={rowSelectiones}
  2312. pagination={this.state.pagination3}
  2313. onRowClick={this.tableRowClick} />
  2314. </Spin>
  2315. </div>
  2316. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2317. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2318. <Button className="set-submit" type="ghost" onClick={this.handleCancel8} style={{marginLeft:'100px'}}>取消</Button>
  2319. </FormItem>
  2320. </Spin>
  2321. </Form >
  2322. </Modal>
  2323. </div>
  2324. <div className="patent-desc">
  2325. <Modal maskClosable={false} visible={this.state.visible9}
  2326. onOk={this.checkPatentProcess} onCancel={this.handleCancel9}
  2327. width='1000px'
  2328. title='科技需求(组织)列表'
  2329. footer=''
  2330. className="admin-desc-content">
  2331. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2332. <Spin spinning={this.state.loading}>
  2333. <div className="user-search">
  2334. <Input placeholder="需求名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2335. value={this.state.name}
  2336. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2337. <Input placeholder="关键字" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2338. value={this.state.keyword}
  2339. onChange={(e) => { this.setState({ keyword: e.target.value }); }} />
  2340. <Select placeholder="选择需求类型" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2341. value={this.state.demandType}
  2342. onChange={(e) => { this.setState({ demandType: e }) }}>
  2343. {this.state.demandTypeOption}
  2344. </Select>
  2345. <Radio.Group value={this.state.boutique} onChange={(e) => {
  2346. this.setState({ boutique: e.target.value })
  2347. }}>
  2348. <Radio value={1}>精品</Radio>
  2349. <Radio value={0}>非精品</Radio>
  2350. </Radio.Group>
  2351. <Button type="primary" onClick={this.xuqiuSearch1} style={{marginRight:'10px'}}>搜索</Button>
  2352. <Button onClick={this.xuqiuReset1} style={{marginRight:'10px'}}>重置</Button>
  2353. </div>
  2354. <div className="foster-table">
  2355. <Spin spinning={this.state.loading}>
  2356. <Table columns={this.state.xuqiuColumns1}
  2357. dataSource={this.state.xuqiuDataSource1}
  2358. rowSelection={rowSelectiones}
  2359. pagination={this.state.pagination6}
  2360. onRowClick={this.tableRowClick} />
  2361. </Spin>
  2362. </div>
  2363. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2364. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2365. <Button className="set-submit" type="ghost" onClick={this.handleCancel9} style={{marginLeft:'100px'}}>取消</Button>
  2366. </FormItem>
  2367. </Spin>
  2368. </Form >
  2369. </Modal>
  2370. </div>
  2371. <div className="patent-desc">
  2372. <Modal maskClosable={false} visible={this.state.visible10}
  2373. onOk={this.checkPatentProcess} onCancel={this.handleCancel10}
  2374. width='800px'
  2375. title='科技需求(个人)列表'
  2376. footer=''
  2377. className="admin-desc-content">
  2378. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2379. <Spin spinning={this.state.loading}>
  2380. <div className="user-search">
  2381. <Input placeholder="需求名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2382. value={this.state.name}
  2383. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2384. <Input placeholder="关键字" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2385. value={this.state.keyword}
  2386. onChange={(e) => { this.setState({ keyword: e.target.value }); }} />
  2387. <Select placeholder="选择需求类型" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2388. value={this.state.demandType}
  2389. onChange={(e) => { this.setState({ demandType: e }) }}>
  2390. {this.state.demandTypeOption}
  2391. </Select>
  2392. <Radio.Group value={this.state.boutique} onChange={(e) => {
  2393. this.setState({ boutique: e.target.value })
  2394. }}>
  2395. <Radio value={1}>精品</Radio>
  2396. <Radio value={0}>非精品</Radio>
  2397. </Radio.Group>
  2398. <Button type="primary" onClick={this.xuqiuSearch2} style={{marginRight:'10px'}}>搜索</Button>
  2399. <Button onClick={this.xuqiuReset2} style={{marginRight:'10px'}}>重置</Button>
  2400. </div>
  2401. <div className="foster-table">
  2402. <Spin spinning={this.state.loading}>
  2403. <Table columns={this.state.xuqiuColumns2}
  2404. dataSource={this.state.xuqiuDataSource2}
  2405. rowSelection={rowSelectiones}
  2406. pagination={this.state.pagination5}
  2407. onRowClick={this.tableRowClick} />
  2408. </Spin>
  2409. </div>
  2410. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2411. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2412. <Button className="set-submit" type="ghost" onClick={this.handleCancel10} style={{marginLeft:'100px'}}>取消</Button>
  2413. </FormItem>
  2414. </Spin>
  2415. </Form >
  2416. </Modal>
  2417. </div>
  2418. <div className="patent-desc">
  2419. <Modal maskClosable={false} visible={this.state.visible11}
  2420. onOk={this.checkPatentProcess} onCancel={this.handleCancel11}
  2421. width='1000px'
  2422. title='专家列表'
  2423. footer=''
  2424. className="admin-desc-content">
  2425. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2426. <Spin spinning={this.state.loading}>
  2427. <div className="user-search">
  2428. <Input placeholder="公司名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2429. value={this.state.nameSearch}
  2430. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  2431. <Select placeholder="国际" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2432. value={this.state.internationalSearch}
  2433. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2434. <Select.Option value="0" >否</Select.Option>
  2435. <Select.Option value="1" >是</Select.Option>
  2436. </Select>
  2437. <Button type="primary" onClick={this.zhuanjiaSearch} style={{marginRight:'10px'}}>搜索</Button>
  2438. <Button onClick={this.zhuanjiaReset} style={{marginRight:'10px'}}>重置</Button>
  2439. </div>
  2440. <div className="foster-table">
  2441. <Spin spinning={this.state.loading}>
  2442. <Table columns={this.state.zhuanjiaColumns}
  2443. dataSource={this.state.zhuanjiaDataSource}
  2444. rowSelection={rowSelectiones}
  2445. pagination={this.state.pagination7}
  2446. onRowClick={this.tableRowClick} />
  2447. </Spin>
  2448. </div>
  2449. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2450. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2451. <Button className="set-submit" type="ghost" onClick={this.handleCancel11} style={{marginLeft:'100px'}}>取消</Button>
  2452. </FormItem>
  2453. </Spin>
  2454. </Form >
  2455. </Modal>
  2456. </div>
  2457. <div className="patent-desc">
  2458. <Modal maskClosable={false} visible={this.state.visible12}
  2459. onOk={this.checkPatentProcess} onCancel={this.handleCancel12}
  2460. width='800px'
  2461. title='政策列表'
  2462. footer=''
  2463. className="admin-desc-content">
  2464. <Form horizontal onSubmit={this.xiaoxiSubmit} id="add-form">
  2465. <Spin spinning={this.state.loading}>
  2466. <div className="user-search">
  2467. <Input placeholder="政策标题" style={{width:'150px',marginRight:'10px',marginBottom:'10px'}}
  2468. value={this.state.name}
  2469. onChange={(e) => { this.setState({ name: e.target.value }); }} />
  2470. <Button type="primary" onClick={this.zhengceSearch} style={{marginRight:'10px'}}>搜索</Button>
  2471. <Button onClick={this.zhengceReset} style={{marginRight:'10px'}}>重置</Button>
  2472. </div>
  2473. <div className="foster-table">
  2474. <Spin spinning={this.state.loading}>
  2475. <Table columns={this.state.zhengceColumns}
  2476. dataSource={this.state.zhengceDataSource}
  2477. rowSelection={rowSelectiones}
  2478. pagination={this.state.pagination8}
  2479. onRowClick={this.tableRowClick} />
  2480. </Spin>
  2481. </div>
  2482. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2483. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2484. <Button className="set-submit" type="ghost" onClick={this.handleCancel12} style={{marginLeft:'100px'}}>取消</Button>
  2485. </FormItem>
  2486. </Spin>
  2487. </Form >
  2488. </Modal>
  2489. </div>
  2490. <div className="patent-desc">
  2491. <Modal maskClosable={false} visible={this.state.visible1}
  2492. onOk={this.checkPatentProcess} onCancel={this.handleCancel1}
  2493. width='1500px'
  2494. title='个人客户'
  2495. footer=''
  2496. className="admin-desc-content">
  2497. <Form horizontal onSubmit={this.sanhuSubmit} id="add-form">
  2498. <Spin spinning={this.state.loading}>
  2499. <div className="user-search">
  2500. <Input placeholder="客户名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2501. value={this.state.nameSearch}
  2502. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  2503. <Select placeholder="账户状态"
  2504. style={{width:'100px',marginRight:'10px'}}
  2505. value={this.state.statusSearch}
  2506. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  2507. <Select.Option value="0" >正常</Select.Option>
  2508. <Select.Option value="2" >锁定</Select.Option>
  2509. </Select>
  2510. <Select placeholder="行业"
  2511. style={{width:'100px',marginRight:'10px'}}
  2512. value={this.state.industrySearch}
  2513. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  2514. {this.state.intentionalOption}
  2515. </Select>
  2516. <Select placeholder="业务认证"
  2517. style={{width:'100px',marginRight:'10px'}}
  2518. value={this.state.serviceCertificationSearch}
  2519. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  2520. <Select.Option value="0" >未认证</Select.Option>
  2521. <Select.Option value="1" >已认证</Select.Option>
  2522. </Select>
  2523. <Select placeholder="实名认证"
  2524. style={{width:'100px',marginRight:'10px'}}
  2525. value={this.state.userCertificationSearch}
  2526. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  2527. {
  2528. auditStatusL.map(function (item) {
  2529. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2530. })
  2531. }
  2532. </Select>
  2533. <Select placeholder="是否国际"
  2534. style={{width:'100px',marginRight:'10px'}}
  2535. value={this.state.internationalSearch}
  2536. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2537. <Select.Option value="0" >否</Select.Option>
  2538. <Select.Option value="1" >是</Select.Option>
  2539. </Select>
  2540. <Select placeholder="是否高新"
  2541. style={{width:'100px',marginRight:'10px'}}
  2542. value={this.state.highTechZoneSearch}
  2543. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  2544. <Select.Option value="0" >否</Select.Option>
  2545. <Select.Option value="1" >是</Select.Option>
  2546. </Select>
  2547. <Select placeholder="是否上市"
  2548. style={{width:'100px',marginRight:'10px'}}
  2549. value={this.state.listedSearch}
  2550. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  2551. <Select.Option value="0" >否</Select.Option>
  2552. <Select.Option value="1" >是</Select.Option>
  2553. </Select>
  2554. <Select placeholder="是否会员"
  2555. style={{width:'100px',marginRight:'10px'}}
  2556. value={this.state.isMemberSearch}
  2557. onChange={(e) => { this.setState({ isMemberSearch: e }) }}>
  2558. <Select.Option value="0" >否</Select.Option>
  2559. <Select.Option value="1" >是</Select.Option>
  2560. </Select>
  2561. <Select placeholder="会员等级"
  2562. style={{width:'100px',marginRight:'10px'}}
  2563. value={this.state.lvlSearch}
  2564. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2565. {this.state.lvlArrOption}
  2566. </Select>
  2567. <Select placeholder="会员状态"
  2568. style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2569. value={this.state.currentMemberStatusSearch}
  2570. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2571. {this.state.currentMemberArrOption}
  2572. </Select>
  2573. <Select placeholder="社会性质"
  2574. style={{width:'100px',marginRight:'10px'}}
  2575. value={this.state.societyTagSearch}
  2576. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  2577. {
  2578. socialAttribute.map(function (item) {
  2579. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2580. })
  2581. }
  2582. </Select>
  2583. <Button type="primary" onClick={this.sanhusearch} style={{marginRight:'10px'}}>搜索</Button>
  2584. <Button onClick={this.sanhuReset} style={{marginRight:'10px'}}>重置</Button>
  2585. </div>
  2586. <div className="foster-table">
  2587. <Spin spinning={this.state.loading}>
  2588. <Table columns={this.state.sanhuColumns}
  2589. dataSource={this.state.sanhuDataSource}
  2590. rowSelection={rowSelections}
  2591. pagination={this.state.pagination1}
  2592. onRowClick={this.tableRowClick} />
  2593. </Spin>
  2594. </div>
  2595. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2596. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2597. <Button className="set-submit" type="ghost" onClick={this.handleCancel1} style={{marginLeft:'100px'}}>取消</Button>
  2598. </FormItem>
  2599. </Spin>
  2600. </Form >
  2601. </Modal>
  2602. </div>
  2603. <div className="patent-desc">
  2604. <Modal maskClosable={false} visible={this.state.visible21}
  2605. onOk={this.checkPatentProcess} onCancel={this.handleCance21}
  2606. width='1500px'
  2607. title='单位客户'
  2608. footer=''
  2609. className="admin-desc-content">
  2610. <Form horizontal onSubmit={this.sanhuSubmit21} id="add-form">
  2611. <Spin spinning={this.state.loading}>
  2612. <div className="user-search">
  2613. <Input placeholder="客户名称" style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2614. value={this.state.nameSearch}
  2615. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  2616. <Select placeholder="账户状态"
  2617. style={{width:'100px',marginRight:'10px'}}
  2618. value={this.state.statusSearch}
  2619. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  2620. <Select.Option value="0" >正常</Select.Option>
  2621. <Select.Option value="2" >锁定</Select.Option>
  2622. </Select>
  2623. <Select placeholder="行业"
  2624. style={{width:'100px',marginRight:'10px'}}
  2625. value={this.state.industrySearch}
  2626. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  2627. {this.state.intentionalOption}
  2628. </Select>
  2629. <Select placeholder="业务认证"
  2630. style={{width:'100px',marginRight:'10px'}}
  2631. value={this.state.serviceCertificationSearch}
  2632. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  2633. <Select.Option value="0" >未认证</Select.Option>
  2634. <Select.Option value="1" >已认证</Select.Option>
  2635. </Select>
  2636. <Select placeholder="实名认证"
  2637. style={{width:'100px',marginRight:'10px'}}
  2638. value={this.state.userCertificationSearch}
  2639. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  2640. {
  2641. auditStatusL.map(function (item) {
  2642. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2643. })
  2644. }
  2645. </Select>
  2646. <Select placeholder="是否国际"
  2647. style={{width:'100px',marginRight:'10px'}}
  2648. value={this.state.internationalSearch}
  2649. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2650. <Select.Option value="0" >否</Select.Option>
  2651. <Select.Option value="1" >是</Select.Option>
  2652. </Select>
  2653. <Select placeholder="是否高新"
  2654. style={{width:'100px',marginRight:'10px'}}
  2655. value={this.state.highTechZoneSearch}
  2656. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  2657. <Select.Option value="0" >否</Select.Option>
  2658. <Select.Option value="1" >是</Select.Option>
  2659. </Select>
  2660. <Select placeholder="是否上市"
  2661. style={{width:'100px',marginRight:'10px'}}
  2662. value={this.state.listedSearch}
  2663. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  2664. <Select.Option value="0" >否</Select.Option>
  2665. <Select.Option value="1" >是</Select.Option>
  2666. </Select>
  2667. <Select placeholder="是否会员"
  2668. style={{width:'100px',marginRight:'10px'}}
  2669. value={this.state.isMemberSearch}
  2670. onChange={(e) => { this.setState({ isMemberSearch: e }) }}>
  2671. <Select.Option value="0" >否</Select.Option>
  2672. <Select.Option value="1" >是</Select.Option>
  2673. </Select>
  2674. <Select placeholder="会员等级"
  2675. style={{width:'100px',marginRight:'10px'}}
  2676. value={this.state.lvlSearch}
  2677. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2678. {this.state.lvlArrOption}
  2679. </Select>
  2680. <Select placeholder="会员状态"
  2681. style={{width:'100px',marginRight:'10px',marginBottom:'10px'}}
  2682. value={this.state.currentMemberStatusSearch}
  2683. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2684. {this.state.currentMemberArrOption}
  2685. </Select>
  2686. <Select placeholder="社会性质"
  2687. style={{width:'100px',marginRight:'10px'}}
  2688. value={this.state.societyTagSearch}
  2689. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  2690. {
  2691. socialAttribute.map(function (item) {
  2692. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2693. })
  2694. }
  2695. </Select>
  2696. <Button type="primary" onClick={this.sanhusearch21} style={{marginRight:'10px'}}>搜索</Button>
  2697. <Button onClick={this.sanhuReset21} style={{marginRight:'10px'}}>重置</Button>
  2698. </div>
  2699. <div className="foster-table">
  2700. <Spin spinning={this.state.loading}>
  2701. <Table columns={this.state.sanhuColumns21}
  2702. dataSource={this.state.sanhuDataSource21}
  2703. rowSelection={rowSelections}
  2704. pagination={this.state.pagination21}
  2705. onRowClick={this.tableRowClick} />
  2706. </Spin>
  2707. </div>
  2708. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2709. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2710. <Button className="set-submit" type="ghost" onClick={this.handleCancel21} style={{marginLeft:'100px'}}>取消</Button>
  2711. </FormItem>
  2712. </Spin>
  2713. </Form >
  2714. </Modal>
  2715. </div>
  2716. <div className="patent-desc">
  2717. <Modal maskClosable={false} visible={this.state.visible2}
  2718. onOk={this.checkPatentProcess} onCancel={this.handleCancel2}
  2719. width='600px'
  2720. title='社会属性'
  2721. footer=''
  2722. className="admin-desc-content">
  2723. <Form horizontal onSubmit={this.shehuiSubmit} id="add-form">
  2724. <Spin spinning={this.state.loading}>
  2725. <FormItem
  2726. labelCol={{ span: 7 }}
  2727. wrapperCol={{ span: 12 }}
  2728. label="请选择社会属性"
  2729. >
  2730. <CheckboxGroup options={socialAttributeS} value={this.state.shehui} onChange={(e)=>{this.setState({shehui:e})}} />
  2731. </FormItem>
  2732. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2733. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2734. <Button className="set-submit" type="ghost" onClick={this.handleCancel2} style={{marginLeft:'100px'}}>取消</Button>
  2735. </FormItem>
  2736. </Spin>
  2737. </Form >
  2738. </Modal>
  2739. </div>
  2740. <div className="patent-desc">
  2741. <Modal maskClosable={false} visible={this.state.visible3}
  2742. onOk={this.checkPatentProcess} onCancel={this.handleCancel3}
  2743. width='1200px'
  2744. title='分公司列表'
  2745. footer=''
  2746. className="admin-desc-content">
  2747. <Form horizontal onSubmit={this.fengongsiSubmit} id="add-form">
  2748. <Spin spinning={this.state.loading}>
  2749. <div className="foster-table">
  2750. <Spin spinning={this.state.loading}>
  2751. <Table columns={this.state.fengongsiColumns}
  2752. dataSource={this.state.fengongsiDataSource}
  2753. rowSelection={rowSelections}
  2754. pagination={this.state.pagination1}
  2755. onRowClick={this.tableRowClick} />
  2756. </Spin>
  2757. </div>
  2758. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2759. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2760. <Button className="set-submit" type="ghost" onClick={this.handleCancel3} style={{marginLeft:'100px'}}>取消</Button>
  2761. </FormItem>
  2762. </Spin>
  2763. </Form >
  2764. </Modal>
  2765. </div>
  2766. <div className="patent-desc">
  2767. <Modal maskClosable={false} visible={this.state.visible4}
  2768. onOk={this.checkPatentProcess} onCancel={this.handleCancel4}
  2769. width='600px'
  2770. title='地区'
  2771. footer=''
  2772. className="admin-desc-content">
  2773. <Form horizontal onSubmit={this.diquSubmit} id="add-form">
  2774. <Spin spinning={this.state.loading}>
  2775. <div className="clearfix" style={{marginLeft:'90px'}}>
  2776. <Tree
  2777. checkable
  2778. onExpand={this.onExpand}
  2779. expandedKeys={this.state.expandedKeys}
  2780. autoExpandParent={this.state.autoExpandParent}
  2781. onCheck={this.onCheck}
  2782. checkedKeys={this.state.checkedKeys}
  2783. onSelect={this.onSelectDi}
  2784. selectedKeys={this.state.selectedKeys}
  2785. >
  2786. {this.renderTreeNodes(this.state.Interface)}
  2787. </Tree>
  2788. </div>
  2789. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2790. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2791. <Button className="set-submit" type="ghost" onClick={this.handleCancel4} style={{marginLeft:'100px'}}>取消</Button>
  2792. </FormItem>
  2793. </Spin>
  2794. </Form >
  2795. </Modal>
  2796. </div>
  2797. <div className="patent-desc">
  2798. <Modal maskClosable={false} visible={this.state.visible5}
  2799. onOk={this.checkPatentProcess} onCancel={this.handleCancel5}
  2800. width='600px'
  2801. title='行业'
  2802. footer=''
  2803. className="admin-desc-content">
  2804. <Form horizontal onSubmit={this.hangyeSubmit} id="add-form">
  2805. <Spin spinning={this.state.loading}>
  2806. <FormItem
  2807. labelCol={{ span: 7 }}
  2808. wrapperCol={{ span: 12 }}
  2809. label="请选择行业"
  2810. >
  2811. <CheckboxGroup options={industryS} value={this.state.hangye} onChange={(e)=>{this.setState({hangye:e})}} />
  2812. </FormItem>
  2813. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  2814. <Button className="set-submit" type="primary" htmlType="submit">选定</Button>
  2815. <Button className="set-submit" type="ghost" onClick={this.handleCancel5} style={{marginLeft:'100px'}}>取消</Button>
  2816. </FormItem>
  2817. </Spin>
  2818. </Form >
  2819. </Modal>
  2820. </div>
  2821. </div>
  2822. </div>
  2823. );
  2824. }
  2825. }));
  2826. export default JitaoMessage;