techAchievementQueryDesc.jsx 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875
  1. import React from 'react';
  2. import { Tabs, Table, Icon, Tooltip, Modal, message, AutoComplete, Spin, Upload, Input, InputNumber, Select, Button, Radio, Form, Cascader, Tag, Switch } from 'antd';
  3. import './techAchievement.less';
  4. import ajax from 'jquery/src/ajax/xhr.js';
  5. import $ from 'jquery/src/ajax';
  6. import { maturityList, innovationList, transferModeList } from '../../dataDic';
  7. import { IndustryObject, getIndustryCategory } from '../../DicIndustryList.js';
  8. import { beforeUploadFile, splitUrl, companySearch, getTransferMode, getAchievementCategory, getTechAuditStatus, getDemandType, getMaturity, getInnovation,beforeUpload, getBase64,getboutique } from '../../tools.js';
  9. import throttle from '../../throttle.js';
  10. const KeyWordTagGroup = React.createClass({
  11. getInitialState() {
  12. return {
  13. tags: [],
  14. inputVisible: false,
  15. inputValue: ''
  16. };
  17. },
  18. handleClose(removedTag) {
  19. const tags = this.state.tags.filter(tag => tag !== removedTag);
  20. this.props.tagsArr(tags);
  21. this.setState({ tags });
  22. },
  23. showInput() {
  24. this.setState({ inputVisible: true }, () => this.input.focus());
  25. },
  26. handleInputChange(e) {
  27. this.setState({ inputValue: e.target.value });
  28. },
  29. handleInputConfirm() {
  30. const state = this.state;
  31. const inputValue = state.inputValue;
  32. let tags = state.tags;
  33. if (inputValue && tags.indexOf(inputValue) === -1 && inputValue.replace(/(^\s*)|(\s*$)/g, "").length != 0) {
  34. tags = [...tags, inputValue.replace(/(^\s*)|(\s*$)/g, "")];
  35. };
  36. this.props.tagsArr(tags);
  37. this.setState({
  38. tags,
  39. inputVisible: false,
  40. inputValue: '',
  41. });
  42. },
  43. componentWillMount() {
  44. this.state.tags = this.props.keyWordArr;
  45. },
  46. componentWillReceiveProps(nextProps) {
  47. if (this.props.keyWordArr != nextProps.keyWordArr) {
  48. this.state.tags = nextProps.keyWordArr;
  49. };
  50. },
  51. render() {
  52. const { tags, inputVisible, inputValue } = this.state;
  53. return (
  54. <div className="keyWord-tips">
  55. {tags.map((tag, index) => {
  56. const isLongTag = tag.length > 10;
  57. const tagElem = (
  58. <Tag key={tag} closable={index !== -1} afterClose={() => this.handleClose(tag)}>
  59. {isLongTag ? `${tag.slice(0, 10)}...` : tag}
  60. </Tag>
  61. );
  62. return isLongTag ? <Tooltip key={tag} title={tag}>{tagElem}</Tooltip> : tagElem;
  63. })}
  64. {inputVisible && (
  65. <Input
  66. ref={input => this.input = input}
  67. type="text"
  68. style={{ width: 78 }}
  69. value={inputValue}
  70. onChange={this.handleInputChange}
  71. onBlur={this.handleInputConfirm}
  72. onPressEnter={this.handleInputConfirm}
  73. />
  74. )}
  75. {!inputVisible && <Button className="addtips" type="dashed" disabled={tags.length > 9 ? true : false} onClick={this.showInput}>+ 新关键词</Button>}
  76. </div>
  77. );
  78. }
  79. });
  80. const PicturesWall = React.createClass({
  81. getInitialState() {
  82. return {
  83. previewVisible: false,
  84. previewImage: '',
  85. fileList: [],
  86. }
  87. },
  88. handleCancel() {
  89. this.setState({ previewVisible: false })
  90. },
  91. handlePreview(file) {
  92. this.setState({
  93. previewImage: file.url || file.thumbUrl,
  94. previewVisible: true,
  95. });
  96. },
  97. handleChange(info) {
  98. let fileList = info.fileList;
  99. this.setState({ fileList });
  100. this.props.fileList(fileList);
  101. },
  102. componentWillReceiveProps(nextProps) {
  103. this.state.fileList = nextProps.pictureUrl;
  104. },
  105. render() {
  106. const { previewVisible, previewImage, fileList } = this.state;
  107. const uploadButton = (
  108. <div>
  109. <Icon type="plus" />
  110. <div className="ant-upload-text">点击上传</div>
  111. </div>
  112. );
  113. return (
  114. <div className="clearfix">
  115. <Upload
  116. action={globalConfig.context + "/api/admin/achievement/uploadPicture"}
  117. data={{ 'sign': this.props.pictureSign }}
  118. listType="picture-card"
  119. fileList={fileList}
  120. onPreview={this.handlePreview}
  121. onChange={this.handleChange} >
  122. {fileList.length >= 5 ? null : uploadButton}
  123. </Upload>
  124. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  125. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  126. </Modal>
  127. </div>
  128. );
  129. }
  130. });
  131. const AchievementDetailShow = Form.create()(React.createClass({
  132. getInitialState() {
  133. return {
  134. loading: false,
  135. buttonLoading: false,
  136. contactsObj: {},
  137. data: {},
  138. tags: [],
  139. technicalPictureUrl: [],
  140. coverImg: [],
  141. maturityPictureUrl: [],
  142. textFileList: [],
  143. techPlanFileList: [],
  144. businessPlanFileList: []
  145. };
  146. },
  147. loadData(id, detailApiUrl) {
  148. this.setState({
  149. loading: true
  150. });
  151. $.ajax({
  152. method: "get",
  153. dataType: "json",
  154. crossDomain: false,
  155. url: globalConfig.context + detailApiUrl,
  156. data: {
  157. id: id,
  158. ownerType:this.props.data.ownerType
  159. },
  160. success: function (data) {
  161. let thisData = data.data;
  162. if (!thisData) {
  163. if (data.error && data.error.length) {
  164. message.warning(data.error[0].message);
  165. };
  166. thisData = {};
  167. };
  168. this.setState({
  169. data: thisData,
  170. orgDisplay: thisData.ownerType,
  171. switchValue: Boolean(!thisData.ownerId),
  172. radios:thisData.hot==='1'?true:false,
  173. tags: thisData.keyword ? (thisData.keyword.replace(/(,|、)/g, ",")).split(',') : [],
  174. technicalPictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
  175. coverImg: thisData.coverImg ? splitUrl(thisData.coverImg, ',', globalConfig.avatarHost + '/upload') : [],
  176. maturityPictureUrl: thisData.maturityPictureUrl ? splitUrl(thisData.maturityPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
  177. });
  178. if (thisData.ownerId) {
  179. this.getContactsList(thisData.ownerId);
  180. };
  181. }.bind(this),
  182. }).always(function () {
  183. this.setState({
  184. loading: false
  185. });
  186. }.bind(this));
  187. },
  188. offShelf() {
  189. this.setState({
  190. loading: true
  191. });
  192. $.ajax({
  193. method: "post",
  194. dataType: "json",
  195. crossDomain: false,
  196. url: globalConfig.context + "/api/admin/achievement/offShelf",
  197. data: { "id": this.props.data.id }
  198. }).done(function (data) {
  199. if (!data.error.length) {
  200. message.success('撤销成功!');
  201. this.setState({
  202. visible: false,
  203. releaseSubmitVisible: false
  204. });
  205. this.props.handleOk();
  206. } else {
  207. message.warning(data.error[0].message);
  208. }
  209. }.bind(this));
  210. },
  211. modifyBroker() {
  212. this.props.form.validateFields((err, values) => {
  213. if (!err) {
  214. this.setState({
  215. loading: true
  216. });
  217. $.ajax({
  218. method: "POST",
  219. dataType: "json",
  220. crossDomain: false,
  221. url: globalConfig.context + '/api/admin/audit/modifyAchievementTechBroker',
  222. data: {
  223. id: this.props.data.id,
  224. techBrokerId: values.modifyTechBrokerId
  225. }
  226. }).done(function (data) {
  227. this.state.auditStatus = 0;
  228. this.setState({
  229. loading: false
  230. });
  231. if (data.error && data.error.length) {
  232. message.warning(data.error[0].message);
  233. } else {
  234. message.success('保存成功!');
  235. this.props.handleOk();
  236. };
  237. }.bind(this));
  238. }
  239. });
  240. },
  241. formSubmit() {
  242. this.props.form.validateFields((err, values) => {
  243. if (values.auditStatus == 3 && !values.techBrokerId) {
  244. message.warning('必须选择一个技术经纪人!');
  245. return
  246. };
  247. if (!err) {
  248. this.setState({
  249. loading: true
  250. });
  251. $.ajax({
  252. method: "POST",
  253. dataType: "json",
  254. crossDomain: false,
  255. url: globalConfig.context + '/api/admin/audit/achievement',
  256. data: {
  257. id: this.props.data.id,
  258. techBroderId: values.techBrokerId,
  259. auditStatus: values.auditStatus
  260. }
  261. }).done(function (data) {
  262. this.state.auditStatus = 0;
  263. this.setState({
  264. loading: false
  265. });
  266. if (!data.error.length) {
  267. message.success('保存成功!');
  268. this.setState({
  269. formSubmitVisible: false
  270. });
  271. this.props.handleOk();
  272. } else {
  273. message.warning(data.error[0].message);
  274. };
  275. }.bind(this));
  276. }
  277. });
  278. },
  279. handleSubmit(e) {
  280. e.preventDefault();
  281. this.props.form.validateFields((err, values) => {
  282. if (values.auditStatus == 4) {
  283. this.setState({
  284. formSubmitVisible: true
  285. });
  286. } else {
  287. this.formSubmit();
  288. };
  289. });
  290. },
  291. buildMatchList() {
  292. this.setState({
  293. buttonLoading: true
  294. });
  295. $.ajax({
  296. method: "POST",
  297. dataType: "json",
  298. crossDomain: false,
  299. url: globalConfig.context + '/api/admin/achievement/matchDemand',
  300. data: {
  301. id: this.props.data.id,
  302. }
  303. }).done(function (data) {
  304. this.setState({
  305. buttonLoading: false
  306. });
  307. if (!data.error.length) {
  308. message.success('匹配完成!匹配到' + data.data + '条记录');
  309. } else {
  310. message.warning(data.error[0].message);
  311. };
  312. }.bind(this));
  313. },
  314. getContactsList(theUid) {
  315. $.ajax({
  316. method: "get",
  317. dataType: "json",
  318. crossDomain: false,
  319. url: globalConfig.context + "/api/admin/getContacts",
  320. data: {
  321. uid: theUid
  322. },
  323. success: function (data) {
  324. if (!data.data) {
  325. if (data.error && data.error.length) {
  326. message.warning(data.error[0].message);
  327. return;
  328. };
  329. } else {
  330. this.setState({
  331. contactsObj: data.data || {}
  332. });
  333. };
  334. }.bind(this),
  335. });
  336. },
  337. componentWillMount() {
  338. this.loadData(this.props.data.id, this.props.detailApiUrl);
  339. },
  340. componentWillReceiveProps(nextProps) {
  341. if (!this.props.visible && nextProps.visible) {
  342. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  343. this.state.textFileList = [];
  344. this.state.techPlanFileList = [];
  345. this.state.businessPlanFileList = [];
  346. this.props.form.resetFields();
  347. };
  348. },
  349. render() {
  350. const theData = this.state.data || {};
  351. const { getFieldDecorator } = this.props.form;
  352. const FormItem = Form.Item
  353. const formItemLayout = {
  354. labelCol: { span: 8 },
  355. wrapperCol: { span: 14 },
  356. };
  357. return (
  358. <Form horizontal onSubmit={this.handleSubmit} id="demand-form">
  359. <Spin spinning={this.state.loading}>
  360. <div className="clearfix">
  361. <FormItem className="half-item"
  362. {...formItemLayout}
  363. label="编号" >
  364. <span>{theData.serialNumber}</span>
  365. </FormItem>
  366. <FormItem className="half-item"
  367. {...formItemLayout}
  368. label="名称" >
  369. <span>{theData.name}</span>
  370. </FormItem>
  371. <FormItem className="half-item"
  372. {...formItemLayout}
  373. label="数据类别" >
  374. {(() => {
  375. switch (theData.dataCategory) {
  376. case "0":
  377. return <span>成果</span>;
  378. case "1":
  379. return <span>技术</span>;
  380. case "2":
  381. return <span>项目</span>;
  382. }
  383. })()}
  384. </FormItem>
  385. <FormItem className="half-item"
  386. {...formItemLayout}
  387. label="类型" >
  388. <span>{getAchievementCategory(theData.category)}</span>
  389. </FormItem>
  390. <FormItem className="half-item"
  391. {...formItemLayout}
  392. label="精品成果" >
  393. {(() => {
  394. switch (theData.boutique) {
  395. case "0":
  396. return <span>否</span>;
  397. case "1":
  398. return <span>是</span>;
  399. }
  400. })()}
  401. </FormItem>
  402. <FormItem className="half-item"
  403. {...formItemLayout}
  404. label="首页展示" >
  405. {(() => {
  406. switch (theData.hot) {
  407. case "0":
  408. return <span>否</span>;
  409. case "1":
  410. return <span>是</span>;
  411. }
  412. })()}
  413. </FormItem>
  414. </div>
  415. {this.state.radios==true ?<FormItem
  416. labelCol={{ span: 4 }}
  417. wrapperCol={{ span: 18 }}
  418. label="首页展示图片:" >
  419. <div className="clearfix">
  420. <Upload className="demandDetailShow-upload"
  421. listType="picture-card"
  422. fileList={this.state.coverImg}
  423. onPreview={(file) => {
  424. this.setState({
  425. previewImage: file.url || file.thumbUrl,
  426. previewVisible: true,
  427. });
  428. }} >
  429. </Upload>
  430. <Modal maskClosable={false} footer={null}
  431. visible={this.state.previewVisible}
  432. onCancel={() => { this.setState({ previewVisible: false }) }}>
  433. <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
  434. </Modal>
  435. </div>
  436. </FormItem>:<div></div>}
  437. <div className="clearfix">
  438. <FormItem className="half-item"
  439. {...formItemLayout}
  440. label="是否发布" >
  441. {(() => {
  442. switch (theData.releaseStatus) {
  443. case "0":
  444. return <span>未发布</span>;
  445. case "1":
  446. return <div>
  447. <span>已发布</span>
  448. <Button style={{ marginLeft: '10px' }} onClick={() => { this.setState({ releaseSubmitVisible: true }); }}>撤消发布</Button>
  449. <Modal maskClosable={false} title="确认"
  450. visible={this.state.releaseSubmitVisible}
  451. width='300px'
  452. footer={null}
  453. onCancel={() => { this.setState({ releaseSubmitVisible: false }) }} >
  454. <span>确认要撤销发布吗?</span>
  455. <Button className="modal-submit" type="primary" onClick={this.offShelf} >确认</Button>
  456. <Button className="modal-submit" type="ghost" onClick={() => { this.setState({ releaseSubmitVisible: false }) }}>取消</Button>
  457. </Modal>
  458. </div>;
  459. }
  460. })()}
  461. </FormItem>
  462. <FormItem className="half-item"
  463. {...formItemLayout}
  464. label="发布时间" >
  465. <span>{theData.releaseDateFormattedDate}</span>
  466. </FormItem>
  467. <FormItem className="half-item"
  468. {...formItemLayout}
  469. label="审核状态" >
  470. <span>{getTechAuditStatus(theData.auditStatus)}</span>
  471. </FormItem>
  472. <FormItem className="half-item"
  473. {...formItemLayout}
  474. label="是否国际" >
  475. <span>{getboutique(theData.internationalFlag)}</span>
  476. </FormItem>
  477. </div>
  478. <FormItem
  479. labelCol={{ span: 4 }}
  480. wrapperCol={{ span: 18 }}
  481. label="关键词" >
  482. {this.state.tags.map((tag) => {
  483. return <Tooltip key={tag} title={tag}>
  484. <Tag key={tag}>{tag}</Tag>
  485. </Tooltip>;
  486. })}
  487. </FormItem>
  488. <FormItem
  489. labelCol={{ span: 4 }}
  490. wrapperCol={{ span: 18 }}
  491. label="摘要" >
  492. <span>{theData.summary}</span>
  493. </FormItem>
  494. <FormItem
  495. labelCol={{ span: 4 }}
  496. wrapperCol={{ span: 18 }}
  497. label="成果简介" >
  498. <span>{theData.introduction}</span>
  499. </FormItem>
  500. <FormItem
  501. labelCol={{ span: 4 }}
  502. wrapperCol={{ span: 18 }}
  503. label="备注" >
  504. <span>{theData.remark}</span>
  505. </FormItem>
  506. <FormItem
  507. labelCol={{ span: 4 }}
  508. wrapperCol={{ span: 18 }}
  509. label="技术图片" >
  510. <div className="clearfix">
  511. <Upload className="demandDetailShow-upload"
  512. listType="picture-card"
  513. fileList={this.state.technicalPictureUrl}
  514. onPreview={(file) => {
  515. this.setState({
  516. previewImage: file.url || file.thumbUrl,
  517. previewVisible: true,
  518. });
  519. }} >
  520. </Upload>
  521. <Modal maskClosable={false} footer={null}
  522. visible={this.state.previewVisible}
  523. onCancel={() => { this.setState({ previewVisible: false }) }}>
  524. <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
  525. </Modal>
  526. </div>
  527. </FormItem>
  528. <FormItem
  529. labelCol={{ span: 4 }}
  530. wrapperCol={{ span: 18 }}
  531. label="应用领域" >
  532. <span>{getIndustryCategory(theData.fieldA, theData.fieldB)}</span>
  533. </FormItem>
  534. <div className="clearfix">
  535. <FormItem className="half-item"
  536. {...formItemLayout}
  537. label="成熟度" >
  538. <span>{getMaturity(theData.maturity)}</span>
  539. </FormItem>
  540. <FormItem className="half-item"
  541. {...formItemLayout}
  542. label="创新度" >
  543. <span>{getInnovation(theData.innovation)}</span>
  544. </FormItem>
  545. </div>
  546. <FormItem
  547. labelCol={{ span: 4 }}
  548. wrapperCol={{ span: 18 }}
  549. label="成熟度证明材料(图片)" >
  550. <Upload className="demandDetailShow-upload"
  551. listType="picture-card"
  552. fileList={this.state.maturityPictureUrl}
  553. onPreview={(file) => {
  554. this.setState({
  555. previewImage: file.url || file.thumbUrl,
  556. previewVisible: true,
  557. });
  558. }} >
  559. </Upload>
  560. </FormItem>
  561. <FormItem
  562. labelCol={{ span: 4 }}
  563. wrapperCol={{ span: 6 }}
  564. label="成熟度证明材料(文本)" >
  565. <p>{theData.maturityTextFileUrl ?
  566. <span className="download-file">
  567. <a onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/download?id=' + this.props.data.id + '&sign=achievement_maturity_text_file') }}>成熟度证明材料(文本文件)</a>
  568. </span>
  569. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
  570. </FormItem>
  571. <FormItem
  572. labelCol={{ span: 4 }}
  573. wrapperCol={{ span: 18 }}
  574. label="成熟度证明材料(视频地址)" >
  575. <span>{theData.maturityVideoUrl}</span>
  576. </FormItem>
  577. {this.state.switchValue ?
  578. <div className="clearfix" >
  579. <FormItem className="half-item"
  580. {...formItemLayout}
  581. label="成果所有人名称" >
  582. <span>{theData.ownerName}</span>
  583. </FormItem>
  584. <FormItem className="half-item"
  585. {...formItemLayout}
  586. label="联系电话" >
  587. <span>{theData.ownerMobile}</span>
  588. </FormItem>
  589. <FormItem className="half-item"
  590. {...formItemLayout}
  591. label="证件号" >
  592. <span>{theData.ownerIdNumber}</span>
  593. </FormItem>
  594. <FormItem className="half-item"
  595. {...formItemLayout}
  596. label="电子邮箱" >
  597. <span>{theData.ownerEmail}</span>
  598. </FormItem>
  599. <FormItem className="half-item"
  600. {...formItemLayout}
  601. label="通讯地址" >
  602. <span>{theData.ownerPostalAddress}</span>
  603. </FormItem>
  604. </div> : <div className="clearfix" >
  605. <FormItem className="half-item"
  606. {...formItemLayout}
  607. label="成果所有人名称" >
  608. <span>{theData.iOwnerName}</span>
  609. </FormItem>
  610. <FormItem className="half-item"
  611. {...formItemLayout}
  612. label="联系电话" >
  613. {theData.ownerType == "1" ? <span>{this.state.contactsObj[theData.contacts]}</span> : <span>{theData.iOwnerMobile}</span>}
  614. </FormItem>
  615. <FormItem className="half-item"
  616. {...formItemLayout}
  617. label="证件号" >
  618. <span>{theData.iOwnerIdNumber}</span>
  619. </FormItem>
  620. <FormItem className="half-item"
  621. {...formItemLayout}
  622. label="电子邮箱" >
  623. <span>{theData.iOwnerEmail}</span>
  624. </FormItem>
  625. <FormItem className="half-item"
  626. {...formItemLayout}
  627. label="通讯地址" >
  628. <span>{theData.iOwnerPostalAddress}</span>
  629. </FormItem>
  630. </div>}
  631. <div className="clearfix">
  632. <FormItem className="half-item"
  633. {...formItemLayout}
  634. label="合作方式" >
  635. {(() => {
  636. switch (theData.cooperationMode) {
  637. case "0":
  638. return <span>技术转让</span>;
  639. case "1":
  640. return <span>授权生产</span>;
  641. }
  642. })()}
  643. </FormItem>
  644. <FormItem className="half-item"
  645. {...formItemLayout}
  646. label="转让方式" >
  647. <span>{getTransferMode(theData.transferMode)}</span>
  648. </FormItem>
  649. </div>
  650. <div className="clearfix">
  651. <FormItem className="half-item"
  652. {...formItemLayout}
  653. label="议价方式" >
  654. {(() => {
  655. switch (theData.bargainingMode) {
  656. case "0":
  657. return <span>面议</span>;
  658. case "1":
  659. return <span>定价</span>;
  660. }
  661. })()}
  662. </FormItem>
  663. {theData.bargainingMode == 0 ? <div></div> : <FormItem className="half-item"
  664. {...formItemLayout}
  665. label="转让价格" >
  666. <span>{theData.transferPrice} 万元</span>
  667. </FormItem>}
  668. </div>
  669. <FormItem
  670. labelCol={{ span: 4 }}
  671. wrapperCol={{ span: 18 }}
  672. label="技术场景" >
  673. <span>{theData.technicalScene}</span>
  674. </FormItem>
  675. <FormItem
  676. labelCol={{ span: 4 }}
  677. wrapperCol={{ span: 18 }}
  678. label="技术突破" >
  679. <span>{theData.breakthrough}</span>
  680. </FormItem>
  681. <FormItem
  682. labelCol={{ span: 4 }}
  683. wrapperCol={{ span: 18 }}
  684. label="专利情况" >
  685. <span>{theData.patentCase}</span>
  686. </FormItem>
  687. <FormItem
  688. labelCol={{ span: 4 }}
  689. wrapperCol={{ span: 18 }}
  690. label="获奖情况" >
  691. <span>{theData.awards}</span>
  692. </FormItem>
  693. <FormItem
  694. labelCol={{ span: 4 }}
  695. wrapperCol={{ span: 18 }}
  696. label="技术团队情况" >
  697. <span>{theData.teamDes}</span>
  698. </FormItem>
  699. <FormItem
  700. labelCol={{ span: 4 }}
  701. wrapperCol={{ span: 18 }}
  702. label="技术参数" >
  703. <span>{theData.parameter}</span>
  704. </FormItem>
  705. <FormItem
  706. labelCol={{ span: 4 }}
  707. wrapperCol={{ span: 6 }}
  708. label="技术方案" >
  709. <p>{theData.techPlanUrl ?
  710. <span className="download-file">
  711. <a onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/download?id=' + this.props.data.id + '&sign=achievement_tech_plan') }}>技术方案</a>
  712. </span>
  713. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
  714. </FormItem>
  715. <FormItem
  716. labelCol={{ span: 4 }}
  717. wrapperCol={{ span: 6 }}
  718. label="商业计划书" >
  719. <p>{theData.businessPlanUrl ?
  720. <span className="download-file">
  721. <a onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/download?id=' + this.props.data.id + '&sign=achievement_business_plan') }}>商业计划书</a>
  722. </span>
  723. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
  724. </FormItem>
  725. {window.showAuditStatus && theData.auditStatus == 2 ? <div className="clearfix">
  726. <FormItem className="half-item"
  727. {...formItemLayout}
  728. label="审核状态" >
  729. {getFieldDecorator('auditStatus')(
  730. <Radio.Group>
  731. <Radio value={3}>审核通过</Radio>
  732. <Radio value={4}>审核未通过</Radio>
  733. </Radio.Group>
  734. )}
  735. </FormItem>
  736. <FormItem className="half-item"
  737. {...formItemLayout}
  738. label="技术经纪人" >
  739. {getFieldDecorator('techBrokerId', {
  740. initialValue: theData.techBrokerId
  741. })(
  742. <Select style={{ width: 260 }}
  743. placeholder="请选择技术经纪人"
  744. notFoundContent="未获取到经纪人列表"
  745. showSearch
  746. filterOption={companySearch}>
  747. {this.props.techBrodersOption}
  748. </Select>
  749. )}
  750. </FormItem>
  751. </div> : <div></div>}
  752. {window.showAuditStatus && theData.auditStatus == 3 ? <div className="clearfix">
  753. <FormItem className="half-item"
  754. {...formItemLayout}
  755. label="指派新经纪人" >
  756. {getFieldDecorator('modifyTechBrokerId', {
  757. initialValue: theData.techBrokerId
  758. })(
  759. <Select style={{ width: 260 }}
  760. placeholder="请选择要指派的新经纪人"
  761. notFoundContent="未获取到经纪人列表"
  762. showSearch
  763. filterOption={companySearch}>
  764. {this.props.techBrodersOption}
  765. </Select>
  766. )}
  767. </FormItem>
  768. </div> : <div></div>}
  769. <Modal maskClosable={false} title="确认"
  770. visible={this.state.formSubmitVisible}
  771. width='360px'
  772. footer={null}
  773. onCancel={() => { this.setState({ formSubmitVisible: false }) }} >
  774. <span>确认该需求审核未通过?</span>
  775. <Button className="modal-submit" type="primary" onClick={this.formSubmit}>确认</Button>
  776. <Button className="modal-submit" type="ghost" onClick={() => { this.setState({ formSubmitVisible: false }) }}>取消</Button>
  777. </Modal>
  778. </Spin>
  779. </Form >
  780. )
  781. }
  782. }));
  783. const AchievementDetailForm = Form.create()(React.createClass({
  784. getInitialState() {
  785. return {
  786. loading: false,
  787. auditStatus: 0,
  788. textFileList: [],
  789. switchValue: false,
  790. radios: false,
  791. techPlanFileList: [],
  792. data: {},
  793. tags: [],
  794. technicalPictureUrl: [],
  795. coverImg: [],
  796. maturityPictureUrl: [],
  797. businessPlanFileList: [],
  798. dataSource: [],
  799. };
  800. },
  801. loadData(id, detailApiUrl) {
  802. this.setState({
  803. loading: true
  804. });
  805. $.ajax({
  806. method: "get",
  807. dataType: "json",
  808. crossDomain: false,
  809. url: globalConfig.context + detailApiUrl,
  810. data: {
  811. id: id,
  812. ownerType:this.props.data.ownerType
  813. },
  814. success: function (data) {
  815. let thisData = data.data;
  816. if (!thisData) {
  817. if (data.error && data.error.length) {
  818. message.warning(data.error[0].message);
  819. };
  820. thisData = {};
  821. };
  822. this.setState({
  823. data: thisData,
  824. orgDisplay: thisData.ownerType,
  825. switchValue: Boolean(!thisData.ownerId),
  826. radios: thisData.hot == '1' ? true : false,
  827. transferPriceDis: thisData.bargainingMode == 1 ? true : false,
  828. tags: thisData.keyword ? (thisData.keyword.replace(/(,|、)/g, ",")).split(',') : [],
  829. technicalPictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
  830. coverImg: thisData.coverImg ? splitUrl(thisData.coverImg, ',', globalConfig.avatarHost + '/upload') : [],
  831. maturityPictureUrl: thisData.maturityPictureUrl ? splitUrl(thisData.maturityPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
  832. });
  833. if (thisData.ownerType == "1" && thisData.ownerId) {
  834. this.getContactsList(thisData.ownerId);
  835. };
  836. }.bind(this),
  837. }).always(function () {
  838. this.setState({
  839. loading: false
  840. });
  841. }.bind(this));
  842. },
  843. getContactsList(theUid) {
  844. $.ajax({
  845. method: "get",
  846. dataType: "json",
  847. crossDomain: false,
  848. url: globalConfig.context + "/api/admin/getContacts",
  849. data: {
  850. uid: theUid
  851. },
  852. success: function (data) {
  853. let theOption = [];
  854. if (!data.data) {
  855. if (data.error && data.error.length) {
  856. message.warning(data.error[0].message);
  857. return;
  858. };
  859. };
  860. for (let item in data.data) {
  861. let theData = data.data[item];
  862. theOption.push(
  863. <Select.Option value={item} key={theData}>{theData}</Select.Option>
  864. );
  865. };
  866. this.setState({
  867. contactsOption: theOption
  868. });
  869. }.bind(this),
  870. });
  871. },
  872. getTagsArr(e) {
  873. this.setState({ tags: e });
  874. },
  875. getMaturityPictureUrl(e) {
  876. this.setState({ maturityPictureUrl: e });
  877. },
  878. getTechnicalPictureUrl(e) {
  879. this.setState({ technicalPictureUrl: e });
  880. },
  881. getcoverImg(e) {
  882. this.setState({coverImg: e });
  883. },
  884. handleSearch(e) {
  885. if (this.props.detailApiUrl.indexOf('org') != -1) {
  886. $.ajax({
  887. method: "get",
  888. dataType: "json",
  889. crossDomain: false,
  890. url: globalConfig.context + "/api/admin/achievement/orgOwner",
  891. data: { name: e },
  892. success: function (data) {
  893. let theArr = [];
  894. let theObj = {};
  895. if (!data.data) {
  896. if (data.error && data.error.length) {
  897. message.warning(data.error[0].message);
  898. };
  899. } else if (!$.isEmptyObject(data.data)) {
  900. data.data.map(function (item) {
  901. theArr.push(item.unitName);
  902. theObj[item.unitName] = item.uid;
  903. });
  904. };
  905. this.setState({
  906. dataSource: theArr,
  907. dataSourceObj: theObj
  908. });
  909. }.bind(this),
  910. });
  911. } else {
  912. $.ajax({
  913. method: "get",
  914. dataType: "json",
  915. crossDomain: false,
  916. url: globalConfig.context + "/api/admin/achievement/userOwner",
  917. data: { name: e },
  918. success: function (data) {
  919. let theArr = [];
  920. let theObj = {};
  921. if (!data.data) {
  922. if (data.error && data.error.length) {
  923. message.warning(data.error[0].message);
  924. };
  925. } else if (!$.isEmptyObject(data.data)) {
  926. for (let item in data.data) {
  927. theArr.push(data.data[item]);
  928. theObj[data.data[item]] = item;
  929. };
  930. };
  931. this.setState({
  932. dataSource: theArr,
  933. dataSourceObj: theObj
  934. });
  935. }.bind(this),
  936. });
  937. };
  938. },
  939. handleSubmit(e) {
  940. e.preventDefault();
  941. this.props.form.validateFields((err, values) => {
  942. //keyword长度判断
  943. if ((this.state.tags ? this.state.tags.length : this.props.tags.length) < 3) {
  944. message.warning('关键词数量不能小于3个!');
  945. return;
  946. };
  947. if (values.bargainingMode == 1 && !values.transferPrice) {
  948. message.warning('议价方式为[ 定价 ]时, [ 转让价格 ]不能为空!');
  949. return;
  950. }
  951. if(values.field[0]==undefined){
  952. message.warning('应用领域不能为空!')
  953. return false;
  954. }
  955. //url转化
  956. let theTechnicalPictureUrl = [];
  957. if (this.state.technicalPictureUrl.length) {
  958. let picArr = [];
  959. this.state.technicalPictureUrl.map(function (item) {
  960. if ( item.response && item.response.data && item.response.data.length ){
  961. picArr.push(item.response.data);
  962. }
  963. });
  964. theTechnicalPictureUrl = picArr.join(",");
  965. };
  966. let thecoverImg = [];
  967. if (this.state.coverImg.length) {
  968. let picArr = [];
  969. this.state.coverImg.map(function (item) {
  970. if ( item.response && item.response.data && item.response.data.length ){
  971. picArr.push(item.response.data);
  972. }
  973. });
  974. thecoverImg = picArr.join(",");
  975. };
  976. let theMaturityPictureUrl = [];
  977. if (this.state.maturityPictureUrl.length) {
  978. let picArr = [];
  979. this.state.maturityPictureUrl.map(function (item) {
  980. if ( item.response && item.response.data && item.response.data.length ){
  981. picArr.push(item.response.data);
  982. }
  983. });
  984. theMaturityPictureUrl = picArr.join(",");
  985. };
  986. if (!err) {
  987. this.setState({
  988. loading: true
  989. });
  990. $.ajax({
  991. method: "POST",
  992. dataType: "json",
  993. crossDomain: false,
  994. url: this.props.data.id ? globalConfig.context + '/api/admin/achievement/update' : globalConfig.context + '/api/admin/achievement/apply',
  995. data: {
  996. id: this.props.data.id,
  997. dataCategory: values.dataCategory,
  998. serialNumber: this.props.data.serialNumber,
  999. name: values.name,
  1000. keyword: this.state.tags ? this.state.tags.join(",") : this.props.tags.join(","),
  1001. keywords: this.state.tags ? this.state.tags : this.props.tags,
  1002. category: values.category,
  1003. summary: values.summary,
  1004. introduction: values.introduction,
  1005. remark: values.remark,
  1006. technicalPictureUrl: theTechnicalPictureUrl,
  1007. coverImg: thecoverImg,
  1008. fieldA: values.field ? values.field[0] : undefined,
  1009. fieldB: values.field ? values.field[1] : undefined,
  1010. maturity: values.maturity,
  1011. maturityPictureUrl: theMaturityPictureUrl,
  1012. maturityTextFileUrl: this.state.maturityTextFileUrl,
  1013. maturityVideoUrl: values.maturityVideoUrl,
  1014. innovation: values.innovation,
  1015. //
  1016. switchSign: this.state.switchValue ? 1 : 0,
  1017. //
  1018. ownerId: !this.state.switchValue ? (this.state.dataSourceObj ? this.state.dataSourceObj[values.iOwnerName] : this.state.data.ownerId) : undefined,
  1019. contacts: !this.state.switchValue ? values.contacts : undefined,
  1020. ownerType: this.state.orgDisplay,//this.props.detailApiUrl.indexOf('org') != -1 ? 1 : 0,
  1021. //自定义
  1022. ownerName: this.state.switchValue ? values.ownerName : undefined,
  1023. ownerIdNumber: this.state.switchValue ? values.ownerIdNumber : undefined,
  1024. ownerMobile: this.state.switchValue ? values.ownerMobile : undefined,
  1025. ownerEmail: this.state.switchValue ? values.ownerEmail : undefined,
  1026. ownerPostalAddress: this.state.switchValue ? values.ownerPostalAddress : undefined,
  1027. //
  1028. cooperationMode: values.cooperationMode,
  1029. transferMode: values.transferMode,
  1030. bargainingMode: values.bargainingMode,
  1031. transferPrice: values.transferPrice,
  1032. technicalScene: values.technicalScene,
  1033. breakthrough: values.breakthrough,
  1034. patentCase: values.patentCase,
  1035. awards: values.awards,
  1036. teamDes: values.teamDes,
  1037. parameter: values.parameter,
  1038. releaseStatus: values.releaseStatus,
  1039. techPlanUrl: this.state.techPlanUrl,
  1040. businessPlanUrl: this.state.businessPlanUrl,
  1041. auditStatus: this.state.auditStatus,
  1042. boutique: values.boutique,
  1043. internationalFlag:values.internationalFlag,
  1044. hot: values.hot,
  1045. }
  1046. }).done(function (data) {
  1047. this.state.auditStatus = 0;
  1048. this.setState({
  1049. loading: false
  1050. });
  1051. if (!data.error.length) {
  1052. message.success('保存成功!');
  1053. this.props.handleOk();
  1054. } else {
  1055. message.warning(data.error[0].message);
  1056. }
  1057. }.bind(this));
  1058. }
  1059. });
  1060. },
  1061. componentWillMount() {
  1062. this.state.therottleSearch = throttle(this.handleSearch, 1000, { leading: false }).bind(this);
  1063. if (this.props.data && this.props.data.id) {
  1064. this.loadData(this.props.data.id, this.props.detailApiUrl);
  1065. };
  1066. },
  1067. componentWillReceiveProps(nextProps) {
  1068. if (!this.props.visible && nextProps.visible) {
  1069. if (nextProps.data && nextProps.data.id) {
  1070. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1071. };
  1072. this.state.data = {};
  1073. this.state.tags = [];
  1074. this.state.switchValue = false;
  1075. this.state.radios = false;
  1076. this.state.technicalPictureUrl = [];
  1077. this.state.coverImg = [];
  1078. this.state.maturityPictureUrl = [];
  1079. this.state.textFileList = [];
  1080. this.state.techPlanFileList = [];
  1081. this.state.businessPlanFileList = [];
  1082. this.props.form.resetFields();
  1083. this.state.orgDisplay=undefined;
  1084. };
  1085. },
  1086. render() {
  1087. const theData = this.state.data || {};
  1088. const { getFieldDecorator } = this.props.form;
  1089. const FormItem = Form.Item
  1090. const formItemLayout = {
  1091. labelCol: { span: 8 },
  1092. wrapperCol: { span: 14 },
  1093. };
  1094. console.log(this.state.orgDisplay)
  1095. return (
  1096. <Form horizontal onSubmit={this.handleSubmit} id="demand-form">
  1097. <Spin spinning={this.state.loading}>
  1098. <div className="clearfix">
  1099. <FormItem className="half-item"
  1100. {...formItemLayout}
  1101. label="编号" >
  1102. <span>{theData.serialNumber}</span>
  1103. </FormItem>
  1104. <FormItem className="half-item"
  1105. {...formItemLayout}
  1106. label="名称" >
  1107. {getFieldDecorator('name', {
  1108. rules: [{ required: true, message: '此项为必填项!' }],
  1109. initialValue: theData.name
  1110. })(
  1111. <Input />
  1112. )}
  1113. </FormItem>
  1114. <FormItem className="half-item"
  1115. {...formItemLayout}
  1116. label="数据类别" >
  1117. {getFieldDecorator('dataCategory', {
  1118. rules: [{ required: true, message: '此项为必填项!' }],
  1119. initialValue: theData.dataCategory
  1120. })(
  1121. <Select placeholder="选择数据类型" style={{ width: 160 }} >
  1122. <Select.Option value="0" >成果</Select.Option>
  1123. <Select.Option value="1" >技术</Select.Option>
  1124. <Select.Option value="2" >项目</Select.Option>
  1125. </Select>
  1126. )}
  1127. </FormItem>
  1128. <FormItem className="half-item"
  1129. {...formItemLayout}
  1130. label="类型" >
  1131. {getFieldDecorator('category', {
  1132. rules: [{ required: true, message: '此项为必填项!' }],
  1133. initialValue: theData.category
  1134. })(
  1135. <Select style={{ width: 160 }} placeholder="请选择成果类型">
  1136. {this.props.achievementCategoryOption}
  1137. </Select>
  1138. )}
  1139. </FormItem>
  1140. <FormItem className="half-item"
  1141. {...formItemLayout}
  1142. label="精品成果" >
  1143. {getFieldDecorator('boutique', {
  1144. initialValue: theData.boutique
  1145. })(
  1146. <Radio.Group>
  1147. <Radio value="0">否</Radio>
  1148. <Radio value="1">是</Radio>
  1149. </Radio.Group>
  1150. )}
  1151. </FormItem>
  1152. <FormItem className="half-item"
  1153. {...formItemLayout}
  1154. label="首页展示:" >
  1155. {getFieldDecorator('hot', {
  1156. initialValue: theData.hot
  1157. })(
  1158. <Radio.Group onChange={(e) => { this.setState({ radios: e.target.value }); }}>
  1159. <Radio value="0">否</Radio>
  1160. <Radio value="1">是</Radio>
  1161. </Radio.Group>
  1162. )}
  1163. </FormItem>
  1164. {this.state.radios==true ? <FormItem
  1165. labelCol={{ span: 4 }}
  1166. wrapperCol={{ span: 18 }}
  1167. label="首页展示图片:"
  1168. style={{display:'block'}}
  1169. >
  1170. <PicturesWall
  1171. pictureSign="achievement_cover_picture"
  1172. fileList={this.getcoverImg}
  1173. pictureUrl={this.state.coverImg} />
  1174. <p>图片尺寸建议:220X140(像素)</p>
  1175. </FormItem>:<div></div>}
  1176. <div className="clearfix">
  1177. <FormItem className="half-item"
  1178. {...formItemLayout}
  1179. label="是否发布" >
  1180. {(() => {
  1181. switch (theData.releaseStatus) {
  1182. case "0":
  1183. return <span>未发布</span>;
  1184. case "1":
  1185. return <span>已发布</span>;
  1186. }
  1187. })()}
  1188. </FormItem>
  1189. <FormItem className="half-item"
  1190. {...formItemLayout}
  1191. label="发布时间" >
  1192. <span>{theData.releaseDateFormattedDate}</span>
  1193. </FormItem>
  1194. <FormItem className="half-item"
  1195. {...formItemLayout}
  1196. label="审核状态" >
  1197. <span>{getTechAuditStatus(theData.auditStatus)}</span>
  1198. </FormItem>
  1199. <FormItem className="half-item"
  1200. {...formItemLayout}
  1201. label="是否国际" >
  1202. {getFieldDecorator('internationalFlag', {
  1203. initialValue: theData.internationalFlag
  1204. })(
  1205. <Radio.Group>
  1206. <Radio value="0">否</Radio>
  1207. <Radio value="1">是</Radio>
  1208. </Radio.Group>
  1209. )}
  1210. </FormItem>
  1211. </div>
  1212. </div>
  1213. <FormItem
  1214. labelCol={{ span: 4 }}
  1215. wrapperCol={{ span: 18 }}
  1216. label="关键词" >
  1217. <KeyWordTagGroup
  1218. keyWordArr={this.state.tags}
  1219. tagsArr={this.getTagsArr} />
  1220. </FormItem>
  1221. <FormItem
  1222. labelCol={{ span: 4 }}
  1223. wrapperCol={{ span: 18 }}
  1224. label="成果类别" >
  1225. <Select placeholder="选择成果类别" style={{ width: 120 }}
  1226. value={this.state.orgDisplay}
  1227. onChange={(e) => { this.setState({ orgDisplay: e }) }}>
  1228. <Select.Option value="0" >个人</Select.Option>
  1229. <Select.Option value="1" >组织</Select.Option>
  1230. </Select>
  1231. </FormItem>
  1232. <FormItem
  1233. labelCol={{ span: 4 }}
  1234. wrapperCol={{ span: 18 }}
  1235. label="摘要" >
  1236. {getFieldDecorator('summary', {
  1237. initialValue: theData.summary
  1238. })(
  1239. <Input type="textarea" rows={4} />
  1240. )}
  1241. </FormItem>
  1242. <FormItem
  1243. labelCol={{ span: 4 }}
  1244. wrapperCol={{ span: 18 }}
  1245. label="成果简介" >
  1246. {getFieldDecorator('introduction', {
  1247. initialValue: theData.introduction
  1248. })(
  1249. <Input type="textarea" rows={4} placeholder="项目成果简介;项目核心创新点;项目详细用途;预期效益说明;主要技术(性能)指标;市场前景;应用范围;发展历程。" />
  1250. )}
  1251. </FormItem>
  1252. <FormItem
  1253. labelCol={{ span: 4 }}
  1254. wrapperCol={{ span: 18 }}
  1255. label="备注" >
  1256. {getFieldDecorator('remark', {
  1257. initialValue: theData.remark
  1258. })(
  1259. <Input type="textarea" rows={4} placeholder="此处输入备注" />
  1260. )}
  1261. </FormItem>
  1262. <FormItem
  1263. labelCol={{ span: 4 }}
  1264. wrapperCol={{ span: 18 }}
  1265. label="技术图片" >
  1266. <PicturesWall
  1267. pictureSign="achievement_technical_picture"
  1268. fileList={this.getTechnicalPictureUrl}
  1269. pictureUrl={this.state.technicalPictureUrl} />
  1270. <p>图片建议:专利证书或专利申请书图片、技术图纸、样品图片、技术相关网络图片;成熟度处于非研发阶段的项目,必须上传样品图片,如未上传,成熟度将视为处在研发阶段。</p>
  1271. </FormItem>
  1272. <FormItem
  1273. labelCol={{ span: 4 }}
  1274. wrapperCol={{ span: 18 }}
  1275. label="应用领域" >
  1276. {getFieldDecorator('field', {
  1277. rules: [{ type: 'array', required: true, message: '此项为必填项!' }],
  1278. initialValue: [theData.fieldA, theData.fieldB]
  1279. })(
  1280. <Cascader style={{ width: 300 }} options={IndustryObject} placeholder="应用领域" />
  1281. )}
  1282. </FormItem>
  1283. <div className="clearfix">
  1284. <FormItem className="half-item"
  1285. {...formItemLayout}
  1286. label="成熟度" >
  1287. {getFieldDecorator('maturity', {
  1288. initialValue: theData.maturity
  1289. })(
  1290. <Select placeholder="选择成熟度" style={{ width: 160 }} >
  1291. {
  1292. maturityList.map(function (item) {
  1293. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1294. })
  1295. }
  1296. </Select>
  1297. )}
  1298. </FormItem>
  1299. <FormItem className="half-item"
  1300. {...formItemLayout}
  1301. label="创新度" >
  1302. {getFieldDecorator('innovation', {
  1303. initialValue: theData.innovation
  1304. })(
  1305. <Select placeholder="选择创新度" style={{ width: 160 }} >
  1306. {
  1307. innovationList.map(function (item) {
  1308. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1309. })
  1310. }
  1311. </Select>
  1312. )}
  1313. </FormItem>
  1314. </div>
  1315. <FormItem
  1316. labelCol={{ span: 4 }}
  1317. wrapperCol={{ span: 18 }}
  1318. label="成熟度证明材料(图片)" >
  1319. <PicturesWall
  1320. pictureSign="achievement_maturity_picture"
  1321. fileList={this.getMaturityPictureUrl}
  1322. pictureUrl={this.state.maturityPictureUrl} />
  1323. </FormItem>
  1324. <FormItem
  1325. labelCol={{ span: 4 }}
  1326. wrapperCol={{ span: 6 }}
  1327. label="成熟度证明材料(文本)" >
  1328. <Upload
  1329. name="ratepay"
  1330. action={globalConfig.context + "/api/admin/achievement/uploadTextFile"}
  1331. data={{ 'sign': 'achievement_maturity_text_file' }}
  1332. beforeUpload={beforeUploadFile}
  1333. fileList={this.state.textFileList}
  1334. onChange={(info) => {
  1335. if (info.file.status !== 'uploading') {
  1336. }
  1337. if (info.file.status === 'done') {
  1338. if (!info.file.response.error.length) {
  1339. message.success(`${info.file.name} 文件上传成功!`);
  1340. } else {
  1341. message.warning(info.file.response.error[0].message);
  1342. return;
  1343. };
  1344. this.state.maturityTextFileUrl = info.file.response.data;
  1345. } else if (info.file.status === 'error') {
  1346. message.error(`${info.file.name} 文件上传失败。`);
  1347. };
  1348. this.setState({ textFileList: info.fileList.slice(-1) });
  1349. }} >
  1350. <Button><Icon type="upload" /> 上传成熟度证明文本 </Button>
  1351. </Upload>
  1352. <p style={{ marginTop: '10px' }}>{theData.maturityTextFileUrl ?
  1353. <span className="download-file">
  1354. <a onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/download?id=' + this.props.data.id + '&sign=achievement_maturity_text_file') }}>成熟度证明材料(文本文件)</a>
  1355. </span>
  1356. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
  1357. </FormItem>
  1358. <FormItem
  1359. labelCol={{ span: 4 }}
  1360. wrapperCol={{ span: 18 }}
  1361. label="成熟度证明材料(视频地址)" >
  1362. {getFieldDecorator('maturityVideoUrl', {
  1363. initialValue: theData.maturityVideoUrl
  1364. })(
  1365. <Input />
  1366. )}
  1367. </FormItem>
  1368. <FormItem
  1369. labelCol={{ span: 4 }}
  1370. wrapperCol={{ span: 18 }}
  1371. label="自定义成果所有人" >
  1372. <Switch checked={this.state.switchValue} onChange={(e) => { this.setState({ switchValue: e }); }} />
  1373. </FormItem>
  1374. {this.state.switchValue ? <div className="clearfix" >
  1375. <FormItem className="half-item"
  1376. {...formItemLayout}
  1377. label="成果所有人" >
  1378. {getFieldDecorator('ownerName', {
  1379. initialValue: theData.ownerName
  1380. })(
  1381. <Input />
  1382. )}
  1383. </FormItem>
  1384. <FormItem className="half-item"
  1385. {...formItemLayout}
  1386. label="联系电话" >
  1387. {getFieldDecorator('ownerMobile', {
  1388. initialValue: theData.ownerMobile
  1389. })(
  1390. <Input />
  1391. )}
  1392. </FormItem>
  1393. <FormItem className="half-item"
  1394. {...formItemLayout}
  1395. label="证件号" >
  1396. {getFieldDecorator('ownerIdNumber', {
  1397. initialValue: theData.ownerIdNumber
  1398. })(
  1399. <Input />
  1400. )}
  1401. </FormItem>
  1402. <FormItem className="half-item"
  1403. {...formItemLayout}
  1404. label="电子邮箱" >
  1405. {getFieldDecorator('ownerEmail', {
  1406. initialValue: theData.ownerEmail
  1407. })(
  1408. <Input />
  1409. )}
  1410. </FormItem>
  1411. <FormItem className="half-item"
  1412. {...formItemLayout}
  1413. label="通讯地址" >
  1414. {getFieldDecorator('ownerPostalAddress', {
  1415. initialValue: theData.ownerPostalAddress
  1416. })(
  1417. <Input />
  1418. )}
  1419. </FormItem>
  1420. </div> : <div className="clearfix" >
  1421. <FormItem className="half-item"
  1422. {...formItemLayout}
  1423. label="成果所有人" >
  1424. {getFieldDecorator('iOwnerName', {
  1425. initialValue: theData.iOwnerName || ''
  1426. })(
  1427. <AutoComplete
  1428. dataSource={this.state.dataSource}
  1429. style={{ width: 200 }}
  1430. onSearch={this.state.therottleSearch}
  1431. placeholder="输入成果所有人"
  1432. onSelect={(e) => {
  1433. this.getContactsList(this.state.dataSourceObj[e]);
  1434. }} />
  1435. )}
  1436. </FormItem>
  1437. {this.props.detailApiUrl.indexOf('org') >= 0 ? <FormItem className="half-item"
  1438. {...formItemLayout}
  1439. label="联系人" >
  1440. {getFieldDecorator('contacts', {
  1441. initialValue: theData.contacts
  1442. })(
  1443. <Select style={{ width: 260 }}
  1444. placeholder="请选择联系人"
  1445. notFoundContent="未获取到联系人列表"
  1446. showSearch
  1447. filterOption={companySearch}>
  1448. {this.state.contactsOption}
  1449. </Select>
  1450. )}
  1451. </FormItem> : <div></div>}
  1452. </div>}
  1453. <div className="clearfix">
  1454. <FormItem className="half-item"
  1455. {...formItemLayout}
  1456. label="合作方式" >
  1457. {getFieldDecorator('cooperationMode', {
  1458. rules: [{ required: true, message: '此项为必填项!' }],
  1459. initialValue: theData.cooperationMode
  1460. })(
  1461. <Radio.Group>
  1462. <Radio value="0">技术转让</Radio>
  1463. <Radio value="1">授权生产</Radio>
  1464. </Radio.Group>
  1465. )}
  1466. </FormItem>
  1467. <FormItem className="half-item"
  1468. {...formItemLayout}
  1469. label="转让方式" >
  1470. {getFieldDecorator('transferMode', {
  1471. initialValue: theData.transferMode
  1472. })(
  1473. <Select placeholder="选择转让方式" style={{ width: 160 }} >
  1474. {
  1475. transferModeList.map(function (item) {
  1476. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1477. })
  1478. }
  1479. </Select>
  1480. )}
  1481. </FormItem>
  1482. </div>
  1483. <div className="clearfix">
  1484. <FormItem className="half-item"
  1485. {...formItemLayout}
  1486. label="议价方式" >
  1487. {getFieldDecorator('bargainingMode', {
  1488. initialValue: theData.bargainingMode
  1489. })(
  1490. <Radio.Group onChange={(e) => {
  1491. this.setState({
  1492. transferPriceDis: (e.target.value == 1 ? true : false)
  1493. })
  1494. }}>
  1495. <Radio value="0">面议</Radio>
  1496. <Radio value="1">定价</Radio>
  1497. </Radio.Group>
  1498. )}
  1499. </FormItem>
  1500. {this.state.transferPriceDis ? <FormItem className="half-item"
  1501. {...formItemLayout}
  1502. label="转让价格" >
  1503. {getFieldDecorator('transferPrice', {
  1504. initialValue: theData.transferPrice || 0
  1505. })(
  1506. <InputNumber min={0} max={999999} step={0.01} />
  1507. )}
  1508. <span style={{ marginLeft: '20px' }}>万元</span>
  1509. </FormItem> : <div></div>}
  1510. </div>
  1511. <FormItem
  1512. labelCol={{ span: 4 }}
  1513. wrapperCol={{ span: 18 }}
  1514. label="技术场景" >
  1515. {getFieldDecorator('technicalScene', {
  1516. initialValue: theData.technicalScene
  1517. })(
  1518. <Input type="textarea" rows={2} placeholder="说明解决了什么问题。" />
  1519. )}
  1520. </FormItem>
  1521. <FormItem
  1522. labelCol={{ span: 4 }}
  1523. wrapperCol={{ span: 18 }}
  1524. label="技术突破" >
  1525. {getFieldDecorator('breakthrough', {
  1526. initialValue: theData.breakthrough
  1527. })(
  1528. <Input type="textarea" rows={2} placeholder="说明该技术成果突破性的研究。" />
  1529. )}
  1530. </FormItem>
  1531. <FormItem
  1532. labelCol={{ span: 4 }}
  1533. wrapperCol={{ span: 18 }}
  1534. label="专利情况" >
  1535. {getFieldDecorator('patentCase', {
  1536. initialValue: theData.patentCase
  1537. })(
  1538. <Input type="textarea" rows={2} placeholder="一个“技术”可能由多个专利构成,需要说明技术-专利的关系。" />
  1539. )}
  1540. </FormItem>
  1541. <FormItem
  1542. labelCol={{ span: 4 }}
  1543. wrapperCol={{ span: 18 }}
  1544. label="获奖情况" >
  1545. {getFieldDecorator('awards', {
  1546. initialValue: theData.awards
  1547. })(
  1548. <Input type="textarea" rows={2} placeholder="一个“技术”可能存在社会奖励情况,需要说明社会奖励情况。" />
  1549. )}
  1550. </FormItem>
  1551. <FormItem
  1552. labelCol={{ span: 4 }}
  1553. wrapperCol={{ span: 18 }}
  1554. label="技术团队情况" >
  1555. {getFieldDecorator('teamDes', {
  1556. initialValue: theData.teamDes
  1557. })(
  1558. <Input type="textarea" rows={2} placeholder="一个“技术”、“项目”可能存在团队,需要说明团队情况。" />
  1559. )}
  1560. </FormItem>
  1561. <FormItem
  1562. labelCol={{ span: 4 }}
  1563. wrapperCol={{ span: 18 }}
  1564. label="技术参数" >
  1565. {getFieldDecorator('parameter', {
  1566. initialValue: theData.parameter
  1567. })(
  1568. <Input type="textarea" rows={2} placeholder="描述技术参数信息" />
  1569. )}
  1570. </FormItem>
  1571. <FormItem
  1572. labelCol={{ span: 4 }}
  1573. wrapperCol={{ span: 6 }}
  1574. label="技术方案" >
  1575. <Upload
  1576. name="ratepay"
  1577. action={globalConfig.context + "/api/admin/achievement/uploadTextFile"}
  1578. data={{ 'sign': 'achievement_tech_plan' }}
  1579. beforeUpload={beforeUploadFile}
  1580. fileList={this.state.techPlanFileList}
  1581. onChange={(info) => {
  1582. if (info.file.status !== 'uploading') {
  1583. }
  1584. if (info.file.status === 'done') {
  1585. if (!info.file.response.error.length) {
  1586. message.success(`${info.file.name} 文件上传成功!`);
  1587. } else {
  1588. message.warning(info.file.response.error[0].message);
  1589. return;
  1590. };
  1591. this.state.techPlanUrl = info.file.response.data;
  1592. } else if (info.file.status === 'error') {
  1593. message.error(`${info.file.name} 文件上传失败。`);
  1594. };
  1595. this.setState({ techPlanFileList: info.fileList.slice(-1) });
  1596. }} >
  1597. <Button><Icon type="upload" /> 上传技术方案文件 </Button>
  1598. </Upload>
  1599. <p style={{ marginTop: '10px' }}>{theData.techPlanUrl ?
  1600. <span className="download-file">
  1601. <a onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/download?id=' + this.props.data.id + '&sign=achievement_tech_plan') }}>技术方案</a>
  1602. </span>
  1603. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
  1604. </FormItem>
  1605. <FormItem
  1606. labelCol={{ span: 4 }}
  1607. wrapperCol={{ span: 6 }}
  1608. label="商业计划书" >
  1609. <Upload
  1610. name="ratepay"
  1611. action={globalConfig.context + "/api/admin/achievement/uploadTextFile"}
  1612. data={{ 'sign': 'achievement_business_plan' }}
  1613. beforeUpload={beforeUploadFile}
  1614. fileList={this.state.businessPlanFileList}
  1615. onChange={(info) => {
  1616. if (info.file.status !== 'uploading') {
  1617. }
  1618. if (info.file.status === 'done') {
  1619. if (!info.file.response.error.length) {
  1620. message.success(`${info.file.name} 文件上传成功!`);
  1621. } else {
  1622. message.warning(info.file.response.error[0].message);
  1623. return;
  1624. };
  1625. this.state.businessPlanUrl = info.file.response.data;
  1626. } else if (info.file.status === 'error') {
  1627. message.error(`${info.file.name} 文件上传失败。`);
  1628. };
  1629. this.setState({ businessPlanFileList: info.fileList.slice(-1) });
  1630. }} >
  1631. <Button><Icon type="upload" /> 上传商业计划书文件 </Button>
  1632. </Upload>
  1633. <p style={{ marginTop: '10px' }}>{theData.businessPlanUrl ?
  1634. <span className="download-file">
  1635. <a onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/download?id=' + this.props.data.id + '&sign=achievement_business_plan') }}>商业计划书</a>
  1636. </span>
  1637. : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
  1638. </FormItem>
  1639. </Spin>
  1640. </Form >
  1641. )
  1642. }
  1643. }));
  1644. const AchievementDetail = React.createClass({
  1645. getInitialState() {
  1646. return {
  1647. visible: false,
  1648. tabsKey: 1,
  1649. loading: false,
  1650. columns: [
  1651. {
  1652. title: '编号',
  1653. dataIndex: 'serialNumber',
  1654. key: 'serialNumber',
  1655. }, {
  1656. title: '数据类型',
  1657. dataIndex: 'dataCategory',
  1658. key: 'dataCategory',
  1659. render: text => {
  1660. switch (text) {
  1661. case "0":
  1662. return <span>成果</span>;
  1663. case "1":
  1664. return <span>技术</span>;
  1665. case "2":
  1666. return <span>项目</span>;
  1667. }
  1668. }
  1669. }, {
  1670. title: '名称',
  1671. dataIndex: 'name',
  1672. key: 'name',
  1673. }, {
  1674. title: '关键字',
  1675. dataIndex: 'keyword',
  1676. key: 'keyword',
  1677. }, {
  1678. title: '类型',
  1679. dataIndex: 'demandType',
  1680. key: 'demandType',
  1681. render: text => { return getDemandType(text); }
  1682. }, {
  1683. title: '所有人名称',
  1684. dataIndex: 'theName',
  1685. key: 'theName',
  1686. }, {
  1687. title: '发布时间',
  1688. dataIndex: 'releaseDateFormattedDate',
  1689. key: 'releaseDateFormattedDate',
  1690. }, {
  1691. title: '有效期限',
  1692. dataIndex: 'validityPeriodFormattedDate',
  1693. key: 'validityPeriodFormattedDate',
  1694. },
  1695. ],
  1696. dataSource: [],
  1697. };
  1698. },
  1699. getTechBrodersList() {
  1700. this.setState({
  1701. loading: true
  1702. });
  1703. $.ajax({
  1704. method: "get",
  1705. dataType: "json",
  1706. crossDomain: false,
  1707. url: globalConfig.context + "/api/admin/audit/techBroders",
  1708. success: function (data) {
  1709. if (!data.data) {
  1710. if (data.error && data.error.length) {
  1711. message.warning(data.error[0].message);
  1712. }
  1713. return;
  1714. };
  1715. let _me = this, theArr = [];
  1716. for (var item in data.data) {
  1717. theArr.push(
  1718. <Select.Option key={item}>{data.data[item]}</Select.Option>
  1719. )
  1720. };
  1721. this.setState({
  1722. techBrodersOption: theArr,
  1723. techBrodersObj: data.data
  1724. });
  1725. }.bind(this),
  1726. }).always(function () {
  1727. this.setState({
  1728. loading: false
  1729. });
  1730. }.bind(this));
  1731. },
  1732. getTableList() {
  1733. this.setState({
  1734. loading: true
  1735. });
  1736. $.ajax({
  1737. method: "get",
  1738. dataType: "json",
  1739. crossDomain: false,
  1740. url: globalConfig.context + "/api/admin/achievement/achievementDemand",
  1741. data: { id: this.props.data.id },
  1742. success: function (data) {
  1743. let theArr = [];
  1744. if (!data.data) {
  1745. if (data.error && data.error.length) {
  1746. message.warning(data.error[0].message);
  1747. };
  1748. } else if (data.data.length) {
  1749. for (let i = 0; i < data.data.length; i++) {
  1750. let thisdata = data.data[i];
  1751. theArr.push({
  1752. key: i,
  1753. id: thisdata.id,
  1754. serialNumber: thisdata.serialNumber,
  1755. dataCategory: thisdata.dataCategory,
  1756. name: thisdata.name,
  1757. keyword: thisdata.keyword,
  1758. demandType: thisdata.demandType,
  1759. theName: thisdata.username || thisdata.unitName,
  1760. releaseDateFormattedDate: thisdata.releaseDateFormattedDate,
  1761. validityPeriodFormattedDate: thisdata.validityPeriodFormattedDate,
  1762. coverImg: thisdata.coverImg,
  1763. hot: thisdata.hot,
  1764. internationalFlag:thisdata.internationalFlag,
  1765. });
  1766. };
  1767. };
  1768. this.setState({
  1769. dataSource: theArr,
  1770. });
  1771. }.bind(this),
  1772. }).always(function () {
  1773. this.setState({
  1774. loading: false
  1775. });
  1776. }.bind(this));
  1777. },
  1778. tableRowClick(record, index) {
  1779. window.open(globalConfig.context + '/portal/detail/demandDetail.html?id=' + record.id + '&type=' + record.dataCategory);
  1780. },
  1781. handleCancel(e) {
  1782. this.setState({
  1783. visible: false,
  1784. });
  1785. this.props.closeDesc(false);
  1786. },
  1787. handleOk(e) {
  1788. this.setState({
  1789. visible: false,
  1790. });
  1791. this.props.closeDesc(false, true);
  1792. },
  1793. componentWillMount() {
  1794. this.getTechBrodersList();
  1795. },
  1796. componentWillReceiveProps(nextProps) {
  1797. if (!this.state.visible && nextProps.showDesc) {
  1798. this.state.tabsKey = "1";
  1799. };
  1800. this.state.visible = nextProps.showDesc;
  1801. },
  1802. render() {
  1803. if (this.props.data) {
  1804. return (
  1805. <div className="patent-desc">
  1806. <Modal maskClosable={false} visible={this.state.visible}
  1807. onOk={this.checkPatentProcess} onCancel={this.handleCancel}
  1808. width='1000px'
  1809. footer=''
  1810. className="admin-desc-content">
  1811. <Spin spinning={this.state.loading}>
  1812. <Tabs activeKey={this.state.tabsKey}
  1813. onChange={(e) => {
  1814. this.setState({ tabsKey: e });
  1815. if (e == "2") {
  1816. this.getTableList();
  1817. };
  1818. }} >
  1819. <Tabs.TabPane tab="成果详情" key="1">
  1820. {(() => {
  1821. if (this.props.data.id && this.props.data.auditStatus != "0" && this.props.data.auditStatus != "4") {
  1822. return <AchievementDetailShow
  1823. data={this.props.data}
  1824. detailApiUrl={this.props.detailApiUrl}
  1825. techBrodersOption={this.state.techBrodersOption}
  1826. techBrodersObj={this.state.techBrodersObj}
  1827. closeDesc={this.handleCancel}
  1828. visible={this.state.visible}
  1829. handleOk={this.handleOk} />
  1830. } else {
  1831. return <AchievementDetailForm
  1832. data={this.props.data}
  1833. detailApiUrl={this.props.detailApiUrl}
  1834. achievementCategoryOption={this.props.achievementCategoryOption}
  1835. techBrodersObj={this.state.techBrodersObj}
  1836. closeDesc={this.handleCancel}
  1837. visible={this.state.visible}
  1838. handleOk={this.handleOk} />
  1839. };
  1840. })()}
  1841. </Tabs.TabPane>
  1842. <Tabs.TabPane tab="匹配列表" key="2" disabled={!this.props.data.id}>
  1843. <Table columns={this.state.columns}
  1844. dataSource={this.state.dataSource}
  1845. pagination={false}
  1846. onRowClick={this.tableRowClick} />
  1847. </Tabs.TabPane>
  1848. </Tabs>
  1849. </Spin>
  1850. </Modal>
  1851. </div>
  1852. );
  1853. } else {
  1854. return <div></div>
  1855. }
  1856. },
  1857. });
  1858. export default AchievementDetail;