comprehensive.jsx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. import React from 'react';
  2. import { Icon, Button, Input, Select, Spin, Table, Switch, DatePicker, message, Upload, Modal, Cascader } from 'antd';
  3. import { patentTypeList, patentStateList } from '../../../dataDic.js';
  4. import { provinceSelect, getProvince } from '../../../NewDicProvinceList';
  5. import { getTime, getPatentState, beforeUploadFile, companySearch, getSearchUrl, getPatentType } from '../../../tools.js';
  6. import ajax from 'jquery/src/ajax/xhr.js';
  7. import $ from 'jquery/src/ajax';
  8. import moment from 'moment';
  9. import './comprehensive.less';
  10. import PatentAdd from './comPatentAdd.jsx';
  11. import PatentDesc from './comPatentDesc.jsx';
  12. const Patent = React.createClass({
  13. loadData(pageNo) {
  14. this.state.data = [];
  15. this.setState({
  16. loading: true
  17. });
  18. $.ajax({
  19. method: "get",
  20. dataType: "json",
  21. crossDomain: false,
  22. url: globalConfig.context + "/api/admin/patent/patentList",
  23. data: {
  24. pageNo: pageNo || 1,
  25. pageSize: this.state.pagination.pageSize || null,
  26. serialNumber: this.state.number || null,
  27. patentNumber: this.state.patentNumber || null,
  28. patentName: this.state.patentName || null,
  29. locationProvince: this.state.province ? this.state.province[0] : null,
  30. uid: this.state.unitId || null,
  31. contractId: this.state.contractId,
  32. patentCatagory: this.state.patentType || null,
  33. patentState: this.state.patentState || null,
  34. createTime: this.state.createTime || null,
  35. patentApplicationDate: this.state.acceptTime || null,
  36. authorizedDate: this.state.authTime || null,
  37. },
  38. success: function (data) {
  39. if (data.error.length || !data.data || !data.data.list) {
  40. message.warning(data.error[0].message);
  41. return;
  42. }
  43. for (let i = 0; i < data.data.list.length; i++) {
  44. let thisdata = data.data.list[i];
  45. this.state.data.push({
  46. key: i,
  47. id: thisdata.id,
  48. oid: thisdata.oid,
  49. uid: thisdata.uid,
  50. contractNumber: thisdata.contractNumber,
  51. number: thisdata.serialNumber || '',
  52. patentNumber: thisdata.patentNumber || '',
  53. unitName: thisdata.unitName || '',
  54. patentName: thisdata.patentName || '',
  55. patentCatagory: thisdata.patentCatagory ? getPatentType(thisdata.patentCatagory) : '',
  56. patentState: thisdata.patentState || '0',
  57. patentField: thisdata.patentField || '0',
  58. patentDes: thisdata.patentDes || '',
  59. patentProryStatementUrl: thisdata.patentProryStatementUrl, //专利代理委托书
  60. patentWritingUrl: thisdata.patentWritingUrl, //专利稿件
  61. authorizationNoticeUrl: thisdata.authorizationNoticeUrl, //授权通知书
  62. patentCertificateUrl: thisdata.patentCertificateUrl, //专利证书
  63. lastYearTaxReportUrl: thisdata.lastYearTaxReportUrl, //上年度纳税表
  64. patentProryStatementDownloadFileName: thisdata.patentProryStatementDownloadFileName, //专利代理委托书
  65. patentWritingDownloadFileName: thisdata.patentWritingDownloadFileName, //专利稿件
  66. authorizationNoticeDownloadFileName: thisdata.authorizationNoticeDownloadFileName, //授权通知书
  67. patentCertificateDownloadFileName: thisdata.patentCertificateDownloadFileName, //专利证书
  68. lastYearTaxReportDownloadFileName: thisdata.lastYearTaxReportDownloadFileName, //上年度纳税表
  69. startTime: thisdata.patentApplicationDate,
  70. endTime: thisdata.authorizedDate,
  71. orgCode: thisdata.orgCode,
  72. province: thisdata.locationProvince,
  73. companyAddress: getProvince(thisdata.locationProvince, thisdata.locationCity, thisdata.locationArea),
  74. companyContacts: thisdata.contacts, //联系人
  75. firstInventorName: thisdata.firstInventorName,
  76. firstInventorNationality: thisdata.firstInventorNationality, //国籍
  77. firstInventorIdNumber: thisdata.firstInventorIdNumber, //id
  78. firstInventorIsPublish: thisdata.firstInventorIsPublish, //是否公布
  79. secondInventorName: thisdata.secondInventorName,
  80. secondInventorNationality: thisdata.secondInventorNationality,
  81. secondInventorIsPublish: thisdata.secondInventorIsPublish,
  82. thirdInventorName: thisdata.thirdInventorName,
  83. thirdInventorNationality: thisdata.thirdInventorNationality,
  84. thirdInventorIsPublish: thisdata.thirdInventorIsPublish,
  85. createTime: thisdata.createTime, //派单日
  86. author: thisdata.author, //撰写人
  87. office: thisdata.office, //事务所
  88. principal: thisdata.principal, //负责人
  89. founder: thisdata.founder, //创建人
  90. techPrincipal: thisdata.techPrincipal //技术员
  91. });
  92. };
  93. this.state.pagination.current = data.data.pageNo;
  94. this.state.pagination.total = data.data.totalCount;
  95. this.setState({
  96. dataSource: this.state.data,
  97. pagination: this.state.pagination
  98. });
  99. }.bind(this),
  100. }).always(function () {
  101. this.setState({
  102. loading: false
  103. });
  104. }.bind(this));
  105. },
  106. getOptionList() {
  107. this.setState({
  108. loading: true
  109. });
  110. $.when($.ajax({
  111. method: "get",
  112. dataType: "json",
  113. crossDomain: false,
  114. url: globalConfig.context + "/api/admin/getUnitNames",
  115. data: { "pid": this.state.data.id },
  116. }), $.ajax({
  117. method: "get",
  118. dataType: "json",
  119. crossDomain: false,
  120. url: globalConfig.context + "/api/admin/patent/getPrincipal"
  121. }), $.ajax({
  122. method: "get",
  123. dataType: "json",
  124. crossDomain: false,
  125. url: globalConfig.context + "/api/admin/patent/patentStatus"
  126. })).done((data1, data2, data3) => {
  127. let _me = this;
  128. if (!data1[0].data) {
  129. if (data1[0].error.length) {
  130. message.warning(data1[0].error[0].message);
  131. };
  132. } else {
  133. for (var item in data1[0].data) {
  134. _me.state.companyOption.push(
  135. <Select.Option value={item} key={item}>{data1[0].data[item]}</Select.Option>
  136. )
  137. };
  138. };
  139. if (!data2[0].data) {
  140. if (data2[0].error.length) {
  141. message.warning(data2[0].error[0].message);
  142. };
  143. } else {
  144. _me.state.adminOption = [];
  145. for (var item in data2[0].data) {
  146. _me.state.adminOption.push(
  147. <Select.Option value={item} key={item}>{data2[0].data[item]}</Select.Option>
  148. )
  149. };
  150. };
  151. if (!data3[0].data) {
  152. if (data3[0].error && data3[0].error.length) {
  153. message.warning(data3[0].error[0].message);
  154. };
  155. } else {
  156. _me.state.patentStateOption = [];
  157. for (var item in data3[0].data) {
  158. _me.state.patentStateOption.push(
  159. <Select.Option value={item} key={item}>{data3[0].data[item]}</Select.Option>
  160. )
  161. };
  162. };
  163. }).always(function () {
  164. this.setState({
  165. loading: false
  166. });
  167. }.bind(this));
  168. },
  169. getContractList() {
  170. this.setState({
  171. loading: true
  172. });
  173. $.ajax({
  174. method: "get",
  175. dataType: "json",
  176. crossDomain: false,
  177. url: globalConfig.context + "/api/admin/contract/serialNumber",
  178. success: function (data) {
  179. if (!data.data) {
  180. if (data.error && data.error.length) {
  181. message.warning(data.error[0].message);
  182. };
  183. return;
  184. };
  185. let theArr = [];
  186. for (let i = 0; i < data.data.length; i++) {
  187. let item = data.data[i];
  188. theArr.push(
  189. <Select.Option value={item.contractId} key={item.contractId}>{item.serialNumber}</Select.Option>
  190. );
  191. };
  192. this.setState({
  193. contractListOption: theArr
  194. });
  195. }.bind(this),
  196. }).always(function () {
  197. this.setState({
  198. loading: false
  199. });
  200. }.bind(this));
  201. },
  202. getInitialState() {
  203. return {
  204. createTime: [],
  205. acceptTime: [],
  206. authTime: [],
  207. patentTypeOption: [],
  208. patentStateOption: [],
  209. companyOption: [],
  210. searchMore: true,
  211. data: [],
  212. loading: false,
  213. visible: false,
  214. selectedRowKeys: [],
  215. selectedRows: [],
  216. pagination: {
  217. defaultCurrent: 1,
  218. defaultPageSize: 10,
  219. showQuickJumper: true,
  220. pageSize: 10,
  221. onChange: function (page) {
  222. this.loadData(page);
  223. }.bind(this),
  224. showTotal: function (total) {
  225. return '共' + total + '条数据';
  226. }
  227. },
  228. columns: [
  229. {
  230. title: '编号',
  231. dataIndex: 'number',
  232. key: 'number',
  233. }, {
  234. title: '申请号/专利号',
  235. dataIndex: 'patentNumber',
  236. key: 'patentNumber',
  237. }, {
  238. title: '合同编号',
  239. dataIndex: 'contractNumber',
  240. key: 'contractNumber',
  241. }, {
  242. title: '事务所',
  243. dataIndex: 'office',
  244. key: 'office',
  245. }, {
  246. title: '省份',
  247. dataIndex: 'province',
  248. key: 'province',
  249. render: text => { return getProvince(text) }
  250. }, {
  251. title: '公司名称',
  252. dataIndex: 'unitName',
  253. key: 'unitName',
  254. }, {
  255. title: '专利名称',
  256. dataIndex: 'patentName',
  257. key: 'patentName',
  258. }, {
  259. title: '专利类型',
  260. dataIndex: 'patentCatagory',
  261. key: 'patentCatagory'
  262. }, {
  263. title: '专利状态',
  264. dataIndex: 'patentState',
  265. key: 'patentState',
  266. render: text => { return getPatentState(text) },
  267. }, {
  268. title: '派单日',
  269. dataIndex: 'createTime',
  270. key: 'createTime',
  271. render: text => { return getTime(text) },
  272. }, {
  273. title: '申请日',
  274. dataIndex: 'startTime',
  275. key: 'startTime',
  276. render: text => { return getTime(text) },
  277. }, {
  278. title: '授权日',
  279. dataIndex: 'endTime',
  280. key: 'endTime',
  281. render: text => { return getTime(text) },
  282. }, {
  283. title: '创建人',
  284. dataIndex: 'founder',
  285. key: 'founder'
  286. }, {
  287. title: '技术员',
  288. dataIndex: 'techPrincipal',
  289. key: 'techPrincipal',
  290. }
  291. ],
  292. dataSource: []
  293. };
  294. },
  295. componentWillMount() {
  296. let _me = this;
  297. patentTypeList.map(function (item) {
  298. _me.state.patentTypeOption.push(
  299. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  300. )
  301. });
  302. patentStateList.map(function (item) {
  303. _me.state.patentStateOption.push(
  304. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  305. )
  306. });
  307. if (window.location.search) {
  308. let theObj = getSearchUrl(window.location.search);
  309. if (theObj.rid) {
  310. theObj.id = theObj.rid;
  311. if (theObj.rid != 'null' && theObj.uid != 'null') {
  312. this.tableRowClick(theObj);
  313. };
  314. } else {
  315. if (theObj.uid) {
  316. this.state.unitId = theObj.uid;
  317. } else if (theObj.contractId) {
  318. this.state.contractId = theObj.contractId;
  319. };
  320. };
  321. };
  322. this.loadData();
  323. this.getOptionList();
  324. this.getContractList();
  325. },
  326. tableRowClick(record, index) {
  327. this.state.RowData = record;
  328. this.setState({
  329. showDesc: true
  330. });
  331. },
  332. closeDesc(e, s) {
  333. this.state.showDesc = e;
  334. if (s) {
  335. this.loadData();
  336. };
  337. },
  338. search() {
  339. this.loadData();
  340. },
  341. reset() {
  342. this.state.number = undefined;
  343. this.state.patentNumber = undefined;
  344. this.state.province = undefined;
  345. this.state.unitId = undefined;
  346. this.state.contractId = undefined;
  347. this.state.patentType = undefined;
  348. this.state.patentName = undefined;
  349. this.state.patentState = undefined;
  350. this.state.createTime = [];
  351. this.state.acceptTime = [];
  352. this.state.authTime = [];
  353. this.state.searchKey = undefined;
  354. this.state.searchValue = undefined;
  355. this.loadData();
  356. },
  357. exportComposite() {
  358. window.open(globalConfig.context + "/api/admin/patent/exportComposite" +
  359. "?" + "serialNumber" + "=" + (this.state.number || '') +
  360. "&" + "patentNumber" + "=" + (this.state.patentNumber || '') +
  361. "&" + "patentName" + "=" + (this.state.patentName || '') +
  362. "&" + "locationProvince" + "=" + (this.state.province || '') +
  363. "&" + "uid" + "=" + (this.state.unitId || '') +
  364. "&" + "contractId" + "=" + (this.state.contractId || '') +
  365. "&" + "patentCatagory" + "=" + (this.state.patentCatagory || '') +
  366. "&" + "patentState" + "=" + (this.state.patentState || '') +
  367. "&" + "createTime" + "=" + (this.state.createTime || '') +
  368. "&" + "patentApplicationDate" + "=" + (this.state.acceptTime || '') +
  369. "&" + "author" + "=" + (this.state.author || ''));
  370. },
  371. searchSwitch() {
  372. this.setState({
  373. searchMore: !this.state.searchMore
  374. });
  375. },
  376. searchSelect(e) {
  377. let _me = this;
  378. this.setState({
  379. searchValue: e.target.value
  380. });
  381. switch (_me.state.searchKey) {
  382. case "patentNumber":
  383. _me.state.patentNumber = e.target.value;
  384. _me.state.number = '';
  385. _me.state.patentName = '';
  386. break;
  387. case "serialNumber":
  388. _me.state.number = e.target.value;
  389. _me.state.patentNumber = '';
  390. _me.state.patentName = '';
  391. break;
  392. case "patentName":
  393. _me.state.patentNumber = '';
  394. _me.state.number = '';
  395. _me.state.patentName = e.target.value;
  396. break;
  397. }
  398. },
  399. delectRow() {
  400. let deletedIds = [];
  401. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  402. let rowItem = this.state.selectedRows[idx];
  403. if (rowItem.id) {
  404. deletedIds.push(rowItem.id)
  405. }
  406. }
  407. this.setState({
  408. selectedRowKeys: [],
  409. loading: deletedIds.length > 0
  410. });
  411. $.ajax({
  412. method: "POST",
  413. dataType: "json",
  414. crossDomain: false,
  415. url: globalConfig.context + "/api/admin/patent/delete",
  416. data: {
  417. ids: deletedIds
  418. }
  419. }).done(function (data) {
  420. if (!data.error.length) {
  421. message.success('删除成功!');
  422. this.setState({
  423. loading: false,
  424. });
  425. } else {
  426. message.warning(data.error[0].message);
  427. };
  428. this.loadData();
  429. }.bind(this));
  430. },
  431. circulation() {
  432. let deletedIds = [];
  433. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  434. let rowItem = this.state.selectedRows[idx];
  435. if (rowItem.id) {
  436. deletedIds.push(rowItem.id)
  437. }
  438. }
  439. this.setState({
  440. selectedRowKeys: [],
  441. loading: deletedIds.length > 0
  442. });
  443. $.ajax({
  444. method: "POST",
  445. dataType: "json",
  446. crossDomain: false,
  447. url: globalConfig.context + "/api/admin/patent/circulation",
  448. data: {
  449. ids: deletedIds,
  450. principal: this.state.principal,
  451. state: this.state.status,
  452. comment: this.state.comment,
  453. recordTimeFormattedDate: this.state.recordTime
  454. }
  455. }).done(function (data) {
  456. if (!data.error.length) {
  457. message.success('保存成功!');
  458. this.setState({
  459. loading: false,
  460. visible: false
  461. });
  462. } else {
  463. message.warning(data.error[0].message);
  464. };
  465. this.loadData();
  466. }.bind(this));
  467. },
  468. showModal() {
  469. this.setState({
  470. visible: true,
  471. principal: undefined,
  472. status: undefined,
  473. comment: undefined,
  474. recordTime: undefined
  475. });
  476. },
  477. handleCancel() {
  478. this.setState({ visible: false });
  479. },
  480. render() {
  481. const rowSelection = {
  482. selectedRowKeys: this.state.selectedRowKeys,
  483. onChange: (selectedRowKeys, selectedRows) => {
  484. this.setState({
  485. selectedRows: selectedRows,
  486. selectedRowKeys: selectedRowKeys
  487. });
  488. }
  489. };
  490. const hasSelected = this.state.selectedRowKeys.length > 0;
  491. const { MonthPicker, RangePicker } = DatePicker;
  492. return (
  493. <div className="patent-content" >
  494. <div className="content-title">
  495. <span>专利综合管理</span>
  496. <div className="patent-addNew">
  497. <Upload style={{ float: 'right' }}
  498. name="ratepay"
  499. fileList={this.state.fileList}
  500. action={globalConfig.context + "/api/admin/patent/uploadTemplate"}
  501. data={{ 'sign': 'patent_prory_statement' }}
  502. beforeUpload={beforeUploadFile}
  503. onChange={(info) => {
  504. if (info.file.status === 'done') {
  505. if (!info.file.response.error.length) {
  506. if (!info.file.response.error.length) {
  507. message.success(`${info.file.name} 文件上传成功!`);
  508. } else {
  509. message.warning(info.file.response.error[0].message);
  510. return;
  511. };
  512. } else {
  513. message.warning(info.file.response.error[0].message);
  514. };
  515. } else if (info.file.status === 'error') {
  516. message.error(`${info.file.name} 文件上传失败。`);
  517. };
  518. this.setState({ fileList: info.fileList.slice(-1) });
  519. }}
  520. >
  521. <Button>上传专利代理委托书模板 <Icon type="upload" /></Button>
  522. </Upload>
  523. </div>
  524. </div>
  525. <div className="patent-query">
  526. <Select placeholder="请选择" value={this.state.searchKey} style={{ width: 160 }} onChange={(e) => { this.setState({ searchKey: e, searchValue: '' }); }}>
  527. <Select.Option value="patentNumber">专利号</Select.Option>
  528. <Select.Option value="serialNumber">编号</Select.Option>
  529. <Select.Option value="patentName">专利名称</Select.Option>
  530. </Select>
  531. <Input value={this.state.searchValue} style={{ width: 160 }} onChange={this.searchSelect} />
  532. <Select placeholder="选择合同编号"
  533. style={{ width: 120 }}
  534. value={this.state.contractId}
  535. showSearch
  536. filterOption={companySearch}
  537. onChange={(e) => { this.setState({ contractId: e }) }}>
  538. {this.state.contractListOption}
  539. </Select>
  540. <Select placeholder="专利状态" value={this.state.patentState} style={{ width: 160 }} onChange={(e) => { this.setState({ patentState: e }); }}>{this.state.patentStateOption}</Select>
  541. <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  542. <Button style={{ marginLeft: '20px' }}
  543. type="primary"
  544. onClick={this.search}>搜索</Button>
  545. <Button onClick={this.reset}>重置</Button>
  546. <Button type="ghost" onClick={this.exportComposite}>导出</Button>
  547. <Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
  548. disabled={!hasSelected}
  549. onClick={this.delectRow}>删除<Icon type="minus" /></Button>
  550. <Button disabled={!hasSelected} style={{ marginTop: '10px' }}
  551. type="ghost" onClick={this.showModal}>专利批量流转<Icon type="retweet" /></Button>
  552. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  553. <div>
  554. <span>派单日:</span>
  555. <RangePicker style={{ width: '240px' }}
  556. allowClear={false}
  557. value={[this.state.createTime[0] ? moment(this.state.createTime[0]) : null,
  558. this.state.createTime[1] ? moment(this.state.createTime[1]) : null]}
  559. onChange={(date, dateString) => { this.setState({ createTime: dateString }) }} />
  560. <span>申请日:</span>
  561. <RangePicker style={{ width: '240px' }}
  562. allowClear={false}
  563. value={[this.state.acceptTime[0] ? moment(this.state.acceptTime[0]) : null,
  564. this.state.acceptTime[1] ? moment(this.state.acceptTime[1]) : null]}
  565. onChange={(date, dateString) => { this.setState({ acceptTime: dateString }) }} />
  566. <Cascader placeholder="选择省份"
  567. style={{ width: 100, marginTop: "-4px" }}
  568. value={this.state.province}
  569. options={provinceSelect()}
  570. showSearch
  571. filterOption={companySearch}
  572. onChange={(e) => { this.setState({ province: e }) }} />
  573. <Select placeholder="选择公司"
  574. style={{ width: 200 }}
  575. showSearch
  576. filterOption={companySearch}
  577. value={this.state.unitId}
  578. onChange={(e) => { this.setState({ unitId: e }); }}>
  579. {this.state.companyOption}
  580. </Select>
  581. </div>
  582. </div>
  583. </div>
  584. <div className="patent-table">
  585. <Spin spinning={this.state.loading}>
  586. <Table columns={this.state.columns}
  587. rowSelection={rowSelection}
  588. dataSource={this.state.dataSource}
  589. style={{
  590. cursor: 'pointer',
  591. }}
  592. pagination={this.state.pagination}
  593. onRowClick={this.tableRowClick} />
  594. </Spin>
  595. </div>
  596. <PatentDesc
  597. data={this.state.RowData}
  598. adminOption={this.state.adminOption}
  599. patentStateOption={this.state.patentStateOption}
  600. showDesc={this.state.showDesc}
  601. closeDesc={this.closeDesc} />
  602. <Modal maskClosable={false} title="专利批量流转" visible={this.state.visible}
  603. onCancel={this.handleCancel}
  604. width='800px'
  605. footer={[
  606. <Button key="submit" type="primary" size="large" onClick={this.circulation}>保存</Button>,
  607. <Button key="back" type="ghost" size="large" onClick={this.handleCancel}>取消</Button>,
  608. ]} className="patent-desc-content">
  609. <div className="clearfix">
  610. <div className="widthThird">
  611. <span>状态流转:</span>
  612. <Select placeholder='请选择状态'
  613. value={this.state.status}
  614. style={{ width: 150 }}
  615. onChange={(e) => { this.setState({ status: e }); }}>
  616. {this.state.patentStateOption}
  617. </Select>
  618. </div>
  619. <p className="widthThird">
  620. <span>处理时间:</span>
  621. <DatePicker
  622. value={this.state.recordTime ? moment(this.state.recordTime) : undefined}
  623. format="YYYY-MM-DD HH:mm:ss"
  624. onChange={(data, dataString) => { this.setState({ recordTime: dataString }); }} />
  625. </p>
  626. <div className="widthThird">
  627. <span>负责人:</span>
  628. <Select placeholder='请填写负责人'
  629. value={this.state.principal}
  630. style={{ width: 150 }}
  631. onChange={(e) => { this.setState({ principal: e }); }}>
  632. {this.state.adminOption}
  633. </Select>
  634. </div>
  635. </div>
  636. <div>
  637. <span>备注:</span>
  638. <Input value={this.state.comment} placeholder='请填写备注' style={{ width: 400 }} onChange={(e) => { this.setState({ comment: e.target.value }); }} />
  639. </div>
  640. </Modal>
  641. </div >
  642. );
  643. }
  644. });
  645. export default Patent;
  646. //<PatentAdd closeDesc={this.closeDesc} />